|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH]FIX MAC address issue for vmx guest.
After move randomMac to netif in 7637, we need to this for vmx guest.
otherwise, if no mac address configured, vmx guest can not be created.
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@xxxxxxxxx>
diff -r 25599e222c33 -r aeb61fb653b3 tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py Mon Nov 7 18:14:45 2005 +0100
+++ b/tools/python/xen/xend/image.py Tue Nov 8 09:39:56 2005 +0800
@@ -24,6 +24,7 @@
from xen.xend import sxp
from xen.xend.XendError import VmError
from xen.xend.XendLogging import log
+from xen.xend.server.netif import randomMAC
xc = xen.lowlevel.xc.new()
@@ -276,6 +277,8 @@
ret.append("%s" % vbdparam)
if name == 'vif':
mac = sxp.child_value(info, 'mac')
+ if mac == None:
+ mac = randomMAC()
ret.append("-macaddr")
ret.append("%s" % mac)
if name == 'vtpm':
randomMac.patch
Description: randomMac.patch
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH]FIX MAC address issue for vmx guest.,
Ling, Xiaofeng <=
|
|
|
|
|