You are not logged in.

#1 2011-08-05 22:56:36

kuba_g
Member
Registered: 2010-08-29
Posts: 4

Xen 4.1 dom0 fails to boot

Hi!

I want to setup Xen 4.1.1 with HVM support. I have a suitable processor, with vmx support. I've compiled Xen package from aur without problems, and I've also compiled as usually custom kernel with xen support as is written in arch wiki pages. I've created new entry in /boot/grub/menu.lst:

title Arch Linux and Xen 4.1
root (hd0,0)
kernel /boot/xen-4.1.1.gz 
module /boot/linux3s root=/dev/sda1 ro
module /boot/linux3s.img

linux3s is kernel 3.0 stable.

But Xen Dom0 fails to boot:

(XEN) *** LOADING DOMAIN 0 ***
(XEN) elf_init: not an ELF binary
(XEN)
(XEN) ****************************************
(XEN) Panic on CPU 0:
(XEN) Could not set up DOM0 guest OS
(XEN) ****************************************

Any Suggestions?

Offline

#2 2011-08-08 01:44:17

BeholdMyGlory
Member
Registered: 2008-08-30
Posts: 93

Re: Xen 4.1 dom0 fails to boot

Having the same problem, except I'm using the vanilla 3.0 kernel from [core]. Linux 3.0 is supposed to have Xen support as far as I know.

My menu.lst entry:

title  Arch Linux with Xen
root   (hd0,4)
kernel /xen-4.1.1.gz dom0_mem=524288
module /vmlinuz26 root=/dev/disk/by-uuid/4c60f76c-0001-498b-b226-f1c633d0dda7 ro
module /kernel26.img

Just like you I get:

(XEN) *** LOADING DOMAIN 0 ***
(XEN) elf_init: not an ELF binary
(XEN)
(XEN) ****************************************
(XEN) Panic on CPU 0:
(XEN) Could not set up DOM0 guest OS
(XEN) ****************************************
(XEN)
(XEN) Reboot in five seconds...

Offline

#3 2011-08-08 01:53:49

djgera
Developer
From: Buenos Aires - Argentina
Registered: 2008-12-24
Posts: 723
Website

Re: Xen 4.1 dom0 fails to boot

boot vmlinux (ELF) not vmlinuz (compressed ELF + other things)

Offline

#4 2011-08-08 09:47:49

crashbit
Member
Registered: 2010-12-14
Posts: 4

Re: Xen 4.1 dom0 fails to boot

Hey!

I have same problem with x86_64, xen-4.4.1 compiled from AUR, grub2, kernel 3.0 (core)
I read kernel config file and Dom0 support are enabled by default.


[crashbit@sun ~]$ readelf -h /boot/vmlinuz-linux
readelf: Error: Unable to read in 0x7269 bytes of section headers
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start


[crashbit@sun boot]$ file /boot/vmlinuz-linux
/boot/vmlinuz-linux: Linux kernel x86 boot executable bzImage, version 3.0-ARCH (thomas@evey) #1 SMP PREEMPT Sat Aug 6 16:18:35 CEST 2, RO-rootFS, swap_dev 0x2, Normal VGA

Finally, copy the /usr/src/linux-3.0-ARCH/vmlinux to /boot/vmlinux-linux and change the grub.cfg menuentry.

Work well, but problems with vga, not supported

Last edited by crashbit (2011-08-08 11:04:56)

Offline

#5 2011-08-11 13:41:07

crashbit
Member
Registered: 2010-12-14
Posts: 4

Re: Xen 4.1 dom0 fails to boot

The 3.0 kernel has everything I need for domain-0, but the stock Arch images is XZ-compressed, which is not supported in Xen 4.1.
The following patches adds support for this, they are based on the commit introducing XZ-support in xen-unstable.hg (which can be found here: http://xenbits.xensource.com/hg/xen-uns … b9948904cd

Offline

Board footer

Powered by FluxBB