Virsh setmaxmem

From wikieduonline
Revision as of 12:41, 28 January 2020 by Welcome (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

virsh setmaxmem domain size [[--config] [--live] | [--current]]

Command is available at least the Xen, QEMU/KVM and vSphere/ESX hypervisors.


virsh dominfo YOUR_VM_NAME | grep memory
virsh setmaxmem YOUR_VM_NAME 8G
error: Unable to change MaxMemorySize
error: Requested operation is not valid: cannot resize the maximum memory on an active domain

virsh shutdown DOMAIN_NAME



Related command

See also

Advertising: