Archive

Posts Tagged ‘clone linux’

Virtualbox clone linux

December 22, 2014 Leave a comment

Remove or move /etc/udev/rules.d/70-persistent-net.rules from master machine.

Shutdown and clone master machine (select reinitialize mac card). Boot new machine.

Regenerate uuid for network card:

[root@localhost ~]# uuidgen eth0
6c63c2af-16b5-4df0-a153-afc347a06ce6

Edit ifcfg-eth0 ,enter new mac address and UUID on clone machine:

[root@localhost ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=08:00:27:8F:D6:C6
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=none
IPV6INIT=no
USERCTL=no
NM_CONTROLLED=yes
PEERDNS=yes
IPADDR=192.168.1.153
NETMASK=255.255.255.0
UUID=6c63c2af-16b5-4df0-a153-afc347a06ce6

Change hostname and gateway if required

[root@localhost ~]# vim /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=localhost.localdomain
GATEWAY=192.168.1.1

Reboot clone machine