Running Oracle Sun Ray 5.4 Software template in Proxmox

Aquire the Sun Ray software template (which is about to be discontinued) and unpack the template file.

Contents:

OVM_OL6U3_X86_64_SRS5.4_PVHVM.mf:  ASCII text
OVM_OL6U3_X86_64_SRS5.4_PVHVM.ova: POSIX tar archive
OVM_OL6U3_X86_64_SRS5.4_PVHVM.ovf: XML document text

Create a VM in proxmox with two ZFS volumes.
Read the OVM_OL6U3_X86_64_SRS5.4_PVHVM.ovf to get an idea on how much resources the machine should use.

Unpack the tar file:

OVM_OL6U3_X86_64_SRS5.4_PVHVM.ova

This will give you:

Product.img: gzip compressed data, was “Product.img”, last modified: Fri May  3 15:01:48 2013, max compression, from Unix

System.img:  gzip compressed data, was “System.img”, last modified: Fri May  3 14:59:13 2013, max compression, from Unix

These RAW images needs to be unpacked:

mv Product.img Product.gz && gunzip Product
mv System.img System.gz && gunzip System.gz

Now look at their properties:

System:                            DOS/MBR boot sector; GRand Unified Bootloader, stage1 version 0x3, boot drive 0x80, 1st sector stage2 0x8480e, GRUB version 0.94

Product:                           Linux rev 1.0 ext4 filesystem data, UUID=d0dd198a-031a-4dbe-8345-b411986f460e, volume name “Product-SRS54” (extents) (large files) (huge files)

Find the VM:s zfs volumes in /dev/zvol. For instance:

dd if=System of=/dev/zvol/vmpool/vm-107-disk-1 bs=1M

dd if=Product of=/dev/zvol/vmpool/vm-107-disk-2 bs=1M

When you boot your VM, you’ll probably encounter kernel panic because its unable to find the volume groups since the disks are named using xen standard (xvdb and so on)

Enter the grub menu, edit the last alternative in the menu. Remove “rhgb quiet” and add init=/bin/bash and then boot. Remount / as rw. Edit /etc/fstab and set /opt to the correct disk. Make sure /boot is correct as well.

Also adjust grub settings for new disks. Then you can enable public yum repository and install all the available updates and receive a new kernel that you can actually boot from. Make sure the grub config also points to the newest kernel.

The default sun ray admin password is 5r5demo and can be reset using 

/opt/SUNWut/sbin/utpw

If you need to restart the sun ray services, run:

Warm Restart

/opt/SUNWut/sbin/utstart

Cold Restart

/opt/SUNWut/sbin/utstart -c
Advertisements

Install Oracle VM Manager / Ops Center on Centos 7.2

Oracle VM Manager and Ops Center can without problems (and without official support as well though) be installed on CentOs 7, even if the installers refuse it. Officially supported linux distributions are RHEL and OEL.

This is easily fixed.

VM Server

The installation program uses the python platform library to figure out which linux distribution we are running. It has lots of methods to figure this out, but interestingly the installer discovers thats the server is running CentOS because it reads all file names in /etc/ and stops at centos-release. Remove centos-release from /etc and it will continue until it finds redhat-release file instead and the installer prerequisites has been met.

  1. Temporarily remove the /etc/centos-release file from /etc directory.
  2. Start the VM Server installer.
  3. When installation is done, place the centos-release file in /etc again.

Ops Center

  1. Temporarily remove the /etc/centos-release file from /etc directory.
  2. echo “Red Hat Enterprise Linux Server release 7.2 (Maipo)” > /etc/redhat-release
  3. Start the Ops Center installer.
  4. When installation is done, place the centos-release file there again.
  5. Remove /etc/redhat-release and re-link redhat-release to centos-release