Skip to content

Commit

Permalink
Randomly generate MAC address.
Browse files Browse the repository at this point in the history
  • Loading branch information
xsgordon committed Nov 9, 2012
1 parent 86aae46 commit f8b5686
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rhev-ks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ INSTANCE_DSK=20

# Name of the instance, this will be used for the hostname as well as the name of the VM.
NAME="rhevm"
MAC="00:16:3e:77:e2:ed"
MAC=`echo -n 52:54:00; dd bs=1 count=3 if=/dev/random 2> /dev/null | hexdump -v -e '/1 ":%02X"'`

EXISTING=`virsh list --all --name | grep ${NAME}`

Expand Down

0 comments on commit f8b5686

Please sign in to comment.