[Fedora-xen] Easier Way to configure domainU

Hope Dundas suhopdu at umich.edu
Wed Jul 25 14:05:33 UTC 2007


Hi folks, the RHEL5 Virtualization guide has some nice info on this:

http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Virtualization-en-US/ch19s21.html

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 at umich.edu
Database/Systems Administrator
Housing Information Technology Office
University of Michigan

On Wed, 25 Jul 2007, Olivier Renault wrote:

> taoj2 at 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.
>




More information about the Fedora-xen mailing list