WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Boot error with 2.6.23 domU

To: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Subject: Re: [Xen-users] Boot error with 2.6.23 domU
From: Tomasz Chmielewski <mangoo@xxxxxxxx>
Date: Thu, 11 Oct 2007 17:05:48 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx, Zoltan HERPAI <wigyori@xxxxxxx>
Delivery-date: Thu, 11 Oct 2007 08:06:49 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <470E3984.9040004@xxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <470DF0FB.6070506@xxxxxxxx> <200710111549.58913.mark.williamson@xxxxxxxxxxxx> <470E3984.9040004@xxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.8) Gecko/20061110 Mandriva/1.5.0.8-1mdv2007.1 (2007.1) Thunderbird/1.5.0.8 Mnenhy/0.7.4.666
Tomasz Chmielewski schrieb:
Mark Williamson schrieb:
I compiled a 2.6.23 kernel with domU support, but the following error
shows up when I try to boot it on a Xen-3.1.0:

Error: (2, 'Invalid kernel', 'xc_dom_find_loader: no loader found\n')
Yep, same here.

Is there a fine manual somewhere on how to boot a 2.6.23 domU with Xen
3.1.x?

Good to see that people are trying out the new Xen support in mainline!

To boot under Xen you need to use a vmlinux / vmlinuz image. Were you guys perhaps trying to use the bzImage? That won't work (yet).

The vmlinux that's in the root of your kernel build tree ought to work. I stripped and gziped mine to get a much, much smaller vmlinuz file and used it to boot a Xen domain for the first time last night - worked fine.

I tried vmlinux, but also, it didn't work.

It hanged at:

# xm create -c somedomain
Using config file "/etc/xen/somedomain".
Started domain somedomain


And it seems to wait there forever.

Here are some logs - all that on a 3.1 dom0 running 2.6.18 kernel:

# cat domain-builder-ng.log
xc_dom_allocate: cmdline="root=/dev/sda5 ro 3", features=""
xc_dom_kernel_file: filename="/boot/vmlinux"
xc_dom_malloc_filemap    : 3287 kB
xc_dom_boot_xen_init: ver 3.1, caps xen-3.0-x86_32p
xc_dom_parse_image: called
xc_dom_find_loader: trying ELF-generic loader ... OK
elf_parse_binary: phdr: paddr=0x100000 memsz=0x1e6064
elf_parse_binary: phdr: paddr=0x2e7000 memsz=0x78000
elf_parse_binary: memory: 0x100000 -> 0x35f000
elf_xen_parse_note: GUEST_OS = "linux"
elf_xen_parse_note: GUEST_VERSION = "2.6"
elf_xen_parse_note: XEN_VERSION = "xen-3.0"
elf_xen_parse_note: VIRT_BASE = 0xc0000000
elf_xen_parse_note: ENTRY = 0xc030c268
elf_xen_parse_note: HYPERCALL_PAGE = 0xc033e000
elf_xen_parse_note: FEATURES = "!writable_page_tables|pae_pgdir_above_4gb"
elf_xen_parse_note: PAE_MODE = "yes"
elf_xen_parse_note: LOADER = "generic"
elf_xen_addr_calc_check: ELF_PADDR_OFFSET unset, using 0x0
elf_xen_addr_calc_check: addresses:
    virt_base        = 0xc0000000
    elf_paddr_offset = 0x0
    virt_offset      = 0xc0000000
    virt_kstart      = 0xc0100000
    virt_kend        = 0xc035f000
    virt_entry       = 0xc030c268
