Skip to contentSkip to conversation

pv_ops dom0 testing

DISCUSSION Todd Deshane 3 participants 7 messages Nov 29, 2008 – Dec 2, 2008

lore
Share & tools
lore
#0 lore raw

I am trying to get a pv_ops dom0 working for testing, but I am running into an elf_init error:

(XEN) *** LOADING DOMAIN 0 ***
(XEN) elf_init: not an ELF binary

Full output attached.

Quoted 1 line

From what I have read on the mailing lists, it seems

that it is usually a problem with either grub or a corrupt dom0 kernel.

Attached is my kernel config (2.6.28-rc6-tip).

I followed the instructions on:
http://wiki.xensource.com/xenwiki/XenParavirtOps

Then I did make menuconfig and added:
XEN_DOM0
XEN_BLKDEV_BACKEND

here are the two grub entries I tried

title Xen 3.4-unstable / Ubuntu 8.10, kernel 2.6.28-rc6-tip
root (hd0,0)
kernel /boot/xen-3.4-unstable.gz loglvl=all guest_loglvl=all
dom0_max_vcpus=1 com1=115200,8n1 console=com1 noreboot dom0_mem=512M
module /boot/vmlinuz-2.6.28-rc6-tip root=/dev/sda1 ro console=tty0
xencons=ttyS0,115200
module /boot/initrd.img-2.6.28-rc6-tip

title Xen 3.4-unstable / Ubuntu 8.10, kernel 2.6.28-rc6-tip
uuid 30596923-1435-4516-809d-ef8cd2958532
kernel /boot/xen-3.4-unstable.gz
module /boot/vmlinuz-2.6.28-rc6-tip
root=UUID=30596923-1435-4516-809d-ef8cd2958532 ro console=tty0
module /boot/initrd.img-2.6.28-rc6-tip

The error was reported by others (unanswered), but they might be unrelated:
http://xen.markmail.org/message/grqiejrlax6tyutn?q=elf_init
http://xen.markmail.org/message/r5y32q5yyuv4okgj?q=elf_init

Any suggestions on what went wrong and/or what else to try?

Cheers,
Todd

--
Todd Deshane
http://todddeshane.net
http://runningxen.com

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw

I had the same issue few days ago: try to boot the vmlinux (and not vmlinuz) image that you can find in your kernel build directory. You can verify that you are booting the right image file by using the readelf tool.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Todd Deshane
Sent: Saturday, November 29, 2008 11:09 PM
To: xen-devel mailing list
Subject: [Xen-devel] pv_ops dom0 testing

I am trying to get a pv_ops dom0 working for testing, but I am running into an elf_init error:

(XEN) *** LOADING DOMAIN 0 ***
(XEN) elf_init: not an ELF binary

Full output attached.

Quoted 1 line

From what I have read on the mailing lists, it seems

that it is usually a problem with either grub or a corrupt dom0 kernel.

Attached is my kernel config (2.6.28-rc6-tip).

I followed the instructions on:
http://wiki.xensource.com/xenwiki/XenParavirtOps

Then I did make menuconfig and added:
XEN_DOM0
XEN_BLKDEV_BACKEND

here are the two grub entries I tried

title Xen 3.4-unstable / Ubuntu 8.10, kernel 2.6.28-rc6-tip
root (hd0,0)
kernel /boot/xen-3.4-unstable.gz loglvl=all guest_loglvl=all
dom0_max_vcpus=1 com1=115200,8n1 console=com1 noreboot dom0_mem=512M
module /boot/vmlinuz-2.6.28-rc6-tip root=/dev/sda1 ro
console=tty0
xencons=ttyS0,115200
module /boot/initrd.img-2.6.28-rc6-tip

title Xen 3.4-unstable / Ubuntu 8.10, kernel 2.6.28-rc6-tip
uuid 30596923-1435-4516-809d-ef8cd2958532
kernel /boot/xen-3.4-unstable.gz
module /boot/vmlinuz-2.6.28-rc6-tip
root=UUID=30596923-1435-4516-809d-ef8cd2958532 ro console=tty0
module /boot/initrd.img-2.6.28-rc6-tip

The error was reported by others (unanswered), but they might be unrelated:
http://xen.markmail.org/message/grqiejrlax6tyutn?q=elf_init
http://xen.markmail.org/message/r5y32q5yyuv4okgj?q=elf_init

Any suggestions on what went wrong and/or what else to try?

Cheers,
Todd

