WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] PV Grub Questions

To: "xen-devel mailing list" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] PV Grub Questions
From: "Todd Deshane" <deshantm@xxxxxxxxx>
Date: Tue, 26 Aug 2008 15:57:50 -0400
Delivery-date: Tue, 26 Aug 2008 12:58:35 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :to:subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=BAGWFoRiyuZWOCNJBQoDMXJFlLUV4NYKiMTp6L6Yu5U=; b=QKOqkaxV/jHBVNa6hkRQeIjgYkBSKfaZqJu/o9YyEinm9L8ZVX+3rgFfdNrZl1wOtS I7/BD3ad+8vg6Qq7w1RIizM+MMZyZyrzU6Fn+9TDf3+Ec5w/wSUBOU1a478NtdhfIpc+ iOr9HdXMfDrKJFn0H/Zx0OWYiykYnyd/CiOgQ=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=nKXDTNxCHr51AdQm/FkbstsbxRotI7SH+h/f5eeQTl6YchzQcpJ4ssF01GQOHQQqbL J8AbfIZkZP8WAV0tw19SGFzzKHg+Q6kPFAekHYz5F9wZ1xGVYqpJ6onwhFZTl4RFsjwt Nt2ShJrL8w5b7m9YmmEKBp9z2YU1y51Hn8UOA=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Reply-to: deshantm@xxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>