Creating paravirtualized CentOS 5.3 DomU on OpenSolaris 2009.06 Dom0

Setup OpenSolaris Dom0

First Step is to setup xVM Hypervisor on the OpenSolaris 2009.06 machine.

Follow the steps mentioned at following link and setup Dom0 OpneSolaris 2009.06.

Create a RAW disk image for the DomU installation

mkdir /centos53-pv/
cd /centos53-pv/
dd if=/dev/zero of=CentOS-5.3-x86_64.img bs=1k seek=10000k count=1

Enable xvm/virtd service on Dom0

svcadm enable svc:/system/xvm/virtd:default

Begin the Paravirtualized CentOS DomU installation with the virt-install command

virt-install -n centos53_x86_64 \
-r 1024 \
-f /centos53-pv/CentOS-5.3-x86_64.img \
-p --nographics \

In the above command -n is for the name of the domu, -r is for the memory, -f is for specifying location of the raw disk on which installation will be performed, -p is for specifying paravirtualized mode and -l is for the location containing an installable distribution image.

Follow the regular CentOS installation steps and reboot the DomU when prompted.

Following snapshots walk you through CentOS DomU installation.


After reboot enable ssh login for root user on DomU

uncomment the line “PermitRootLogin yes” from “/etc/ssh/sshd_config” file and save it.

Extract kernel and ramdisk from the running DomU image

Copy “/boot/vmlinuz-2.6.18-128.el5xen” and “/boot/initrd-2.6.18-128.el5xen.img” files to Dom0 machine at “/centos53-pv/”.

scp  /boot/vmlinuz-2.6.18-128.el5xen root@dom0-ip:/centos53-pv/
scp  /boot/initrd-2.6.18-128.el5xen.img root@dom0-ip:/centos53-pv/

Halt the DomU.

Shutdown domU issuing halt command inside domU and remove a domain from Xend domain management using following command.

# xm delete centos53_x86_64

Create a domain configuration file as given below.

Create “/centos53-pv/” file as given below

# cat
name = "centos53_x86_64"
memory = "2058"
kernel = "/centos53-pv/vmlinuz-2.6.18-128.el5xen"
ramdisk = "/centos53-pv/initrd-2.6.18-128.el5xen.img"
disk = ['file:/centos53-pv/CentOS-5.3-x86_64.img,xvda,w']
vif = ['']

Relaunch the DomU by passing extracted kernel and ramdisk images using py script.

# xm create
Using config file "./".
Started domain centos53_x86_64

Access domU console

# xm console centos53_x86_64

Cent OS 5.3 Paravirtualized DomU VNC Session on OpenSolaris 2009.06 Dom0


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s