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

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


  • To: Outback Dingo <outbackdingo@xxxxxxxxx>
  • From: Martinx - ジェームズ <thiagocmartinsc@xxxxxxxxx>
  • Date: Fri, 26 Mar 2010 18:24:48 -0300
  • Cc: Xen List <xen-users@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Fri, 26 Mar 2010 14:27:12 -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 :cc:content-type; b=BCrwWqf4uPQV92GIdlAe747qedZg+gcFWP+0EQplj80VqByacP0JceKcL7qk5fRyHj CV5FxIFXoK4hDU3TdQq1bnnnVncrn+gAYcW2tXQalZfabZjYikCsIMn1gfKrNNld5wrZ 2gcpQE4sWTeglyO4Li/tTRdKdEfA3IfQzHeg8=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Sure! My /boot partition is at the beginning of the disc and it is ext2.

2010/3/26 Outback Dingo <outbackdingo@xxxxxxxxx>
more information is its running ext4 from lvm on sda5Â

/dev/sda5 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw)

so in the grub config i have

cat /etc/grub.d/40_custom
#!/bin/sh
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 2.6.32.10 pvops" {
insmod ext2
insmod ext4
set root=(hd0,5)
multiboot (hd0,5)/boot/xen-4.0.0-rc8.gz dummy=dummy
module (hd0,5)/boot/vmlinuz-2.6.32.10 dummy=dummy root=/dev/mapper/HyperDeskVG01-tcmc--dell--lucid ro
module (hd0,5)/boot/initrd.img-2.6.32.10
}


2010/3/26 Outback Dingo <outbackdingo@xxxxxxxxx>
this is running on the kernel from jeremys tee

uname -a
Linux dingo-XPS 2.6.32.10 #2 SMP Fri Mar 26 14:31:20 EDT 2010 i686 GNU/Linux
dingo@dingo-XPS:~$ cat /proc/cpuinfoÂ
processor    : 0
vendor_id    : GenuineIntel
cpu family   Â: 6
model      : 37
model name   Â: Intel(R) Core(TM) i5 CPU    M 430 Â@ 2.27GHz
stepping    Â: 2
cpu MHz     : 1199.000
cache size   Â: 3072 KB
physical id   : 0
siblings    Â: 4
core id     : 0
cpu cores    : 2
apicid     Â: 0
initial apicid Â: 0
fdiv_bug    Â: no
hlt_bug     : no
f00f_bug    Â: no
coma_bug    Â: no
fpu       : yes
fpu_exception  : yes
cpuid level   : 11
wp       Â: yes
flags      : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
bogomips    Â: 4521.42
clflush size  Â: 64
cache_alignment : 64
address sizes  : 36 bits physical, 48 bits virtual
power management:

processor    : 1
vendor_id    : GenuineIntel
cpu family   Â: 6
model      : 37
model name   Â: Intel(R) Core(TM) i5 CPU    M 430 Â@ 2.27GHz
stepping    Â: 2
cpu MHz     : 1199.000
cache size   Â: 3072 KB                                                                                                    Â
physical id   : 0                                                                                                       Â
siblings    Â: 4                                                                                                       Â
core id     : 2                                                                                                       Â
cpu cores    : 2                                                                                                       Â
apicid     Â: 4                                                                                                       Â
initial apicid Â: 4 Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
fdiv_bug    Â: no                                                                                                      ÂÂ
hlt_bug     : no                                                                                                      ÂÂ
f00f_bug    Â: no                                                                                                      ÂÂ
coma_bug    Â: no                                                                                                      ÂÂ
fpu       : yes                                                                                                      Â
fpu_exception  : yes                                                                                                      Â
cpuid level   : 11                                                                                                      ÂÂ
wp       Â: yes                                                                                                      Â
flags      : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid                                                ÂÂ
bogomips    Â: 4521.97                                                                                                    Â
clflush size  Â: 64                                                                                                      ÂÂ
cache_alignment : 64 Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ÂÂ
address sizes  : 36 bits physical, 48 bits virtual                                                                                       Â
power management:

processor    : 2
vendor_id    : GenuineIntel
cpu family   Â: 6
model      : 37
model name   Â: Intel(R) Core(TM) i5 CPU    M 430 Â@ 2.27GHz
stepping    Â: 2
cpu MHz     : 2267.000
cache size   Â: 3072 KB
physical id   : 0
siblings    Â: 4
core id     : 0
cpu cores    : 2
apicid     Â: 1
initial apicid Â: 1
fdiv_bug    Â: no
hlt_bug     : no
f00f_bug    Â: no
coma_bug    Â: no
fpu       : yes
fpu_exception  : yes
cpuid level   : 11
wp       Â: yes
flags      : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
bogomips    Â: 4521.97
clflush size  Â: 64
cache_alignment : 64
address sizes  : 36 bits physical, 48 bits virtual
power management:

processor    : 3
vendor_id    : GenuineIntel
cpu family   Â: 6
model      : 37
model name   Â: Intel(R) Core(TM) i5 CPU    M 430 Â@ 2.27GHz
stepping    Â: 2
cpu MHz     : 1199.000
cache size   Â: 3072 KB
physical id   : 0
siblings    Â: 4
core id     : 2
cpu cores    : 2
apicid     Â: 5
initial apicid Â: 5
fdiv_bug    Â: no
hlt_bug     : no
f00f_bug    Â: no
coma_bug    Â: no
fpu       : yes
fpu_exception  : yes
cpuid level   : 11
wp       Â: yes
flags      : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
bogomips    Â: 4521.97
clflush size  Â: 64
cache_alignment : 64
address sizes  : 36 bits physical, 48 bits virtual
power management:


2010/3/26 Martinx - ããããã <thiagocmartinsc@xxxxxxxxx>
Mmm... Your system is 64 bits?!
You try the Linux 2.6.32.10 from Jeremy's tree without Xen?!

2010/3/26 Outback Dingo <outbackdingo@xxxxxxxxx>
hrmm ok, well Ive gotten all the way to the end and tried to reboot into XEN


during the boot process i see

elf_xen_note_check

will only load images built for generic load or linux images

Panic on CPU0

could not setup DomU Guest OS

reboot in 15 seonds

any thoughts???



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


Â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-2.6.32.10-pvops):

ÂCopy the config file to the kernel source dir:

Âcp ~Downloads/config-for-xen-2.6.32.10-pvops /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-2.6.32.10-pvops | 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...
Âmake
Â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*2.6.32.10*.deb
Âdepmod 2.6.32.10
Âupdate-initramfs -c -k 2.6.32.10
Âupdate-grub
Â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 ----
#!/bin/sh
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 2.6.32.10 pvops" {
insmod ext2
set root=(hd0,1)
multiboot (hd0,1)/xen-4.0.0-rc8.gz dummy=dummy
module (hd0,1)/vmlinuz-2.6.32.10 dummy=dummy root=/dev/mapper/HyperDeskVG01-tcmc--dell--lucid ro
module (hd0,1)/initrd.img-2.6.32.10
}
---- cut here ----

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

ÂRun update-grub again:

Âupdate-grub

5- Reboot into your new dom0!

Âreboot

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

-
ÂCheers!
ÂThiago

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users





_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

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