I am using Xen 3.3 from source.
My PV guest boots fine with the normal kernel and initrd options
When I boot the guest with PV GRUB I only get:
GNU GRUB version 0.97 (65536K lower / 0K upper memory)
[ Minimal BASH-like line editing is supported. For
the first word, TAB lists possible command
completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grubdom>
Normally in this situation I would do one of the following:
a)
root (hd0,1)
setup (hd0)
boot (or quit)
In this case however setup and quit are unknown commands.
Is that expected?
b)
kernel (hd0,1)/boot/vmlinuz-2.6.18.8-xen
initrd (hd0,1)/boot/initrd.img-2.6.18.8-xen
boot
In this case, I get
Page fault in pagetable walk (access to invalid memory?).
I get dropped back to the dom0 command line and the guest is still running
xm console guest bring me to a grubdom> prompt.
If I only specify a kernel, i.e.
kernel (hd0,1)/boot/vmlinuz-2.6.18.8-xen
boot
It starts booting the kernel, but gets stuck during the boot process at:
rtc: IRQ 8 is not free.
Non-volatile memory driver v1.2
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
loop: loaded (max 8 devices)
Xen virtual console successfully installed as xvc0
Event-channel device installed.
netfront: Initialising virtual ethernet driver.
xen-vbd: registered block device major 3
hda:
(Full boot output included below ***)
Below is all the relevant information that I could think of.
Any ideas on the best way to troubleshoot?
Thanks in advance.
Cheers,
Todd
APPENDIX OF TROUBLESHOOTING INFO
The disk image was created with dd and the partitions were made with
parted --script <disk image> <commands>
# fdisk -l output
fdisk -l /root/benchvm/bin/img-xen-guest/image-0.img
You must set cylinders.
You can do this from the extra functions menu.
Disk /root/benchvm/bin/img-xen-guest/image-0.img: 0 MB, 0 bytes
4 heads, 32 sectors/track, 0 cylinders
Units = cylinders of 128 * 512 = 65536 bytes
Disk identifier: 0x00019635
Device Boot Start
End Blocks Id System
/root/benchvm/bin/img-xen-guest/image-0.img1 1
7813 500016 82 Linux swap / Solaris
Partition 1 has different physical/logical endings:
phys=(1023, 3, 32) logical=(7812, 3, 32)
/root/benchvm/bin/img-xen-guest/image-0.img2 7814
76406 4389952 83 Linux
Partition 2 has different physical/logical beginnings (non-Linux?):
phys=(1023, 3, 32) logical=(7813, 0, 1)
Partition 2 has different physical/logical endings:
phys=(1023, 3, 32) logical=(76405, 3, 32)
#pygrub try
pygrub /root/benchvm/bin/img-xen-guest/image-0.img
Traceback (most recent call last):
File "/usr/bin/pygrub", line 655, in <module>
fs = fsimage.open(file, get_fs_offset(file))
File "/usr/bin/pygrub", line 117, in get_fs_offset
offset += get_solaris_slice(file, offset)
File "/usr/bin/pygrub", line 80, in get_solaris_slice
raise RuntimeError, "Invalid disklabel magic"
RuntimeError: Invalid disklabel magic
My guest config:
kernel = "/usr/lib64/xen/boot/pv-grub-x86_64.gz"
extra = "(hd0,1)/boot/grub/menu.lst"
memory = 64
vif = [ '' ]
disk = [ 'tap:aio:/root/benchvm/bin/img-xen-guest/image-0.img,hda,w' ]
root = "/dev/hda2 ro"
My grub config file
default 0
timeout 3
title Ubuntu 8.04, kernel 2.6.27-rc4 Default
root (hd0,1)
kernel /boot/vmlinuz root=UUID=d301f12e-0d78-416d-8946-a091291fffe7
ro quiet splash
quiet
title Ubuntu 8.04, kernel 2.6.24-16-xen
root (hd0,1)
kernel /boot/vmlinuz-2.6.24-16-xen
root=UUID=d301f12e-0d78-416d-8946-a091291fffe7 ro quiet splash
initrd /boot/initrd.img-2.6.24-16-xen
quiet
title Ubuntu 8.04, kernel 2.6.18.8-xen
root (hd0,1)
kernel /boot/vmlinuz-2.6.18.8-xen
root=UUID=d301f12e-0d78-416d-8946-a091291fffe7 ro quiet splash
initrd /boot/initrd.img-2.6.18.8-xen
quiet
***Full boot outuput from only using kernel, then boot on grubdom prompt
close blk: backend at /local/domain/0/backend/tap/30/768
WARNING: g.e. still in use! (19)
Bootdata ok (command line is )
Linux version 2.6.18.8-xen (root@test1) (gcc version 4.2.3 (Ubuntu
4.2.3-2ubuntu7)) #1 SMP Sun Aug 24 22:15:44 EDT 2008
BIOS-provided physical RAM map:
Xen: 0000000000000000 - 0000000004800000 (usable)
No mptable found.
Built 1 zonelists. Total pages: 17147
Kernel command line:
Initializing CPU#0
PID hash table entries: 512 (order: 9, 4096 bytes)
Xen reported: 2393.998 MHz processor.
Console: colour dummy device 80x25
Dentry cache hash table entries: 16384 (order: 5, 131072 bytes)
Inode-cache hash table entries: 8192 (order: 4, 65536 bytes)
Software IO TLB disabled
Memory: 60064k/73728k available (2022k kernel code, 5412k reserved,
873k data, 176k init)
Calibrating delay using timer specific routine.. 4788.99 BogoMIPS (lpj=23944986)
Security Framework v1.0.0 initialized
Capability LSM initialized
Mount-cache hash table entries: 256
, L1 D cache: 32K
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
SMP alternatives: switching to UP code
Freeing SMP alternatives: 28k freed
Brought up 1 CPUs
migration_cost=0
NET: Registered protocol family 16
Brought up 1 CPUs
PCI: setting up Xen PCI frontend stub
ACPI: Interpreter disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI: disabled
suspend: event channel 6
xen_mem: Initialising balloon driver.
PCI: System does not support PCI
PCI: System does not support PCI
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 1, 8192 bytes)
TCP established hash table entries: 4096 (order: 4, 65536 bytes)
TCP bind hash table entries: 2048 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 4096 bind 2048)
TCP reno registered
IA-32 Microcode Update Driver: v1.14a-xen <tigran@xxxxxxxxxxx>
audit: initializing netlink socket (disabled)
audit(1219780377.445:1): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
rtc: IRQ 8 is not free.
Non-volatile memory driver v1.2
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
loop: loaded (max 8 devices)
Xen virtual console successfully installed as xvc0
Event-channel device installed.
netfront: Initialising virtual ethernet driver.
xen-vbd: registered block device major 3
hda:
--
Todd Deshane
http://todddeshane.net
check out our book: http://runningxen.com
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|