Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

20.22. Editing a Guest Virtual Machine's XML Configuration Settings

The virsh edit command enables the user to edit the domain XML configuration file of a specified guest. Running this command opens the XML file in a text editor, specified by the $EDITOR shell parameter (set to vi by default).

Example 20.50. How to edit a guest virtual machine's XML configuration settings

The following example opens the XML configuration file associated with the guest1 virtual machine in your default text editor:
virsh edit guest1