Hi,
I want to configure a new domainU from existing domain. Can I just copy the image file (/var/lib/xen/images/box) and also copy the configuration file of existing domain?
The format of configuration file is like this:
# Automatically generated xen config file name = "xen2" memory = "1000" disk = [ 'tap:aio:/var/lib/xen/images/box2,xvda,w', ] vif = [ 'mac=xx:xx:xx:xx:xx:xx, bridge=xenbr1', ] vnc=1 vncunused=1 uuid = "9297c728-efe7-025f-3b35-02f92474aa6e" bootloader="/usr/bin/pygrub" vcpus=1 on_reboot = 'restart' on_crash = 'restart'
I will change the name to a new name, set vcpu to 4. But I don't know how to get a unique mac address and uuid. Anybody know?
And except for create the image file and configuration file, what else do i need to do?
PS: I use the Fedora XEN.
Thanks for your time.
Best Wishes Angel
taoj2@cs.rpi.edu wrote:
Hi,
I want to configure a new domainU from existing domain. Can I just copy the image file (/var/lib/xen/images/box) and also copy the configuration file of existing domain?
Correct.
The format of configuration file is like this:
# Automatically generated xen config file name = "xen2" memory = "1000" disk = [ 'tap:aio:/var/lib/xen/images/box2,xvda,w', ] vif = [ 'mac=xx:xx:xx:xx:xx:xx, bridge=xenbr1', ] vnc=1 vncunused=1 uuid = "9297c728-efe7-025f-3b35-02f92474aa6e" bootloader="/usr/bin/pygrub" vcpus=1 on_reboot = 'restart' on_crash = 'restart'
I will change the name to a new name, set vcpu to 4. But I don't know how to get a unique mac address and uuid. Anybody know?
For the mac I tend to randomly change one of the last 6 characters. It is easier for the uuid as you can use the uuidgen command to generate a new one.
And except for create the image file and configuration file, what else do i need to do?
That should be it.
PS: I use the Fedora XEN.
Thanks for your time.
Best Wishes Angel
-- Fedora-xen mailing list Fedora-xen@redhat.com https://www.redhat.com/mailman/listinfo/fedora-xen
Hi folks, the RHEL5 Virtualization guide has some nice info on this:
http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Virtualization-e...
1) As Olivier mentioned, uuidgen is a built-in app that will generate a valid, unique, uuid.
2) this script (gakked from the above webpage) will generate a mac address:
#! /usr/bin/python # macgen.py script generates a MAC address for Xen guests # import random mac = [ 0x00, 0x16, 0x3e, random.randint(0x00, 0x7f), random.randint(0x00, 0xff), random.randint(0x00, 0xff) ] print ':'.join(map(lambda x: "%02x" % x, mac))
Enjoy!
~ Hope Dundas
~~~ Hope Dundas, hope.dundas@umich.edu Database/Systems Administrator Housing Information Technology Office University of Michigan
On Wed, 25 Jul 2007, Olivier Renault wrote:
taoj2@cs.rpi.edu wrote:
For the mac I tend to randomly change one of the last 6 characters. It is easier for the uuid as you can use the uuidgen command to generate a new one.