kernel panic when booted a pv-ops Dom0 kernel with Xen in vmware workstation

Abhishek Dixit abhidixit87 at gmail.com
Wed Mar 2 15:05:03 UTC 2011


Hi,
I am trying to run Xen inside a Vmware guest.
So I installed Vmware on a VT machine which is 64 bit.
Then installed Ubuntu 10.04 64 bit HVM.
Now I compiled Xen-4.0.1 from sources and a pv-ops Dom0 kernel for the same.
Changed the grub etc and got kernel panics (and some errors which
could not be logged)
Most of the instructions I followed are from
http://bderzhavets.wordpress.com/2010/04/24/set-up-ubuntu-10-04-server-pv-domu-at-xen-4-0-dom0-pvops-2-6-32-10-kernel-dom0-on-top-of-ubuntu-10-04-server/


Step 1)
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

Step 2)
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 checkout -b xen/stable-2.6.32.x origin/xen/stable-2.6.32.x

Step 3)
make -j 2
make modules_install install
chmod g-s /usr/src -R
make deb-pkg
dpkg -i ../linux-image*2.6.32.25*.deb
depmod 2.6.32.25
update-initramfs -c -k 2.6.32.25

Here I am not clear as how did the version changed from 2.6.32.25 as
original git pull happened at 2.6.32.27


echo “xen-evtchn” >> /etc/modules


Step  4)

tar -xzvf  xen-4.0.1.tar.gz
cd /usr/src/xen-4.0.1
 make xen
 make tools
 make install-xen

 make install-tools PYTHON_PREFIX_ARG=

at this point I got some errors during make install-tools PYTHON_PREFIX_ARGS=


xen/lowlevel/xc/xc.c:2353: error: expected declaration specifiers
before ‘initxc’
xen/lowlevel/xc/xc.c:2382: error: expected ‘{’ at end of input
error: command 'gcc' failed with exit status 1
make[3]: *** [buildpy] Error 1
make[3]: Leaving directory `/usr/src/xen-4.0.1/tools/python'
make[2]: *** [subdir-install-python] Error 2
make[2]: Leaving directory `/usr/src/xen-4.0.1/tools'
make[1]: *** [subdirs-install] Error 2
make[1]: Leaving directory `/usr/src/xen-4.0.1/tools'
make: *** [install-tools] Error 2



Step 5)

So I had installed from this page http://wiki.xensource.com/xenwiki/Xen4.0
apt-get install bcc bin86 gawk bridge-utils iproute libcurl3
libcurl4-openssl-dev bzip2 module-init-tools transfig tgif texinfo
texlive-latex-base texlive-latex-recommended texlive-fonts-extra
texlive-fonts-recommended pciutils-dev mercurial build-essential make
gcc libc6-dev zlib1g-dev python python-dev python-twisted
libncurses5-dev patch libvncserver-dev libsdl-dev libjpeg62-dev iasl
libbz2-dev e2fslibs-dev git-core uuid-dev ocaml libx11-dev bison fle

apt-get install  gcc-multilib xz-utils
then proceeded with make install-tools



Step 6)

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

Things upto here worked perfectly.
Now I reboot in Xen with grub entry


menuentry 'Xen 4 Ubuntu 10.04 kernel 2.6.32.25 ' {
       insmod ext2
       set root='(hd0,1)'
       multiboot (hd0,1)/boot/xen.gz dummy=dummy
       module  /boot/vmlinuz-2.6.32.25 dummy=dummy noapt
root=/dev/sda1 ro console=tty0
       module  /boot/initrd.img-2.6.32.25
}





Now  I see a lot of kernel panic and similar messages which did not
got logged in any where?
Can any one tell me what wrong thing did I do above since there is no
log any where?

Can some where I can catch these errors some how?

-- 
Regards
Abhi




More information about the kernel-team mailing list