Tuesday, July 3, 2012

Starting an Oracle VM image from the command line

Recently I came across the situation where our Oracle VM Manager console become useless for us. The issue was that we migrated our VM Server Host from one network to different network and performed the change in network config of the Host. Host came up fine along with VM Manager Console but we couldn't perform any operations with the host and status of the hosts were unknown. 

Sequence of event that lead to the issue was as follows.

1. Change the network config of the guests
2. Change the network config of the VM Host and rebooted it.
3. Open the VM Manager console and try to startup/shutdown/Modify Config of the Guest VMs.

Hence the only way left for us, was to start the Guest VM from command line.
Here is the way to do it (Be careful and make sure that you have decent backup if something goes wrong)
To start an Oracle VM image from the commandline with
#cd /OVS/running_ppl/10_racnode1
#xm create -c ./vm.cfg

EXT3-fs: mounted filesystem with ordered data mode.
type=1403 audit(1272761494:2): policy loaded auid=xxxxxxxx ses=xxxxxxxx
Enterprise Linux Enterprise Linux Server release 5.4 (Carthage)
Kernel 2.6.18- on an i686

In order to get back to your command line type CTRL-] and you will get back the control.