[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Booting the FreeBSD kernel as an zImage file needs a patch upgrade ?.



root@devuan-bunsen:/mnt/zroot2/zroot2/OS/Chromebook/freebsd-xen/domU-freebsd# ./start-freebsd

Parsing config from freebsd.cfg
libxl: debug: libxl_create.c:2081:do_domain_create: ao 0x51b780: create: how=(nil) callback=(nil) poller=0x515c50
libxl: detail: libxl_create.c:662:libxl__domain_make: passthrough: disabled
libxl: debug: libxl_arm.c:148:libxl__arch_domain_prepare_config: Configure the domain
libxl: debug: libxl_arm.c:151:libxl__arch_domain_prepare_config:  - Allocate 0 SPIs
libxl: debug: libxl_device.c:415:libxl__device_disk_set_backend: Disk vdev=xvda spec.backend=unknown specification=xen
libxl: debug: libxl_device.c:452:libxl__device_disk_set_backend: Disk vdev=xvda, using backend phy
libxl: debug: libxl_create.c:1342:initiate_domain_create: Domain 4:running bootloader
libxl: debug: libxl_bootloader.c:417:libxl__bootloader_run: Domain 4:no bootloader configured, using user supplied kernel
libxl: debug: libxl_event.c:863:libxl__ev_xswatch_deregister: watch w=0x5168f0: deregister unregistered
domainbuilder: detail: xc_dom_allocate: cmdline="console=hvc0", features=""
domainbuilder: detail: xc_dom_kernel_file: filename="/mnt/zroot2/zroot2/OS/Chromebook/freebsd-xen/domU-freebsd/bootloaders/kernel.bin"
domainbuilder: detail: xc_dom_malloc_filemap    : 9620 kB
domainbuilder: detail: xc_dom_boot_xen_init: ver 4.17, caps xen-3.0-armv7l  
domainbuilder: detail: xc_dom_rambase_init: RAM starts at 40000
domainbuilder: detail: xc_dom_parse_image: called
domainbuilder: detail: xc_dom_find_loader: trying multiboot-binary loader ...  
domainbuilder: detail: loader probe failed
domainbuilder: detail: xc_dom_find_loader: trying Linux zImage (ARM64) loader ...  
domainbuilder: detail: xc_dom_probe_zimage64_kernel: kernel is not an arm64 Image
domainbuilder: detail: loader probe failed
domainbuilder: detail: xc_dom_find_loader: trying Linux zImage (ARM32) loader ...  
domainbuilder: detail: loader probe OK
domainbuilder: detail: xc_dom_parse_zimage32_kernel: called
domainbuilder: detail: xc_dom_parse_zimage32_kernel: xen-3.0-armv7l: 0x40008000 -> 0x4096d14c
domainbuilder: detail: xc_dom_compat_check: supported guest type: xen-3.0-armv7l <= matches
libxl: debug: libxl_arm.c:1145:libxl__prepare_dtb: constructing DTB for Xen version 4.17 guest
libxl: debug: libxl_arm.c:1147:libxl__prepare_dtb:  - vGIC version: V2
libxl: debug: libxl_arm.c:462:make_chosen_node: /chosen/bootargs = console=hvc0
libxl: debug: libxl_arm.c:614:make_memory_nodes: Creating placeholder node /memory@40000000
libxl: debug: libxl_arm.c:614:make_memory_nodes: Creating placeholder node /memory@200000000
libxl: debug: libxl_arm.c:1267:libxl__prepare_dtb: fdt total size 1475
domainbuilder: detail: xc_dom_devicetree_mem: called
libxl: debug: libxl_arm.c:1313:libxl__arch_domain_init_hw_description: Generating ACPI tables is disabled by user.
domainbuilder: detail: xc_dom_mem_init: mem 512 MB, pages 0x20000 pages, 4k each
domainbuilder: detail: xc_dom_mem_init: 0x20000 pages
domainbuilder: detail: xc_dom_boot_mem_init: called
domainbuilder: detail: set_mode: guest xen-3.0-armv7l, address size 32
domainbuilder: detail: populate_guest_memory: populating RAM @ 0000000040000000-0000000060000000 (512MB)
domainbuilder: detail: populate_one_size: populated 0x100/0x100 entries with shift 9
domainbuilder: detail: meminit: placing boot modules at 0x48000000
domainbuilder: detail: meminit: devicetree: 0x48000000 -> 0x48001000
libxl: debug: libxl_arm.c:1412:finalize_hypervisor_node: Extended region 0: 0x60000000->0x100000000
libxl: debug: libxl_arm.c:1412:finalize_hypervisor_node: Extended region 1: 0x200000000->0x10000000000
libxl: debug: libxl_arm.c:1347:finalise_one_node: Populating placeholder node /memory@40000000
libxl: debug: libxl_arm.c:1341:finalise_one_node: Nopping out placeholder node /memory@200000000
domainbuilder: detail: xc_dom_build_image: called
domainbuilder: detail: xc_dom_pfn_to_ptr_retcount: domU mapping: pfn 0x40008+0x966 at 0xb59f2000
domainbuilder: detail: xc_dom_alloc_segment:   kernel       : 0x40008000 -> 0x4096e000  (pfn 0x40008 + 0x966 pages)
domainbuilder: detail: xc_dom_load_zimage_kernel: called
domainbuilder: detail: xc_dom_load_zimage_kernel: kernel seg 0x40008000-0x4096e000
domainbuilder: detail: xc_dom_load_zimage_kernel: copy 9851212 bytes from blob 0xb6358000 to dst 0xb59f2000
domainbuilder: detail: xc_dom_pfn_to_ptr_retcount: domU mapping: pfn 0x48000+0x1 at 0xb6f89000
domainbuilder: detail: xc_dom_alloc_segment:   devicetree   : 0x48000000 -> 0x48001000  (pfn 0x48000 + 0x1 pages)
domainbuilder: detail: alloc_magic_pages: called
domainbuilder: detail: xc_dom_build_image  : virt_alloc_end : 0x48001000
domainbuilder: detail: xc_dom_build_image  : virt_pgtab_end : 0x0
domainbuilder: detail: xc_dom_boot_image: called
domainbuilder: detail: bootearly: doing nothing
domainbuilder: detail: start_info_arm: called
domainbuilder: detail: domain builder memory footprint
domainbuilder: detail:    allocated
domainbuilder: detail:       malloc             : 58 kB
domainbuilder: detail:       anon mmap          : 0 bytes
domainbuilder: detail:    mapped
domainbuilder: detail:       file mmap          : 9620 kB
domainbuilder: detail:       domU mmap          : 9628 kB
domainbuilder: detail: vcpu_arm32: called
domainbuilder: detail: Initial state CPSR 0x400001d3 PC 0x40008000
domainbuilder: detail: xc_dom_set_gnttab_entry: d4 gnt[0] -> d0 0x39000
domainbuilder: detail: xc_dom_set_gnttab_entry: d4 gnt[1] -> d0 0x39001
domainbuilder: detail: xc_dom_release: called

libxl: debug: libxl_device.c:415:libxl__device_disk_set_backend: Disk vdev=xvda spec.backend=phy specification=xen

libxl: debug: libxl_event.c:812:libxl__ev_xswatch_register: watch w=0x51a0e4 wpath=/local/domain/0/backend/vbd/4/51712/state token=3/0: register slotnum=3

libxl: debug: libxl_create.c:2120:do_domain_create: ao 0x51b780: inprogress: poller=0x515c50, flags=i

libxl: debug: libxl_event.c:750:watchfd_callback: watch w=0x51a0e4 wpath=/local/domain/0/backend/vbd/4/51712/state token=3/0: event epath=/local/domain/0/backend/vbd/4/51712/state

libxl: debug: libxl_event.c:1054:devstate_callback: backend /local/domain/0/backend/vbd/4/51712/state wanted state 2 still waiting state 1

libxl: debug: libxl_aoutils.c:88:xswait_timeout_callback: backend /local/domain/0/backend/vbd/4/51712/state (hoping for state change to 2): xswait timeout (path=/local/domain/0/backend/vbd/4/51712/state)

libxl: debug: libxl_event.c:849:libxl__ev_xswatch_deregister: watch w=0x51a0e4 wpath=/local/domain/0/backend/vbd/4/51712/state token=3/0: deregister slotnum=3

libxl: debug: libxl_event.c:1038:devstate_callback: backend /local/domain/0/backend/vbd/4/51712/state wanted state 2  timed out

libxl: debug: libxl_event.c:863:libxl__ev_xswatch_deregister: watch w=0x51a0e4: deregister unregistered
libxl: debug: libxl_device.c:1150:device_backend_callback: Domain 4:calling device_backend_cleanup
libxl: debug: libxl_event.c:863:libxl__ev_xswatch_deregister: watch w=0x51a0e4: deregister unregistered

libxl: error: libxl_device.c:1163:device_backend_callback: Domain 4:unable to add device with path /local/domain/0/backend/vbd/4/51712

libxl: debug: libxl_event.c:863:libxl__ev_xswatch_deregister: watch w=0x51a168: deregister unregistered
libxl: error: libxl_create.c:1672:domcreate_launch_dm: Domain 4:unable to add disk devices
libxl: debug: libxl_event.c:863:libxl__ev_xswatch_deregister: watch w=0x5177cc: deregister unregistered

libxl: debug: libxl_event.c:812:libxl__ev_xswatch_register: watch w=0x51a7c4 wpath=/local/domain/0/backend/vbd/4/51712/state token=3/1:register slotnum=3

libxl: debug: libxl_event.c:750:watchfd_callback: watch w=0x51a7c4 wpath=/local/domain/0/backend/vbd/4/51712/state token=3/1: event epath=/local/domain/0/backend/vbd/4/51712/state

libxl: debug: libxl_event.c:1054:devstate_callback: backend /local/domain/0/backend/vbd/4/51712/state wanted state 6 still waiting state 5

libxl: debug: libxl_aoutils.c:88:xswait_timeout_callback: backend /local/domain/0/backend/vbd/4/51712/state (hoping for state change to 6): xswait timeout (path=/local/domain/0/backend/vbd/4/51712/state)

libxl: debug: libxl_event.c:849:libxl__ev_xswatch_deregister: watch w=0x51a7c4 wpath=/local/domain/0/backend/vbd/4/51712/state token=3/1: deregister slotnum=3

libxl: debug: libxl_event.c:1038:devstate_callback: backend /local/domain/0/backend/vbd/4/51712/state wanted state 6  timed out
libxl: debug: libxl_event.c:863:libxl__ev_xswatch_deregister: watch w=0x51a7c4: deregister unregistered
libxl: debug: libxl_device.c:1150:device_backend_callback: Domain 4:calling device_backend_cleanup
libxl: debug: libxl_event.c:863:libxl__ev_xswatch_deregister: watch w=0x51a7c4: deregister unregistered

libxl: error: libxl_device.c:1163:device_backend_callback: Domain 4:unable to remove device with path /local/domain/0/backend/vbd/4/51712

libxl: debug: libxl_event.c:863:libxl__ev_xswatch_deregister: watch w=0x51a848: deregister unregistered
libxl: error: libxl_domain.c:1530:devices_destroy_cb: Domain 4:libxl__devices_destroy failed
libxl: debug: libxl_domain.c:1597:devices_destroy_cb: Domain 4:Forked pid 3185 for destroy of domain
libxl: debug: libxl_event.c:2067:libxl__ao_complete: ao 0x51b780: complete, rc=-3
libxl: debug: libxl_event.c:2036:libxl__ao__destroy: ao 0x51b780: destroy
libxl: debug: libxl_domain.c:1046:libxl_domain_destroy: Domain 4:ao 0x51b780: create: how=(nil) callback=(nil) poller=0x515c50
libxl: error: libxl_domain.c:1183:libxl__destroy_domid: Domain 4:Non-existent domain
libxl: error: libxl_domain.c:1137:domain_destroy_callback: Domain 4:Unable to destroy guest
libxl: error: libxl_domain.c:1064:domain_destroy_cb: Domain 4:Destruction of domain failed
libxl: debug: libxl_event.c:2067:libxl__ao_complete: ao 0x51b780: complete, rc=-21
libxl: debug: libxl_domain.c:1055:libxl_domain_destroy: Domain 4:ao 0x51b780: inprogress: poller=0x515c50, flags=ic
libxl: debug: libxl_event.c:2036:libxl__ao__destroy: ao 0x51b780: destroy
xencall:buffer: debug: total allocations:102 total releases:102
xencall:buffer: debug: current allocations:0 maximum allocations:3
xencall:buffer: debug: cache current size:3
xencall:buffer: debug: cache hits:90 misses:3 toobig:9
xencall:buffer: debug: total allocations:0 total releases:0
xencall:buffer: debug: current allocations:0 maximum allocations:0
xencall:buffer: debug: cache current size:0
xencall:buffer: debug: cache hits:0 misses:0 toobig:0

freebsd is an invalid domain identifier (rc=-6)



On Tue, Jan 9, 2024 at 5:19 PM Julien Grall <julien@xxxxxxx> wrote:
Hi Mario,

On 09/01/2024 00:25, Mario Marietto wrote:
> A great progress,I think :
>
> name="freebsd"
> kernel="/mnt/zroot2/zroot2/OS/Chromebook/freebsd-xen/domU-freebsd/bootloaders/kernel.bin"
>
> extra = "console=hvc0"
> memory=512
> vcpus=1
> disk = [ 'FreeBSD-13.2-RELEASE-armv7.img,raw,xvda' ]
>
> root@devuan-bunsen:/mnt/zroot2/zroot2/OS/Chromebook/freebsd-xen/domU-freebsd#
> ./start-freebsd
>
> Parsing config from freebsd.cfg
> libxl: error: libxl_device.c:1163:device_backend_callback: Domain 1:unable
> to add device with path /
> local/domain/0/backend/vbd/1/51712
> libxl: error: libxl_create.c:1672:domcreate_launch_dm: Domain 1:unable to
> add disk devices
> libxl: error: libxl_device.c:1163:device_backend_callback: Domain 1:unable
> to remove device with pat
> h /local/domain/0/backend/vbd/1/51712
> libxl: error: libxl_domain.c:1530:devices_destroy_cb: Domain
> 1:libxl__devices_destroy failed
> libxl: error: libxl_domain.c:1183:libxl__destroy_domid: Domain
> 1:Non-existent domain
> libxl: error: libxl_domain.c:1137:domain_destroy_callback: Domain 1:Unable
> to destroy guest
> libxl: error: libxl_domain.c:1064:domain_destroy_cb: Domain 1:Destruction
> of domain failed
> freebsd is an invalid domain identifier (rc=-6)

There are not much information in the logs indicating why the disk
devices couldn't be added. To confirm, have you been able to boot a
Linux guest on the same setup?

A few more questions:
   - Can you confirm your dom0 setup?
   - Do you have xen-blkback either loaded or built into the kernel?
   - Can you run again with 'xl -vvvv create ...'? The command should be
more verbose and hopeful give us more details why the device can't be
added..

Cheers,

--
Julien Grall


--
Mario.

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.