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

Re: Proposal: enable stateless persistant network interface names



On 05/08/2015 09:28 AM, Josh Triplett wrote:
> Marc Haber wrote:
>> I have tried this just last week and have found it kind of
>> unsatisfactory that it doesn't work in virtualized environments. For
>> example, in a KVM VM with virtio ethernet, the network devices still
>> end up in the system as eth0, eth1, eth2.
> 
> As I understand it, that's intentional and expected, for two reasons.
> First, because on a virtual machine, the network interfaces are likely
> to be more stable, always showing up with the same numbers.  And second,
> because there's little else to go on when naming them.

Unfortunately that is not true for VMware.
If you run a vm with more than three vmxnet(3) network interfaces it will depend
on the hw version of the vm in which order they appear (due to other pci ids and
different order on the pci bus!), it might happen that the 3rd or 4th interface
is ordered in front of the first interface.
Also mixing e1000 and vmxnet(3) interfaces will result in a mess.

It would be really great to fix this, as far as I can see the only way would be
using mac address based interface names as the pci bus ids will change while
upgrading hardware versions in vmware.

-- 
 Bernd Zeimetz                            Debian GNU/Linux Developer
 http://bzed.de                                http://www.debian.org
 GPG Fingerprint: ECA1 E3F2 8E11 2432 D485  DD95 EB36 171A 6FF9 435F


Reply to: