mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-22 04:25:21 +00:00
openapi: Make desired_ram int64 format
The option desired_ram is in byte, make larger the amount of memory to add. Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
parent
ca3b39c0be
commit
40b38a4222
@ -91,7 +91,7 @@ Before issuing the API request it is necessary to run the following command insi
|
|||||||
root@ch-guest ~ # echo online | sudo tee /sys/devices/system/memory/auto_online_blocks
|
root@ch-guest ~ # echo online | sudo tee /sys/devices/system/memory/auto_online_blocks
|
||||||
```
|
```
|
||||||
|
|
||||||
To ask the VMM to add expand the RAM for the VM:
|
To ask the VMM to add expand the RAM for the VM (request is in bytes):
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
curl -H "Accept: application/json" -H "Content-Type: application/json" -i -XPUT --unix-socket /tmp/ch-socket -d "{ \"desired_vcpus\": 4, \"desired_ram\" : 3221225472}" http://localhost/api/v1/vm.resize
|
curl -H "Accept: application/json" -H "Content-Type: application/json" -i -XPUT --unix-socket /tmp/ch-socket -d "{ \"desired_vcpus\": 4, \"desired_ram\" : 3221225472}" http://localhost/api/v1/vm.resize
|
||||||
|
@ -460,7 +460,9 @@ components:
|
|||||||
minimum: 1
|
minimum: 1
|
||||||
type: integer
|
type: integer
|
||||||
desired_ram:
|
desired_ram:
|
||||||
|
description: desired memory ram in bytes
|
||||||
type: integer
|
type: integer
|
||||||
|
format: int64
|
||||||
|
|
||||||
VmAddDevice:
|
VmAddDevice:
|
||||||
type: object
|
type: object
|
||||||
|
Loading…
x
Reference in New Issue
Block a user