Set up Ubuntu 10.04 Server PV DomU at Xen 4.0 Dom0 (pvops kernel) Dom0 on top of Ubuntu 10.04 Server

The procedure bellow in general follows Thiago’s Martins submission [1] to xen-devel mailing list. However,sequence of steps has been changed and also option of pvops kernel build via make-kpkg was added , /dev/xen/evtchn device hard linked with with pvops kernel, git checkout procedure is more straight forward and one Change-set from xen-4.0-testing.hg  back ported to Xen 4.0 to support grub2 notation ‘(hd0,1)’ specific for Ubuntu 10.04 aka Lucid Lynx. Several suggestions have been also made regarding to have libvirt ,virtinst and related packages to work with Xen 4.0 on 10.04 Server. The way as Xen 4.0 Dom0 set up worked on Ubuntu 9.10 (04)  Servers doesn’t work any longer.

apt-get install libcurl4-openssl-dev \
xserver-xorg-dev \
mercurial gitk \
build-essential \
libncurses5-dev \
uuid-dev gawk \
gettext texinfo bcc \
libncurses5-dev dpkg-dev debhelper \
iasl texinfo bridge-utils bison flex
apt-get build-dep xen-3.3

Now git clone and checkout branch xen/stable

cd /usr/src
git clone
git:// linux-2.6-xen
cd linux-2.6-xen
git checkout -b xen/stable-2.6.32.x origin/xen/stable-2.6.32.x

Build kernel in Debian way

make menuconfig # Enabled the dom0 support and the Xen backend as usual on Ubuntu 9.10, F12
make -j(x)number_of_kernels
make modules_install install
chmod g-s /usr/src -R
make deb-pkg
dpkg -i ../linux-image**.deb
update-initramfs -c -k


aptitude install kernel-package fakeroot
export CONCURRENCY_LEVEL=(number_of_cores) +1
make-kpkg clean
fakeroot make-kpkg --initrd --append-to-version=-pv kernel-image kernel-headers
dpkg -i ../linux-image-
update-initramfs -c -k

One more notice regarding /etc/modules editing silently skipped in [1]
In case configuring kernel (1)
<M> Xen /dev/xen/evtchn device
echo “xen-evtchn” >> /etc/modules
In case configuring kernel (2)
<*> Xen /dev/xen/evtchn device
/etc/modules shouldn’t be touched.

With config bellow there is no need to touch /etc/modules at all.
Option “userspace grant access device driver is set to” <*> to make virt-install handy at Xen guests

Set up Xen 4.0 Hypervisor
UPDATE 06/09/2010
As of 06/09/2010 checking out xen/stable or xen/stable-2.6.32.x branch will result building kernel. This kernel may work properly only with Xen 4.0.1-rc2-pre ( at the time of writing). So build xen as follows

# cd /usr/src
# hg clone
# cd xen-4.0-testing.hg
# make xen
# make tools
# make install-xen
# make install-tools PYTHON_PREFIX_ARG=


cd /usr/src
At this point creare grub2-fix.patch1
as raw content of
Changeset 21112 pygrub: Fix Grub2 support for Ubuntu 10.04

gunzip xen-4.0.0.tar.gz
tar -xvf xen-4.0.0.tar
cd xen-4.0.0
patch -p1 -s -i ../grub2-fix.patch1
make xen
make tools
make install-xen
make install-tools PYTHON_PREFIX_ARG=

Set up xend,xendomains to run as services

update-rc.d xend defaults 20 21
update-rc.d xendomains defaults 21 20

Reboot in Xen with grub entry

menuentry "Xen 4 / Ubuntu 10.04 kernel" {
insmod ext2
set root='(hd1,5)'
multiboot (hd1,5)/boot/xen.gz dummy=dummy dom0_mem=1024M
module (hd1,5)/boot/vmlinuz- dummy=dummy nopat root=/dev/sdb5 ro console=tty0
module (hd1,5)/boot/initrd.img-

Verify Xen environment :-

host : ServerLucid
release :
version : #7 SMP Wed Apr 28 20:52:50 MSD 2010
machine : x86_64
nr_cpus : 2
nr_nodes : 1
cores_per_socket : 2
threads_per_core : 1
cpu_mhz : 2999
hw_caps : bfebfbff:20100800:00000000:00000940:0008e3fd:00000000:00000001:00000000
virt_caps : hvm
total_memory : 7954
free_memory : 2054
node_to_cpu : node0:0-1
node_to_memory : node0:2054
node_to_dma32_mem : node0:1225
max_node_id : 0
xen_major : 4
xen_minor : 0
xen_extra : .0
xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
xen_scheduler : credit
xen_pagesize : 4096
platform_params : virt_start=0xffff800000000000
xen_changeset : unavailable
xen_commandline :
cc_compiler : gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
cc_compile_by : root
cc_compile_domain :
cc_compile_date : Fri Apr 23 21:24:30 MSD 2010
xend_config_format : 4

root@ServerLucid:~# brctl show
bridge name bridge id STP enabled interfaces
eth0 8000.000c76e01ec5 no peth0
virbr0 8000.000000000000 yes

Test Xen installation via creation Ubuntu 10.04 Server PV DomU
Create HVM DomU via profile

kernel = "/usr/lib/xen/boot/hvmloader"
builder = 'hvm'
memory = 2048
name = "LucidSRV"
vcpus = 1
vif = [ 'type=ioemu, bridge=eth0' ]
disk = [ 'phy:/dev/sda9,hda,w','phy:/dev/loop0,hdc:cdrom,r' ]
device_model = '/usr/lib/xen/bin/qemu-dm'

Due to CS 21112 PV DomU based on the same image may be loaded via profile

vif= ['bridge=eth0']

Tested OK on final release
UPDATE on 06/01/2010
If your major concern is Libvirt you may switch to Set up Libvirt 0.7.7&Xen 4.0 Dom0 on top of Fedora 13
Another option is to set up Libvirt 0.8.0 along with with all related packages via Daniel Baumann PPA It seems to be working OK with pvops kernel
(xen/stable-2.6.32.x) under Xen 4.0. View for details Set up Libvirt 0.8.1 & Xen 4.0.1 Dom0 ( pvops) on top of Ubuntu 10.04 Server .

root@ServerLX:~# apt-key adv --keyserver --recv-keys D18C7A1DF6E6BED2
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver --recv-keys D18C7A1DF6E6BED2
gpg: requesting key F6E6BED2 from hkp server
gpg: key F6E6BED2: public key "Launchpad ppa" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
root@ServerLX:~# apt-get update
Hit lucid Release.gpg
Get:1 lucid Release.gpg [307B]
Ign lucid/main Translation-en_US
Hit lucid Release.gpg
Hit lucid-security Release.gpg
Ign lucid/main Translation-en_US
Ign lucid-security/main Translation-en_US
Ign lucid-security/restricted Translation-en_US
Ign lucid/restricted Translation-en_US
Ign lucid/main Translation-en_US
Get:2 lucid Release [57.3kB]
Ign lucid-security/universe Translation-en_US
Ign lucid-security/multiverse Translation-en_US
Hit lucid-security Release
Ign lucid/universe Translation-en_US
Hit lucid Release
Ign lucid/multiverse Translation-en_US
Hit lucid-security/main Packages
Hit lucid/main Packages
Hit lucid/main Sources
Hit lucid-updates Release.gpg
Hit lucid-security/restricted Packages
Hit lucid-security/main Sources
Hit lucid-security/restricted Sources
Hit lucid-security/universe Packages
Ign lucid-updates/main Translation-en_US
Hit lucid/main Packages
Hit lucid-security/universe Sources
Hit lucid-security/multiverse Packages
Hit lucid-security/multiverse Sources
Ign lucid-updates/restricted Translation-en_US
Ign lucid-updates/universe Translation-en_US
Ign lucid-updates/multiverse Translation-en_US
Hit lucid Release
Hit lucid-updates Release
Hit lucid/main Packages
Hit lucid/restricted Packages
Hit lucid/main Sources
Hit lucid/restricted Sources
Hit lucid/universe Packages
Hit lucid/universe Sources
Hit lucid/multiverse Packages
Hit lucid/multiverse Sources
Hit lucid-updates/main Packages
Hit lucid-updates/restricted Packages
Hit lucid-updates/main Sources
Hit lucid-updates/restricted Sources
Hit lucid-updates/universe Packages
Hit lucid-updates/universe Sources
Hit lucid-updates/multiverse Packages
Hit lucid-updates/multiverse Sources
Fetched 308B in 5s (55B/s)
Reading package lists... Done

root@ServerLX:~# apt-get install virtinst python-virtinst virt-viewer

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
acl bridge-utils libaio1 libvdeplug2 libvirt-bin libvirt0 libxen3 python-libvirt python-urlgrabber qemu-common
qemu-kvm seabios vgabios
Suggested packages:
mol-drivers-macosx openbios-sparc kvm-pxe ubuntu-vm-builder uml-utilities qemu
The following NEW packages will be installed:
acl bridge-utils libaio1 libvdeplug2 libvirt-bin libvirt0 libxen3 python-libvirt python-urlgrabber
python-virtinst qemu-common qemu-kvm seabios vgabios virt-viewer virtinst
0 upgraded, 16 newly installed, 0 to remove and 11 not upgraded.
Need to get 5,451kB of archives.
After this operation, 17.3MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 lucid/main libvirt0 0.8.0-2ubuntu0~dnjl2~lucid0 [831kB]
Get:2 lucid/main acl 2.2.49-2 [56.8kB]
Get:3 lucid/main bridge-utils 1.4-5ubuntu2 [33.9kB]
Get:4 lucid/main libaio1 0.3.107-3ubuntu2 [9,608B]
Get:5 lucid/universe libvdeplug2 2.2.3-3 [13.0kB]
Get:6 lucid/main libxen3 3.3.0-1ubuntu11 [151kB]
Get:7 lucid/main python-urlgrabber 3.1.0-5ubuntu1 [57.5kB]
Get:8 lucid/main seabios 0.5.1-0ubuntu2 [48.2kB]
Get:9 lucid/main vgabios 0.6c-2ubuntu1 [78.5kB]
Get:10 lucid/main libvirt-bin 0.8.0-2ubuntu0~dnjl2~lucid0 [706kB]
Get:11 lucid/main python-libvirt 0.8.0-2ubuntu0~dnjl2~lucid0 [62.5kB]
Get:12 lucid/main qemu-common 0.12.3+noroms-0ubuntu9.1~dnjl1~lucid0 [30.1kB]
Get:13 lucid/main qemu-kvm 0.12.3+noroms-0ubuntu9.1~dnjl1~lucid0 [2,955kB]
Get:14 lucid/main virtinst 0.500.3-1ubuntu0~dnjl0~lucid0 [356kB]
Get:15 lucid/main python-virtinst 0.500.3-1ubuntu0~dnjl0~lucid0 [1,576B]
Get:16 lucid/main virt-viewer 0.2.1-1ubuntu0~dnjl4~lucid0 [61.9kB]
Fetched 5,451kB in 56s (96.5kB/s)
Selecting previously deselected package acl.
(Reading database ... 147802 files and directories currently installed.)
Unpacking acl (from .../acl_2.2.49-2_amd64.deb) ...
Selecting previously deselected package bridge-utils.
Unpacking bridge-utils (from .../bridge-utils_1.4-5ubuntu2_amd64.deb) ...
Selecting previously deselected package libaio1.
Unpacking libaio1 (from .../libaio1_0.3.107-3ubuntu2_amd64.deb) ...
Selecting previously deselected package libvdeplug2.
Unpacking libvdeplug2 (from .../libvdeplug2_2.2.3-3_amd64.deb) ...
Selecting previously deselected package libxen3.
Unpacking libxen3 (from .../libxen3_3.3.0-1ubuntu11_amd64.deb) ...
Selecting previously deselected package libvirt0.
Unpacking libvirt0 (from .../libvirt0_0.8.0-2ubuntu0~dnjl2~lucid0_amd64.deb) ...
Selecting previously deselected package libvirt-bin.
Unpacking libvirt-bin (from .../libvirt-bin_0.8.0-2ubuntu0~dnjl2~lucid0_amd64.deb) ...
Selecting previously deselected package python-libvirt.
Unpacking python-libvirt (from .../python-libvirt_0.8.0-2ubuntu0~dnjl2~lucid0_amd64.deb) ...
Selecting previously deselected package python-urlgrabber.
Unpacking python-urlgrabber (from .../python-urlgrabber_3.1.0-5ubuntu1_all.deb) ...
Selecting previously deselected package seabios.
Unpacking seabios (from .../seabios_0.5.1-0ubuntu2_all.deb) ...
Selecting previously deselected package vgabios.
Unpacking vgabios (from .../vgabios_0.6c-2ubuntu1_all.deb) ...
Selecting previously deselected package qemu-common.
Unpacking qemu-common (from .../qemu-common_0.12.3+noroms-0ubuntu9.1~dnjl1~lucid0_all.deb) ...
Selecting previously deselected package qemu-kvm.
Unpacking qemu-kvm (from .../qemu-kvm_0.12.3+noroms-0ubuntu9.1~dnjl1~lucid0_amd64.deb) ...
Selecting previously deselected package virtinst.
Unpacking virtinst (from .../virtinst_0.500.3-1ubuntu0~dnjl0~lucid0_all.deb) ...
Selecting previously deselected package python-virtinst.
Unpacking python-virtinst (from .../python-virtinst_0.500.3-1ubuntu0~dnjl0~lucid0_all.deb) ...
Selecting previously deselected package virt-viewer.
Unpacking virt-viewer (from .../virt-viewer_0.2.1-1ubuntu0~dnjl4~lucid0_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Setting up acl (2.2.49-2) ...
Setting up bridge-utils (1.4-5ubuntu2) ...
Setting up libaio1 (0.3.107-3ubuntu2) ...
Setting up libvdeplug2 (2.2.3-3) ...
Setting up libxen3 (3.3.0-1ubuntu11) ...
Setting up libvirt0 (0.8.0-2ubuntu0~dnjl2~lucid0) ...
Setting up libvirt-bin (0.8.0-2ubuntu0~dnjl2~lucid0) ...
Adding group `libvirtd' (GID 124) ...
libvirt-bin start/running, process 2491
Setting up python-libvirt (0.8.0-2ubuntu0~dnjl2~lucid0) ...
Setting up python-urlgrabber (3.1.0-5ubuntu1) ...
Setting up seabios (0.5.1-0ubuntu2) ...
Setting up vgabios (0.6c-2ubuntu1) ...
Setting up qemu-common (0.12.3+noroms-0ubuntu9.1~dnjl1~lucid0) ...
Setting up qemu-kvm (0.12.3+noroms-0ubuntu9.1~dnjl1~lucid0) ...
qemu-kvm start/running
Setting up virt-viewer (0.2.1-1ubuntu0~dnjl4~lucid0) ...
Processing triggers for python-central ...
Setting up virtinst (0.500.3-1ubuntu0~dnjl0~lucid0) ...
Setting up python-virtinst (0.500.3-1ubuntu0~dnjl0~lucid0) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for python-support ...

It’s important to specify “–connect xen:///” inside virt-install command line to succeed with VNC console launching (vs 9.10) . Variable VIRSH_DEFAULT_CONNECT_URI exported via .bashrc in my case caused virt-install to crash.Comment out (xend-unix-server yes) in /etc/xen/xend-config.sxp and export variable


in root’s .bashrc. Then reboot Xen Host.

root@ServerLX:~# virsh version
Compiled against library: libvir 0.8.0
Using library: libvir 0.8.0
Using API: Xen 3.0.1
Running hypervisor: Xen 4.0.0


70 Responses to Set up Ubuntu 10.04 Server PV DomU at Xen 4.0 Dom0 (pvops kernel) Dom0 on top of Ubuntu 10.04 Server

  1. maX says:

    I tried your tutorial, with Ubuntu Lucid Server as a base, but unfortunately I ended up (just like with two other tutorials earlier) with the following:

    root@xen:~# /etc/init.d/xend start
    grep: /proc/xen/capabilities: No such file or directory

    There seems to be no /proc/xen even if uname -a says so I must be running the new kernel.

    I must be doing something wrong =(

  2. Blafasel says:

    Try to load all available xen kernel modules:


  3. scheeri says:

    Have you solution for this problem?
    There was this mistake for me too.

  4. dbaxps says:

    I’ve updated post. Please, hard link all modules, like block,network,blktap backend Dom0 drivers, /dev/xen/evtchn device hard link as well. There should not be any need to place them in /etc/modules. Moreover, pvops kernel does require all backend drivers
    to be hard linked

  5. […] on Linux and Solaris Filed under: Linux,Solaris — 0ddn1x @ 2010-04-30 18:49:15 +0000… Leave a Comment TrackBack […]

  6. […] on Karmic Filed under: Linux,Solaris — 0ddn1x @ 2010-04-30 18:49:15 +0000… Leave a Comment TrackBack […]

  7. […] Set up Ubuntu 10.04 Server PV DomU at Xen 4.0 Dom0 (pvops kernel) Dom0 on top of Ubuntu 10… […]

  8. […] to the detailed posts on [A, B, C ] virt-manager is running xen 4.0 on ubuntu 10.04 (installation of ubuntu server plus apt-get […]

  9. Roman says:

    I have a problem with boot Xen 4.0.0 and kernel 2.6.3*
    (any version)

    Code grub.cfg:

    menuentry “Xen 4.0 / Ubuntu 10.04 3” {
    insmod lvm
    insmod ext2
    set root='(hd0,1)’
    search –no-floppy –fs-uuid –set f9c8993e-9382-41cf-b0d6-6c95d074cb22
    multiboot /xen-4.0.0.gz dummy=dummy dom0_mem=512M
    module /vmlinuz- dummy=dummy root=/dev/mapper/raptor–gv-root–lv ro
    module /initrd.img-

    During boot PC start BusyBox and print on screen

    mount: mounting /dev/mapper/raptor–gv-root–lv on /root failed: no such device

    Help me pliz!

    If I try booting without first parameter in grub.cfg – dummy=dummy then i have error about “where root?”


  10. dbaxps says:

    Post “df -h” for your system

    • Roman says:

      My system use LVM
      :~$ df -h
      File System Size Use Avail UsePr% смонтирована на
      74G 64G 6,2G 92% /
      none 2,9G 312K 2,9G 1% /dev
      none 2,9G 264K 2,9G 1% /dev/shm
      none 2,9G 316K 2,9G 1% /var/run
      none 2,9G 0 2,9G 0% /var/lock
      none 2,9G 0 2,9G 0% /lib/init/rw
      /dev/sda1 563M 151M 384M 29% /boot

      Еще столкнулся с тем что все пишут включите в ядре Xen. Как мало кто пишет, то есть надо знать какие опции в ядре включать. кто знает ?

      What options i must enable in kernel configuration for Xen 4.0 ??

  11. Farcaller says:

    Can you please provide the link to xen-devel submission, referenced as [1]?

    • Roman says:

      Да спасибо видел копию статьи в переводе на
      THanks, but Ubuntu already realeased and something may be chang becouse it’s instruction don’t work. For example I’ve get kernel but no
      Я уже неделю бьюсь на этой штукой. как её заставить работать ?

  12. dbaxps says:

    До границы с Россией тебе недалеко.

  13. Roman says:

    Еще столкнулся с тем что все пишут включите в ядре Xen. Как мало кто пишет, то есть надо знать какие опции в ядре включать. кто знает ?

    What options i must enable in kernel configuration for Xen 4.0 ??

  14. dbaxps says:

    Роман, если ты в Питере или Москве, пошли мне привет на
    e-mail, есть одна проблема.

  15. Roman says:

    Config from here
    work and my PC boot until switch in GUI mode.
    When start X display off and no signal, but server working and receive ssh connection.
    How can I edit config with worked graphics.

  16. dbaxps says:

    Post question to xen-users mailing list, not to my blog

  17. dbaxps says:

    Disable DRM completely. Rebuild the kernel and install again. Login as root. Try
    # service gdm stop
    # startx

  18. Jonathan says:

    Hi There,

    After booting my Dom0, I can’t run xm list. It says that it can’t connect to xend. Xend is running according to ps (However I had to add xenfs /proc/xen to fstav first).

    Any ideas?


    • Jonathan says:

      I forgot to mention that I havn’t downgraded my libvirt, so could this be the problem?

    • Jonathan says:

      I’ve since discovered that I don’t have xend-socket anywhere on my system. Could this be why xend isn’t listening?

    • Roman says:

      You must boot Xen.gz in grub.cfg and then boot kernel for Dom0. It’s kernel must create /proc/xen (if you enable this option)

  19. dbaxps says:

    Please view UPDATE 06/01/2010

  20. Roman says:

    where it doing? – “Verify Xen environment :-” ?
    Где это делать то – проверять Xen окружение.

  21. Sven says:


    Does the power management work with this howto?

  22. verbeke says:


    I followed the tutorial but @ reboot I get

    VFS: Cannot open root device “mapper/leon-root” or unknown-block(0,0)
    Please append a correct “root=” boot option; here are the available partitions
    Kernel panic – not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

    my grub entry looks like :

    menuentry “XEN 4 / Ubuntu 10.04 kernel” {
    insmod ext2
    set root=’(hd0,1)’
    search –no-floppy –fs-uuid –set 2be1c83c-8400-4ad2-ad4b-07bea10eaea5
    multiboot (hd0,1)/xen-4.0.0.gz dummy=dummy
    module (hd0,1)/vmlinuz- dummy=dummy root=/dev/mapper/leon-root ro
    module (hd0,1)/initrd.img-

    I also tried with root=UUID=… with same problem.

    A working entry looks like:

    menuentry ‘ubuntu, with Linux 2.6.32-21-server’ –class ubuntu –class gnu-linux –class gnu –class os{
    insmod ext2
    set root='(hd0,1′)
    search –no-floppy –fs-uuid –set 2be1c83c-8400-4ad2-ad4b-07bea10eaea5
    linux /vmlinuz-2.6.32-21-server root=/dev/mapper/leon-root ro
    initrd /initrd.img-

    I’ve searched all over the web but didn’t find a working answer. Someone has some ideas?

    • verbeke says:

      well, this will be a kernel compilation related problem, strange, I took the kernel settings of the ubuntu 10.04 kernel to start from and just added all the xen stuff.

      • Priya says:

        Hi Verbeke!

        I am encountering the same issue namely “Kernel panic – not syncing: VFS:Unable to mount root fs on unknown-block(0,0)”.

        I was wondering if you have figured out a fix for the problem? You mention that this seems to be a kernel compilation problem… could you please share some more details.

        If possible please share your kernel configuration file.


  23. Amina says:


    I am trying to install xen on ubuntu 10.04 using the xen dom0 kernel but getting errors on loading. My grub file is given below:

    menuentry ‘Ubuntu, Linux with pv_ops for Xen 4.0.1rc3′ –class ubuntu –class gnu-linux –class gnu –class os {
    insmod ext2
    set root='(hd0,5)’
    search –no-floppy –fs-uuid –set 98646bed-d837-44aa-b885-ac45a9042659
    multiboot (hd0,5)/boot/xen-4.gz dummy=dummy
    module (hd0,5)/boot/vmlinuz- dummy=dummy root=/dev/sdb5 ro console=tty0
    module (hd0,5)/boot/initrd.img-

    the error is
    “Error: couldn’t open file”,
    multiboot kernel should be loaded first

    i have seen similar problem on mailing list but the solution does not work for me.

    Any idea on how to boot?

  24. cnobile says:

    I have the same issue as the Amina.

    error: couldn’t open file
    error: you need to load the multiboot kernel first

    This is my grub entry:

    echo “Adding Xen 4.0 menu entry.” >&2
    exec tail -n +3 $0
    # This file provides an easy way to add custom menu entries. Simply type the
    # menu entries you want to add after this comment. Be careful not to change
    # the ‘exec tail’ line above.

    menuentry “Xen 4 / Ubuntu 10.04 kernel” {
    insmod ext2
    set root='(hd0,1)’
    search –no-floppy –fs-uuid –set 5cd488ec-97af-442a-bd20-1552c5014156
    multiboot (hd0,1)/boot/xen.gz dummy=dummy
    module (hd0,1)/boot/vmlinuz- dummy=dummy nopat root=/dev/sda5 ro console=tty0
    module (hd0,1)/boot/initrd.img-

  25. dbaxps says:

    Make sure /boot contains all files mentioned in grub entry.
    You just misspelled or lost one of them

  26. cnobile says:

    Nope all the files are there in both the /boot dir and the config entry and nothing is misspelled. I’m thinking there are still issues with grub2.

  27. dbaxps says:

    * [Xen-users] Problem with grub2 and xen (Ubuntu 10.04), Thomas Richard
    o Re: [Xen-users] Problem with grub2 and xen (Ubuntu 10.04), Bruce Edge
    o Re: [Xen-users] Problem with grub2 and xen (Ubuntu 10.04), Boris Derzhavets <=
    + Message not available
    # Re: [Xen-users] Problem with grub2 and xen (Ubuntu 10.04), Thomas Richard
    # Re: [Xen-users] Problem with grub2 and xen (Ubuntu 10.04), Boris Derzhavets
    # Re: [Xen-users] Problem with grub2 and xen (Ubuntu 10.04), Bruce Edge
    # Re: [Xen-users] Problem with grub2 and xen (Ubuntu 10.04), Thomas Richard
    # Re: [Xen-users] Problem with grub2 and xen (Ubuntu 10.04), Thomas Richard
    # [Xen-users] Re: Problem with grub2 and xen (Ubuntu 10.04), Christian Tramnitz

  28. cnobile says:

    Both of the links you posted seem to be dead. I get timeout errors on both of them.

  29. cnobile says:

    I was finally able to get to both of those links, but for some reason they still took a very long time to come up.

  30. cnobile says:

    Unhappily neither one of those links helped. I still have no joy getting Xen working on 10.04. Even making a symlink in root to Xen doesn’t help me. I can boot the new kernel with no problems, but Xen will not boot at all.

  31. […] 9.10 ServerVirst-install&Virt-manager at Xen 4.0-rc8 ( pvops) Dom0 on top Ubu…Set up Ubuntu 10.04 Server PV DomU at Xen 4.0 Dom0 (pvops kernel)…Set up Xen 4.1-unstable &ampamp; pvops Dom0 on top of Ubuntu […]

  32. Mike says:


    Make all actions from instruction. After restart I was see such text:
    ALERT! /dev/disk/by-uuid/xxx-xxx-xxxx–xxx does not exist. Dropping to shell!

  33. dbaxps says:

    Good job 😉

  34. tony says:

    I want to ask that the step:” make menuconfig # Enabled the dom0 support and the Xen backend as usual on Ubuntu 9.10, F12″ which will be includes? Could you give a detailed instruction? Or mail me?

  35. dbaxps says:

    Could you learn Linux basics and grub2 docs by yourself ?

    • tony says:

      I’m a rookie.So sorry to waste your time, and all the things I’ve figured out but when I reboot into my system, and when loading dom 0, the system tells “reboot in five seconds; panic on CPU 0; could not set up dom0 guest os;Error will only load images built for the generic loader or linux images”

    • tony says:

      This is my menuentry :
      menuentry ‘Ubuntu10.04 inux’ {
      insmod ext2
      set root='(hd0,1)’
      set timeout=5
      multiboot (hd0,1)/boot/xen.gz dummy=dummy
      module (hd0,1)/boot/vmlinuz- dummy=dummy nopat
      root=/dev/sda1 ro console=tty0
      module (hd0,1)/boot/initrd.img-

  36. dbaxps says:

    It’s correct,except “nopat” should not be needed,
    in general. Command :-
    # make menuconfig
    generates file .config. I submitted you a ready to go
    .config via
    Just “gedit .config” and cut and paste content provided via link above, It has a window to grub text at the bottom. Then build using any option above. Your problem is to build kernel correctly, then Dom0 will gets loaded

    • tony says:

      yeah ,I know, and when I input “make -j 1”, it comes out a lot of new function ,should I click the default bottom? I just keeping clicking “Enter”.Is that correct?

  37. volker says:


    I am trying to install xen on ubuntu 10.04, but appears the follow error:
    :/usr/src$ sudo git clone git:// linux-2.6-xen
    Initialized empty Git repository in /usr/src/linux-2.6-xen/.git/
    fatal: The remote end hung up unexpectedly

    Help me please.


  38. dbaxps says:

    1.Aren’t you behind corporate firewall ?
    2.Try as root.

    It looks as network issue.

    • volker says:

      thanks for your help.

      1. No. I’m connected with a DI 524 router and an dlink 500b modem, without firewall rules.
      2. As root i have the same error message.

      Any other idea?

  39. dbaxps says:

    Double check packages installed.
    Git is not installed properly.

  40. dbaxps says:

    Done just now on Ubuntu 10.10 Desktop

    root@boris-System-P5Q3:/usr/src# git clone git:// linux-2.6-xen
    Initialized empty Git repository in /usr/src/linux-2.6-xen/.git/
    remote: Counting objects: 1761267, done.
    remote: Compressing objects: 100% (288172/288172), done.
    remote: Total 1761267 (delta 1463849), reused 1753888 (delta 1457473)
    Receiving objects: 100% (1761267/1761267), 360.26 MiB | 196 KiB/s, done.
    Resolving deltas: 100% (1463849/1463849), done.
    root@boris-System-P5Q3:/usr/src# cd *-xen
    root@boris-System-P5Q3:/usr/src/linux-2.6-xen# git checkout -b xen/stable-2.6.32.x origin/xen/stable-2.6.32.x
    Checking out files: 100% (10661/10661), done.

  41. […] xenified aka Suse …Set up Xen 3.4.3 Dom0 via xenified kernel on top Ubuntu 9.10 ServerSet up Ubuntu 10.04 Server PV DomU at Xen 4.0 Dom0 (pvops kernel)…Set up OSOL 2010-03 (build 134) at Xen 4.0 Dom0 on top of […]

  42. Ron Arenas says:

    I just successfully compiled, installed and got Xen 4.1.1-rc1-pre up and running on Ubuntu 10.04 with kernel

    Comparing my “xm info”, it seems I’m missing the following entries from the output and was hoping someone could shed some light as to why or what I missed in configuration:

    node_to_cpu :
    node_to_memory :
    node_to_dma32_mem :
    max_node_id :

    I have no lines indicating stats on the 4 lines above with I do a “xm info”.

    Many thanks in advance.

    Ron A.

  43. Ron Arenas says:

    Sorry, I saw that “xm info” for 4.0 and 4.1 are different. In 4.0.x it shows those (4)lines:

    node_to_cpu : node0:0-1
    node_to_memory : node0:2054
    node_to_dma32_mem : node0:1225
    max_node_id : 0

    In 4.1.x “xm info” doesn’t have it. ???

    I just noticed.

    Ron A.

  44. Joni .A says:

    I tried install xen 4.0.1 on ubuntu 10.04.2 LTS. i use latest kernel from jeremy ( that .config get from your reference. there is no problem in booting, but when enter #xm info command i got, “Error: Unable to connect to xend: No such file or directory. Is xend running?”

    so, i’m kind of stuck here. any ideas?

    Joni .A

  45. Priya says:

    @Joni : Make sure you are using the correct boot option while starting your Xen VMM. I was getting the same error for a long time, and then I realized this was the mistake I was making…

    Even if you think you have the right boot option, try out other xen / Linux -like options from your boot up file…

  46. Joni .A says:


    i am successful to compile kernel ( and xen 4.0.1 on ubuntu 10.04.

    #versh version
    Compiled against library: libvir 0.8.3
    Using library: libvir 0.8.3
    Using API: Xen 3.0.1
    Running hypervisor: Xen 4.0.0

    #brctl show
    bridge name bridge id STP enabled interfaces
    eth0 8000.20cf3077a2d7 no peth0
    pan0 8000.000000000000 no
    virbr0 8000.000000000000 yes

    but when enter virtual machine manager, i got message :
    Error : No active connection to install on

    how to fix this problem?

    Joni .A

  47. Priya says:

    I don’t remember encountering this particular issue, but try this.
    It is a hack and it works only while you don’t reboot your VM but I hope it helps. If you find a better solution, make us wiser !

  48. Joni .A says:

    thanks, this problem solves by click “Add Connection” in Virtual Machine Manager.

    but i still confuse, how to make create HVM DomU via profile?

    Joni .A

  49. Sendy Seftiandy says:

    i have a question, if we want to make domu pv, is the domu’s kernel should be pvops kernel?


  50. Xavi says:


    when I type xm new xen says “File “/usr/local/lib/python2.6/dist-packages/xen/xm/”, line 23, in
    from xml.parsers.xmlproc import xmlproc, xmlval, xmldtd
    ImportError: No module named xmlproc”. when I compiled xen I used make install PYTHON_PRFEFIX_ARGS=


    PD: I am using ubuntu server 10.04 and xen 4.0.1

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

%d bloggers like this: