Debian Bug report logs - #472584
linux-image-2.6.24-1-xen-686: Doesn't work as DomU

Package: linux-2.6; Maintainer for linux-2.6 is Debian Kernel Team <debian-kernel@lists.debian.org>;

Reported by: Russell Coker <russell@coker.com.au>

Date: Tue, 25 Mar 2008 02:00:02 UTC

Severity: normal

Tags: moreinfo

Done: Bastian Blank <waldi@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#472584; Package linux-image-2.6.24-1-xen-686. Full text and rfc822 format available.

Acknowledgement sent to Russell Coker <russell@coker.com.au>:
New Bug report received and forwarded. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Russell Coker <russell@coker.com.au>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: linux-image-2.6.24-1-xen-686: Doesn't work as DomU
Date: Tue, 25 Mar 2008 12:40:59 +1100
Package: linux-image-2.6.24-1-xen-686
Version: 2.6.24-4
Severity: important

When I try to use it as a DomU (with 2.6.18-6-xen-686 from Etch as Dom0) it
doesn't boot.  Nothing is displayed on the console and nothing appears to
happen, it uses a small amount of CPU time and does nothing else.

I have a DomU that I have tested with both 2.6.18-6-xen-686 and
linux-image-2.6.24-1-xen-686 as the kernel, with 2.6.18-6-xen-686 it works
but with linux-image-2.6.24-1-xen-686 it doesn't.

The command "xm dmesg" includes the following in it's output, not sure if it's
relevant:
(XEN) traps.c:1946:d12 Domain attempted WRMSR 00000404 from 00000000:00000001 to ffffffff:ffffffff.
(XEN) traps.c:1946:d12 Domain attempted WRMSR 00000408 from 00344600:00344600 to ffffffff:ffffffff.
(XEN) traps.c:1946:d12 Domain attempted WRMSR 0000040c from 00000000:00000001 to ffffffff:ffffffff.
(XEN) traps.c:1946:d12 Domain attempted WRMSR 00000410 from 00000008:00000008 to ffffffff:ffffffff.
(XEN) traps.c:1946:d12 Domain attempted WRMSR 00000401 from 10000000:00000000 to 00000000:00000000.
(XEN) traps.c:1946:d12 Domain attempted WRMSR 00000411 from 22000000:00000011 to 00000000:00000000.

Here is the "xm info" output:
host                   : unstable0
release                : 2.6.18-6-xen-686
version                : #1 SMP Sun Feb 10 22:43:13 UTC 2008
machine                : i686
nr_cpus                : 1
nr_nodes               : 1
cores_per_socket       : 1
threads_per_core       : 1
cpu_mhz                : 1102
hw_caps                : 0383fbff:00000000:00000000:00000040
total_memory           : 503
free_memory            : 162
node_to_cpu            : node0:0
xen_major              : 3
xen_minor              : 2
xen_extra              : -1
xen_caps               : xen-3.0-x86_32p
xen_scheduler          : credit
xen_pagesize           : 4096
platform_params        : virt_start=0xf5800000
xen_changeset          : unavailable
cc_compiler            : gcc version 4.2.3 (Debian 4.2.3-1)
cc_compile_by          : waldi
cc_compile_domain      : debian.org
cc_compile_date        : Tue Feb 19 00:26:54 UTC 2008
xend_config_format     : 4




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#472584; Package linux-image-2.6.24-1-xen-686. Full text and rfc822 format available.

Acknowledgement sent to Barry Tennison <barry@ukph.org>:
Extra info received and forwarded to list. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>. Full text and rfc822 format available.

Message #10 received at 472584@bugs.debian.org (full text, mbox):

From: Barry Tennison <barry@ukph.org>
To: 472584@bugs.debian.org
Subject: Confirming linux-image-2.6.24-1-xen-686: Doesn't work as DomU
Date: Sun, 30 Mar 2008 18:52:52 +0000
I can confirm Russell Coker's report of 25 Mar 2008 in almost exactly the same detail.

linux-image-2.6.24-1-xen-686 does not work as a domU (nor as a dom0) for me in a setup where 2.6.18-5-xen-686 works fine as a domU kernel (and is also the dom0 kernel).

The extra I can add is that 2.6.24-1-xen-686 fails for me as a domU kernel with
    xen-hypervisor-3.1-1-i386
as the hypervisor.  I haven't (yet) been able to make
    xen-hypervisor-3.2-1-i386
work as a hypervisor within a debian lenny setup.

This is on a k7 machine with 1G of ram, if that matters.

My xm info (for a working setup) says:
host                   : genji(...snip...)
release                : 2.6.18-5-xen-686
version                : #1 SMP Mon Dec 24 20:49:58 UTC 2007
machine                : i686
nr_cpus                : 1
nr_nodes               : 1
sockets_per_node       : 1
cores_per_socket       : 1
threads_per_core       : 1
cpu_mhz                : 2200
hw_caps                : 0383fbff:c1c3fbff:00000000:00000020
total_memory           : 1023
free_memory            : 62
xen_major              : 3
xen_minor              : 1
xen_extra              : -1
xen_caps               : xen-3.0-x86_32p 
xen_scheduler          : credit
xen_pagesize           : 4096
platform_params        : virt_start=0xf5800000
xen_changeset          : unavailable
cc_compiler            : gcc version 4.2.3 20071123 (prerelease) (Debian 4.2.2-4)
cc_compile_by          : waldi
cc_compile_domain      : debian.org
cc_compile_date        : Sat Dec  8 12:17:56 UTC 2007
xend_config_format     : 4




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#472584; Package linux-image-2.6.24-1-xen-686. Full text and rfc822 format available.

Acknowledgement sent to Bastian Blank <waldi@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>. Full text and rfc822 format available.

Message #15 received at 472584@bugs.debian.org (full text, mbox):

From: Bastian Blank <waldi@debian.org>
To: 472584@bugs.debian.org
Subject: Bug#472584
Date: Sun, 30 Mar 2008 19:55:05 +0200
severity 472584 normal
tags 472584 moreinfo
thanks

I think you know how to report bugs. Pardon, this does not even include
the minimal information to say anything, e.g. the kernel command line as
specified in the xen config file. From the symptoms I would say you want
to check that command line, it needs to include console=hvc0.

Bastian

-- 
The man on tops walks a lonely street; the "chain" of command is often a noose.




Severity set to `normal' from `important' Request was from Bastian Blank <waldi@debian.org> to control@bugs.debian.org. (Sun, 30 Mar 2008 17:57:05 GMT) Full text and rfc822 format available.

Tags added: moreinfo Request was from Bastian Blank <waldi@debian.org> to control@bugs.debian.org. (Sun, 30 Mar 2008 17:57:06 GMT) Full text and rfc822 format available.

Message sent on to Russell Coker <russell@coker.com.au>:
Bug#472584. Full text and rfc822 format available.

Message #22 received at 472584-submitter@bugs.debian.org (full text, mbox):

From: Bastian Blank <waldi@debian.org>
To: 472584-submitter@bugs.debian.org
Subject: Bug#472584
Date: Sun, 30 Mar 2008 19:57:58 +0200
severity 472584 normal
tags 472584 moreinfo
thanks

I think you know how to report bugs. Pardon, this does not even include
the minimal information to say anything, e.g. the kernel command line as
specified in the xen config file. From the symptoms I would say you want
to check that command line, it needs to include console=hvc0.

Bastian

-- 
The man on tops walks a lonely street; the "chain" of command is often a noose.




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#472584; Package linux-image-2.6.24-1-xen-686. Full text and rfc822 format available.

Acknowledgement sent to russell@coker.com.au:
Extra info received and forwarded to list. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>. Full text and rfc822 format available.

Message #27 received at 472584@bugs.debian.org (full text, mbox):

From: Russell Coker <russell@coker.com.au>
To: Bastian Blank <waldi@debian.org>, 472584@bugs.debian.org
Subject: Re: Bug#472584:
Date: Mon, 31 Mar 2008 09:11:38 +1100
On Monday 31 March 2008 04:57, Bastian Blank <waldi@debian.org> wrote:
> I think you know how to report bugs. Pardon, this does not even include
> the minimal information to say anything, e.g. the kernel command line as
> specified in the xen config file. From the symptoms I would say you want
> to check that command line, it needs to include console=hvc0.

I think it's reasonable to expect a Lenny kernel to work in the same manner as 
an Etch kernel and to consider any failure to do so to be a bug.

kernel = "/boot/vmlinuz-2.6.24-1-xen-686"
ramdisk = "/boot/initrd.img-2.6.24-1-xen-686"
memory = 100
name = "play-test"
vif = [ 'mac=00:16:3e:66:66:69, bridge=xenbr0' ]
disk = [ 'phy:/dev/play0/play-snap,hda,w' ]
root = "/dev/hda ro"
extra = "2 audit=1 selinux=1 enforcing=1"

The above is what I was using.  I added the "console=hvc0" bit as you 
suggested (why is that needed?) and it displayed some console messages, but 
couldn't find /dev/hda.  I changed it to /dev/xvda with the following and it 
still didn't work:

disk = [ 'phy:/dev/play0/play-snap,xvda,w' ]
root = "/dev/xvda ro"
extra = "2 audit=1 selinux=1 enforcing=1 console=hvc0"

Here is the last section of the console output:

mount: Mounting /dev/xvda on /root failed: No such device
Begin: Running /scripts/local-bottom ...
Done.
Done.
Begin: Running /scripts/init-bottom ...
mount: Mounting /root/dev on /dev/.static/dev failed: No such file or 
directory
Done.
mount: Mounting /sys on /root/sys failed: No such file or directory
mount: Mounting /proc on /root/proc failed: No such file or directory
Target filesystem doesn't have /sbin/init.
No init found. Try passing init= bootarg.


BusyBox v1.1.3 (Debian 1:1.1.3-5) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

/bin/sh: can't access tty; job control turned off
(initramfs)




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#472584; Package linux-image-2.6.24-1-xen-686. Full text and rfc822 format available.

Acknowledgement sent to Bastian Blank <waldi@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>. Full text and rfc822 format available.

Message #32 received at 472584@bugs.debian.org (full text, mbox):

From: Bastian Blank <waldi@debian.org>
To: Russell Coker <russell@coker.com.au>
Cc: 472584@bugs.debian.org
Subject: Re: Bug#472584:
Date: Mon, 31 Mar 2008 21:26:32 +0200
On Mon, Mar 31, 2008 at 09:11:38AM +1100, Russell Coker wrote:
> I think it's reasonable to expect a Lenny kernel to work in the same manner as 
> an Etch kernel and to consider any failure to do so to be a bug.

Well, this is not possible in this case because they added code to
hijack other devices _and_ proposed the usage by default with the
knowledge that Linus won't ever accept this.

> The above is what I was using.  I added the "console=hvc0" bit as you 
> suggested (why is that needed?) and it displayed some console messages,

Because there is not code which overrides the default console. Fedora
have a patch, maybe I'll pull them in for now.

> mount: Mounting /dev/xvda on /root failed: No such device

Contents of /dev? /sys/block?

Bastian

-- 
	"Get back to your stations!"
	"We're beaming down to the planet, sir."
		-- Kirk and Mr. Leslie, "This Side of Paradise",
		   stardate 3417.3




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#472584; Package linux-image-2.6.24-1-xen-686. Full text and rfc822 format available.

Acknowledgement sent to Bastian Blank <waldi@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>. Full text and rfc822 format available.

Message #37 received at 472584@bugs.debian.org (full text, mbox):

From: Bastian Blank <waldi@debian.org>
To: Russell Coker <russell@coker.com.au>
Cc: 472584@bugs.debian.org
Subject: Re: Bug#472584:
Date: Mon, 31 Mar 2008 21:46:24 +0200
On Mon, Mar 31, 2008 at 09:26:32PM +0200, Bastian Blank wrote:
> Contents of /dev? /sys/block?

Oh, and xenstore-ls /local/domain/$domid.

Bastian

-- 
A little suffering is good for the soul.
		-- Kirk, "The Corbomite Maneuver", stardate 1514.0




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#472584; Package linux-image-2.6.24-1-xen-686. Full text and rfc822 format available.

Acknowledgement sent to russell@coker.com.au:
Extra info received and forwarded to list. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>. Full text and rfc822 format available.

Message #42 received at 472584@bugs.debian.org (full text, mbox):

From: Russell Coker <russell@coker.com.au>
To: Bastian Blank <waldi@debian.org>
Cc: 472584@bugs.debian.org
Subject: Re: Bug#472584:
Date: Tue, 1 Apr 2008 09:00:57 +1100
On Tuesday 01 April 2008 06:26, Bastian Blank <waldi@debian.org> wrote:
> On Mon, Mar 31, 2008 at 09:11:38AM +1100, Russell Coker wrote:
> > I think it's reasonable to expect a Lenny kernel to work in the same
> > manner as an Etch kernel and to consider any failure to do so to be a
> > bug.
>
> Well, this is not possible in this case because they added code to
> hijack other devices _and_ proposed the usage by default with the
> knowledge that Linus won't ever accept this.

Do we have people with enough spare time to fix this foolishness?

