Hi guys,
I have been attempting to boot to Xen kernel for almost a week now,
and whatever I do results in pretty much the same.
Install attempts from pre-made RPMs, rebuilt RPMs from SRPM, source... same.
Would someone be kind and take a look at the following information
and advise me on what am I doing wrong?
-------------------------------------------------------------------------------------------
OS: CentOS 4.4, vanilla 2.6.9-42.0.3.EL kernel or 2.6.19.2 built from
oldconfig, whatever
Hardware: ASUS P4C800 motherboard, CPU Pentium 2.8 GHz (first one
from series, no HT), 2 plain ATA disks + IDE CD-ROM, 1.250 GB RAM
The box is fresh install, nothing on it, intended for Xen.
[root@hive linux-2.6.16.33-xen]# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Pentium(R) 4 CPU 2.80GHz
stepping : 7
cpu MHz : 2798.698
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid xtpr
bogomips : 5600.57
[root@hive ~]# lspci
00:00.0 Host bridge: Intel Corporation 82875P/E7210 Memory Controller
Hub (rev 02)
00:01.0 PCI bridge: Intel Corporation 82875P Processor to AGP
Controller (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB
UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB
UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB
UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB
UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R)
USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2)
00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC
Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE
Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus
Controller (rev 02)
01:00.0 VGA compatible controller: ATI Technologies Inc RV530 [Radeon X1600]
01:00.1 Display controller: ATI Technologies Inc RV530 [Radeon X1600]
(Secondary)
02:05.0 Ethernet controller: 3Com Corporation 3c940 10/100/1000Base-T
[Marvell] (rev 12)
I believe all prerequisites are there:
[root@hive xen-3.0.4_1-src]# ./install.sh
Installing Xen from './dist/install' to '/'...
- installing for hotplug-based system
- modifying permissions
All done.
Checking to see whether prerequisite tools are installed...
Xen CHECK-INSTALL Sat Jan 20 08:38:14 CET 2007
Checking check_brctl: OK
Checking check_crypto_lib: OK
Checking check_iproute: OK
Checking check_libvncserver: unused, OK
Checking check_python: OK
Checking check_python_xml: OK
Checking check_sdl: unused, OK
Checking check_udev: OK
Checking check_zlib_lib: OK
All done.
[root@hive linux-2.6.16.33-xen]# mount
/dev/hda5 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/hdc1 on /backup type ext3 (rw) ---> unused yet
/dev/hda1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
/dev/hda3 on /tmp type ext3 (rw,noexec,nosuid,nodev)
/dev/hdc2 on /xen type ext3 (rw) ---> unused yet, figured I would
have xen domains there
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
[root@hive linux-2.6.16.33-xen]# cat /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/1 / ext3 defaults 1 1
LABEL=/backup /backup ext3 defaults 1 2
LABEL=/boot1 /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
LABEL=/tmp1 /tmp ext3
rw,noexec,nosuid,nodev 1 2
LABEL=/xen /xen ext3 defaults 1 2
LABEL=SWAP-hda2 swap swap defaults 0 0
/dev/hdd /media/cdrom auto
pamconsole,exec,noauto,managed 0 0
[root@hive linux-2.6.16.33-xen]# ls -al /boot
total 15290
drwxr-xr-x 4 root root 1024 Jan 19 20:05 .
drwxr-xr-x 25 root root 4096 Jan 20 06:19 ..
-rw-rw-r-- 1 root root 60926 Jan 19 19:52 config-2.6.16.33-xen
-rw-r--r-- 1 root root 50337 Oct 6 13:15 config-2.6.9-42.0.3.EL
-rw-r--r-- 1 root root 50333 Aug 12 16:33 config-2.6.9-42.EL
drwxr-xr-x 2 root root 1024 Jan 19 20:06 grub
-rw-r--r-- 1 root root 392956 Jan 19 22:19 initrd-2.6.16.33-xen.img
-rw-r--r-- 1 root root 398479 Jan 19 14:19 initrd-2.6.9-42.0.3.EL.img
-rw-r--r-- 1 root root 398360 Jan 19 11:36 initrd-2.6.9-42.EL.img
drwx------ 2 root root 12288 Jan 19 12:34 lost+found
-rw-r--r-- 1 root root 9371 Aug 13 00:02 message
-rw-r--r-- 1 root root 9371 Aug 13 00:02 message.ja
-rw-rw-r-- 1 root root 741061 Jan 19 19:52 System.map-2.6.16.33-xen
-rw-r--r-- 1 root root 749489 Oct 6 13:15 System.map-2.6.9-42.0.3.EL
-rw-r--r-- 1 root root 749462 Aug 12 16:33 System.map-2.6.9-42.EL
-rw-r--r-- 1 root root 4029497 Jan 19 19:52 vmlinux-syms-2.6.16.33-xen
-rw-r--r-- 1 root root 1385479 Jan 19 22:19 vmlinuz-2.6.16.33-xen
lrwxrwxrwx 1 root root 21 Jan 19 19:59 vmlinuz-2.6.16-xen ->
vmlinuz-2.6.16.33-xen
-rw-r--r-- 1 root root 1504397 Oct 6 13:15 vmlinuz-2.6.9-42.0.3.EL
-rw-r--r-- 1 root root 1504101 Aug 12 16:33 vmlinuz-2.6.9-42.EL
lrwxrwxrwx 1 root root 21 Jan 19 19:59 vmlinuz-2.6-xen ->
vmlinuz-2.6.16.33-xen
-rw-r--r-- 1 root root 262709 Jan 19 19:17 xen-3.0.4-1.gz
lrwxrwxrwx 1 root root 14 Jan 19 19:59 xen-3.0.gz -> xen-3.0.4-1.gz
lrwxrwxrwx 1 root root 14 Jan 19 19:59 xen-3.gz -> xen-3.0.4-1.gz
lrwxrwxrwx 1 root root 14 Jan 19 19:59 xen.gz -> xen-3.0.4-1.gz
-rw-r--r-- 1 root root 3240774 Jan 19 19:17 xen-syms-3.0.4-1
[root@hive linux-2.6.16.33-xen]# mkinitrd -v -f
/boot/initrd-2.6.16.33-xen.img 2.6.16.33-xen
Creating initramfs
Looking for deps of module ide-disk
Looking for deps of module ext3 jbd
Looking for deps of module jbd
Using modules: ./kernel/fs/jbd/jbd.ko ./kernel/fs/ext3/ext3.ko
/sbin/nash -> /tmp/initrd.GU8321/bin/nash
/sbin/insmod.static -> /tmp/initrd.GU8321/bin/insmod
/sbin/udev.static -> /tmp/initrd.GU8321/sbin/udev
/etc/udev/udev.conf -> /tmp/initrd.GU8321/etc/udev/udev.conf
copy from
/lib/modules/2.6.16.33-xen/./kernel/fs/jbd/jbd.ko(elf32-i386) to
/tmp/initrd.GU8321/lib/jbd.ko(elf32-i386)
copy from
/lib/modules/2.6.16.33-xen/./kernel/fs/ext3/ext3.ko(elf32-i386) to
/tmp/initrd.GU8321/lib/ext3.ko(elf32-i386)
Loading module jbd
Loading module ext3
[root@hive linux-2.6.16.33-xen]# cat /boot/grub/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hda5
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.9-42.0.3.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-42.0.3.EL ro root=LABEL=/1
initrd /initrd-2.6.9-42.0.3.EL.img
title CentOS-4 i386 (2.6.9-42.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-42.EL ro root=LABEL=/1
initrd /initrd-2.6.9-42.EL.img
title CentOS / Xen 3.0 (2.6.16.33-xen_3.0.4.1)
root (hd0,0)
kernel /xen-3.0.gz console=vga dom0_mem=250000 root=/dev/hda5
module /vmlinuz-2.6.16-xen ro console=tty0
module /initrd-2.6.16.33-xen.img
[root@hive linux-2.6.16.33-xen]# ls -al /lib/modules
total 52
drwxr-xr-x 8 root root 4096 Jan 20 08:19 .
drwxr-xr-x 11 root root 4096 Jan 20 07:26 ..
drwxr-xr-x 3 root root 4096 Jan 19 22:18 2.6.16.33-xen
drwxr-xr-x 3 root root 4096 Jan 19 14:20 2.6.9-42.0.3.EL
drwxr-xr-x 2 root root 4096 Jan 19 14:19 2.6.9-42.0.3.ELsmp
drwxr-xr-x 3 root root 4096 Jan 19 11:38 2.6.9-42.EL
drwxr-xr-x 2 root root 4096 Jan 19 14:21 2.6.9-42.ELsmp
drwxr-xr-x 2 root root 4096 Oct 6 13:16 kabi-4.0-0
[root@hive linux-2.6.16.33-xen]# ls -al /lib/modules/2.6.16.33-xen
total 796
drwxr-xr-x 3 root root 4096 Jan 19 22:18 .
drwxr-xr-x 8 root root 4096 Jan 20 08:19 ..
lrwxrwxrwx 1 root root 48 Jan 19 19:59 build ->
/usr/src/xen/xen-3.0.4_1-src/linux-2.6.16.33-xen
drwxr-xr-x 10 root root 4096 Jan 19 22:18 kernel
-rw-r--r-- 1 root root 167872 Jan 19 22:18 modules.alias
-rw-r--r-- 1 root root 69 Jan 19 22:18 modules.ccwmap
-rw-r--r-- 1 root root 117893 Jan 19 22:18 modules.dep
-rw-r--r-- 1 root root 73 Jan 19 22:18 modules.ieee1394map
-rw-r--r-- 1 root root 206 Jan 19 22:18 modules.inputmap
-rw-r--r-- 1 root root 235 Jan 19 22:18 modules.isapnpmap
-rw-r--r-- 1 root root 143333 Jan 19 22:18 modules.pcimap
-rw-r--r-- 1 root root 62777 Jan 19 22:18 modules.symbols
-rw-r--r-- 1 root root 265897 Jan 19 22:18 modules.usbmap
lrwxrwxrwx 1 root root 48 Jan 19 22:18 source ->
/usr/src/xen/xen-3.0.4_1-src/linux-2.6.16.33-xen
Unpacked initrd-2.6.16.33-xen.img init script and contents:
[root@hive imagemount]# cat init
#!/bin/nash
mount -t proc /proc /proc
setquiet
echo Mounted /proc filesystem
echo Mounting sysfs
mount -t sysfs none /sys
echo Creating /dev
mount -o mode=0755 -t tmpfs none /dev
mknod /dev/console c 5 1
mknod /dev/null c 1 3
mknod /dev/zero c 1 5
mkdir /dev/pts
mkdir /dev/shm
echo Starting udev
/sbin/udevstart
echo -n "/sbin/hotplug" > /proc/sys/kernel/hotplug
echo "Loading jbd.ko module"
insmod /lib/jbd.ko
echo "Loading ext3.ko module"
insmod /lib/ext3.ko
/sbin/udevstart
echo Creating root device
mkrootdev /dev/root
umount /sys
echo Mounting root filesystem
mount -o defaults --ro -t ext3 /dev/root /sysroot
mount -t tmpfs --bind /dev /sysroot/dev
echo Switching to new root
switchroot /sysroot
umount /initrd/dev
[root@hive imagemount]# ls *
init
bin:
hotplug insmod modprobe nash udev udevstart
dev:
console null ram systty tty1 tty2 tty3 tty4
etc:
udev
lib:
ext3.ko jbd.ko
loopfs:
proc:
sbin:
hotplug insmod modprobe nash udev udevstart
sys:
sysroot:
[root@hive imagemount]#
This last attempt was done by copying the vanilla .config into
linux-2.6.16.33-xen and building from it:
[root@hive linux-2.6.16.33-xen]# cat .config|grep XEN
CONFIG_X86_XEN=y
CONFIG_PCI_GOXEN_FE=y
CONFIG_XEN_PCIDEV_FRONTEND=y
CONFIG_XEN_PCIDEV_FE_DEBUG=y
CONFIG_XEN=y
CONFIG_XEN_INTERFACE_VERSION=0x00030203
# XEN
CONFIG_XEN_PRIVILEGED_GUEST=y
# CONFIG_XEN_UNPRIVILEGED_GUEST is not set
CONFIG_XEN_PRIVCMD=y
CONFIG_XEN_XENBUS_DEV=y
CONFIG_XEN_BACKEND=y
CONFIG_XEN_BLKDEV_BACKEND=y
CONFIG_XEN_BLKDEV_TAP=y
CONFIG_XEN_NETDEV_BACKEND=y
# CONFIG_XEN_NETDEV_PIPELINED_TRANSMITTER is not set
CONFIG_XEN_NETDEV_LOOPBACK=y
CONFIG_XEN_PCIDEV_BACKEND=y
CONFIG_XEN_PCIDEV_BACKEND_VPCI=y
# CONFIG_XEN_PCIDEV_BACKEND_PASS is not set
# CONFIG_XEN_PCIDEV_BACKEND_SLOT is not set
CONFIG_XEN_PCIDEV_BE_DEBUG=y
CONFIG_XEN_TPMDEV_BACKEND=y
CONFIG_XEN_BLKDEV_FRONTEND=y
CONFIG_XEN_NETDEV_FRONTEND=y
CONFIG_XEN_FRAMEBUFFER=y
CONFIG_XEN_KEYBOARD=y
CONFIG_XEN_SCRUB_PAGES=y
# CONFIG_XEN_DISABLE_SERIAL is not set
CONFIG_XEN_SYSFS=y
CONFIG_XEN_COMPAT_030002_AND_LATER=y
# CONFIG_XEN_COMPAT_LATEST_ONLY is not set
CONFIG_XEN_COMPAT_030002=y
CONFIG_XEN_UTIL=y
CONFIG_XEN_BALLOON=y
CONFIG_XEN_DEVMEM=y
CONFIG_XEN_SKBUFF=y
CONFIG_XEN_REBOOT=y
-------------------------------------------------------------------------------------------
Whatever I do, pretty much same error(s):
mount error 6 mounting ext3
mount error 3 mounting none
switchroot mount failed 22
umount /initrd/dev failed
What am I doing wrong/missing to do? I may switch to Promise SATA +
SATA disks at some point, but I need to make it work on those plain
old ATAs to begin with.
I apologize for a long post to the list, I thought all that info may
be important. If additional info needed , please let me know.
If someone would be so kind to take a look and advise me on this, I
would really be grateful (not to mention saved :) )
Thanks in advance,
Boris
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.1/640 - Release Date: 19.1.2007 16:46
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|