[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Re: Running Xen 4.0.0-rc8 with Linux paravirt_ops dom0 on top of Ubuntu Lucid 10.04 64bits.

  • To: Xen List <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: Martinx - ジェームズ <thiagocmartinsc@xxxxxxxxx>
  • Date: Fri, 26 Mar 2010 11:56:43 -0300
  • Delivery-date: Fri, 26 Mar 2010 08:09:32 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=sjzF57JaCkhZQk8zDQAZQYfWeFiegbWuBoqWP5KMzyTCQG/QSKPHh3zYq5t9oF8WFN Kd11s835M4MZSniQnkCmvG+dxVdft+EJy+VTCNZpecjpEnrv0Sw0BczHprAZNMXpJdhQ dBqWhyl+1/ksT9bSvINIhUhaQ0uWDSNP9Kb1k=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>


ÂMy "xm info" shows:

root@tcmc-dell:~# xm in
versionÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ : #2 SMP Wed Mar 24 18:52:25 BRT 2010
machineÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ : x86_64
cores_per_socketÂÂÂÂÂÂ : 2
threads_per_coreÂÂÂÂÂÂ : 1
hw_capsÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ : bfebfbff:20100800:00000000:00000940:0408e3fd:00000000:00000001:00000000
virt_capsÂÂÂÂÂÂÂÂÂÂÂÂÂ : hvm
total_memoryÂÂÂÂÂÂÂÂÂÂ : 3794
free_memoryÂÂÂÂÂÂÂÂÂÂÂ : 643
node_to_cpuÂÂÂÂÂÂÂÂÂÂÂ : node0:0-1
node_to_memoryÂÂÂÂÂÂÂÂ : node0:643
node_to_dma32_memÂÂÂÂÂ : node0:580
max_node_idÂÂÂÂÂÂÂÂÂÂÂ : 0
xen_majorÂÂÂÂÂÂÂÂÂÂÂÂÂ : 4
xen_minorÂÂÂÂÂÂÂÂÂÂÂÂÂ : 0
xen_extraÂÂÂÂÂÂÂÂÂÂÂÂÂ : .0-rc8
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ÂÂÂÂÂÂÂÂÂ : Fri Mar 26 10:29:38 2010 +0000 21074:542211ba675c
xen_commandlineÂÂÂÂÂÂÂ :
cc_compilerÂÂÂÂÂÂÂÂÂÂÂ : gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu2)
cc_compile_byÂÂÂÂÂÂÂÂÂ : root
cc_compile_domainÂÂÂÂÂ : worldweb.office
cc_compile_dateÂÂÂÂÂÂÂ : Fri Mar 26 10:54:13 BRT 2010
xend_config_formatÂÂÂÂ : 4

martinx@tcmc-dell:~$ glxinfo
name of display: :0.0
display: :0Â screen: 0
direct rendering: Yes


2010/3/26 Martinx - ããããã <thiagocmartinsc@xxxxxxxxx>

ÂThis is a quick guide to help us to try the new Xen.
ÂAlso I have the composite window manager on top of the Xen! With full 3D support!

ÂTo achieve this I do:

1- Install your Ubuntu Desktop 10.4 beta1 and upgrade your system;

1.1 - Install some packages:

Âaptitude install build-essential libncurses5-dev dpkg-dev debhelper fakeroot

2- Download and install a new kernel with dom0 pv_ops enabled:

Âsudo -s
Âcd /usr/src
Âgit clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git linux-2.6-xen
Âcd linux-2.6-xen
Âgit pull
Âgit reset --hard
Âgit checkout -b xen/stable origin/xen/stable
Âgit pull

2.1 - Download the kernel config file attached to this mail (config-for-xen-

ÂCopy the config file to the kernel source dir:

Âcp ~Downloads/config-for-xen- /usr/src/linux-2.6-xen/.config

ÂYou can see the differences of my config file against the Lucid one:

Âdiff /boot/config-2.6.32-17-generic ~Downloads/config-for-xen- | vim -

Â...both are close to each other.

2.2 Configure, compile and install:
Âmake menuconfig # Enable the dom0 support and the Xen backend/frontend/xenfs stuffs...
Âchmod g-s /usr/src -RÂÂÂ Â# To avoid the error: "dpkg-deb: control directory has bad permissions 2755 (must be >=0755 and <=0775)"
Âmake dep-pkg
Âdpkg -i ../linux-image**.deb
Âupdate-initramfs -c -k
Âecho "xen-evtchn" >> /etc/modules

ÂNow you can try your new kernel without Xen, if you want, it should work smootly.

3- Download and install the latest Xen:

ÂPreparing your environment:

Âapt-get build-dep xen-3.3
Âaptitude install uuid-dev iasl texinfo

ÂDownload and compile:

Âcd /usr/src
Âhg clone -r 4.0.0-rc8 http://xenbits.xensource.com/xen-unstable.hg
Âcd xen-unstable.hg
Âmake xen
Âmake tools
Âmake stubdom
Âmake install-xen
Âmake install-tools PYTHON_PREFIX_ARG=
Âmake install-stubdom

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

4- Configuring your Grub2 through the file /etc/grub.d/40_custom:

---- cut here ----
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.0.0-rc8 / Ubuntu 10.4 kernel pvops" {
insmod ext2
set root=(hd0,1)
multiboot (hd0,1)/xen-4.0.0-rc8.gz dummy=dummy
module (hd0,1)/vmlinuz- dummy=dummy root=/dev/mapper/HyperDeskVG01-tcmc--dell--lucid ro
module (hd0,1)/initrd.img-
---- cut here ----

ÂDon't forget to change your "root=" option of your Linux!

ÂRun update-grub again:


5- Reboot into your new dom0!


6- Look if your Xen is up and running

Âxm list
Âxm info

Â.. if not:

/etc/init.d/xendomains stop
/etc/init.d/xend stop
/etc/init.d/xend start
/etc/init.d/xendomains start

Âxm list
Âxm info


Xen-users mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.