[CentOS-virt] sorting virtual network interface names with xen

lee lee at yun.yagibdah.de
Fri Jun 6 01:14:34 UTC 2014


how would I make it so that a particular virtual network interface of
dom0 is attached to a particular bridge created for a particular VM?

When I start the VM with 'virsh start <domU>', I get interfaces vif1.0,
vif1.1 and vif1.2.  After shutting down domU with 'virsh shutdown
<domU>' and starting it again as before, the virtual network interfaces
are vif2.0, vif2.1 and vif2.2.

I want them to keep their names so that they would be vif1.[0-2] again.

In the end, I want to give them different names, like vif_domU.loc,
vif_domU.dmz and vif_domU.mta, which they are supposed to keep

Is it possible to hardcode the interface names in the domain
description?  Currently, the default script /etc/xen/scripts/vif-bridge
is used to create them.

And once hardcoded, how do I make it so that the corresponding
interfaces in domU have appropriate names like eth_loc, eth_dmz and

Generic interface names for all the bridges and interfaces would lead to
total confusion in this case because I`d never be able to tell which
bridge or interface in dom0 corresponds to what in any of the domUs.

Knowledge is volatile and fluid.  Software is power.

More information about the CentOS-virt mailing list