Difference between revisions of "Virsh setmaxmem"

From wikieduonline
Jump to navigation Jump to search
(Created page with "<code>virsh setmaxmem domain size [[--config] [--live] | [--current]]</code> Command is available at least the Xen, QEMU/KVM and vSphere/ESX hypervisors....")
 
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<code>virsh setmaxmem domain size [[--config] [--live] | [--current]]</code>
+
<code>[[virsh]] setmaxmem domain size [[--config] [--live] | [--current]]</code>
  
 
Command is available at least the Xen, [[KVM/qemu|QEMU]]/[[KVM]] and vSphere/ESX hypervisors.
 
Command is available at least the Xen, [[KVM/qemu|QEMU]]/[[KVM]] and vSphere/ESX hypervisors.
Line 5: Line 5:
  
  
:<code>[[virsh/virsh dominfo|virsh dominfo]] YOUR_VM_NAME | grep memory</code>
+
:<code>[[virsh dominfo]] YOUR_VM_NAME | grep memory</code>
  
 
<pre>
 
<pre>
Line 12: Line 12:
 
error: Requested operation is not valid: cannot resize the maximum memory on an active domain
 
error: Requested operation is not valid: cannot resize the maximum memory on an active domain
 
</pre>
 
</pre>
 +
<code>[[virsh shutdown]] DOMAIN_NAME</code>
 +
 +
 +
 +
 +
== Related command ==
 +
* <code>[[virsh setmem]] YOUR_VM_NAME 8G --config --live </code>
 +
* <code>[[virsh dominfo]] YOUR_VM_NAME | grep memory</code>
  
 
== See also ==
 
== See also ==
 +
* {{Virsh memory commands}}
 +
* {{virsh}}
 
* {{memory}}
 
* {{memory}}
 
* {{KVM}}
 
* {{KVM}}

Latest revision as of 12:41, 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

virsh shutdown DOMAIN_NAME



Related command[edit]

See also[edit]

Advertising: