Am 24.07.2007 21:12 schrieb Andi Kleen: > On Tue, Jul 24, 2007 at 12:02:45PM -0700, Jeremy Fitzhardinge wrote: >> Phew, I was getting worried there for a minute. Does the install script >> check for CONFIG_XEN in the kernel config or something? > > Yes 10.2 mkinitrd does. But it still should work because a dom0 > kernel would obviously need all the drivers. A paravirt ops > kernel native is like a dom0 variant.
Apparently not, given that the generated init script is mistaking a native environment for a domU instead of a dom0. In fact, when running 2.6.23-rc1 natively, no matter if compiled with or without Xen support, the directory /proc/xen doesn't even exist: [EMAIL PROTECTED]:~> uname -a Linux xenon 2.6.23-rc1-testing #6 SMP PREEMPT Mon Jul 23 22:23:41 CEST 2007 i686 i686 i386 GNU/Linux [EMAIL PROTECTED]:~> ls -l /proc/xen/ ls: cannot access /proc/xen/: No such file or directory [EMAIL PROTECTED]:~> The same holds for the non-Xen Suse kernel: [EMAIL PROTECTED]:~> uname -a Linux xenon 2.6.18.8-0.5-default #1 SMP Fri Jun 22 12:17:53 UTC 2007 i686 i686 i386 GNU/Linux [EMAIL PROTECTED]:~> ls -l /proc/xen/ ls: cannot access /proc/xen/: No such file or directory [EMAIL PROTECTED]:~> But when running Xen with the Opensuse Xen kernel as Dom0: [EMAIL PROTECTED]:~> uname -a Linux xenon 2.6.18.8-0.5-xen #1 SMP Fri Jun 22 12:17:53 UTC 2007 i686 i686 i386 GNU/Linux [EMAIL PROTECTED]:~> ls -l /proc/xen/ total 0 -rw-r--r-- 1 root root 0 Jul 24 22:08 balloon -r-------- 1 root root 0 Jul 24 22:08 capabilities -r-------- 1 root root 0 Jul 24 22:01 privcmd -r-------- 1 root root 0 Jul 24 22:08 xenbus -rw------- 1 root root 0 Jul 24 22:01 xsd_kva -r-------- 1 root root 0 Jul 24 22:08 xsd_port [EMAIL PROTECTED]:~> sudo cat /proc/xen/capabilities root's password: control_d [EMAIL PROTECTED]:~> OTOH, the Opensuse Xen kernel vmlinuz-2.6.18.8-0.5-xen cannot even be booted natively because GRUB complains immediately: Error 13: Invalid or unsupported executable format Conversely, the Xen loader flatly refuses to load a self-compiled, Xen enabled 2.6.23-rc1 kernel as dom0, complaining: DOM0 image is not an Xen-compatible Elf image. So I guess the point is moot, because you cannot use the same image as dom0 and natively, anyway. Thanks, Tilman -- Tilman Schmidt E-Mail: [EMAIL PROTECTED] Bonn, Germany Diese Nachricht besteht zu 100% aus wiederverwerteten Bits. Ungeöffnet mindestens haltbar bis: (siehe Rückseite)
signature.asc
Description: OpenPGP digital signature