Set up Libvirt 0.8.1 & Xen 4.0.1 Dom0 (2.6.32.15 pvops) on top of Ubuntu 10.04 Server via Daniel Baumann Virtualization PPA

Add two lines to /etc/apt/sources list

deb http://ppa.launchpad.net/dnjl/virtualization/ubuntu lucid main
deb-src http://ppa.launchpad.net/dnjl/virtualization/ubuntu lucid main

Running "add-apt-repository ppa:/gwibber-daily/ppa" didn't work for me due to "apt-get update" complaining absence key with different value, that's why i imported requested key via command bellow and succeeded with "apt-get update"

---------------------------------------------------------------------------------------------------------------------
UPDATE on 06/04/2010
----------------------------------------------------------------------------------------------------------------------

# root@ServerLSX:~# add-apt-repository ppa:dnjl/virtualization
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 keyserver.ubuntu.com --recv 5C1F788FDE6E8657FF5864FFD18C7A1DF6E6BED2
gpg: requesting key F6E6BED2 from hkp server keyserver.ubuntu.com
gpg: key F6E6BED2: public key "Launchpad ppa" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)

root@ServerLSX:~# apt-get update

------------------------------------------------------------------------------------------------------------------------
UPDATE on 06/13/2010
------------------------------------------------------------------------------------------------------------------------
DNJL's PPA has been rebuilt and in meantime provides Libvirt 0.8.1 & Virt-manager 0.8.4.The most recent pvops kernel 2.6.32.15 requires Xen Hypervisor upgrade up to 4.0.1-rc3-pre at the time of writing
------------------------------------------------------------------------------------------------------------------------


root@ServerLX:~# apt-key adv --keyserver keyserver.ubuntu.com --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 keyserver.ubuntu.com --recv-keys D18C7A1DF6E6BED2
gpg: requesting key F6E6BED2 from hkp server keyserver.ubuntu.com
gpg: key F6E6BED2: public key "Launchpad ppa" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)


root@ServerLX:~# apt-get update
Hit http://us.archive.ubuntu.com lucid Release.gpg
Get:1 http://ppa.launchpad.net lucid Release.gpg [307B]
Ign http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ lucid/main Translation-en_US
Hit http://ppa.launchpad.net lucid Release.gpg
Hit http://security.ubuntu.com lucid-security Release.gpg
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/restricted Translation-en_US
Ign http://ppa.launchpad.net/gwibber-daily/ppa/ubuntu/ lucid/main Translation-en_US
Get:2 http://ppa.launchpad.net lucid Release [57.3kB]
Ign http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-en_US
Hit http://security.ubuntu.com lucid-security Release
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_US
Hit http://ppa.launchpad.net lucid Release
Ign http://us.archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-en_US
Hit http://security.ubuntu.com lucid-security/main Packages
Hit http://ppa.launchpad.net lucid/main Packages
Hit http://ppa.launchpad.net lucid/main Sources
Hit http://us.archive.ubuntu.com lucid-updates Release.gpg
Hit http://security.ubuntu.com lucid-security/restricted Packages
Hit http://security.ubuntu.com lucid-security/main Sources
Hit http://security.ubuntu.com lucid-security/restricted Sources
Hit http://security.ubuntu.com lucid-security/universe Packages
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_US
Hit http://ppa.launchpad.net lucid/main Packages
Hit http://security.ubuntu.com lucid-security/universe Sources
Hit http://security.ubuntu.com lucid-security/multiverse Packages
Hit http://security.ubuntu.com lucid-security/multiverse Sources
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-en_US
Hit http://us.archive.ubuntu.com lucid Release
Hit http://us.archive.ubuntu.com lucid-updates Release
Hit http://us.archive.ubuntu.com lucid/main Packages
Hit http://us.archive.ubuntu.com lucid/restricted Packages
Hit http://us.archive.ubuntu.com lucid/main Sources
Hit http://us.archive.ubuntu.com lucid/restricted Sources
Hit http://us.archive.ubuntu.com lucid/universe Packages
Hit http://us.archive.ubuntu.com lucid/universe Sources
Hit http://us.archive.ubuntu.com lucid/multiverse Packages
Hit http://us.archive.ubuntu.com lucid/multiverse Sources
Hit http://us.archive.ubuntu.com lucid-updates/main Packages
Hit http://us.archive.ubuntu.com lucid-updates/restricted Packages
Hit http://us.archive.ubuntu.com lucid-updates/main Sources
Hit http://us.archive.ubuntu.com lucid-updates/restricted Sources
Hit http://us.archive.ubuntu.com lucid-updates/universe Packages
Hit http://us.archive.ubuntu.com lucid-updates/universe Sources
Hit http://us.archive.ubuntu.com lucid-updates/multiverse Packages
Hit http://us.archive.ubuntu.com lucid-updates/multiverse Sources
Fetched 308B in 5s (55B/s)
Reading package lists... Done

