SHIFT

--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools


clonedslesvmnic
Differences

This shows you the differences between two versions of the page.

Link to this comparison view

clonedslesvmnic [2013/04/20 12:42]
sjoerd created
clonedslesvmnic [2013/04/20 12:42] (current)
sjoerd
Line 1: Line 1:
 = Cloned SLES Virtual Machine NIC =  = Cloned SLES Virtual Machine NIC = 
  
-After cloning a Linux VM, you might find your network interface is no longer named eth0, taking on eth1 instead. This will work and cause no functional impact, however, for several reasons you might want to change it to eth0 anyway. SLES for VMware/SLES 11 SP1, uses udev to provide persistence to various devices. ​ While this model is a big step forward from the semi-random device name assignments of the past, one side-effect is that a new MAC address, ​whoch will happen when you clone a virtual machine, is regarded as an additional interface and not a replacement. ​ Which means a newly-cloned SLES VM powers up with eth1 as the NIC name, and not eth0. Fortunately,​ this situation is easy to fix.  Log into the VM and edit:+After cloning a Linux VM, you might find your network interface is no longer named eth0, taking on eth1 instead. This will work and cause no functional impact, however, for several reasons you might want to change it to eth0 anyway. SLES for VMware/SLES 11 SP1, uses udev to provide persistence to various devices. ​ While this model is a big step forward from the semi-random device name assignments of the past, one side-effect is that a new MAC address, ​which will happen when you clone a virtual machine, is regarded as an additional interface and not a replacement. ​ Which means a newly-cloned SLES VM powers up with eth1 as the NIC name, and not eth0. Fortunately,​ this situation is easy to fix.  Log into the VM and edit:
 <​code>​ <​code>​
 /​etc/​udev/​rules.d/​70-persistent-net.rules /​etc/​udev/​rules.d/​70-persistent-net.rules
Line 20: Line 20:
 Make this change before you assign IP addresses. If you already have assigned IP addresses you'll also have to edit /​etc/​sysconfig/​network/​ifcfg-eth0 and /​etc/​sysconfig/​network/​route accordingly. Make this change before you assign IP addresses. If you already have assigned IP addresses you'll also have to edit /​etc/​sysconfig/​network/​ifcfg-eth0 and /​etc/​sysconfig/​network/​route accordingly.
 \\ \\
-Don't forget to reboot the VM anc check the configuration.+Don't forget to reboot the VM and check the configuration.
  
 {{tag>​vmware linux network}} {{tag>​vmware linux network}}
clonedslesvmnic.txt ยท Last modified: 2013/04/20 12:42 by sjoerd