[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] xend: remove default NIC in qemu when no vif configured



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1217924982 -3600
# Node ID 2a737916483f1bdb8ed81d6357f1165037814fa6
# Parent  aea47e7e8c0d6941b24c786e23565bbfbff6d953
xend: 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.

Signed-off-by: Zhai Edwin <edwin.zhai@xxxxxxxxx>
---
 tools/python/xen/xend/image.py |    4 ++++
 1 files changed, 4 insertions(+)

diff -r aea47e7e8c0d -r 2a737916483f tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py    Tue Aug 05 09:28:24 2008 +0100
+++ b/tools/python/xen/xend/image.py    Tue Aug 05 09:29:42 2008 +0100
@@ -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):

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.