Linux Virtualization Reconfigure Guest Network: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Linux Virtualization Operations =Procedure= Shut down the guest: <syntaxhighlight lang='bash'> virsh shutd...")
 
Line 15: Line 15:
</syntaxhighlight>
</syntaxhighlight>


Lookup the memory definition line:
Update the network interface definitions, as described in:
<syntaxhighlight lang='xml'>
* [[Attaching_a_Guest_Directly_to_a_Virtualization_Host_Network_Interface_with_a_macvtap_Driver#Configure_the_Virtual_Device_on_Guest|Attaching a Guest Directly to a Virtualization Host Network Interface with a macvtap Driver #&124; Configure the Virtual Device on Guest]]
<memory unit='KiB'>16777216</memory>
</syntaxhighlight>
Edit to the desired value (note that the memory is expressed in KiB)
 
Delete <currentMemory>


Restart the guest:
Restart the guest:
Line 28: Line 23:
</syntaxhighlight>
</syntaxhighlight>


Verify that the memory change took:
Verify that the change took:
<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
virsh dominfo <guest-name>
virsh dominfo <guest-name>
</syntaxhighlight>
</syntaxhighlight>

Revision as of 02:02, 7 December 2020

Internal

Procedure

Shut down the guest:

virsh shutdown <guest-name>

Edit the guest definition:

virsh edit <guest-name>

Update the network interface definitions, as described in:

Restart the guest:

virsh start <guest-name>

Verify that the change took:

virsh dominfo <guest-name>