Now install libvirt 0.8.0 related packages

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 http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ lucid/main libvirt0 0.8.0-2ubuntu0~dnjl2~lucid0 [831kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ lucid/main acl 2.2.49-2 [56.8kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ lucid/main bridge-utils 1.4-5ubuntu2 [33.9kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ lucid/main libaio1 0.3.107-3ubuntu2 [9,608B]
Get:5 http://us.archive.ubuntu.com/ubuntu/ lucid/universe libvdeplug2 2.2.3-3 [13.0kB]
Get:6 http://us.archive.ubuntu.com/ubuntu/ lucid/main libxen3 3.3.0-1ubuntu11 [151kB]
Get:7 http://us.archive.ubuntu.com/ubuntu/ lucid/main python-urlgrabber 3.1.0-5ubuntu1 [57.5kB]
Get:8 http://us.archive.ubuntu.com/ubuntu/ lucid/main seabios 0.5.1-0ubuntu2 [48.2kB]
Get:9 http://us.archive.ubuntu.com/ubuntu/ lucid/main vgabios 0.6c-2ubuntu1 [78.5kB]
Get:10 http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ lucid/main libvirt-bin 0.8.0-2ubuntu0~dnjl2~lucid0 [706kB]
Get:11 http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ lucid/main python-libvirt 0.8.0-2ubuntu0~dnjl2~lucid0 [62.5kB]
Get:12 http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ lucid/main qemu-common 0.12.3+noroms-0ubuntu9.1~dnjl1~lucid0 [30.1kB]
Get:13 http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ lucid/main qemu-kvm 0.12.3+noroms-0ubuntu9.1~dnjl1~lucid0 [2,955kB]
Get:14 http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ lucid/main virtinst 0.500.3-1ubuntu0~dnjl0~lucid0 [356kB]
Get:15 http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ lucid/main python-virtinst 0.500.3-1ubuntu0~dnjl0~lucid0 [1,576B]
Get:16 http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ 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) ...
Done.
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 ...

Packages install and dependencies resolution have been done not via Lucid Repos, but via Daniel's PPA [1]. Setup Xen 4.0 & 2.6.32.10 pvops kernel as advised in [2].
Following bellow is series of snapshots demonstrating install F13 PV DomU via virt-manager at Xen 4.0 Dom0 on top of Ubuntu Lucid Server











-------------------------------------------------------------------------------------
As of 06/13/2010 Libvirt is 0.8.1 & virt-manager is 0.8.4
-------------------------------------------------------------------------------------

root@ServerLDX:~# apt-get install libvirt-bin virt-manager
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libaio1 seabios qemu-kvm vgabios libvdeplug2 qemu-common
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libvirt0
The following packages will be upgraded:
libvirt-bin libvirt0 virt-manager
3 upgraded, 0 newly installed, 0 to remove and 53 not upgraded.
Need to get 3,107kB of archives.
After this operation, 106kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ lucid/main libvirt-bin 0.8.1-2ubuntu0~dnjl2~lucid0 [714kB]
Get:2 http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ lucid/main libvirt0 0.8.1-2ubuntu0~dnjl2~lucid0 [859kB]
Get:3 http://ppa.launchpad.net/dnjl/virtualization/ubuntu/ lucid/main virt-manager 0.8.4-3ubuntu2~lucid0 [1,535kB]
Fetched 3,107kB in 13s (228kB/s)
(Reading database ... 186488 files and directories currently installed.)
Preparing to replace libvirt-bin 0.8.0-2ubuntu0~dnjl2~lucid0 (using .../libvirt-bin_0.8.1-2ubuntu0~dnjl2~lucid0_amd64.deb) ...
libvirt-bin stop/waiting
Unpacking replacement libvirt-bin ...
Preparing to replace libvirt0 0.8.0-2ubuntu0~dnjl2~lucid0 (using .../libvirt0_0.8.1-2ubuntu0~dnjl2~lucid0_amd64.deb) ...
Unpacking replacement libvirt0 ...
Preparing to replace virt-manager 0.8.4-2ubuntu0~dnjl0~lucid0 (using .../virt-manager_0.8.4-3ubuntu2~lucid0_all.deb) ...
Unpacking replacement virt-manager ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Processing triggers for desktop-file-utils ...
Processing triggers for python-gmenu ...
Rebuilding /usr/share/applications/desktop.en_US.utf8.cache...
Processing triggers for python-support ...
Setting up libvirt0 (0.8.1-2ubuntu0~dnjl2~lucid0) ...
Setting up libvirt-bin (0.8.1-2ubuntu0~dnjl2~lucid0) ...
Installing new version of config file /etc/libvirt/nwfilter/no-arp-spoofing.xml ...
Installing new version of config file /etc/libvirt/nwfilter/clean-traffic.xml ...
Installing new version of config file /etc/apparmor.d/abstractions/libvirt-qemu ...
libvirt-bin start/running, process 5009
Setting up virt-manager (0.8.4-3ubuntu2~lucid0) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for python-central ...

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

References
1.https://launchpad.net/~dnjl/+archive/virtualization
2.http://wiki.xensource.com/xenwiki/Xen4.0

About these ads

4 Responses to Set up Libvirt 0.8.1 & Xen 4.0.1 Dom0 (2.6.32.15 pvops) on top of Ubuntu 10.04 Server via Daniel Baumann Virtualization PPA

  1. Michael says:

    Nice, but posting all the console output from apt seems a little unnecessary.

  2. Fernando says:

    Hmm, title refers to Xen 4.0.1, virsh version refers to 4.0.0, what is the correct version? Or, does Daniel has the 4.0.1 version in the repo or the 4.0.0 one? Tks!

  3. Jguno says:

    Thank you it really helped! I cannot appreciate more!
    Would you mind if I write the contents of this post in my blog for personal and public reference? I’m gonna mention this source.

  4. [...] post really helped:¬†http://bderzhavets.wordpress.com/2010/06/02/setup-libvirt-0-8-0-xen-4-0-on-top-of-ubuntu-10-04-serve…. Before I read this post, I did not know that the problem was the version [...]

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: