Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Nov 2015 20:55:47 -0500
From:      "Thomas Laus" <lausts@acm.org>
To:        Roger Pau Monné <roger.pau@citrix.com>
Cc:        freebsd-xen@freebsd.org
Subject:   Re: Does a Xen Dom0 require X to function - WORKS NOW
Message-ID:  <563D5A23.25666.B1515@lausts.acm.org>
In-Reply-To: <563CDEB0.5010405@citrix.com>
References:  <5633A2B0.22403.45280A@lausts.acm.org>, <563CC5CC.19454.173726@lausts.acm.org>, <563CDEB0.5010405@citrix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> # xl -vvv create freebsd_nodm.cfg 2> test.out
> # cat test.out
> Parsing config from freebsd_nodm.cfg
> libxl: debug: libxl_create.c:1575:do_domain_create: ao 0x1c7a8e0:
> create: how=(nil) callback=(nil) poller=0x1c6fb20
> libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk
> vdev=hda spec.backend=unknown
> libxl: debug: libxl_device.c:298:libxl__device_disk_set_backend: Disk
> vdev=hda, using backend phy
> [...]
>
Paul:

I made a temporary change to the FreeBSD default 'csh' shell for the root 
account and captured the 'xl create' file:

Parsing config from freebsd.cfg
libxl: debug: libxl_create.c:1504:do_domain_create: ao 0x802849060: create: 
how=0x0 callback=0x0 poller=0x802824060
libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk 
vdev=hda spec.backend=unknown
libxl: debug: libxl_device.c:298:libxl__device_disk_set_backend: Disk 
vdev=hda, using backend phy
libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk 
vdev=hdc spec.backend=unknown
libxl: debug: libxl_device.c:298:libxl__device_disk_set_backend: Disk 
vdev=hdc, using backend phy
libxl: debug: libxl_create.c:907:initiate_domain_create: running bootloader
libxl: debug: libxl_bootloader.c:323:libxl__bootloader_run: not a PV domain, 
skipping bootloader
libxl: debug: libxl_event.c:629:libxl__ev_xswatch_deregister: watch 
w=0x802858770: deregister unregistered
xc: detail: elf_parse_binary: phdr: paddr=0x100000 memsz=0x59b0c
xc: detail: elf_parse_binary: memory: 0x100000 -> 0x159b0c
xc: detail: VIRTUAL MEMORY ARRANGEMENT:
xc: detail:   Loader:   0000000000100000->0000000000159b0c
xc: detail:   Modules:  0000000000000000->0000000000000000
xc: detail:   TOTAL:    0000000000000000->000000001f800000
xc: detail:   ENTRY:    0000000000100000
xc: detail: PHYSICAL MEMORY ALLOCATION:
xc: detail:   4KB PAGES: 0x0000000000000200
xc: detail:   2MB PAGES: 0x00000000000000fb
xc: detail:   1GB PAGES: 0x0000000000000000
xc: detail: elf_load_binary: phdr 0 at 0x80067a000 -> 0x8006caab1
domainbuilder: detail: xc_dom_gnttab_hvm_seed: called, pfn=0xff000
libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk 
vdev=hda spec.backend=phy
libxl: debug: libxl_event.c:577:libxl__ev_xswatch_register: watch 
w=0x802b9e208 wpath=/local/domain/0/backend/vbd/2/768/state token=3/0: 
register slotnum=3
libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk 
vdev=hdc spec.backend=phy
libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk 
vdev=hdc spec.backend=phy
libxl: debug: libxl_event.c:577:libxl__ev_xswatch_register: watch 
w=0x802b9e3c8 wpath=/local/domain/0/backend/vbd/2/5632/state token=2/1: 
register slotnum=2
libxl: debug: libxl_create.c:1520:do_domain_create: ao 0x802849060: 
inprogress: poller=0x802824060, flags=i
libxl: debug: libxl_event.c:514:watchfd_callback: watch w=0x802b9e208 
wpath=/local/domain/0/backend/vbd/2/768/state token=3/0: event 
epath=/local/domain/0/backend/vbd/2/768/state
libxl: debug: libxl_event.c:830:devstate_watch_callback: backend 
/local/domain/0/backend/vbd/2/768/state wanted state 2 ok
libxl: debug: libxl_event.c:615:libxl__ev_xswatch_deregister: watch 
w=0x802b9e208 wpath=/local/domain/0/backend/vbd/2/768/state token=3/0: 
deregister slotnum=3
libxl: debug: libxl_event.c:629:libxl__ev_xswatch_deregister: watch 
w=0x802b9e208: deregister unregistered
libxl: debug: libxl_event.c:629:libxl__ev_xswatch_deregister: watch 
w=0x802b9e290: deregister unregistered
libxl: debug: libxl_event.c:483:watchfd_callback: watch 
epath=/local/domain/0/backend/vbd/2/768/state token=3/0: empty slot
libxl: debug: libxl_event.c:514:watchfd_callback: watch w=0x802b9e3c8 
wpath=/local/domain/0/backend/vbd/2/5632/state token=2/1: event 
epath=/local/domain/0/backend/vbd/2/5632/state
libxl: debug: libxl_event.c:834:devstate_watch_callback: backend 
/local/domain/0/backend/vbd/2/5632/state wanted state 2 still waiting state 1
libxl: debug: libxl_event.c:514:watchfd_callback: watch w=0x802b9e3c8 
wpath=/local/domain/0/backend/vbd/2/5632/state token=2/1: event 
epath=/local/domain/0/backend/vbd/2/5632/state
libxl: debug: libxl_event.c:830:devstate_watch_callback: backend 
/local/domain/0/backend/vbd/2/5632/state wanted state 2 ok
libxl: debug: libxl_event.c:615:libxl__ev_xswatch_deregister: watch 
w=0x802b9e3c8 wpath=/local/domain/0/backend/vbd/2/5632/state token=2/1: 
deregister slotnum=2
libxl: debug: libxl_event.c:629:libxl__ev_xswatch_deregister: watch 
w=0x802b9e3c8: deregister unregistered
libxl: debug: libxl_event.c:629:libxl__ev_xswatch_deregister: watch 
w=0x802b9e450: deregister unregistered
libxl: debug: libxl_dm.c:1435:libxl__spawn_local_dm: Spawning device-model 
/usr/local/lib/xen/bin/qemu-system-i386 with arguments:
libxl: debug: libxl_dm.c:1437:libxl__spawn_local_dm:   
/usr/local/lib/xen/bin/qemu-system-i386
libxl: debug: libxl_dm.c:1437:libxl__spawn_local_dm:   -xen-domid
libxl: debug: libxl_dm.c:1437:libxl__spawn_local_dm:   2
libxl: debug: libxl_dm.c:1437:libxl__spawn_local_dm:   -chardev
libxl: debug: libxl_dm.c:1437:libxl__spawn_local_dm:   
socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-2,server,nowait
libxl: debug: libxl_dm.c:1437:libxl__spawn_local_dm:   -mon
libxl: debug: libxl_dm.c:1437:libxl__spawn_local_dm:   
chardev=libxl-cmd,mode=control
libxl: debug: libxl_dm.c:1437:libxl__spawn_local_dm:   -nodefaults
libxl: debug: libxl_dm.c:1437:libxl__spawn_local_dm:   -name
libxl: debug: libxl_dm.c:1437:libxl__spawn_local_dm:   FreeBSD
libxl: debug: libxl_dm.c:1437:libxl__spawn_local_dm:   -vnc
libxl: debug: libxl_dm.c:1437:libxl__spawn_local_dm:   0.0.0.0:0,to=99
libxl: debug: libxl_dm.c:1437:libxl__spawn_local_dm:   -display
libxl: debug: libxl_dm.c:1437:libxl__spawn_local_dm:   none
libxl: debug: libxl_dm.c:1437:libxl__spawn_local_dm:   -device
libxl: debug: libxl_dm.c:1437:libxl__spawn_local_dm:   cirrus-vga,vgamem_mb=8
libxl: debug: libxl_dm.c:1437:libxl__spawn_local_dm:   -boot
libxl: debug: libxl_dm.c:1437:libxl__spawn_local_dm:   order=d
libxl: debug: libxl_dm.c:1437:libxl__spawn_local_dm:   -net
libxl: debug: libxl_dm.c:1437:libxl__spawn_local_dm:   none
libxl: debug: libxl_dm.c:1437:libxl__spawn_local_dm:   -machine
libxl: debug: libxl_dm.c:1437:libxl__spawn_local_dm:   xenfv
libxl: debug: libxl_dm.c:1437:libxl__spawn_local_dm:   -m
libxl: debug: libxl_dm.c:1437:libxl__spawn_local_dm:   504
libxl: debug: libxl_dm.c:1437:libxl__spawn_local_dm:   -drive
libxl: debug: libxl_dm.c:1437:libxl__spawn_local_dm:   
file=/root/xen/freebsd.img,if=ide,index=0,media=disk,format=raw,cache=writebac
k
libxl: debug: libxl_dm.c:1437:libxl__spawn_local_dm:   -drive
libxl: debug: libxl_dm.c:1437:libxl__spawn_local_dm:   
file=/root/bhyve/freebsd11.iso,if=ide,index=2,readonly=on,media=cdrom,format=r
aw,cache=writeback,id=ide-5632
libxl: debug: libxl_event.c:577:libxl__ev_xswatch_register: watch 
w=0x8028589d0 wpath=/local/domain/0/device-model/2/state token=2/2: register 
slotnum=2
libxl: debug: libxl_event.c:514:watchfd_callback: watch w=0x8028589d0 
wpath=/local/domain/0/device-model/2/state token=2/2: event 
epath=/local/domain/0/device-model/2/state
libxl: debug: libxl_event.c:514:watchfd_callback: watch w=0x8028589d0 
wpath=/local/domain/0/device-model/2/state token=2/2: event 
epath=/local/domain/0/device-model/2/state
libxl: debug: libxl_event.c:615:libxl__ev_xswatch_deregister: watch 
w=0x8028589d0 wpath=/local/domain/0/device-model/2/state token=2/2: 
deregister slotnum=2
libxl: debug: libxl_event.c:629:libxl__ev_xswatch_deregister: watch 
w=0x8028589d0: deregister unregistered
libxl: debug: libxl_qmp.c:691:libxl__qmp_initialize: connected to 
/var/run/xen/qmp-libxl-2
libxl: debug: libxl_qmp.c:296:qmp_handle_response: message type: qmp
libxl: debug: libxl_qmp.c:541:qmp_send_prepare: next qmp command: '{
    "execute": "qmp_capabilities",
    "id": 1
}
'
libxl: debug: libxl_qmp.c:296:qmp_handle_response: message type: return
libxl: debug: libxl_qmp.c:541:qmp_send_prepare: next qmp command: '{
    "execute": "query-chardev",
    "id": 2
}
'
libxl: debug: libxl_qmp.c:296:qmp_handle_response: message type: return
libxl: debug: libxl_qmp.c:541:qmp_send_prepare: next qmp command: '{
    "execute": "query-vnc",
    "id": 3
}
'
libxl: debug: libxl_qmp.c:296:qmp_handle_response: message type: return
libxl: debug: libxl_event.c:1941:libxl__ao_progress_report: ao 0x802849060: 
progress report: ignored
libxl: debug: libxl_event.c:1765:libxl__ao_complete: ao 0x802849060: 
complete, rc=0
libxl: debug: libxl_event.c:1737:libxl__ao__destroy: ao 0x802849060: destroy
xc: debug: hypercall buffer: total allocations:620 total releases:620
xc: debug: hypercall buffer: current allocations:0 maximum allocations:4
xc: debug: hypercall buffer: cache current size:4
xc: debug: hypercall buffer: cache hits:607 misses:4 toobig:9

I also upgraded my FreeBSD-CURRENT to r290462 as well as upgraded the xen 
port to the most recent.  After all of that, everything appears to work and I 
can install both an OpenBSD and a FreeBSD instance.  Both of them boot OK and 
are fully functional.

Thank you for all of the help in pointing me down the right path.

Tom

-- 
Public Keys:
PGP KeyID = 0x5F22FDC1
GnuPG KeyID = 0x620836CF




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?563D5A23.25666.B1515>