centos – Grey Panthers Savannah https://grey-panther.net Just another WordPress site Mon, 05 Sep 2011 07:04:00 +0000 en-US hourly 1 https://wordpress.org/?v=6.9 206299117 Creating a non-MAC bound CentOS 6 machine https://grey-panther.net/2011/09/creating-a-non-mac-bound-centos-6-machine.html https://grey-panther.net/2011/09/creating-a-non-mac-bound-centos-6-machine.html#comments Mon, 05 Sep 2011 07:04:00 +0000 https://grey-panther.net/?p=57 I was building VMs to be deployed with Vagrant / Virtualbox for our QAs and discovered that on new instantiations of the machine the networking interface wasn’t coming up. The problem was that Virtualbox was assigning a random MAC address to the NIC (and rightly so, to avoid conflicts). I used the following steps to solve this:

  1. Remove the HWADDR line from /etc/sysconfig/network-scripts/ifcfg/eth0
  2. Delete the file /etc/udev/rules.d/70-persistent-net.rules (hat tip)

These two steps are specific to CentOS 6 (on 5.x the first step is sufficient). Also, the second if is recreated at the next boot, thus after rm-ing it, you should shut down the machine and package it (not start it again, or if you do, you should remove the file again).

]]>
https://grey-panther.net/2011/09/creating-a-non-mac-bound-centos-6-machine.html/feed 1 57