Linux Virtualization Reconfigure Guest Memory: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 5: Line 5:
=Procedure=
=Procedure=


Shut down the guest, then:
Shut down the guest:
<syntaxhighlight lang='bash'>
virsh shutdown <guest-name>
</syntaxhighlight>


Edit the guest definition:
<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
virsh edit <guest-name>
virsh edit <guest-name>
</syntaxhighlight>
</syntaxhighlight>


Then:
Lookup the memory definition line:
<syntaxhighlight lang='xml'>
<memory unit='KiB'>16777216</memory>
</syntaxhighlight>
Edit to the desired value (note that the memory is expressed in KiB)


* modify <memory> to the amount of memory required.


* delete <currentMemory>
Delete <currentMemory>


Restart the guest.
Restart the guest.
<vcpu placement='auto'>16</vcpu>

Revision as of 06:31, 4 December 2020

Internal

Procedure

Shut down the guest:

virsh shutdown <guest-name>

Edit the guest definition:

virsh edit <guest-name>

Lookup the memory definition line:

<memory unit='KiB'>16777216</memory>

Edit to the desired value (note that the memory is expressed in KiB)


Delete <currentMemory>

Restart the guest.


<vcpu placement='auto'>16</vcpu>