Difference between revisions of "Virsh setmaxmem"

From wikieduonline
Jump to navigation Jump to search
Line 14: Line 14:
  
 
== Related command ==
 
== Related command ==
* <code>[[virsh setmem]]</code>
+
* <code>[[virsh setmem]] YOUR_VM_NAME 8G</code>
 
* <code>[[virsh dominfo]] YOUR_VM_NAME | grep memory</code>
 
* <code>[[virsh dominfo]] YOUR_VM_NAME | grep memory</code>
 
  
 
== See also ==
 
== See also ==

Revision as of 06:26, 28 January 2020

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

Related command

See also

Advertising: