For Mandriva users its simple as download the two templates, in my case:
Restart your computer making sure that Xen Kernel is used (for example 2.6.18-xen), usually Xen kernel is placed at the boton of the list and its not the default kernel to boot.
Then start and enable Xen services as root:
# /etc/init.d/xend startUncompress above images into any directory, for example:
# chkconfig xend on
# cd /homeAbove directory will look like:
# tar xvfz OVM_EL5U1_X86_PVM_4GB.tgz
# cd OVM_EL5U1_X86_PVM_4GB
# cat ../oracle11g_x86.tar.bz2.*|tar xvfj -
[root@escorpion OVM_EL5U1_X86_PVM_4GB]# lssystem.img file is an LVM volume with Oracle EL 5 operating system, oracle11g_x86.img file is a complete /u01 directory with an Oracle 11g database ready to use.
oracle11g_x86.img README README.oracle system.img vm.cfg
Finally using your favourite text editor creates a file named /etc/xen/oracle with:
memory = 1024To start your Oracle VM using Xen command line execute:
name = "oracle"
disk = [ 'file:/home/OVM_EL5U1_X86_PVM_4GB/system.img,hda,w',
root = "/dev/hda1 ro"
extra = "3"
hostname = "oracle"
xm create oracleTo connect to the virtual machine console execute:
xm console oracleIf everything is fine, you can log into the virtual machine using root/ovsroot as username and password.
The Oracle VM will gets his IP address using DHCP so may be you need to check vif parameter at above file if Xen virtual machine can't get a valid IP number due to conflicts with another machine.
If not, once you enter to the VM using the console you can change the file
/etc/sysconfig/network-scripts/ifcfg-eth0with something like this:
- Xen kernels Dom0 do not have all drivers compiled, in my case a driver for a wifi cards was not included.
- If you want to reduce Xen VM memory usage, first log into Oracle instance and reduce the parameter memory_target to a value which fits into a new VM memory.
- You can gets an Oracle 11g database running in Linux distros not certified by Oracle.
- You don't care about touching your OS parameters, database users and groups, simple you can get an Oracle instance for development purpose ready to use unpacking a few files.
- Oracle 11g running with Xen and Oracle EL paravirtualized version is faster than Oracle 11g running on VMWare or VirtualBox, Xen only impose a 0.4% of overhead into guest operating system.
- If you have any problem with your database, simply restore your .img files and start again your Xen virtual machine, this is also valid if you want to perform a backup.
- The memory footprint of the Xen virtual machine is similar as a native instance of the database, for example if you configure your Oracle instance to use 800Mb of RAM, your VM will use a little of megabytes extras.