--
Todd Deshane
http://todddeshane.net
http://runningxen.com

#2 lore raw
Quoted 5 lines · Aviv Grafi

I had the same issue few days ago: try to boot the vmlinux (and not vmlinuz) image that you can find in your kernel build directory. You can verify that you are booting the right image file by using the readelf tool.

Thanks for the tip Aviv. That got me a little farther.

The debug output now ends with:
(XEN) ioapic_guest_write: apic=0, pin=4, old_irq=4, new_irq=4 (XEN) ioapic_guest_write: old_entry=000009f1, new_entry=000189f1 (XEN) ioapic_guest_write: Attempt to modify IO-APIC pin for in-use IRQ!

Full output attached.

Do I need to either modify more of the default kernel settings or pass some more options to Xen or the dom0 kernel?

When running non-debug mode, I don't see any dom0 output on the screen,. I tried a few different console= lines
tty0, xvc0, hvc0.... but only Xen hypervisor output ending with:
(XEN) Xen is relinquishing VGA console

Can someone post a working .config and grub config and/or the instructions to get to that point beyond the default setup?

Cheers,
Todd

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#3 lore raw

I solved this one by adding "console=hvc0 earlyprintk=xen" to the dom0 kernel boot line (thanks to Jeremy Fitzhardinge [[email protected]]).

-----Original Message-----
From: Todd Deshane [mailto:[email protected]]
Sent: Sunday, November 30, 2008 12:16 AM
To: xen-devel mailing list
Cc: Aviv Grafi
Subject: Re: [Xen-devel] pv_ops dom0 testing

Quoted 5 lines · Aviv Grafi

I had the same issue few days ago: try to boot the vmlinux (and not vmlinuz) image that you can find in your kernel build directory. You can verify that you are booting the right image file by using the readelf tool.

Thanks for the tip Aviv. That got me a little farther.

The debug output now ends with:
(XEN) ioapic_guest_write: apic=0, pin=4, old_irq=4, new_irq=4 (XEN) ioapic_guest_write: old_entry=000009f1, new_entry=000189f1 (XEN) ioapic_guest_write: Attempt to modify IO-APIC pin for in-use IRQ!

Full output attached.

Do I need to either modify more of the default kernel settings or pass some more options to Xen or the dom0 kernel?

When running non-debug mode, I don't see any dom0 output on the screen,. I tried a few different console= lines
tty0, xvc0, hvc0.... but only Xen hypervisor output ending with:
(XEN) Xen is relinquishing VGA console

Can someone post a working .config and grub config and/or the instructions to get to that point beyond the default setup?

Cheers,
Todd

#4 lore raw
Quoted 2 lines · Aviv Grafi

I solved this one by adding "console=hvc0 earlyprintk=xen" to the dom0 kernel boot line (thanks to Jeremy Fitzhardinge [[email protected]]).

Thanks again Aviv. I am really close now. The screen still shows nothing, but the debug output has the dom0 kernel boot.
(Not sure why that would be... any thoughts?)

In the debug output however I successfully get to the the (initramfs) prompt.

Full output attached, but some interesting parts inline:

(initramfs)cat /proc/cmdline
root=/dev/sda1 ro console=tty0 xencons=ttyS0,115200 console=hvc0 earlyprintk=xen

(initramfs) cat /proc/modules
ata_piix 33586 1 - Loading 0xffffffffa0127000 libata 196576 1 ata_piix, Live 0xffffffffa00f5000 scsi_mod 184792 1 libata, Live 0xffffffffa00c5000 r8169 46084 0 - Live 0xffffffffa00b7000
mii 14464 1 r8169, Live 0xffffffffa00b1000
tg3 139396 0 - Live 0xffffffffa008c000
libphy 32896 1 tg3, Live 0xffffffffa007e000 ehci_hcd 46726 1 - Loading 0xffffffffa0070000 uhci_hcd 34037 1 - Loading 0xffffffffa0062000 usbcore 174512 3 ehci_hcd,uhci_hcd, Live 0xffffffffa0035000 thermal 27552 0 - Live 0xffffffffa002c000 processor 55224 1 thermal, Live 0xffffffffa0019000 fan 13832 0 - Live 0xffffffffa0013000
fuse 65728 1 - Live 0xffffffffa0000000

a listing of /dev doesn't show any sd* devices.

So I am guessing I am running into a driver issue at this point. I will dig around more and compare my working vanilla linux config with the dom0 kernel to see if there is something missing in my dom0 kernel.

Thanks for the help so far and if anything comes to mind why I don't see console output on the screen (and only in the debug output) that would be helpful to me.

I'll report back on progress.

If there are any obvious known workarounds, problems, bugs etc. let me know. I know that the pv_ops dom0 kernel is very much in development, but I am willing to try to work through that.

Cheers,
Todd

Signature · 3 lines
Todd Deshane
http://todddeshane.net
http://runningxen.com

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#5 lore raw
Quoted 34 lines · Todd Deshane
Quoted 3 lines · Aviv Grafi

I solved this one by adding "console=hvc0 earlyprintk=xen" to the dom0 kernel boot line (thanks to Jeremy Fitzhardinge [[email protected]]).

Thanks again Aviv. I am really close now. The screen still shows nothing, but the debug output has the dom0 kernel boot.
(Not sure why that would be... any thoughts?)

In the debug output however I successfully get to the the (initramfs) prompt.

Full output attached, but some interesting parts inline:

(initramfs)cat /proc/cmdline
root=/dev/sda1 ro console=tty0 xencons=ttyS0,115200 console=hvc0 earlyprintk=xen

(initramfs) cat /proc/modules
ata_piix 33586 1 - Loading 0xffffffffa0127000 libata 196576 1 ata_piix, Live 0xffffffffa00f5000 scsi_mod 184792 1 libata, Live 0xffffffffa00c5000 r8169 46084 0 - Live 0xffffffffa00b7000
mii 14464 1 r8169, Live 0xffffffffa00b1000
tg3 139396 0 - Live 0xffffffffa008c000
libphy 32896 1 tg3, Live 0xffffffffa007e000 ehci_hcd 46726 1 - Loading 0xffffffffa0070000 uhci_hcd 34037 1 - Loading 0xffffffffa0062000 usbcore 174512 3 ehci_hcd,uhci_hcd, Live 0xffffffffa0035000 thermal 27552 0 - Live 0xffffffffa002c000 processor 55224 1 thermal, Live 0xffffffffa0019000 fan 13832 0 - Live 0xffffffffa0013000
fuse 65728 1 - Live 0xffffffffa0000000

Quoted 2 lines

a listing of /dev doesn't show any sd* devices.

What's your scsi host controller?

USB is known to have problems, so I generally disable it for now, until I've worked out what's failing. You have an oops in your trace which could be leaving other things in a bad state.

Quoted 5 lines

So I am guessing I am running into a driver issue at this point. I will dig around more and compare my working vanilla linux config with the dom0 kernel to see if there is something missing in my dom0 kernel.

Yes, that would be interesting to compare.

Quoted 10 lines

Thanks for the help so far and if anything comes to mind why I don't see console output on the screen (and only in the debug output) that would be helpful to me.

I'll report back on progress.

If there are any obvious known workarounds, problems, bugs etc. let me know. I know that the pv_ops dom0 kernel is very much in development, but I am willing to try to work through that.

Thanks for playing with this.

J

#6 lore raw

What's your scsi host controller?

Quoted 1 line

The disk controller is just onboard SATA (a dell optiplex 745) from lspci:
IDE interface: Intel Corporation 82801H (ICH8 Family) 4 port SATA IDE
Controller
Full lspci from the working ubuntu linux kernel attached.

Quoted 4 lines

USB is known to have problems, so I generally disable it for now, until I've worked out what's failing. You have an oops in your trace which could be leaving other things in a bad state.

I can't disable USB completely since the system I am using doesn't have any PS/2 ports.
I did a test boot without USB

I built a fresh kernel, since I got the previous one in a really bad state, but the new
kernel I just built is not doing well either.

I just did a defconfig + all the xen options

Attached is 4 boot attempts, all with nousb, and also trying to disable the usb in the
2nd and 3rd and turning USB back on in the 4th.

Quoted 10 lines

So I am guessing I am running into a driver issue at this

Quoted 5 lines

point. I will dig around more and compare my working vanilla linux config with the dom0 kernel to see if there is something missing in my dom0 kernel.

Yes, that would be interesting to compare.

I still need to look at this more closely and build the kernel more carefully based on a working one.

Thanks for playing with this.

Quoted 3 lines

J

I still got a lot more testing I can do tomorrow.
I'll keep in touch and thanks for your efforts
on the pv_ops dom0 kernel

Cheers,
Todd

Signature · 3 lines
Todd Deshane
http://todddeshane.net
http://runningxen.com

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel