Home > linux > Virtualbox clone linux

Virtualbox clone linux

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

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: