mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
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@anchor.jp>
This commit is contained in:
1 parent
079d3b064f
commit
6dc8df55ea
1 file changed
+2
-1
@@ -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
|
||||
|
||||
|
||||