Show Table of Contents
33.19. Duplicating an existing guest and its configuration file
This section outlines copying an existing configuration file to create a new guest. There are key parameters in your guest's configuration file you must be aware of, and modify, to successfully duplicate a guest.
-
name - The name of your guest as it is known to the hypervisor and displayed in the management utilities. This entry should be unique on your system.
-
uuid - A unique handle for the guest, a new UUID can be regenerated using the
uuidgencommand. A sample UUID output:$ uuidgen a984a14f-4191-4d14-868e-329906b211e5
-
vif - The MAC address must define a unique MAC address for each guest. This is automatically done if the standard tools are used. If you are copying a guest configuration from an existing guest you can use the script Section 33.9, “Generating a new unique MAC address”.
- If you are moving or duplicating an existing guest configuration file to a new host you have to make sure you adjust the
xenbrentry to correspond with your local networking configuration (you can obtain the bridge information using the commandbrctl showcommand). - Device entries, make sure you adjust the entries in the
disk=section to point to the correct guest image.
Now, adjust the system configuration settings on your guest:
-
/etc/sysconfig/network - Modify the
HOSTNAMEentry to the guest's newhostname. -
/etc/sysconfig/network-scripts/ifcfg-eth0 - Modify the
HWADDRaddress to the output fromifconfig eth0 - Modify the
IPADDRentry if a static IP address is used.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.