Re: Easier Way to configure domainU

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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@xxxxxxxxx
Database/Systems Administrator
Housing Information Technology Office
University of Michigan

On Wed, 25 Jul 2007, Olivier Renault wrote:

taoj2@xxxxxxxxxx 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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-xen

[Index of Archives]     [Fedora General]     [Fedora Music]     [Linux Kernel]     [Fedora Desktop]     [Fedora Directory]     [PAM]     [Big List of Linux Books]     [Gimp]     [Yosemite News]

  Powered by Linux