Manually Create Cloud Control VM from Appliance

Overview

This procedure starts and configures the Cloud Control (EM12C) appliance in an Oracle VM Server.

Prerequisites

The Oracle VM Server has been set as described in 01 Install VM Server of the system build for VICTORIA.

The xtightvncviewer package has been installed into an Ubuntu VM image running under VMWare. The man page is here.

Download the Zip Files

The zip files were downloaded from Oracle e-delivery.

Choose Oracle Linux/VM from the Cloud Portal (Main) drop down menu as follows:

Choose Oracle VM/Linux from drop down menu

The search criteria was:

    • Product Pack: Oracle VM Templates
    • Platform: x86 64 bit

The following parts were downloaded:

The README file is attached as B70249-01.txt.

Unpacking the ZIP files

Following the instructions in the attached README file, I ran the following commands:

unzip V34441-01.zip
unzip V34442-01.zip
unzip V34443-01.zip
cat OVM_EM12R2*.tgz | tar -xzvf -
mv OVM_EM12R2 /OVS/running_pool/

The log output of the above commands is:

[root@VICTORIA seed_pool]# unzip V34441-01.zip Archive: V34441-01.zip inflating: OVM_EM12R2_1of3.tgz [root@VICTORIA seed_pool]# unzip V34442-01.zip Archive: V34442-01.zip inflating: OVM_EM12R2_2of3.tgz [root@VICTORIA seed_pool]# unzip V34443-01.zip Archive: V34443-01.zip inflating: OVM_EM12R2_3of3.tgz [root@VICTORIA seed_pool]# cat OVM_EM12R2*.tgz | tar -xzvf - ./OVM_EM12R2/ ./OVM_EM12R2/em.img ./OVM_EM12R2/vm.cfg ./OVM_EM12R2/System.img [root@VICTORIA seed_pool]# mv OVM_EM12R2 /OVS/running_pool/

Now the VM template for Cloud Control 12C Release 2 is in the Running Pool under the OVM_EM12R2 directory.

Generating the MAC address

Following the instructions in the attached README file, I ran the following commands to set up the MAC address for the VM image:

PYTHONPATH=/opt/ovs-agent-2.2 python -c \
"from OVSCommons import randomMAC; print randomMAC()"

The log output of the above commands is:

Traceback (most recent call last): File "<string>", line 1, in ? ImportError: No module named OVSCommons

There seemed to be no hits in My Oracle Support for this error message.

I decided to see how far I can get without a MAC address.

Starting the VM Machine

To start the VM machine, I ran the following commands:

cd /OVS/running_pool/OVM_EM12R2
xm create vm.cfg -c

The difference with the commands supllied in the README file is that I added the -c option to attach a console to the VM machine.

I got the following error messages:

Using config file "./vm.cfg". Error: Disk isn't accessible

The problem was that I had unpacked the files in the Seed Pool as shown by the following extract from the vm.cfg file:

disk = ['file:/OVS/seed_pool/OVM_EM12R2/System.img,xvda,w', 'file:/OVS/seed_pool/OVM_EM12R2/em.img,xvdb,w']

I changed these lines to:

disk = ['file:/OVS/running_pool/OVM_EM12R2/System.img,xvda,w', 'file:/OVS/running_pool/OVM_EM12R2/em.img,xvdb,w']

I tried the xm create vm.cfg -c again and got the log attached as console.log.

I waited until the following lines appeared in the console log:

ELinux: the above unknown classes and permissions will be allowed type=1403 audit(1351323619.227:2): policy loaded auid=4294967295 ses=4294967295

At this point, I logged onto my Ubuntu VM and issued the following command:

xtightvncviewer 192.168.1.100

192.168.1.100 is the IP address of VICTORIA, and there is only one (1) VNC server running there. Thus, I was able to use the default port of 5900.

I had to press some random keys to get the display to reveal the text. It was smooth sailing from there on.

Installation Completed

The set up of Cloud Control appeared to be completed successfully.

Issues Encountered