Friday, October 4, 2013

Clone Virtual Machine ocm to ocmsfsdb

 

First VM for real use would be cloned from ocm machine. I have decided to name it ocmsfsdb (ocm standalone filesystem database)

 

In left pane where the VMs are listed - select the ocm machine and right click. And select “Clone”.

image

Make sure you select “Reinitialize the MAC address of all network cards”

image

 

image

After the clone you will see another VM in the left pane where the VMs are listed as shown below:

image

Now lets start the new VM ocmsfsdb and change the hostname within Linux OS and IP address for eth1.

System=> Administration=> Network

ocmsfsdb1

Edit for eth0.bak:ocmsfsdb2

ocmsfsdb3

Edit eth1.bak:ocmsfsdb4

ocmsfsdb5

Tried to deactivate eth0-bak and eth1-bak but it made all the interfaces inactive.

So tried deleting eth0.bak and eth1.bak:

ocmsfsdb7 ocmsfsdb8

ocmsfsdb9

Edit eth0 and eth1 accordingly:

ocmsfsdb10

ocmsfsdb11 

Activate both network adapters:

ocmsfsdb13

Shutdown ocmsfsdb VM

Start ocm vm

Start ocmsfsdb vm

1. ifconfig –a

ocmsfsdb15

For eth0 – both VMs showed same IP 10.0.2.15 ==> Looks like this is expected behaviour for NAT type adapters on virtualbox.

For eth1 – static IP 192.168.56.102 was showed correctly

2.

Checked System=>Administration=>network

eth0.bak and eth1.bak were back even after deleting. Deleted again, but restart of network service brought them back.

I will delete them from /etc/sysconfig/networking/devices using “rm *.bak”

ocmsfsdb16

3. Change the hostname by modifying /etc/sysconfig/network file

Reboot once so that new hostname is effective.

4. Modify /etc/hosts to include entry for this host

192.168.56.102 ocmsfsdb.vp.com ocmsfsdb

5. After every clone, make sure to install Linux Guest Additions. Click here to see how to install Linus Guest additions. Resolve the issues accordingly by installing missing rpms using yum.

No comments:

Post a Comment