The TAP/TUN devices are used for connection to a HVM domain, but there
is no relationship between each name of the devices and its domain ID.
This patch assigns a HVM domain ID to each name of the TAP/TUN devices.
Signed-off-by: MIYAJIMA Mitsuharu <miyajima.mitsuharu@xxxxxxxxx>
diff -r 59b8768d0d0d tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py Wed Mar 05 11:18:25 2008 +0000
+++ b/tools/python/xen/xend/image.py Tue Mar 11 13:06:14 2008 +0900
@@ -580,7 +580,8 @@ class HVMImageHandler(ImageHandler):
ret.append("nic,vlan=%d,macaddr=%s,model=%s" %
(nics, mac, model))
ret.append("-net")
- ret.append("tap,vlan=%d,bridge=%s" % (nics, bridge))
+ ret.append("tap,vlan=%d,ifname=tap%d.%d,bridge=%s" %
+ (nics, self.vm.getDomid(), nics-1, bridge))
return ret
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|