XEN 4.4 with Oracle Linux Guest

The first post is not directly about data. Is about XEN and howto prepare it for Oracle Linux as Guest. Installing XEN is the easy and documented task.

To install the Oracle Linux 7.1 guest VM you need a proper VM configuration for installing and one for running the guest

The configuration for installing:

name = “oralin01”
kernel = “/media/cdrom/images/pxeboot/vmlinuz”
ramdisk = “/media/cdrom/images/pxeboot/initrd.img”
extra = “inst.vnc inst.stage2=hd:LABEL=OL-7.1\\x20Server.x86_64 earlyprintk=xen console=hvc0”
memory = 4096
vcpus = 2
vif = [ ‘bridge=xenbr0’ ]
disk = [ ‘/dev/vg0/oralin01,raw,xvda,rw’,’file:/pathtoiso/oracle_linux_7_1_V74844-01.iso,xvdc:cdrom,r’ ]
vfb = [ ‘type=vnc, vncdisplay=1, vnclisten=127.0.0.1’ ]
on_poweroff = ‘destroy’
on_reboot = ‘restart’
on_crash = ‘restart’

connect with the consloe or vnc

xl console oralin01

Setup the Oracle Linux 7.1. Then change the configuratin, destroy the domU (your guest vm) and recreate it with the run configuratin:

name = “oralin01″
bootloader=”pygrub”
memory = 4096
vcpus = 2
vif = [ ‘mac=00:16:3e:02:0a:79,bridge=xenbr0’ , ‘mac=00:16:3e:02:0a:80,bridge=xenbr0’]
disk = [ ‘/dev/vg0/oralin01,raw,xvda,rw’,’file:/pathtoiso/oracle/oracle_linux_7_1_V74844-01.iso,xvdc:cdrom,r’ ]
vfb = [ ‘type=vnc, vncdisplay=1, vnclisten=127.0.0.1’ ]
on_poweroff = ‘destroy’
on_reboot = ‘restart’
on_crash = ‘restart’

Notice we have two network interfaces (eth0, eth1) both on the xenbr0 which should allow us to configure the public and private network if we will install Oracle RAC on Xen later.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.