[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] Need help in generating MAC Address using Virt-install or any other command
On Tue, Jun 18, 2013 at 9:50 AM, Deven Shanbhag <deven.shanbhag@xxxxxxxxx> wrote: > Hello all, > Need some help in generating random mac address for my guest vm. I am > Specifically looking for the command line as i already have vm file scp'd in > the host. Can somebody pl help. Thnks This is what I use: $ cat /usr/local/bin/genmac #!/bin/bash prefix="00:16:3E" mac="$prefix" for seqnum in 1 2 3 ;do part=`dd if=/dev/random bs=1 count=1 2>/dev/null | xxd -ps -u` mac="$mac:$part" done echo $mac -- Fajar _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxx http://lists.xen.org/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |