Red Hat Training

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

20.21. Creating a Guest Virtual Machine from a Configuration File

Guest virtual machines can be created from XML configuration files. You can copy existing XML from previously created guest virtual machines or use the virsh dumpxml command.

Example 20.49. How to create a guest virtual machine from an XML file

The following example creates a new virtual machine from the existing guest1.xml configuration file. You need to have this file before beginning. You can retrieve the file using the virsh dumpxml command. See Example 20.48, “How to retrieve the XML file for a guest virtual machine” for instructions.
virsh create guest1.xml