[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] After move randomMac to netif in 7637, we need to this for vmx guest.
# HG changeset patch # User kaf24@xxxxxxxxxxxxxxxxxxxx # Node ID 8914eb171c66151921ded245838ba2b4dda16dc3 # Parent a7a35d0a4a7c9c6850614319acdd00571a8e0a01 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 a7a35d0a4a7c -r 8914eb171c66 tools/python/xen/xend/image.py --- a/tools/python/xen/xend/image.py Tue Nov 8 11:14:33 2005 +++ b/tools/python/xen/xend/image.py Tue Nov 8 11:16:37 2005 @@ -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': _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |