Install Ubuntu Jaunty PV & HVM DomUs at Xen 3.4 Dom0 (kernel 2.6.30-rc6-tip) sharing the same image

The most recent 2.6.30-rc6-tip pvops enabled kernel now supports HVM DomUs, what allows to reproduce, known for xenified kernel’s Dom0s, approach for building Intrepid and Jaunty Server PV DomUs via previously created HVM images to avoid traditional but a bit complicated debootstrap procedure. CentOS 5.3, Ubuntu Jaunty Server ,Solaris 10U6 (64-bit) HVMs have been successfully tested after the most recent kernel upgrade. Create HVM DomU via profile:-

name = "JauntyHVM"
builder = "hvm"
memory = "1024"
disk = ['phy:/dev/loop0,hdc:cdrom,r','phy:/dev/sdb12,hda,w']
# disk = ['phy:/dev/sdb12,hda,w']
vif = [ 'type=ioemu,bridge=eth0' ]
device_model = "/usr/lib64/xen/bin/qemu-dm"
kernel = "/usr/lib/xen/boot/hvmloader"
vnc=1
boot="d"
usb=1
usbdevice="tablet"
vcpus=1
on_reboot = "restart"
on_crash = "restart"

Load PV DomU via profile with VFB to add grub entry for serial PV DomU console:-

memory = 2048
name = "Ubuntu9.04PV"
vcpus = 1
vif = [ 'bridge=eth0' ]
disk = [ 'phy:/dev/sdb12,xvda,w']
vfb= ['type=vnc,vncunused=1']

To enable serial console add grub entry:-

title Ubuntu 9.04 (hvc0) , kernel 2.6.28-11-server
kernel /boot/vmlinuz-2.6.28-11-server root=/dev/xvda1 ro console=hvc0
initrd /boot/initrd.img-2.6.28-11-server

Copy /etc/event.d/tty1 to /etc/event.d/hvc0
Next modify /etc/event.d/hvc0 as follows

# cat /etc/event.d/tty1
# tty1 – getty
#
# This service maintains a getty on tty1 from the point the system is
# started until it is shut down again.

start on stopped rc2
start on stopped rc3
start on stopped rc4
start on stopped rc5

stop on runlevel 0
stop on runlevel 1
stop on runlevel 6

respawn
exec /sbin/getty 38400 hvc0

Shutdown DomU. Now load PV DomU via serial console:-

memory = 2048
name = "Ubuntu9.04PV"
vcpus = 1
vif = [ 'bridge=eth0' ]
disk = [ 'phy:/dev/sdb12,xvda,w']

Run tasksel to install Ubuntu Desktop for PV DomU.
Shutdown PV DomU and load HVM DomU.
Ethernet interface at HVM DomU should now be up and running
with IP obtained via DHCP











PV DomU







Solaris 10U6 (64-bit) HVM








About these ads

3 Responses to Install Ubuntu Jaunty PV & HVM DomUs at Xen 3.4 Dom0 (kernel 2.6.30-rc6-tip) sharing the same image

  1. [...] The most recent 2.6.30-rc6-tip pvops enabled kernel now supports HVM DomUs, what allows to reproduce, known for xenified kernel’s Dom0s, approach for building Intrepid and Jaunty Server PV DomUs via previously created HVM images to avoid traditional but a bit complicated debootstrap procedure More here [...]

  2. Cederash says:

    Занятно. Подпишусь-ка я на RSS пожалуй

  3. dbaxps says:

    Можно “подписаться” и на другое :-)

    http://lxer.com/module/newswire/byuser.php?user=dba477

    Новое здесь только то, что 2.6.30-rc6-tip – первое ядро
    с поддержкой HVM.

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: