Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support memory update in dbs-cli #24

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

HerlinCoder
Copy link

dbs-cli: support virtio-balloon feature

We can use dbs-cli to simply reuse unused virtual machine on host. An
empty virtio-balloon device should be inserted first before we ask guest
to balloon some free memory. It should use update action, and only
parameter is size in mib.

Example:

First time:
./dbs-cli  --api-sock-path /tmp/api-sock --balloon-memory 0 update

Next:
./dbs-cli  --api-sock-path /tmp/api-sock --balloon-memory 512 update

Fixes: #23

Signed-off-by: Helin Guo <[email protected]>

dbs-cli: support virtio-mem feature

We can use dbs-cli to simply hotplug memory in virtual machine. It
should use update action, and only parameter is size in mib.

Example:

./dbs-cli  --api-sock-path /tmp/api-sock --hotplug-memory 1024 update

Fixes: #23

Signed-off-by: Helin Guo <[email protected]>

We can use dbs-cli to simply hotplug memory in virtual machine. It
should use update action, and only parameter is size in mib.

Example:

./dbs-cli  --api-sock-path /tmp/api-sock --hotplug-memory 1024 update

Fixes: openanolis#23

Signed-off-by: Helin Guo <[email protected]>
We can use dbs-cli to simply reuse unused virtual machine on host. An
empty virtio-balloon device should be inserted first before we ask guest
to balloon some free memory. It should use update action, and only
parameter is size in mib.

Example:

First time:
./dbs-cli  --api-sock-path /tmp/api-sock --balloon-memory 0 update

Next:
./dbs-cli  --api-sock-path /tmp/api-sock --balloon-memory 512 update

Fixes: openanolis#23

Signed-off-by: Helin Guo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant