Subject: "Invalid kernel" with linux
To: None <port-xen@NetBSD.org>
From: Marcin Michal Jessa <lists@yazzy.org>
List: port-xen
Date: 09/27/2007 09:55:18
Hi guys.
I followed chapter 21.2.2 FreeBSD with Xen™ on Linux from:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/virtualization-guest.html
and installed linux-2.6-xenU kernel.
Unfortunatelly I get following error message trying to boot it on
NetBSD 4.0_RC1 from 3 September and XEN 3.1.0
# xm create debian
Using config file "/usr/local/etc/xen/debian".
Error: (2, 'Invalid kernel', 'xc_dom_compat_check: guest type
xen-3.0-x86_32p not supported by xen kernel, sorry\n')
Any idea what is wrong?
BTW, is there any repository of xen domU kernels and images like they
have for vmware?
Some more info:
# objdump -j __xen_guest -s vmlinux-2.6-xenU
vmlinux-2.6-xenU: file format elf32-i386
Contents of section __xen_guest:
0000 47554553 545f4f53 3d6c696e 75782c47 GUEST_OS=linux,G
0010 55455354 5f564552 3d322e36 2c58454e UEST_VER=2.6,XEN
0020 5f564552 3d78656e 2d332e30 2c564952 _VER=xen-3.0,VIR
0030 545f4241 53453d30 78433030 30303030 T_BASE=0xC000000
0040 302c454c 465f5041 4444525f 4f464653 0,ELF_PADDR_OFFS
0050 45543d30 78433030 30303030 302c5649 ET=0xC0000000,VI
0060 52545f45 4e545259 3d307843 30313030 RT_ENTRY=0xC0100
0070 3030302c 48595045 5243414c 4c5f5041 000,HYPERCALL_PA
0080 47453d30 78313031 2c464541 54555245 GE=0x101,FEATURE
0090 533d7772 69746162 6c655f70 6167655f S=writable_page_
00a0 7461626c 65737c77 72697461 626c655f tables|writable_
00b0 64657363 72697074 6f725f74 61626c65 descriptor_table
00c0 737c6175 746f5f74 72616e73 6c617465 s|auto_translate
00d0 645f7068 79736d61 707c7061 655f7067 d_physmap|pae_pg
00e0 6469725f 61626f76 655f3467 627c7375 dir_above_4gb|su
00f0 70657276 69736f72 5f6d6f64 655f6b65 pervisor_mode_ke
0100 726e656c 2c504145 3d796573 5b657874 rnel,PAE=yes[ext
0110 656e6465 642d6372 335d2c4c 4f414445 ended-cr3],LOADE
0120 523d6765 6e657269 6300 R=generic.
The xen log:
[2007-09-27 09:53:28 502] DEBUG (XendDomainInfo:78) XendDomainInfo.create(['vm', ['name', 'debian'], ['memory', 128], ['vcpus', 1], ['on_xend_start', 'ignore'], ['on_xend_stop', 'ignore'], ['image', ['linux', ['kernel', '/serv/xen/kernels/linux/vmlinux-2.6-xenU'], ['root', '/dev/sda1 ro']]], ['device', ['vbd', ['uname', 'file:/serv/xen/domains/linux/debian.3-1.img'], ['dev', 'sda1'], ['mode', 'w']]], ['device', ['vbd', ['uname', 'file:/serv/xen/domains/linux/debian.swap'], ['dev', 'sda2'], ['mode', 'w']]], ['device', ['vif']]])
[2007-09-27 09:53:28 502] DEBUG (XendDomainInfo:1414) XendDomainInfo.constructDomain
[2007-09-27 09:53:28 502] DEBUG (balloon:113) Balloon: 1052880 KiB free; need 2048; done.
[2007-09-27 09:53:28 502] DEBUG (XendDomain:434) Adding Domain: 19
[2007-09-27 09:53:28 502] DEBUG (XendDomainInfo:1468) XendDomainInfo.initDomain: 19 256
[2007-09-27 09:53:28 502] DEBUG (XendDomainInfo:1500) _initDomain:shadow_memory=0x0, memory_static_max=0x8000000, memory_static_min=0x0.
[2007-09-27 09:53:28 502] DEBUG (balloon:113) Balloon: 1052880 KiB free; need 131072; done.
[2007-09-27 09:53:28 502] INFO (image:129) buildDomain os=linux dom=19 vcpus=1
[2007-09-27 09:53:28 502] DEBUG (image:198) domid = 19
[2007-09-27 09:53:28 502] DEBUG (image:199) memsize = 128
[2007-09-27 09:53:28 502] DEBUG (image:200) image = /serv/xen/kernels/linux/vmlinux-2.6-xenU
[2007-09-27 09:53:28 502] DEBUG (image:201) store_evtchn = 1
[2007-09-27 09:53:28 502] DEBUG (image:202) console_evtchn = 2
[2007-09-27 09:53:28 502] DEBUG (image:203) cmdline = root=/dev/sda1 ro
[2007-09-27 09:53:28 502] DEBUG (image:204) ramdisk =
[2007-09-27 09:53:28 502] DEBUG (image:205) vcpus = 1
[2007-09-27 09:53:28 502] DEBUG (image:206) features =
[2007-09-27 09:53:28 502] ERROR (XendDomainInfo:1540) XendDomainInfo.initDomain: exception occurred
Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 1517, in _initDomain
channel_details = self.image.createImage()
File "/usr/local/lib/python2.4/site-packages/xen/xend/image.py", line 112, in createImage
return self.createDomain()
File "/usr/local/lib/python2.4/site-packages/xen/xend/image.py", line 131, in createDomain
result = self.buildDomain()
File "/usr/local/lib/python2.4/site-packages/xen/xend/image.py", line 517, in buildDomain
return LinuxImageHandler.buildDomain(self)
File "/usr/local/lib/python2.4/site-packages/xen/xend/image.py", line 215, in buildDomain
features = self.vm.getFeatures())
Error: (2, 'Invalid kernel', 'xc_dom_compat_check: guest type xen-3.0-x86_32p not supported by xen kernel, sorry\n')
[2007-09-27 09:53:28 502] ERROR (XendDomainInfo:416) VM start failed
Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 396, in start
XendTask.log_progress(31, 60, self._initDomain)
File "/usr/local/lib/python2.4/site-packages/xen/xend/XendTask.py", line 209, in log_progress
retval = func(*args, **kwds)
File "/usr/local/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 1543, in _initDomain
raise VmError(str(exn))
VmError: (2, 'Invalid kernel', 'xc_dom_compat_check: guest type xen-3.0-x86_32p not supported by xen kernel, sorry\n')
[2007-09-27 09:53:28 502] DEBUG (XendDomainInfo:1660) XendDomainInfo.destroy: domid=19
[2007-09-27 09:53:28 502] DEBUG (XendDomainInfo:1677) XendDomainInfo.destroyDomain(19)
[2007-09-27 09:53:28 502] ERROR (XendDomainInfo:83) Domain construction failed
Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 81, in create
vm.start()
File "/usr/local/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 396, in start
XendTask.log_progress(31, 60, self._initDomain)
File "/usr/local/lib/python2.4/site-packages/xen/xend/XendTask.py", line 209, in log_progress
retval = func(*args, **kwds)
File "/usr/local/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 1543, in _initDomain
raise VmError(str(exn))
VmError: (2, 'Invalid kernel', 'xc_dom_compat_check: guest type xen-3.0-x86_32p not supported by xen kernel, sorry\n')
[2007-09-27 09:53:28 502] DEBUG (XendDomainInfo:1660) XendDomainInfo.destroy: domid=None
[2007-09-27 09:53:28 502] DEBUG (XendDomainInfo:1677) XendDomainInfo.destroyDomain(None)