> > The above is what I was using.  I added the "console=hvc0" bit as you
> > suggested (why is that needed?) and it displayed some console messages,
>
> Because there is not code which overrides the default console. Fedora
> have a patch, maybe I'll pull them in for now.

Fedora also messes things up.  /dev/tty0 doesn't work for a getty with a 
Fedora/RHEL/CentOS kernel in a DomU.

> > mount: Mounting /dev/xvda on /root failed: No such device
>
> Contents of /dev? /sys/block?

(initramfs) ls -l /sys/block/xvda
-r--r--r--    1 0        0            4096 Mar 31 21:55 capability
-r--r--r--    1 0        0            4096 Mar 31 21:55 dev
lrwxrwxrwx    1 0        0               0 Mar 31 21:55 
device -> ../../devices/vbd-51712
drwxr-xr-x    2 0        0               0 Mar 31 21:55 holders
drwxr-xr-x    3 0        0               0 Mar 31 21:55 queue
-r--r--r--    1 0        0            4096 Mar 31 21:55 range
-r--r--r--    1 0        0            4096 Mar 31 21:55 removable
-r--r--r--    1 0        0            4096 Mar 31 21:55 size
drwxr-xr-x    2 0        0               0 Mar 31 21:55 slaves
-r--r--r--    1 0        0            4096 Mar 31 21:55 stat
lrwxrwxrwx    1 0        0               0 Mar 31 21:55 
subsystem -> ../../block
--w-------    1 0        0            4096 Mar 31 21:55 uevent
(initramfs) ls -l /dev/xvda
brw-rw----    1 0        0        202,   0 Mar 31 21:55 /dev/xvda

xenstore-ls /local/domain/$domid gives the following:
vm = "/vm/5787f4aa-a61e-c6b7-ce50-6a507cc9233c"
device = ""
 vbd = ""
  51712 = ""
   virtual-device = "51712"
   device-type = "disk"
   protocol = "x86_32-abi"
   backend-id = "0"
   state = "4"
   backend = "/local/domain/0/backend/vbd/23/51712"
   ring-ref = "8"
   event-channel = "6"
 vif = ""
  0 = ""
   mac = "00:16:3e:66:66:69"
   handle = "0"
   protocol = "x86_32-abi"
   backend-id = "0"
   state = "4"
   backend = "/local/domain/0/backend/vif/23/0"
   tx-ring-ref = "768"
   rx-ring-ref = "769"
   event-channel = "7"
   request-rx-copy = "1"
   feature-rx-notify = "1"
   feature-sg = "1"
   feature-gso-tcpv4 = "1"
 console = ""
  0 = ""
   protocol = "x86_32-abi"
   state = "1"
   backend-id = "0"
   backend = "/local/domain/0/backend/console/23/0"
device-misc = ""
 vif = ""
  nextDeviceID = "1"
 console = ""
  nextDeviceID = "1"
console = ""
 ring-ref = "77958"
 port = "2"
 limit = "1048576"
 type = "xenconsoled"
 tty = "/dev/pts/2"
image = ""
 entry = "3224522752"
 pae-mode = "yes"
 loader = "generic"
 virt-base = "3221225472"
 features = ""
  pae-pgdir-above-4gb = "1"
  writable-page-tables = "0"
 xen-version = "xen-3.0"
 guest-os = "linux"
 hypercall-page = "3224731648"
 guest-version = "2.6"
store = ""
 ring-ref = "77959"
 port = "1"
cpu = ""
 0 = ""
  availability = "online"
control = ""
 platform-feature-multiprocessor-suspend = "1"
name = "play-test"
domid = "23"
memory = ""
 target = "102400"
serial = ""
 0 = ""
  tty = "/dev/pts/2"




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#472584; Package linux-image-2.6.24-1-xen-686. Full text and rfc822 format available.

Acknowledgement sent to Bastian Blank <waldi@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>. Full text and rfc822 format available.

Message #47 received at 472584@bugs.debian.org (full text, mbox):

From: Bastian Blank <waldi@debian.org>
To: Russell Coker <russell@coker.com.au>
Cc: 472584@bugs.debian.org
Subject: Re: Bug#472584:
Date: Tue, 1 Apr 2008 01:14:50 +0200
On Tue, Apr 01, 2008 at 09:00:57AM +1100, Russell Coker wrote:
> Fedora also messes things up.  /dev/tty0 doesn't work for a getty with a 
> Fedora/RHEL/CentOS kernel in a DomU.

/dev/tty0 is a virtual console. A DomU have no virtual consoles except
with a framebuffer.

> > > mount: Mounting /dev/xvda on /root failed: No such device
> (initramfs) ls -l /dev/xvda
> brw-rw----    1 0        0        202,   0 Mar 31 21:55 /dev/xvda

Okay, so this is the old race condition. Use rootdelay=X for now.

Bastian

-- 
A little suffering is good for the soul.
		-- Kirk, "The Corbomite Maneuver", stardate 1514.0




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#472584; Package linux-image-2.6.24-1-xen-686. Full text and rfc822 format available.

Acknowledgement sent to Barry Tennison <barry@ukph.org>:
Extra info received and forwarded to list. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>. Full text and rfc822 format available.

Message #52 received at 472584@bugs.debian.org (full text, mbox):

From: Barry Tennison <barry@ukph.org>
To: 472584@bugs.debian.org
Subject: Re: Bug#472584
Date: Wed, 09 Apr 2008 09:30:03 +0100
Dear Bastian:

Many thanks for responding to the sketchy bug reports. Thanks to your 
help here, I have managed to get the linux-image-2.6.24-1-xen-686 kernel 
running as a domU kernel.

The only remaining issue seems to be that, for me, the domU console 
(from xmcreate -c or from xm console) does not accept input; but that is 
bearable.

I have listed the changes I made in a brief form below.  I wonder 
whether it might be worth making something like this available, perhaps 
as a README.debian in /usr/share/doc/linux-image-2.6.24-<N>-xen-686 ? 
It could (judging by quite a few mailing list posts) be of some use to 
those who, like me, prefer to use testing (lenny) as their dom0, for 
reasons of security and relative stability.

Thanks again for your help, and for all your debian efforts.

Barry Tennison

***********
The following may be needed to convert a debian installation using 
2.6.18 kernels to use a 2.6.24 kernel.

(a) use a 2.6.18 xen kernel in the dom0 (see bug#466492)

(b) modify the relevant xen domU .cfg files by:
  * changing entries like root="/dev/hdaN ro" to root="/dev/xvdaN ro"
  * adding (or expanding) a line to read: extra="console=hvc0"
  * possibly adding to the extra= line something like "rootdelay=5" 
(increase or decrease the 5 seconds according to what works)

(c) in the domU rootfs, aptitude install linux-modules-2.6.24-1-xen-686

************




Information forwarded to debian-bugs-dist@lists.debian.org, unknown-package@qa.debian.org:
Bug#472584; Package linux-image-2.6.24-1-xen-686. Full text and rfc822 format available.

Acknowledgement sent to "Mathieu PARENT" <math.parent@gmail.com>:
Extra info received and forwarded to list. Copy sent to unknown-package@qa.debian.org. Full text and rfc822 format available.

Message #57 received at 472584@bugs.debian.org (full text, mbox):

From: "Mathieu PARENT" <math.parent@gmail.com>
To: 472584@bugs.debian.org
Cc: "Barry Tennison" <barry@ukph.org>
Subject: Console solved
Date: Wed, 16 Jul 2008 20:19:53 +0200
Hi

Quoting Barry Tennison:
> The only remaining issue seems to be that, for me, the domU console
>(from xmcreate -c or from xm console) does not accept input; but that is
> bearable.

I've solved this by setting respawn in /etc/inittab (check that
/dev/hvc0 exists):

1:2345:respawn:/sbin/getty 38400 hvc0

Regards

Mathieu Parent




Bug reassigned from package `linux-image-2.6.24-1-xen-686' to `linux-2.6'. Request was from Martin Michlmayr <tbm@cyrius.com> to control@bugs.debian.org. (Sat, 26 Jul 2008 20:54:32 GMT) Full text and rfc822 format available.

Reply sent to Bastian Blank <waldi@debian.org>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to Russell Coker <russell@coker.com.au>:
Bug acknowledged by developer. Full text and rfc822 format available.

Message #64 received at 472584-done@bugs.debian.org (full text, mbox):

From: Bastian Blank <waldi@debian.org>
To: 472584-done@bugs.debian.org
Subject: user error
Date: Sun, 14 Sep 2008 01:35:34 +0200
We found all problems as user error. Closing.

Bastian

-- 
You're too beautiful to ignore.  Too much woman.
		-- Kirk to Yeoman Rand, "The Enemy Within", stardate unknown




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 12 Oct 2008 07:36:27 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Apr 19 19:42:48 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.