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

[Xen-changelog] [xen-unstable] Each TAP/TUN device name for a HVM guest includes its domain ID.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1205838120 0
# Node ID 3ab6635f783d61e1f73ccf26074f80d8e9259a6d
# Parent  3633eae535727b9d08c4760aae9fb11dcc43f5bd
Each TAP/TUN device name for a HVM guest includes its domain ID.

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 TAP/TUN device name.

Signed-off-by: MIYAJIMA Mitsuharu <miyajima.mitsuharu@xxxxxxxxx>
---
 tools/python/xen/xend/image.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r 3633eae53572 -r 3ab6635f783d tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py    Tue Mar 18 10:59:46 2008 +0000
+++ b/tools/python/xen/xend/image.py    Tue Mar 18 11:02:00 2008 +0000
@@ -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-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®.