|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH][IOEMU] remove default NIC in qemu when no vif configured
Latest QEMU would add a NIC device by default, unless specify the "-nic none".
So end user still get a unusable NIC even no vif in the config file.
This simple patch can fix it.
Signed-off-by: Zhai Edwin <edwin.zhai@xxxxxxxxx>
diff -r 37ebd7eae0be tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py Tue Apr 15 17:23:39 2008 +0800
+++ b/tools/python/xen/xend/image.py Tue Aug 05 16:04:08 2008 +0800
@@ -777,6 +777,10 @@ class HVMImageHandler(ImageHandler):
ret.append("tap,vlan=%d,ifname=tap%d.%d,bridge=%s" %
(nics, self.vm.getDomid(), nics-1, bridge))
+ if nics == 0:
+ ret.append("-net")
+ ret.append("none")
+
return ret
def getDeviceModelArgs(self, restore = False):
--
best rgds,
edwin
Attachment:
qemu_no_nic_fix.patch _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |