A
A
Alexander2012-01-03 21:33:53
linux
Alexander, 2012-01-03 21:33:53

Xen DomU won't start

Hello everyone

# uname -a
Linux localhost 3.0.6-gentoo #4 SMP Sun Jan 1 04:25:00 Local time zone must be set--see zic m x86_64 Intel® Xeon® CPU E31270 @ 3.40GHz GenuineIntel GNU/Linux

proper Gentoo

# xl list
Name ID Mem VCPUs State Time(s)
Domain-0 0 3045 8 r----- 1060.0

As you can see, Xen is working.

DomU .config:
# cat /usr/src/linux/.config | grep XEN
# CONFIG_XEN is not set
# CONFIG_XEN_PRIVILEGED_GUEST is not set Dom0 is

disabled on DomU

# cat /xen/gentoo.vm
kernel = "/xen/gentoo-3.0.6"
memory = 1024
name = "gentoo"
disk = ['file: /xen/disks/gentoo-root.img,sda1,w']
root = "/dev/sda1ro"
vcpus = 2 Generic

config…

# xl create gentoo.vm
Parsing config file gentoo.vm
xc: error: elf_xen_note_check: ERROR: Will only load images built for the generic loader or Linux images: Invalid kernel
libxl: error: libxl_dom.c:196 :libxl__build_pv xc_dom_parse_image failed: Success
cannot (re-)build domain: -3

Actually an error. Tell me what he does not like in my core?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Burov, 2012-01-04
@BuriK666

Is CONFIG_XEN_PRIVILEGED_GUEST enabled in /xen/gentoo-3.0.6 kernel?

A
Alexander, 2012-01-06
@Breaker

currently it stops at:
# xl -v create /xen/gentoo.vm
Parsing config file /xen/gentoo.vm
domainbuilder: detail: xc_dom_allocate: cmdline="root=/dev/xvda1 ro xencons=tty", features= "(null)"
domainbuilder: detail: xc_dom_kernel_file: filename="/xen/gentoo-3.1.6"
domainbuilder: detail: xc_dom_malloc_filemap: 4636 kB
domainbuilder: detail: xc_dom_boot_xen_init: ver 4.1, caps xen-3.0-x86_64 xen-3.0- x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
domainbuilder: detail: xc_dom_parse_image: called
domainbuilder: detail: xc_dom_find_loader: trying ELF-generic loader…
domainbuilder: detail: loader probe failed
domainbuilder: detail: xc_dom_find_loader: trying Linux bzImage loader…
domainbuilder: detail: xc_dom_malloc: 17798 kB domainbuilder : detail: xc_dom_do_gunzip
: unzip ok, 0x47f057 -> 0x11618d8 paddr=0x1c00000 memsz=0xae0e0 xc: detail: elf_parse_binary: phdr: paddr=0x1caf000 memsz=0x13380 xc: detail: elf_parse_binary: phdr: paddr=0x1cc3000 memsz=0x316000 xc: detail: elf_parse_binary: detail0:0:0xdx0: 0x10xd elf_xen_parse_note: GUEST_OS="linux" xc: detail: elf_xen_parse_note: GUEST_VERSION="2.6" xc: detail: elf_xen_parse_note: XEN_VERSION="xen-3.0"
xc: detail: elf_xen_parse_note: VIRT_BASE = 0xffffffff80000000
xc: detail: elf_xen_parse_note: ENTRY = 0xffffffff81cc3200
xc: detail: elf_xen_parse_note: HYPERCALL_PAGE = 0xffffffff81001000
xc: detail: elf_xen_parse_note: "! writable_page_tables | pae_pgdir_above_4gb" the FEATURES =
xc: detail: elf_xen_parse_note: PAE_MODE = « yes"
xc: detail: elf_xen_parse_note: LOADER = "generic"
xc: detail: elf_xen_parse_note: unknown xen elf note (0xd)
xc: detail: elf_xen_parse_note: SUSPEND_CANCEL = 0x1 xc
: detail: elf_xen_parse_note: HV_START_LOW = 0xffff800000000
PADDR_OFFSET = 0x0
xc: detail: elf_xen_addr_calc_check: addresses:
xc: detail: virt_base = 0xffffffff80000000
xc: detail: elf_paddr_offset 0x0 =
xc: detail: virt_offset 0xffffffff80000000 =
xc: detail: virt_kstart 0xffffffff81000000 =
xc: detail: virt_kend 0xffffffff81fd9000 =
xc: detail: virt_entry 0xffffffff81cc3200 =
xc: detail: p2m_base = 0xffffffffffffffff
domainbuilder: detail: xc_dom_parse_elf_kernel: xen- the x86_64-3.0: 0xffffffff81000000 -> 0xffffffff81fd9000
domainbuilder: detail: xc_dom_mem_init: mem 1024 MB Download now, 0x40000 pages pages, each 4k
domainbuilder: detail: xc_dom_mem_init: 0x40000 pages
domainbuilder: detail: xc_dom_boot_mem_init:
Called domainbuilder: detail: x86_compat: guest xen-3.0- x86_64, address size 64
domainbuilder: detail: xc_dom_malloc: 2048 kB
domainbuilder: detail: xc_dom_build_image: called
domainbuilder: detail: xc_dom_alloc_segment: kernel: 0xffffffff81000000 -> 0xffffffff81fd9000 (pfn 0x1000 + 0xfd9 pages)
domainbuilder: detail: xc_dom_pfn_to_ptr: domU mapping: pfn 0x1000 + 0xfd9 at 0x7f97d55e8000
xc: detail: elf_load_binary: phdr 0 at 0x0x7f97d55e8000 -> 0x0x7f97d5ff5000
xc: detail: elf_load_binary: phdr 1 at 0x0x7f97d61e8000 -> 0x0x7f97d62960e0
xc: detail: elf_load_binary: phdr 2 at 0x0x7f97d6297000 -> 0x0x7f97d62aa380
xc: detail: elf_load_binary: phdr 3 at 0x0x7f97d62ab000 -> 0x0x7f97d6349000
domainbuilder: detail: xc_dom_alloc_segment: phys2mach : 0xffffffff81fd9000 -> 0xffffffff821d9000 (pfn 0x1fd9 + 0x200 pages)
domainbuilder: detail: xc_dom_pfn_to_ptr: domU mapping: pfn 0x1fd9 + 0x200 at 0x7f97d53e8000
domainbuilder: detail: xc_dom_alloc_page: start info: 0xffffffff821d9000 (pfn 0x21d9)
domainbuilder: detail: xc_dom_alloc_page: xenstore: 0xffffffff821da000 (pfn 0x21da)
domainbuilder: detail: xc_dom_alloc_page: console: 0xffffffff821db000 (pfn 0x21db)
domainbuilder: detail: nr_page_tables: 0x0000ffffffffffff / 48: 0xffff000000000000 -> 0xffffffffffffffff, 1 table (s)
domainbuilder: detail: nr_page_tables: 0x0000007fffffffff / 39: 0xffffff8000000000 -> 0xffffffffffffffff, 1 table (s)
domainbuilder: detail: nr_page_tables : 0x000000003fffffff/30: 0xffffffff80000000 -> 0xffffffffbfffffff, 1 table(s)
domainbuilder: detail: nr_page_tables: 0x00000000001fffff / 21: 0xffffffff80000000 -> 0xffffffff823fffff, 18 table (s)
domainbuilder: detail: xc_dom_alloc_segment: page tables: 0xffffffff821dc000 -> 0xffffffff821f1000 (pfn 0x21dc + 0x15 pages)
domainbuilder: detail: xc_dom_pfn_to_ptr: domU mapping: pfn 0x21dc + 0x15 at 0x7f97d9e30000
domainbuilder: detail: xc_dom_alloc_page: boot stack: 0xffffffff821f1000 (pfn 0x21f1)
domainbuilder: detail: xc_dom_build_image: virt_alloc_end: 0xffffffff821f2000
domainbuilder: detail: xc_dom_build_image: virt_pgtab_end: 0xffffffff82400000
domainbuilder: detail: xc_dom_boot_image: called
domainbuilder: detail: arch_setup_bootearly: doing nothing
domainbuilder: detail: xc_dom_compat_check: supported guest type: xen-3.0-x86_64 <= matches
domainbuilder: detail: xc_dom_compat_check: supported guest type: xen-3.0-x86_32p
domainbuilder: detail: xc_dom_compat_check: supported guest type: hvm-3.0-x86_32
domainbuilder: detail: xc_dom_compat_check: supported guest type: hvm-3.0-x86_32p
domainbuilder: detail: xc_dom_compat_check: supported guest type: hvm-3.0-x86_64
domainbuilder: detail: xc_dom_update_guest_p2m: dst 64bit, pages 0x40000
domainbuilder: detail: clear_page: pfn 0x20x1caf05
domainbuilder: detail: clear_page: pfn 0x21da, mfn 0x1ca406
domainbuilder: detail: xc_dom_pfn_to_ptr: domU mapping: pfn 0x21d9+0x1 at 0x7f97d9e2f000
domainbuilder: detail: start_info_x86_64: called
domainbuilder: detail: setup_hypercall_page: vaddr=0xffffffff81001000 pfn=0x1001
domainbuilder: detail: domain builder memory footprint
domainbuilder: detail: allocated
domainbuilder: detail: malloc: 19956 kB
domainbuilder: detail: anon mmap: 0 bytes
domainbuilder : detail: mapped
domainbuilder: detail: file mmap: 4636 kB
domainbuilder: detail: domU mmap: 18364 kB
domainbuilder: detail: arch_setup_bootlate: shared_info: pfn 0x0, mfn 0xef475
domainbuilder: detail: shared_info_x86_64: called
domainbuilder: detail: vcpu_x86_64: called
domainbuilder : detail: vcpu_x86_64: cr3: pfn 0x21dc mfn 0x1ca404
domainbuilder: detail: launch_vm: called, ctxt=0x7fff6598dbd0
domainbuilder: detail: xc_dom_release: called

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question