Install Ubuntu Intrepid Server PV DomU at Xen 3.3 (port via CentOS 5.2 Dom0

Using Ubuntu as a Xen guest is now a supported option included in the standard server kernel and is a choice when building virtual machines with python-vm-builder. Install Ubuntu Intrepid Server HVM DomU:-
[root@ServerCentOS52 isos]# virt-install
Would you like a fully virtualized guest (yes or no)? This will allow you to run unmodified operating systems. yes
What is the name of your virtual machine? IntrepidHVM
How much RAM should be allocated (in megabytes)? 2048
What would you like to use as the disk (file path)? /dev/sda9
Would you like to enable graphics support? (yes or no) yes
What is the virtual CD image, CD device or install location? /etc/xen/isos/intrepidsrv.iso
Starting install…
Creating domain… 0 B 00:00

When done create PV DomU profile:-
[root@ServerCentOS52 vm]# cat intrepid.cfg
memory = 2048
name = “IntrepidPV”
vif = [ ‘mac=00:16:3e:00:00:00’ ]
disk = [ ‘phy:/dev/sda9,xvda,w!’]
vfb = [‘type=vnc,vncunused=1’]
Start PV DomU:-
[root@ServerCentOS52 vm]# xm create intrepid.cfg
Using config file “./intrepid.cfg”.
Started domain IntrepidPV
[root@ServerCentOS52 vm]# vncviewer localhost:0
Nicely brings you to login prompt for Ubuntu Server Intrepid PV DomU.

Tasksel is running attempting to install “Ubuntu Desktop”:-

Reboot PV DomU and setup VNC per [1] , including workaround for Gnome Settings Daemon issue.

[root@ServerCentOS52 vm]# xm list -l IntrepidPV
(domid 2)
(on_crash restart)
(uuid 43c6427d-52d4-9dd5-a38c-5c7898a01762)
(bootloader_args )
(vcpus 1)
(name IntrepidPV)
(on_poweroff destroy)
(on_reboot restart)
(bootloader )
(maxmem 2048)
(memory 2048)
(shadow_memory 0)
(features )
(on_xend_start ignore)
(on_xend_stop ignore)
(start_time 1225178132.64)
(cpu_time 39.664607359)
(online_vcpus 1)
(kernel )
(device_model /usr/lib64/xen/bin/qemu-dm)
(HV_START_LOW 18446603336221196288)
(FEATURES ‘!writable_page_tables|pae_pgdir_above_4gb’)
(VIRT_BASE 18446744071562067968)
(GUEST_OS linux)
(HYPERCALL_PAGE 18446744071564201984)
(LOADER generic)
(PAE_MODE yes)
(ENTRY 18446744071569531392)
(XEN_VERSION xen-3.0)
(status 2)
(state -b—-)
(store_mfn 2233833)
(console_mfn 2233832)
(mac 00:16:3e:00:00:00)
(script vif-bridge)
(uuid 150a194e-8c4c-d3b9-7142-a5dd768c809b)
(backend 0)
(protocol x86_64-abi)
(uuid 952c5b6a-896b-2a66-3b30-704ab5f692d0)
(dev xvda:disk)
(uname phy:/dev/sda9)
(mode ‘w!’)
(backend 0)
(bootable 1)
(VDI )
(device (vkbd (backend 0)))
(vncunused 1)
(uuid d8ab575f-80a8-7fd9-7c18-13351874db9a)
(location localhost:5900)
(type vnc)
(display :0.0)
(xauthority /tmp/.gdmY1JZJU)
(protocol vt100)
(location 2)
(uuid 512ee61a-d7f2-6a35-7411-6f94c81f402e)

To replace vfb with seial console
Copy vmlinuz-2.6.27-7-server,initrd.img-2.6.27-7-server
of image device to Dom0 and create profile as follows:-

[root@ServerCentOS52 vm]# cat intrepid.conf
memory = 4096
name = “IntrepidPVC”
root=”/dev/xvda1 ro”
extra = ‘2 console=hvc0’
vif = [ ‘mac=00:16:3e:00:00:00’ ]
disk = [ ‘phy:/dev/sdb14,xvda,w!’]
Modify /etc/event.d/tty1 at DomU :-
# 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

exec /sbin/getty 38400 hvc0
and run at Dom0 :-
# xm create -c intrepid.conf
Pygrub profile may be used for same purpose as well. View for instance:-
Pygrub&Loading Ubuntu Intrepid Server PV DomU via serial console at Xen 3.3 CentOS 5.2 Dom0
1.Attempt of VNC setup on Ubuntu Hardy PV DomU at Xen 3.3 CentOS 5.2 Dom0 (all 64-bit)

9 Responses to Install Ubuntu Intrepid Server PV DomU at Xen 3.3 (port via CentOS 5.2 Dom0

  1. Michal says:

    hey, just installed ubuntu, same version, in HVM domain, using LVM.
    next, i created following configuration file

    memory = 512
    name = “InterpidPV”
    vif = [ ‘ ‘ ]
    disk = [ ‘phy:/dev/vm0.0/ubuntu,xvda,w’ ]
    vfb = [ ‘type=vnc,vncunused=1’ ]

    and tried to start domU with it.
    Error: Boot loader didn’t return any data!
    and that’s about it :)

  2. Michal says:

    indeed, thank you, i’ve changed partition layout to have /boot first, and it worked like a charm. quite logical actualy :)
    CentOS 5.2 dom0, gitco 3.3.1 xen, 32 bit dom0, tools, 64 bit hypervisor.
    Now on to PV solaris :)

  3. Kinville says:

    Today I found this blog and are amazed by the quality of information posted here.
    Nowadays are very few blogs that offer quality of information ,we subscribed to your blog via
    RSS and we look forward the following articles

  4. Vroman says:


    Man, I gotta tell you that this article has really blown me away. I couldn’t believe when I first checked it out, highly recommended reading ! Keep up the good work. Thanks for the high-quality information.


  5. Glosson says:

    Thanks for the information, but can you be a bit more descriptive? I work for a similar company and can’t find the exact solution. If possible can you email me? Or let me know when you have updated your post. thx in advance! Mike

  6. […] begin within my laptop on a Xen environment. This is how the final thing will look like…entos-52-dom0/ the host and client are both going to be my laptop, I Google d and came across apt-mirror and some […]

  7. chistes says:

    very nice post dude :P

  8. […] I need to create an http url at my laptop to have a Ubuntu installation begin within my laptop on a Xen environment. This is how the final thing will look like. […]

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 )

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


Get every new post delivered to your Inbox.

Join 31 other followers

%d bloggers like this: