summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaulo Alcantara <palcantara@suse.de>2018-05-07 13:28:23 -0300
committerPaulo Alcantara <palcantara@suse.de>2018-05-07 13:28:23 -0300
commit6401b08e8a99a0816b900aea49437d0b0ea1df5c (patch)
treea779c958323a2c93400809299a53f328c0ab17d7
parent9c0bb53c5379931068c1abcbb2b5d5dd735546dc (diff)
downloadvmhtool-6401b08e8a99a0816b900aea49437d0b0ea1df5c.tar.gz
vmhtool-6401b08e8a99a0816b900aea49437d0b0ea1df5c.tar.xz
vmhtool-6401b08e8a99a0816b900aea49437d0b0ea1df5c.zip
Fix random mac addr generator.
Signed-off-by: Paulo Alcantara <palcantara@suse.de>
-rwxr-xr-xvmhelper3
1 files changed, 1 insertions, 2 deletions
diff --git a/vmhelper b/vmhelper
index 9c94a1e..3c0db87 100755
--- a/vmhelper
+++ b/vmhelper
@@ -269,8 +269,7 @@ sub create_guest_img {
}
sub get_random_macaddr {
- return sprintf "%02x:%02x:%02x:%02x:%02x:%02x", rand(256), rand(256),
- rand(256), rand(256), rand(256), rand(256);
+ return sprintf "52:54:00:%02x:%02x:%02x", rand(256), rand(256), rand(256);
}
sub rem_vm_info {