Linux KVM Virtualization Reconfigure Guest CPUs: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Linux Virtualization Operations =Procedure=")
 
Line 1: Line 1:
=Internal=
* [[Linux_Virtualization_Operations#Guest_Operations|Linux Virtualization Operations]]
=Internal=
=Internal=


Line 4: Line 8:


=Procedure=
=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 CPU definition line:
<syntaxhighlight lang='xml'>
<vcpu placement='auto'>16</vcpu>
</syntaxhighlight>
Edit to the desired value.
Restart the guest:
<syntaxhighlight lang='bash'>
virsh start <guest-name>
</syntaxhighlight>
Verify that the memory change took:
<syntaxhighlight lang='bash'>
virsh dominfo docker
</syntaxhighlight>

Revision as of 06:37, 4 December 2020

Internal

Internal

Procedure

Shut down the guest:

virsh shutdown <guest-name>

Edit the guest definition:

virsh edit <guest-name>

Lookup the CPU definition line:

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

Edit to the desired value.

Restart the guest:

virsh start <guest-name>

Verify that the memory change took:

virsh dominfo docker