Issue getting my first Xen domU up

Eric Bautsch eric.bautsch at pobox.com
Tue Feb 5 07:18:23 UTC 2019


Hi.


I'm trying to get a Xen domU up and running.

I'm running FreeBSD 12.0. System is a new install.


I'm following the instructions here:

https://www.freebsd.org/doc/handbook/virtualization-host-xen.html


My config file looks thus:

builder = "hvm"
name = "titania"
memory = 8192
vcpus = 2
vif = [ 'mac=00:16:3E:11:11:21,bridge=bridge0' ]
disk = [ '/dev/zvol/zroot/titania0,raw,hda,rw' ]
vnc = 1
vnclisten = "0.0.0.0"
serial = "pty"

Upon trying to create the domU, I think it's trying to tell me that it's got 
issues with the storage, but that may be a red herring as the qemu command seems 
to include the storage. Nevertheless, I have also tried with sda and messed 
around with qcow2 (that one didn't work, but probably due to my wrong 
incantation). Anyway here's the output from the above config file.


Any help would be greatly appreciated.


Thanks.

Eric


root at bianca:/export/vm # xl -vvvv create /export/vm/titania.cfg
Parsing config from /export/vm/titania.cfg
libxl: debug: libxl_create.c:1670:do_domain_create: Domain 0:ao 0x8008eb0a0: 
create: how=0x0 callback=0x0 poller=0x8008e50a0
libxl: debug: libxl_device.c:397:libxl__device_disk_set_backend: Disk vdev=hda 
spec.backend=unknown
libxl: debug: libxl_device.c:432:libxl__device_disk_set_backend: Disk vdev=hda, 
using backend phy
libxl: debug: libxl_create.c:1007:initiate_domain_create: Domain 3:running 
bootloader
libxl: debug: libxl_bootloader.c:328:libxl__bootloader_run: Domain 3:not a 
PV/PVH domain, skipping bootloader
libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch 
w=0x800915b70: deregister unregistered
domainbuilder: detail: xc_dom_allocate: cmdline="", features=""
domainbuilder: detail: xc_dom_kernel_file: 
filename="/usr/local/lib/xen/boot/hvmloader"
domainbuilder: detail: xc_dom_malloc_filemap    : 176 kB
libxl: debug: libxl_dom.c:970:libxl__load_hvm_firmware_module: Loading BIOS: 
/usr/local/share/seabios/bios.bin
domainbuilder: detail: xc_dom_boot_xen_init: ver 4.11, 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 multiboot-binary loader ...
domainbuilder: detail: loader probe failed
domainbuilder: detail: xc_dom_find_loader: trying HVM-generic loader ...
domainbuilder: detail: loader probe OK
xc: detail: ELF: phdr: paddr=0x100000 memsz=0x337e8
xc: detail: ELF: memory: 0x100000 -> 0x1337e8
domainbuilder: detail: xc_dom_mem_init: mem 8184 MB, pages 0x1ff800 pages, 4k each
domainbuilder: detail: xc_dom_mem_init: 0x1ff800 pages
domainbuilder: detail: xc_dom_boot_mem_init: called
domainbuilder: detail: range: start=0x0 end=0xf0000000
domainbuilder: detail: range: start=0x100000000 end=0x20f800000
domainbuilder: detail: xc_dom_malloc            : 16880 kB
xc: detail: PHYSICAL MEMORY ALLOCATION:
xc: detail:   4KB PAGES: 0x0000000000000200
xc: detail:   2MB PAGES: 0x00000000000003fb
xc: detail:   1GB PAGES: 0x0000000000000006
domainbuilder: detail: xc_dom_build_image: called
domainbuilder: detail: xc_dom_pfn_to_ptr_retcount: domU mapping: pfn 0x100+0x34 
at 0x8009c6000
domainbuilder: detail: xc_dom_alloc_segment:   kernel       : 0x100000 -> 
0x134000  (pfn 0x100 + 0x34 pages)
xc: detail: ELF: phdr 0 at 0x802401000 -> 0x80242ad7c
domainbuilder: detail: xc_dom_pfn_to_ptr_retcount: domU mapping: pfn 0x134+0x40 
at 0x802401000
domainbuilder: detail: xc_dom_alloc_segment:   System Firmware module : 0x134000 
-> 0x174000  (pfn 0x134 + 0x40 pages)
domainbuilder: detail: xc_dom_pfn_to_ptr_retcount: domU mapping: pfn 0x174+0x1 
at 0x8009fa000
domainbuilder: detail: xc_dom_alloc_segment:   HVM start info : 0x174000 -> 
0x175000  (pfn 0x174 + 0x1 pages)
domainbuilder: detail: alloc_pgtables_hvm: doing nothing
domainbuilder: detail: xc_dom_build_image  : virt_alloc_end : 0x175000
domainbuilder: detail: xc_dom_build_image  : virt_pgtab_end : 0x0
domainbuilder: detail: xc_dom_boot_image: called
domainbuilder: detail: xc_dom_compat_check: supported guest type: xen-3.0-x86_64
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 
<= matches
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: domain builder memory footprint
domainbuilder: detail:    allocated
domainbuilder: detail:       malloc             : 16885 kB
domainbuilder: detail:       anon mmap          : 0 bytes
domainbuilder: detail:    mapped
domainbuilder: detail:       file mmap          : 176 kB
domainbuilder: detail:       domU mmap          : 468 kB
domainbuilder: detail: vcpu_hvm: called
domainbuilder: detail: xc_dom_gnttab_hvm_seed: called, pfn=0x20f800
domainbuilder: detail: xc_dom_gnttab_hvm_seed: called, pfn=0x20f801
domainbuilder: detail: xc_dom_release: called
libxl: debug: libxl_device.c:397:libxl__device_disk_set_backend: Disk vdev=hda 
spec.backend=phy
libxl: debug: libxl_event.c:636:libxl__ev_xswatch_register: watch w=0x8009c23d0 
wpath=/local/domain/0/backend/vbd/3/768/state token=3/0: register slotnum=3
libxl: debug: libxl_create.c:1707:do_domain_create: Domain 0:ao 0x8008eb0a0: 
inprogress: poller=0x8008e50a0, flags=i
libxl: debug: libxl_event.c:573:watchfd_callback: watch w=0x8009c23d0 
wpath=/local/domain/0/backend/vbd/3/768/state token=3/0: event 
epath=/local/domain/0/backend/vbd/3/768/state
libxl: debug: libxl_event.c:878:devstate_callback: backend 
/local/domain/0/backend/vbd/3/768/state wanted state 2 still waiting state 1
libxl: debug: libxl_event.c:573:watchfd_callback: watch w=0x8009c23d0 
wpath=/local/domain/0/backend/vbd/3/768/state token=3/0: event 
epath=/local/domain/0/backend/vbd/3/768/state
libxl: debug: libxl_event.c:874:devstate_callback: backend 
/local/domain/0/backend/vbd/3/768/state wanted state 2 ok
libxl: debug: libxl_event.c:673:libxl__ev_xswatch_deregister: watch 
w=0x8009c23d0 wpath=/local/domain/0/backend/vbd/3/768/state token=3/0: 
deregister slotnum=3
libxl: debug: libxl_device.c:1117:device_backend_callback: Domain 3:calling 
device_backend_cleanup
libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch 
w=0x8009c23d0: deregister unregistered
libxl: debug: libxl_device.c:1218:device_hotplug: Domain 3:calling hotplug 
script: /usr/local/etc/xen/scripts/block /local/domain/0/backend/vbd/3/768
libxl: debug: libxl_device.c:1219:device_hotplug: Domain 3:extra args:
libxl: debug: libxl_device.c:1225:device_hotplug: Domain 3: add
libxl: debug: libxl_device.c:1227:device_hotplug: Domain 3:env:
libxl: debug: libxl_aoutils.c:593:libxl__async_exec_start: forking to execute: 
/usr/local/etc/xen/scripts/block /local/domain/0/backend/vbd/3/768
libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch 
w=0x8009c24d0: deregister unregistered
libxl: debug: libxl_device.c:1203:device_hotplug: Domain 3:No hotplug script to 
execute
libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch 
w=0x8009c24d0: deregister unregistered
libxl: debug: libxl_disk.c:918:libxl__device_disk_find_local_path: Directly 
accessing local RAW disk /dev/zvol/zroot/titania0
libxl: debug: libxl_dm.c:1656:libxl__build_device_model_args_new: Domain 
3:dm_restrict disabled, starting QEMU as root
libxl: debug: libxl_dm.c:2331:libxl__spawn_local_dm: Domain 3:Spawning 
device-model /usr/local/lib/xen/bin/qemu-system-i386 with arguments:
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: 
/usr/local/lib/xen/bin/qemu-system-i386
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: -xen-domid
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: 3
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: -chardev
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: 
socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-3,server,nowait
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: -no-shutdown
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: -mon
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: 
chardev=libxl-cmd,mode=control
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: -chardev
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: 
socket,id=libxenstat-cmd,path=/var/run/xen/qmp-libxenstat-3,server,nowait
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: -mon
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: 
chardev=libxenstat-cmd,mode=control
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: -nodefaults
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: -no-user-config
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: -name
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: titania
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: -vnc
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: 0.0.0.0:0,to=99
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: -display
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: none
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: -serial
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: pty
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: -device
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: 
cirrus-vga,vgamem_mb=8
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: -boot
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: order=cda
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: -smp
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: 2,maxcpus=2
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: -device
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: 
rtl8139,id=nic0,netdev=net0,mac=00:16:3e:11:11:21
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: -netdev
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: 
type=tap,id=net0,ifname=xnb3.0-emu,script=no,downscript=no
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: -machine
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: xenfv
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: -m
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: 8184
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: -drive
libxl: debug: libxl_dm.c:2333:libxl__spawn_local_dm: Domain 3: 
file=/dev/zvol/zroot/titania0,if=ide,index=0,media=disk,format=raw,cache=writeback
libxl: debug: libxl_dm.c:2335:libxl__spawn_local_dm: Domain 3:Spawning 
device-model /usr/local/lib/xen/bin/qemu-system-i386 with additional environment:
libxl: debug: libxl_dm.c:2337:libxl__spawn_local_dm: Domain 3: 
XEN_QEMU_CONSOLE_LIMIT=1048576
libxl: debug: libxl_event.c:636:libxl__ev_xswatch_register: watch w=0x800915e68 
wpath=/local/domain/0/device-model/3/state token=3/1: register slotnum=3
libxl: debug: libxl_event.c:573:watchfd_callback: watch w=0x800915e68 
wpath=/local/domain/0/device-model/3/state token=3/1: event 
epath=/local/domain/0/device-model/3/state
libxl: debug: libxl_exec.c:398:spawn_watch_event: domain 3 device model: spawn 
watch p=(null)
libxl: debug: libxl_event.c:673:libxl__ev_xswatch_deregister: watch 
w=0x800915e68 wpath=/local/domain/0/device-model/3/state token=3/1: deregister 
slotnum=3
libxl: error: libxl_dm.c:2427:device_model_spawn_outcome: Domain 3:domain 3 
device model: spawn failed (rc=-3)
libxl: error: libxl_create.c:1562:domcreate_devmodel_started: Domain 3:device 
model did not start: -3
libxl: error: libxl_dm.c:2541:kill_device_model: Device Model already exited
libxl: debug: libxl_event.c:636:libxl__ev_xswatch_register: watch w=0x8009c29d0 
wpath=/local/domain/0/backend/vbd/3/768/state token=3/2: register slotnum=3
libxl: debug: libxl_event.c:573:watchfd_callback: watch w=0x8009c29d0 
wpath=/local/domain/0/backend/vbd/3/768/state token=3/2: event 
epath=/local/domain/0/backend/vbd/3/768/state
libxl: debug: libxl_event.c:874:devstate_callback: backend 
/local/domain/0/backend/vbd/3/768/state wanted state 6 ok
libxl: debug: libxl_event.c:673:libxl__ev_xswatch_deregister: watch 
w=0x8009c29d0 wpath=/local/domain/0/backend/vbd/3/768/state token=3/2: 
deregister slotnum=3
libxl: debug: libxl_device.c:1117:device_backend_callback: Domain 3:calling 
device_backend_cleanup
libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch 
w=0x8009c29d0: deregister unregistered
libxl: debug: libxl_device.c:1218:device_hotplug: Domain 3:calling hotplug 
script: /usr/local/etc/xen/scripts/block /local/domain/0/backend/vbd/3/768
libxl: debug: libxl_device.c:1219:device_hotplug: Domain 3:extra args:
libxl: debug: libxl_device.c:1225:device_hotplug: Domain 3: remove
libxl: debug: libxl_device.c:1227:device_hotplug: Domain 3:env:
libxl: debug: libxl_aoutils.c:593:libxl__async_exec_start: forking to execute: 
/usr/local/etc/xen/scripts/block /local/domain/0/backend/vbd/3/768
libxl: debug: libxl_event.c:542:watchfd_callback: watch 
epath=/local/domain/0/backend/vbd/3/768/state token=3/2: empty slot
libxl: debug: libxl_event.c:542:watchfd_callback: watch 
epath=/local/domain/0/backend/vbd/3/768/state token=3/2: empty slot
libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch 
w=0x8009c2ad0: deregister unregistered
libxl: debug: libxl_device.c:1203:device_hotplug: Domain 3:No hotplug script to 
execute
libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch 
w=0x8009c2ad0: deregister unregistered
libxl: debug: libxl_device.c:1203:device_hotplug: Domain 3:No hotplug script to 
execute
libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch 
w=0x8009c2dd0: deregister unregistered
libxl: debug: libxl_domain.c:1172:devices_destroy_cb: Domain 3:Forked pid 1427 
for destroy of domain
libxl: debug: libxl_event.c:1869:libxl__ao_complete: ao 0x8008eb0a0: complete, rc=-3
libxl: debug: libxl_event.c:1838:libxl__ao__destroy: ao 0x8008eb0a0: destroy
libxl: debug: libxl_domain.c:902:libxl_domain_destroy: Domain 3:ao 0x8008eb0a0: 
create: how=0x0 callback=0x0 poller=0x8008e50a0
libxl: error: libxl_domain.c:1034:libxl__destroy_domid: Domain 3:Non-existant domain
libxl: error: libxl_domain.c:993:domain_destroy_callback: Domain 3:Unable to 
destroy guest
libxl: error: libxl_domain.c:920:domain_destroy_cb: Domain 3:Destruction of 
domain failed
libxl: debug: libxl_event.c:1869:libxl__ao_complete: ao 0x8008eb0a0: complete, 
rc=-21
libxl: debug: libxl_domain.c:911:libxl_domain_destroy: Domain 3:ao 0x8008eb0a0: 
inprogress: poller=0x8008e50a0, flags=ic
libxl: debug: libxl_event.c:1838:libxl__ao__destroy: ao 0x8008eb0a0: destroy
xencall:buffer: debug: total allocations:691 total releases:691
xencall:buffer: debug: current allocations:0 maximum allocations:3
xencall:buffer: debug: cache current size:3
xencall:buffer: debug: cache hits:674 misses:3 toobig:14
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
root at bianca:/export/vm #







-- 
  
       ____
      /          .                           Eric A. Bautsch
     /--   __       ___                ______________________________________
    /     /    /   /                  /
   (_____/____(___(__________________/       email: eric.bautsch at pobox.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4127 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.freebsd.org/pipermail/freebsd-xen/attachments/20190205/5d5c3c08/attachment.bin>


More information about the freebsd-xen mailing list