Skip to main content

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=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:4b:05:e0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

2) A more dirty hack would just be to delete the /etc/udev/rules.d/70-persistent-net.rules file and create a directory named as the file. This tip is taken from six degrees of fredom blog (link):

  rm /etc/udev/rules.d/70-persistent-net.rules
  mkdir /etc/udev/rules.d/70-persistent-net.rules





Comments

Popular posts from this blog

How to configure multiple VLANs on QNAP TS-869U

It's unbelievable that QNAP still doesn't support multiple VLANs on a single bond0 interface via GUI when they now just released the QTS v4.1.0 NAS Operation System for QNAP. The underlying Linux OS (QTS) does support it, and there should at least not be any problems with Intel chipsets. Some are reporting problems with Marvell.. but I haven't tried. I wanted to use the QNAP as a iSCSI storage for my LAB using a second interface while having full redundancy and get max bandwith (2x1GbE) for my ESXi hosts, and I didn't want that interface routed. At the same time I of course need the possibility to manage the QNAP system via the main interface, which is routed. This CLI "hack" will at configure the QNAP for a second VLAN interface that will be persistent during reboots. It's not been verified that it works after an upgrade of the firmware, but I presumed it will. To get this to work I presume you already have the following working: Network onfigured...

Intel Rapid Storage Technology (iRST) driver for Windows 10 on older chipsets (7-series and older)

My computer is still more than fast enough even though it's over 4 years old. It's a Intel Core i7-3770K with 32GB DDR4-1600 RAM on an Asus ROG Maximus V Gene mainboard. The chipset is Z77 and so it was more or less the best to get at the time being. I started with two Samsung SSD 830 in RAID-9 and later upgraded to a OCZ RevoDrive3 X2 PCIe SSD for my OS disk. Fast forward from Windows 7/8 to Windows 10 (v1607) and Intel seems to not have released any Windows 10 supported SATA controller drivers for Z77. Or have they? It seems that as long as your BIOS has the Intel SATA controller set to AHCI-mode, Windows 10 will install and use the generic ' Standard SATA controller ' and trying to install the latest iRST driver v15.2.0.1020 (latest version as of 2016-12-15) on an AHCI configured Z77-system only gives you an error: Platform not supported The good news is that Intel does have driver support for some of the older chipsets; those that have RAID capabilities, whi...

Selskaper bygget på deling-trenden

Selskaper bygget pÃ¥ deling-trenden Airbnb:  Formidling av utleieboliger og -rom over hele verden. Nett: airbnb.com   Andre:  wimdu.com ,  homeaway.com ,  vrbo.com , couchsurfing.org ,  ficalaemcasa.com.br RelayRides:  Formidler leie av privatbiler. Nett:  relayrides.com Andre:  flightcar.com ,  getaround.com Lyft:  Taxitjeneste levert av privatpersoner gjennom telefonapp. Nett: lyft.com Andre:  side.cr Eatwith:  Betal for Ã¥ spise middag hjemme hos andre mennesker. Nett: eatwith.com Andre:  meetmeals.com ,  grubclub.com Taskrabbit:  Forum for kjøp og salg av tjenester, som Ã¥ gÃ¥ pÃ¥ butikken eller vaske huset. Nett:  taskrabbit.com Andre:  agentanything.com ,  iamexec.com Carpooling:  Kobler mennesker som skal reise samme vei. Nett: carpooling.com Andre:  zimride.com Jetlimo:  Fører sammen mennesker som skal reise samme vei, og ordner et privatfly. Nett:  ...