Add Assembly to the repo
Add assembly. Here, an an OEL65_x86_64 assembly has been downloaded from edelivery and put onto the VMware accessible share "Stage" as download http://172.16.33.11/OVM_OL6U5_x86_64_PVM.ova
Review the Assembly

Create a template
Note: the template contains a disk of 12GB, which - at 50MB/s - takes 4 minutes to create.
Right click the assembly to create a template

Give it a name

Verify the template

Modify the template to correct the OS, to have 1 core and 1580M memory by default.

Assign the network to the machine

Create a machine from template
Create (Clone) a new VM from template, give it a name myTestMachine1
Verify then edit the new VM, and note the server it has been assign to.

Add HA to the machine

Start the machine
Power-on the machine and connect the console. The default (build-in) console may work with Java 6 only, which - by now - is pretty much outdated, especially if you are on a Mac. Alternatively, connect with TightVNC, which comes with an excellent Java Viewing client (Web Start application). Connect tunneled through ssh (to the server where the new guest wil run), to the display 59xx where xx is the first free display number, starting with 00.

Modify the guest.
- We start sending the guest through VM messages. The OVM guest drivers (shipped default with OVM templates) will pick up the task.
- Invoke the VM messages through the OVM Management machine, using the OVM tools.
- Download the script from just below, and call it Ovm_configure_vm.bash. Modify the script where necessary, and place it into the Stage shared folder.
#!/bin/bash export VM_NAME="myTestMachine1" export VM_IP="172.16.33.31" export VM_HOSTNAME="mytestmachine1" export VM_DOMAINNAME="mydomain.com" export VM_ORACLE_PASS="Welcome1" export VM_ROOT_PASS="Welcome1" # Below line is the "admin" password for the OVM Management access export OVMUTIL_PASS="Welcome1" export OVM_VMM="/u01/app/oracle/ovm-manager-3/ovm_utils/ovm_vmmessage" paramSet () { echo "[$VM_NAME] setting [$1] to [$2]" $OVM_VMM -u admin -E -h localhost -v "$VM_NAME" -k "$1" -V "$2" } # selinux paramSet com.oracle.linux.selinux.mode permissive # firewall paramSet com.oracle.linux.network.firewall False # date/time/timezone paramSet com.oracle.linux.datetime.timezone "Europe/Amsterdam" paramSet com.oracle.linux.datetime.utc True paramSet com.oracle.linux.datetime.ntp True paramSet com.oracle.linux.datetime.ntp-servers 172.16.33.2 paramSet com.oracle.linux.datetime.ntp-local-time-source False # network paramSet com.oracle.linux.network.hostname "$VM_HOSTNAME.$VM_DOMAINNAME" paramSet com.oracle.linux.network.host.0 "$VM_HOSTNAME" paramSet com.oracle.linux.network.device.0 eth0 #paramSet com.oracle.linux.network.hwaddr.0 #paramSet com.oracle.linux.network.mtu.0 paramSet com.oracle.linux.network.onboot.0 yes paramSet com.oracle.linux.network.bootproto.0 static paramSet com.oracle.linux.network.ipaddr.0 $VM_IP paramSet com.oracle.linux.network.netmask.0 255.255.255.0 paramSet com.oracle.linux.network.gateway.0 172.16.33.2 paramSet com.oracle.linux.network.dns-servers.0 172.16.33.2,8.8.8.8 paramSet com.oracle.linux.network.dns-search-domains.0 "$VM_DOMAINNAME" # group oinstall paramSet com.oracle.linux.group.name.0 oinstall paramSet com.oracle.linux.group.action.0 add paramSet com.oracle.linux.group.gid.0 54321 #paramSet com.oracle.linux.group.new-name.0 # group dba paramSet com.oracle.linux.group.name.1 dba paramSet com.oracle.linux.group.action.1 add paramSet com.oracle.linux.group.gid.1 54322 #paramSet com.oracle.linux.group.new-name.1 # user paramSet com.oracle.linux.user.name.0 oracle paramSet com.oracle.linux.user.action.0 add paramSet com.oracle.linux.user.uid.0 54321 paramSet com.oracle.linux.user.group.0 oinstall paramSet com.oracle.linux.user.groups.0 dba paramSet com.oracle.linux.user.password.0 "$VM_ORACLE_PASS" #paramSet com.oracle.linux.user.new-name.0 # ssh keys #paramSet com.oracle.linux.ssh.host-key #paramSet com.oracle.linux.ssh.host-key-pub #paramSet com.oracle.linux.ssh.host-rsa-key #paramSet com.oracle.linux.ssh.host-rsa-key-pub #paramSet com.oracle.linux.ssh.host-dsa-key #paramSet com.oracle.linux.ssh.host-dsa-key-pub paramSet com.oracle.linux.ssh.user.0 root #paramSet com.oracle.linux.ssh.authorized-keys.0 #paramSet com.oracle.linux.ssh.private-key.0 #paramSet com.oracle.linux.ssh.private-key-type.0 #paramSet com.oracle.linux.ssh.known-hosts.0 # root password paramSet com.oracle.linux.root-password "$VM_ROOT_PASS"
Invoke the modify script from the Management machine.
ssh root@172.16.33.11 sh /mnt/hgfs/Stage/Ovm_configure_vm.bash
Observe the machine to continue on console

No comments:
Post a Comment