projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2765f0b
)
xend: remove default NIC in qemu when no vif configured
author
Keir Fraser
<keir.fraser@citrix.com>
Tue, 5 Aug 2008 08:29:42 +0000
(09:29 +0100)
committer
Keir Fraser
<keir.fraser@citrix.com>
Tue, 5 Aug 2008 08:29:42 +0000
(09:29 +0100)
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@intel.com>
tools/python/xen/xend/image.py
patch
|
blob
|
history
diff --git
a/tools/python/xen/xend/image.py
b/tools/python/xen/xend/image.py
index 3b1fc4225c910c9ad7281382fe3d6ffa86e5f209..49cce20225b01697fd0301745006f320c623359e 100644
(file)
--- a/
tools/python/xen/xend/image.py
+++ b/
tools/python/xen/xend/image.py
@@
-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):