xc_dom_parse_elf_kernel: xen-3.0-x86_32p: 0xc0100000 -> 0xc035f000
xc_dom_mem_init: mem 192 MB, pages 0xc000 pages, 4k each
xc_dom_mem_init: 0xc000 pages
xc_dom_boot_mem_init: called
x86_compat: guest xen-3.0-x86_32p, address size 32
xc_dom_malloc            : 192 kB
xc_dom_build_image: called
xc_dom_alloc_segment: kernel : 0xc0100000 -> 0xc035f000 (pfn 0x100 + 0x25f pages)
xc_dom_pfn_to_ptr: domU mapping: pfn 0x100+0x25f at 0xb1ce7000
elf_load_binary: phdr 0 at 0x0xb1ce7000 -> 0x0xb1ecd064
elf_load_binary: phdr 1 at 0x0xb1ece000 -> 0x0xb1f21086
xc_dom_alloc_segment: phys2mach : 0xc035f000 -> 0xc038f000 (pfn 0x35f + 0x30 pages)
xc_dom_pfn_to_ptr: domU mapping: pfn 0x35f+0x30 at 0xb1cb7000
xc_dom_alloc_page   :   start info   : 0xc038f000 (pfn 0x38f)
xc_dom_alloc_page   :   xenstore     : 0xc0390000 (pfn 0x390)
xc_dom_alloc_page   :   console      : 0xc0391000 (pfn 0x391)
nr_page_tables: 0x00000000ffffffff/32: 0x0000000000000000 -> 0xffffffffffffffff, 1 table(s) nr_page_tables: 0x000000003fffffff/30: 0x00000000c0000000 -> 0x00000000ffffffff, 1 table(s) nr_page_tables: 0x00000000001fffff/21: 0x00000000c0000000 -> 0x00000000c07fffff, 4 table(s) xc_dom_alloc_segment: page tables : 0xc0392000 -> 0xc0398000 (pfn 0x392 + 0x6 pages)
xc_dom_pfn_to_ptr: domU mapping: pfn 0x392+0x6 at 0xb1cb1000
xc_dom_alloc_page   :   boot stack   : 0xc0398000 (pfn 0x398)
xc_dom_build_image  : virt_alloc_end : 0xc0399000
xc_dom_build_image  : virt_pgtab_end : 0xc0800000
xc_dom_boot_image: called
arch_setup_bootearly: doing nothing
xc_dom_compat_check: supported guest type: xen-3.0-x86_32p <= matches
xc_dom_update_guest_p2m: dst 32bit, pages 0xc000
clear_page: pfn 0x391, mfn 0x49de6
clear_page: pfn 0x390, mfn 0x49de7
xc_dom_pfn_to_ptr: domU mapping: pfn 0x38f+0x1 at 0xb1cb0000
start_info_x86_32: called
setup_hypercall_page: vaddr=0xc033e000 pfn=0x33e
domain builder memory footprint
   allocated
      malloc             : 209 kB
      anon mmap          : 0 bytes
   mapped
      file mmap          : 3287 kB
      domU mmap          : 2648 kB
arch_setup_bootlate: shared_info: pfn 0x0, mfn 0xbcc
shared_info_x86_32: called
vcpu_x86_32: called
vcpu_x86_32: cr3: pfn 0x392 mfn 0x49de5
launch_vm: called, ctxt=0x82705d4
xc_dom_release: called





# cat xend.log
[2007-10-11 17:00:42 3682] DEBUG (XendDomainInfo:78) XendDomainInfo.create(['vm', ['name', 'imap1'], ['memory', 192], ['vcpus', 1], ['on_xend_start', 'ignore'], ['on_xend_stop', 'ignore'], ['image', ['linux', ['kernel', '/boot/vmlinux'], ['root', '/dev/sda5 ro'], ['args', '3']]], ['device', ['vbd', ['uname', 'phy:/dev/iscsi/iqn.2006-09.net.syneticon:san1.imap1/part'], ['dev', 'sda5'], ['mode', 'w']]], ['device', ['vif', ['ip', '192.168.113.5'], ['mac', '00:16:3E:2D:49:51'], ['bridge', 'xenbr113']]], ['device', ['vif', ['ip', '87.79.32.169'], ['mac', '00:16:3E:23:50:74'], ['bridge', 'xenbr511']]]]) [2007-10-11 17:00:42 3682] DEBUG (XendDomainInfo:1414) XendDomainInfo.constructDomain [2007-10-11 17:00:42 3682] DEBUG (balloon:113) Balloon: 808380 KiB free; need 2048; done.
[2007-10-11 17:00:42 3682] DEBUG (XendDomain:434) Adding Domain: 17
[2007-10-11 17:00:42 3682] DEBUG (XendDomainInfo:1468) XendDomainInfo.initDomain: 17 256 [2007-10-11 17:00:42 3682] DEBUG (XendDomainInfo:1500) _initDomain:shadow_memory=0x0, memory_static_max=0xc000000, memory_static_min=0x0. [2007-10-11 17:00:42 3682] DEBUG (balloon:113) Balloon: 808380 KiB free; need 196608; done. [2007-10-11 17:00:42 3682] INFO (image:129) buildDomain os=linux dom=17 vcpus=1
[2007-10-11 17:00:42 3682] DEBUG (image:198) domid          = 17
[2007-10-11 17:00:43 3682] DEBUG (image:199) memsize        = 192
[2007-10-11 17:00:43 3682] DEBUG (image:200) image          = /boot/vmlinux
[2007-10-11 17:00:43 3682] DEBUG (image:201) store_evtchn   = 1
[2007-10-11 17:00:43 3682] DEBUG (image:202) console_evtchn = 2
[2007-10-11 17:00:43 3682] DEBUG (image:203) cmdline = root=/dev/sda5 ro 3
[2007-10-11 17:00:43 3682] DEBUG (image:204) ramdisk        =
[2007-10-11 17:00:43 3682] DEBUG (image:205) vcpus          = 1
[2007-10-11 17:00:43 3682] DEBUG (image:206) features       =
[2007-10-11 17:00:43 3682] INFO (XendDomainInfo:1316) createDevice: vbd : {'uuid': 'efe192d4-8ba2-95ed-de8b-3b2066def1c2', 'bootable': 1, 'driver': 'paravirtualised', 'dev': 'sda5', 'uname': 'phy:/dev/iscsi/iqn.2006-09.net.syneticon:san1.imap1/part', 'mode': 'w'} [2007-10-11 17:00:43 3682] DEBUG (DevController:115) DevController: writing {'backend-id': '0', 'virtual-device': '2053', 'device-type': 'disk', 'state': '1', 'backend': '/local/domain/0/backend/vbd/17/2053'} to /local/domain/17/device/vbd/2053. [2007-10-11 17:00:43 3682] DEBUG (DevController:117) DevController: writing {'domain': 'imap1', 'frontend': '/local/domain/17/device/vbd/2053', 'uuid': 'efe192d4-8ba2-95ed-de8b-3b2066def1c2', 'dev': 'sda5', 'state': '1', 'params': '/dev/iscsi/iqn.2006-09.net.syneticon:san1.imap1/part', 'mode': 'w', 'online': '1', 'frontend-id': '17', 'type': 'phy'} to /local/domain/0/backend/vbd/17/2053. [2007-10-11 17:00:43 3682] INFO (XendDomainInfo:1316) createDevice: vif : {'ip': '192.168.113.5', 'mac': '00:16:3E:2D:49:51', 'uuid': 'f4777093-485e-ddf6-b454-e2ac7f8b4ce0', 'bridge': 'xenbr113'} [2007-10-11 17:00:43 3682] DEBUG (DevController:115) DevController: writing {'backend-id': '0', 'mac': '00:16:3E:2D:49:51', 'handle': '0', 'state': '1', 'backend': '/local/domain/0/backend/vif/17/0'} to /local/domain/17/device/vif/0. [2007-10-11 17:00:43 3682] DEBUG (DevController:117) DevController: writing {'bridge': 'xenbr113', 'domain': 'imap1', 'handle': '0', 'uuid': 'f4777093-485e-ddf6-b454-e2ac7f8b4ce0', 'script': '/etc/xen/scripts/vif-bridge', 'ip': '192.168.113.5', 'state': '1', 'frontend': '/local/domain/17/device/vif/0', 'mac': '00:16:3E:2D:49:51', 'online': '1', 'frontend-id': '17', 'type': 'netfront'} to /local/domain/0/backend/vif/17/0. [2007-10-11 17:00:43 3682] INFO (XendDomainInfo:1316) createDevice: vif : {'ip': '87.79.32.169', 'mac': '00:16:3E:23:50:74', 'uuid': '78b1deb1-9e59-a2a7-a310-7c34d7937903', 'bridge': 'xenbr511'} [2007-10-11 17:00:43 3682] DEBUG (DevController:115) DevController: writing {'backend-id': '0', 'mac': '00:16:3E:23:50:74', 'handle': '1', 'state': '1', 'backend': '/local/domain/0/backend/vif/17/1'} to /local/domain/17/device/vif/1. [2007-10-11 17:00:43 3682] DEBUG (DevController:117) DevController: writing {'bridge': 'xenbr511', 'domain': 'imap1', 'handle': '1', 'uuid': '78b1deb1-9e59-a2a7-a310-7c34d7937903', 'script': '/etc/xen/scripts/vif-bridge', 'ip': '87.79.32.169', 'state': '1', 'frontend': '/local/domain/17/device/vif/1', 'mac': '00:16:3E:23:50:74', 'online': '1', 'frontend-id': '17', 'type': 'netfront'} to /local/domain/0/backend/vif/17/1. [2007-10-11 17:00:43 3682] DEBUG (XendDomainInfo:1973) Storing VM details: {'on_xend_stop': 'ignore', 'shadow_memory': '0', 'uuid': '6f8783d1-5e57-e2f6-a7db-807fb73c4a99', 'on_reboot': 'restart', 'start_time': '1192114843.62', 'on_poweroff': 'destroy', 'on_xend_start': 'ignore', 'on_crash': 'restart', 'xend/restart_count': '0', 'vcpus': '1', 'vcpu_avail': '1', 'image': "(linux (kernel /boot/vmlinux) (args 'root=/dev/sda5 ro 3') (notes (FEATURES '!writable_page_tables|pae_pgdir_above_4gb') (VIRT_BASE 3221225472) (GUEST_VERSION 2.6) (GUEST_OS linux) (HYPERCALL_PAGE 3224625152) (LOADER generic) (PAE_MODE yes) (ENTRY 3224420968) (XEN_VERSION xen-3.0)))", 'name': 'imap1'} [2007-10-11 17:00:43 3682] DEBUG (XendDomainInfo:824) Storing domain details: {'console/ring-ref': '302566', 'image/entry': '3224420968', 'image/pae-mode': 'yes', 'console/port': '2', 'name': 'imap1', 'console/limit': '1048576', 'image/loader': 'generic', 'image/virt-base': '3221225472', 'image/guest-os': 'linux', 'vm': '/vm/6f8783d1-5e57-e2f6-a7db-807fb73c4a99', 'domid': '17', 'store/port': '1', 'image/hypercall-page': '3224625152', 'memory/target': '196608', 'image/features/pae-pgdir-above-4gb': '1', 'control/platform-feature-multiprocessor-suspend': '1', 'image/features/writable-page-tables': '0', 'store/ring-ref': '302567', 'image/guest-version': '2.6', 'cpu/0/availability': 'online', 'image/xen-version': 'xen-3.0'} [2007-10-11 17:00:44 3682] DEBUG (DevController:115) DevController: writing {'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/console/17/0'} to /local/domain/17/device/console/0. [2007-10-11 17:00:44 3682] DEBUG (DevController:117) DevController: writing {'domain': 'imap1', 'protocol': 'vt100', 'uuid': '2b20f8f3-335a-e93c-2dd9-f41028ae22e1', 'frontend': '/local/domain/17/device/console/0', 'state': '1', 'location': '2', 'online': '1', 'frontend-id': '17'} to /local/domain/0/backend/console/17/0. [2007-10-11 17:00:44 3682] DEBUG (XendDomainInfo:824) Storing domain details: {'console/ring-ref': '302566', 'image/entry': '3224420968', 'image/pae-mode': 'yes', 'console/port': '2', 'name': 'imap1', 'console/limit': '1048576', 'image/loader': 'generic', 'image/virt-base': '3221225472', 'image/guest-os': 'linux', 'vm': '/vm/6f8783d1-5e57-e2f6-a7db-807fb73c4a99', 'domid': '17', 'store/port': '1', 'image/hypercall-page': '3224625152', 'memory/target': '196608', 'image/features/pae-pgdir-above-4gb': '1', 'control/platform-feature-multiprocessor-suspend': '1', 'image/features/writable-page-tables': '0', 'store/ring-ref': '302567', 'image/guest-version': '2.6', 'cpu/0/availability': 'online', 'image/xen-version': 'xen-3.0'} [2007-10-11 17:00:44 3682] DEBUG (XendDomainInfo:908) XendDomainInfo.handleShutdownWatch [2007-10-11 17:00:44 3682] DEBUG (DevController:148) Waiting for devices vif.
[2007-10-11 17:00:44 3682] DEBUG (DevController:153) Waiting for 0.
[2007-10-11 17:00:44 3682] DEBUG (DevController:539) hotplugStatusCallback /local/domain/0/backend/vif/17/0/hotplug-status. [2007-10-11 17:00:44 3682] DEBUG (DevController:553) hotplugStatusCallback 1.
[2007-10-11 17:00:44 3682] DEBUG (DevController:153) Waiting for 1.
[2007-10-11 17:00:44 3682] DEBUG (DevController:539) hotplugStatusCallback /local/domain/0/backend/vif/17/1/hotplug-status. [2007-10-11 17:00:44 3682] DEBUG (DevController:553) hotplugStatusCallback 1. [2007-10-11 17:00:44 3682] DEBUG (DevController:148) Waiting for devices usb. [2007-10-11 17:00:44 3682] DEBUG (DevController:148) Waiting for devices vbd.
[2007-10-11 17:00:44 3682] DEBUG (DevController:153) Waiting for 2053.
[2007-10-11 17:00:44 3682] DEBUG (DevController:539) hotplugStatusCallback /local/domain/0/backend/vbd/17/2053/hotplug-status. [2007-10-11 17:00:45 3682] DEBUG (DevController:553) hotplugStatusCallback 1. [2007-10-11 17:00:45 3682] DEBUG (DevController:148) Waiting for devices irq. [2007-10-11 17:00:45 3682] DEBUG (DevController:148) Waiting for devices vkbd. [2007-10-11 17:00:45 3682] DEBUG (DevController:148) Waiting for devices vfb. [2007-10-11 17:00:45 3682] DEBUG (DevController:148) Waiting for devices console.
[2007-10-11 17:00:45 3682] DEBUG (DevController:153) Waiting for 0.
[2007-10-11 17:00:45 3682] DEBUG (DevController:148) Waiting for devices pci. [2007-10-11 17:00:45 3682] DEBUG (DevController:148) Waiting for devices ioports. [2007-10-11 17:00:45 3682] DEBUG (DevController:148) Waiting for devices tap. [2007-10-11 17:00:45 3682] DEBUG (DevController:148) Waiting for devices vtpm. [2007-10-11 17:00:45 3682] INFO (XendDomain:1108) Domain imap1 (17) unpaused.



--
Tomasz Chmielewski
http://wpkg.org


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users