Skip to main content

Posts

Showing posts with the label udev

eth0+N headache in linux with virtual templates

If you keep getting eth1 instead of eth0 as your main ethernet interface on a (newer) linux template/clone in a virtualized environment it's most likely because your udev rules is in affect and creates a new eth1 since eth0 is already defined and bound to the clone/template source's MAC address. This can be fixed in a couple of ways (in your template/clone source image): 1) You can delete the ' SUBSYSTEM ' line in your  /etc/udev/rules.d/70-persistent-net.rules : Edit the rules files   vi /etc/udev/rules.d/70-persistent-net.rules Delete the SUBSYSTEM line(s), feel free to also delete the comment about PCI device just above: # This file was automatically generated by the /lib/udev/write_net_rules # program, run by the persistent-net-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single # line, and change only the value of the NAME= key. # PCI device 0x8086:0x100e (e1000) SUBSYSTEM=="net", ACTION==...