Linux Virtualization Reconfigure Guest Memory: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Linux Virtualization Operations")
 
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 2: Line 2:


* [[Linux_Virtualization_Operations#Guest_Operations|Linux Virtualization Operations]]
* [[Linux_Virtualization_Operations#Guest_Operations|Linux Virtualization Operations]]
=Procedure=
Shut down the guest:
<syntaxhighlight lang='bash'>
virsh shutdown <guest-name>
</syntaxhighlight>
Edit the guest definition:
<syntaxhighlight lang='bash'>
virsh edit <guest-name>
</syntaxhighlight>
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)
Delete <currentMemory>
Restart the guest:
<syntaxhighlight lang='bash'>
virsh start <guest-name>
</syntaxhighlight>
Verify that the memory change took:
<syntaxhighlight lang='bash'>
virsh dominfo <guest-name>
</syntaxhighlight>

Latest revision as of 06:58, 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:

virsh start <guest-name>

Verify that the memory change took:

virsh dominfo <guest-name>