33.19. Duplicating an existing guest and its configuration file

download PDF
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.
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.
A unique handle for the guest, a new UUID can be regenerated using the uuidgen command. A sample UUID output:
$ uuidgen 
  • 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 xenbr entry to correspond with your local networking configuration (you can obtain the bridge information using the command brctl show command).
  • 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:
Modify the HOSTNAME entry to the guest's new hostname.
  • Modify the HWADDR address to the output from ifconfig eth0
  • Modify the IPADDR entry if a static IP address is used.
Red Hat logoGithubRedditYoutubeTwitter


Try, buy, & sell


About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.