[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fedora-xen
Subject:    Re: [Fedora-xen] Easier Way to configure domainU
From:       Hope Dundas <suhopdu () umich ! edu>
Date:       2007-07-25 14:05:33
Message-ID: Pine.LNX.4.64.0707251003060.6210 () joust ! gpcc ! itd ! umich ! edu
[Download RAW message or body]


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@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.
>

--
Fedora-xen mailing list
Fedora-xen@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-xen
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic