Trying out vixen: failure to start device model

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Trying out vixen: failure to start device model

andy smith-10
Hi,

I'm attempting to experiment with Vixen as described in the recent
XSA-254 update. Unfortunately I'm failing at the first hurdle and am
probably doing something stupid.

All the steps up until creating the guest seemed to work. I ended up
with a generated config that looks like this:

name       = "debtest1"
memory     = 2560
vcpus      = 2
vif        = [ "mac=00:16:5e:00:02:39, ip=192.168.82.225, vifname=v-debtest1" ]
kernel     = "/opt/grub/lib/grub-x86_64-xen.bin"
disk       = [ "phy:/dev/ssdvg/domu_debtest1_xvda,xvda,w",
               "phy:/dev/ssdvg/domu_debtest1_xvdb,xvdb,w" ]
builder='hvm'
type='hvm'
device_model_version='qemu-xen'
device_model_override='/var/lib/xen/pvshim-sidecars/debtest1.dm'
device_model_args_hvm=['-cdrom','/var/lib/xen/pvshim-sidecars/debtest1.iso']
boot='c'
serial='pty'

When I try to create it I get:

Parsing config from /etc/xen/debtest1-with-shim.conf
libxl: error: libxl_dm.c:2189:device_model_spawn_outcome: domain 7 device model: spawn failed (rc=-3)
libxl: error: libxl_create.c:1504:domcreate_devmodel_started: device model did not start: -3
libxl: error: libxl_dm.c:2303:kill_device_model: Device Model already exited
libxl: error: libxl.c:1575:libxl__destroy_domid: non-existant domain 7
libxl: error: libxl.c:1534:domain_destroy_callback: unable to destroy guest with domid 7
libxl: error: libxl.c:1463:domain_destroy_cb: destruction of domain 7 failed

I've never tried running anything HVM before so I'm probably just
missing some qemu thing.

The dom0 is Debian jessie and qemu-system-x86 package is installed.

The rest of the Xen installation is a recompiled 4.8 from
jessie-backports.

Searching around for the error, I saw someone 4 years ago had some
success with:

device_model_version="qemu-xen"
device_model_override="/usr/bin/qemu-system-x86_64"

But I don't think that could be the answer as 1) it's later said
that's no longer necessary, and 2) device_model_override is already
being set above.

Any ideas?

Cheers,
Andy

_______________________________________________
Xen-users mailing list
[hidden email]
https://lists.xenproject.org/mailman/listinfo/xen-users
Reply | Threaded
Open this post in threaded view
|

Re: Trying out vixen: failure to start device model

andy smith-10
On Thu, Jan 11, 2018 at 09:16:52PM +0000, Andy Smith wrote:
> Parsing config from /etc/xen/debtest1-with-shim.conf
> libxl: error: libxl_dm.c:2189:device_model_spawn_outcome: domain 7 device model: spawn failed (rc=-3)
> libxl: error: libxl_create.c:1504:domcreate_devmodel_started: device model did not start: -3
> libxl: error: libxl_dm.c:2303:kill_device_model: Device Model already exited
> libxl: error: libxl.c:1575:libxl__destroy_domid: non-existant domain 7
> libxl: error: libxl.c:1534:domain_destroy_callback: unable to destroy guest with domid 7
> libxl: error: libxl.c:1463:domain_destroy_cb: destruction of domain 7 failed

xl -vvvv output:

Parsing config from /etc/xen/debtest1-with-shim.conf
libxl: debug: libxl_create.c:1614:do_domain_create: ao 0x1b45bc0: create: how=(nil) callback=(nil) poller=0x1b45c50
libxl: debug: libxl_device.c:361:libxl__device_disk_set_backend: Disk vdev=xvda spec.backend=unknown
libxl: debug: libxl_device.c:396:libxl__device_disk_set_backend: Disk vdev=xvda, using backend phy
libxl: debug: libxl_device.c:361:libxl__device_disk_set_backend: Disk vdev=xvdb spec.backend=unknown
libxl: debug: libxl_device.c:396:libxl__device_disk_set_backend: Disk vdev=xvdb, using backend phy
libxl: debug: libxl_create.c:970:initiate_domain_create: running bootloader
libxl: debug: libxl_bootloader.c:324:libxl__bootloader_run: not a PV domain, skipping bootloader
libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch w=0x1b46760: deregister unregistered
domainbuilder: detail: xc_dom_allocate: cmdline="(null)", features="(null)"
domainbuilder: detail: xc_dom_kernel_file: filename="/usr/lib/xen-4.8/boot/hvmloader"
domainbuilder: detail: xc_dom_malloc_filemap    : 169 kB
libxl: debug: libxl_dom.c:884:libxl__load_hvm_firmware_module: Loading BIOS: /usr/share/seabios/bios-256k.bin
domainbuilder: detail: xc_dom_boot_xen_init: ver 4.8, 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=0x33e84
xc: detail: ELF: memory: 0x100000 -> 0x133e84
domainbuilder: detail: xc_dom_mem_init: mem 2552 MB, pages 0x9f800 pages, 4k each
domainbuilder: detail: xc_dom_mem_init: 0x9f800 pages
domainbuilder: detail: xc_dom_boot_mem_init: called
domainbuilder: detail: xc_dom_malloc            : 5104 kB
xc: detail: PHYSICAL MEMORY ALLOCATION:
xc: detail:   4KB PAGES: 0x0000000000000200
xc: detail:   2MB PAGES: 0x00000000000002fb
xc: detail:   1GB PAGES: 0x0000000000000001
domainbuilder: detail: xc_dom_build_image: called
domainbuilder: detail: xc_dom_pfn_to_ptr_retcount: domU mapping: pfn 0x100+0x34 at 0x7f51d829d000
domainbuilder: detail: xc_dom_alloc_segment:   kernel       : 0x100000 -> 0x134000  (pfn 0x100 + 0x34 pages)
xc: detail: ELF: phdr 0 at 0x7f51d8269000 -> 0x7f51d8293400
domainbuilder: detail: xc_dom_pfn_to_ptr_retcount: domU mapping: pfn 0x134+0x40 at 0x7f51d825d000
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 0x7f51d834f000
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: bootearly: doing nothing
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: clear_page: pfn 0xfefff, mfn 0xfefff
domainbuilder: detail: clear_page: pfn 0xfeffc, mfn 0xfeffc
domainbuilder: detail: domain builder memory footprint
domainbuilder: detail:    allocated
domainbuilder: detail:       malloc             : 5109 kB
domainbuilder: detail:       anon mmap          : 0 bytes
domainbuilder: detail:    mapped
domainbuilder: detail:       file mmap          : 169 kB
domainbuilder: detail:       domU mmap          : 468 kB
domainbuilder: detail: vcpu_hvm: called
domainbuilder: detail: xc_dom_gnttab_hvm_seed: called, pfn=0xff000
domainbuilder: detail: xc_dom_gnttab_hvm_seed: called, pfn=0xff001
domainbuilder: detail: xc_dom_release: called
libxl: debug: libxl_device.c:361:libxl__device_disk_set_backend: Disk vdev=xvda spec.backend=phy
libxl: debug: libxl_event.c:636:libxl__ev_xswatch_register: watch w=0x1b485f0 wpath=/local/domain/0/backend/vbd/9/51712/state token=3/0: register slotnum=3
libxl: debug: libxl_device.c:361:libxl__device_disk_set_backend: Disk vdev=xvdb spec.backend=phy
libxl: debug: libxl_device.c:361:libxl__device_disk_set_backend: Disk vdev=xvdb spec.backend=phy
libxl: debug: libxl_event.c:636:libxl__ev_xswatch_register: watch w=0x1b49c00 wpath=/local/domain/0/backend/vbd/9/51728/state token=2/1: register slotnum=2
libxl: debug: libxl_create.c:1640:do_domain_create: ao 0x1b45bc0: inprogress: poller=0x1b45c50, flags=i
libxl: debug: libxl_event.c:573:watchfd_callback: watch w=0x1b485f0 wpath=/local/domain/0/backend/vbd/9/51712/state token=3/0: event epath=/local/domain/0/backend/vbd/9/51712/state
libxl: debug: libxl_event.c:874:devstate_callback: backend /local/domain/0/backend/vbd/9/51712/state wanted state 2 ok
libxl: debug: libxl_event.c:673:libxl__ev_xswatch_deregister: watch w=0x1b485f0 wpath=/local/domain/0/backend/vbd/9/51712/state token=3/0: deregister slotnum=3
libxl: debug: libxl_device.c:1059:device_backend_callback: calling device_backend_cleanup
libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch w=0x1b485f0: deregister unregistered
libxl: debug: libxl_linux.c:183:libxl__hotplug_disk: Args and environment ready
libxl: debug: libxl_device.c:1157:device_hotplug: calling hotplug script: /etc/xen/scripts/block add
libxl: debug: libxl_device.c:1158:device_hotplug: extra args:
libxl: debug: libxl_device.c:1166:device_hotplug: env:
libxl: debug: libxl_device.c:1173:device_hotplug:       script: /etc/xen/scripts/block
libxl: debug: libxl_device.c:1173:device_hotplug:       XENBUS_TYPE: vbd
libxl: debug: libxl_device.c:1173:device_hotplug:       XENBUS_PATH: backend/vbd/9/51712
libxl: debug: libxl_device.c:1173:device_hotplug:       XENBUS_BASE_PATH: backend
libxl: debug: libxl_aoutils.c:593:libxl__async_exec_start: forking to execute: /etc/xen/scripts/block add
libxl: debug: libxl_event.c:542:watchfd_callback: watch epath=/local/domain/0/backend/vbd/9/51712/state token=3/0: empty slot
libxl: debug: libxl_event.c:573:watchfd_callback: watch w=0x1b49c00 wpath=/local/domain/0/backend/vbd/9/51728/state token=2/1: event epath=/local/domain/0/backend/vbd/9/51728/state
libxl: debug: libxl_event.c:874:devstate_callback: backend /local/domain/0/backend/vbd/9/51728/state wanted state 2 ok
libxl: debug: libxl_event.c:673:libxl__ev_xswatch_deregister: watch w=0x1b49c00 wpath=/local/domain/0/backend/vbd/9/51728/state token=2/1: deregister slotnum=2
libxl: debug: libxl_device.c:1059:device_backend_callback: calling device_backend_cleanup
libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch w=0x1b49c00: deregister unregistered
libxl: debug: libxl_linux.c:183:libxl__hotplug_disk: Args and environment ready
libxl: debug: libxl_device.c:1157:device_hotplug: calling hotplug script: /etc/xen/scripts/block add
libxl: debug: libxl_device.c:1158:device_hotplug: extra args:
libxl: debug: libxl_device.c:1166:device_hotplug: env:
libxl: debug: libxl_device.c:1173:device_hotplug:       script: /etc/xen/scripts/block
libxl: debug: libxl_device.c:1173:device_hotplug:       XENBUS_TYPE: vbd
libxl: debug: libxl_device.c:1173:device_hotplug:       XENBUS_PATH: backend/vbd/9/51728
libxl: debug: libxl_device.c:1173:device_hotplug:       XENBUS_BASE_PATH: backend
libxl: debug: libxl_aoutils.c:593:libxl__async_exec_start: forking to execute: /etc/xen/scripts/block add
libxl: debug: libxl_event.c:542:watchfd_callback: watch epath=/local/domain/0/backend/vbd/9/51728/state token=2/1: empty slot
libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch w=0x1b486f0: deregister unregistered
libxl: debug: libxl_linux.c:200:libxl__get_hotplug_script_info: num_exec 1, not running hotplug scripts
libxl: debug: libxl_device.c:1143:device_hotplug: No hotplug script to execute
libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch w=0x1b486f0: deregister unregistered
libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch w=0x1b49d00: deregister unregistered
libxl: debug: libxl_linux.c:200:libxl__get_hotplug_script_info: num_exec 1, not running hotplug scripts
libxl: debug: libxl_device.c:1143:device_hotplug: No hotplug script to execute
libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch w=0x1b49d00: deregister unregistered
libxl: debug: libxl.c:2889:libxl__device_disk_find_local_path: Directly accessing local RAW disk /dev/ssdvg/domu_debtest1_xvda
libxl: debug: libxl.c:2889:libxl__device_disk_find_local_path: Directly accessing local RAW disk /dev/ssdvg/domu_debtest1_xvdb
libxl: debug: libxl_dm.c:1500:libxl__build_device_model_args_new: Could not find user xen-qemuuser-shared, starting QEMU as root
libxl: debug: libxl_dm.c:2094:libxl__spawn_local_dm: Spawning device-model /var/lib/xen/pvshim-sidecars/debtest1.dm with arguments:
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   /var/lib/xen/pvshim-sidecars/debtest1.dm
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -xen-domid
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   9
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -chardev
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-9,server,nowait
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -no-shutdown
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -mon
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   chardev=libxl-cmd,mode=control
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -chardev
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   socket,id=libxenstat-cmd,path=/var/run/xen/qmp-libxenstat-9,server,nowait
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -mon
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   chardev=libxenstat-cmd,mode=control
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -nodefaults
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -no-user-config
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -name
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   debtest1
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -vnc
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   127.0.0.1:0,to=99
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -display
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   none
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -kernel
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   /opt/grub/lib/grub-x86_64-xen.bin
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -serial
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   pty
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -device
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   cirrus-vga,vgamem_mb=8
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -boot
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   order=c
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -smp
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   2,maxcpus=2
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -device
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   rtl8139,id=nic0,netdev=net0,mac=00:16:5e:00:02:39
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -netdev
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   type=tap,id=net0,ifname=vif9.0-emu,script=no,downscript=no
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -machine
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   xenfv
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -cdrom
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   /var/lib/xen/pvshim-sidecars/debtest1.iso
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -m
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   2552
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -drive
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   file=/dev/ssdvg/domu_debtest1_xvda,if=ide,index=0,media=disk,format=raw,cache=writeback
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -drive
libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   file=/dev/ssdvg/domu_debtest1_xvdb,if=ide,index=1,media=disk,format=raw,cache=writeback
libxl: debug: libxl_dm.c:2098:libxl__spawn_local_dm: Spawning device-model /var/lib/xen/pvshim-sidecars/debtest1.dm with additional environment:
libxl: debug: libxl_dm.c:2100:libxl__spawn_local_dm:   XEN_QEMU_CONSOLE_LIMIT=1048576
libxl: debug: libxl_event.c:636:libxl__ev_xswatch_register: watch w=0x1b46a58 wpath=/local/domain/0/device-model/9/state token=2/2: register slotnum=2
libxl: debug: libxl_event.c:573:watchfd_callback: watch w=0x1b46a58 wpath=/local/domain/0/device-model/9/state token=2/2: event epath=/local/domain/0/device-model/9/state
libxl: debug: libxl_exec.c:398:spawn_watch_event: domain 9 device model: spawn watch p=(null)
libxl: debug: libxl_event.c:673:libxl__ev_xswatch_deregister: watch w=0x1b46a58 wpath=/local/domain/0/device-model/9/state token=2/2: deregister slotnum=2
libxl: error: libxl_dm.c:2189:device_model_spawn_outcome: domain 9 device model: spawn failed (rc=-3)
libxl: error: libxl_create.c:1504:domcreate_devmodel_started: device model did not start: -3
libxl: error: libxl_dm.c:2303:kill_device_model: Device Model already exited
libxl: debug: libxl_event.c:636:libxl__ev_xswatch_register: watch w=0x1b4f830 wpath=/local/domain/0/backend/vbd/9/51712/state token=2/3: register slotnum=2
libxl: debug: libxl_event.c:636:libxl__ev_xswatch_register: watch w=0x1b4fb20 wpath=/local/domain/0/backend/vbd/9/51728/state token=3/4: register slotnum=3
libxl: debug: libxl_event.c:573:watchfd_callback: watch w=0x1b4f830 wpath=/local/domain/0/backend/vbd/9/51712/state token=2/3: event epath=/local/domain/0/backend/vbd/9/51712/state
libxl: debug: libxl_event.c:874:devstate_callback: backend /local/domain/0/backend/vbd/9/51712/state wanted state 6 ok
libxl: debug: libxl_event.c:673:libxl__ev_xswatch_deregister: watch w=0x1b4f830 wpath=/local/domain/0/backend/vbd/9/51712/state token=2/3: deregister slotnum=2
libxl: debug: libxl_device.c:1059:device_backend_callback: calling device_backend_cleanup
libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch w=0x1b4f830: deregister unregistered
libxl: debug: libxl_linux.c:183:libxl__hotplug_disk: Args and environment ready
libxl: debug: libxl_device.c:1157:device_hotplug: calling hotplug script: /etc/xen/scripts/block remove
libxl: debug: libxl_device.c:1158:device_hotplug: extra args:
libxl: debug: libxl_device.c:1166:device_hotplug: env:
libxl: debug: libxl_device.c:1173:device_hotplug:       script: /etc/xen/scripts/block
libxl: debug: libxl_device.c:1173:device_hotplug:       XENBUS_TYPE: vbd
libxl: debug: libxl_device.c:1173:device_hotplug:       XENBUS_PATH: backend/vbd/9/51712
libxl: debug: libxl_device.c:1173:device_hotplug:       XENBUS_BASE_PATH: backend
libxl: debug: libxl_aoutils.c:593:libxl__async_exec_start: forking to execute: /etc/xen/scripts/block remove
libxl: debug: libxl_event.c:542:watchfd_callback: watch epath=/local/domain/0/backend/vbd/9/51712/state token=2/3: empty slot
libxl: debug: libxl_event.c:573:watchfd_callback: watch w=0x1b4fb20 wpath=/local/domain/0/backend/vbd/9/51728/state token=3/4: event epath=/local/domain/0/backend/vbd/9/51728/state
libxl: debug: libxl_event.c:874:devstate_callback: backend /local/domain/0/backend/vbd/9/51728/state wanted state 6 ok
libxl: debug: libxl_event.c:673:libxl__ev_xswatch_deregister: watch w=0x1b4fb20 wpath=/local/domain/0/backend/vbd/9/51728/state token=3/4: deregister slotnum=3
libxl: debug: libxl_device.c:1059:device_backend_callback: calling device_backend_cleanup
libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch w=0x1b4fb20: deregister unregistered
libxl: debug: libxl_linux.c:183:libxl__hotplug_disk: Args and environment ready
libxl: debug: libxl_device.c:1157:device_hotplug: calling hotplug script: /etc/xen/scripts/block remove
libxl: debug: libxl_device.c:1158:device_hotplug: extra args:
libxl: debug: libxl_device.c:1166:device_hotplug: env:
libxl: debug: libxl_device.c:1173:device_hotplug:       script: /etc/xen/scripts/block
libxl: debug: libxl_device.c:1173:device_hotplug:       XENBUS_TYPE: vbd
libxl: debug: libxl_device.c:1173:device_hotplug:       XENBUS_PATH: backend/vbd/9/51728
libxl: debug: libxl_device.c:1173:device_hotplug:       XENBUS_BASE_PATH: backend
libxl: debug: libxl_aoutils.c:593:libxl__async_exec_start: forking to execute: /etc/xen/scripts/block remove
libxl: debug: libxl_event.c:542:watchfd_callback: watch epath=/local/domain/0/backend/vbd/9/51728/state token=3/4: empty slot
libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch w=0x1b4f930: deregister unregistered
libxl: debug: libxl_linux.c:200:libxl__get_hotplug_script_info: num_exec 1, not running hotplug scripts
libxl: debug: libxl_device.c:1143:device_hotplug: No hotplug script to execute
libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch w=0x1b4f930: deregister unregistered
libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch w=0x1b4fc20: deregister unregistered
libxl: debug: libxl_linux.c:200:libxl__get_hotplug_script_info: num_exec 1, not running hotplug scripts
libxl: debug: libxl_device.c:1143:device_hotplug: No hotplug script to execute
libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch w=0x1b4fc20: deregister unregistered
libxl: debug: libxl_linux.c:221:libxl__get_hotplug_script_info: backend_kind 6, no need to execute scripts
libxl: debug: libxl_device.c:1143:device_hotplug: No hotplug script to execute
libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch w=0x1b501c0: deregister unregistered
libxl: debug: libxl.c:1712:devices_destroy_cb: forked pid 25968 for destroy of domain 9
libxl: debug: libxl_event.c:1869:libxl__ao_complete: ao 0x1b45bc0: complete, rc=-3
libxl: debug: libxl_event.c:1838:libxl__ao__destroy: ao 0x1b45bc0: destroy
libxl: debug: libxl.c:1445:libxl_domain_destroy: ao 0x1b477e0: create: how=(nil) callback=(nil) poller=0x1b45c50
libxl: error: libxl.c:1575:libxl__destroy_domid: non-existant domain 9
libxl: error: libxl.c:1534:domain_destroy_callback: unable to destroy guest with domid 9
libxl: error: libxl.c:1463:domain_destroy_cb: destruction of domain 9 failed
libxl: debug: libxl_event.c:1869:libxl__ao_complete: ao 0x1b477e0: complete, rc=-21
libxl: debug: libxl.c:1454:libxl_domain_destroy: ao 0x1b477e0: inprogress: poller=0x1b45c50, flags=ic
libxl: debug: libxl_event.c:1838:libxl__ao__destroy: ao 0x1b477e0: destroy
xencall:buffer: debug: total allocations:552 total releases:552
xencall:buffer: debug: current allocations:0 maximum allocations:3
xencall:buffer: debug: cache current size:3
xencall:buffer: debug: cache hits:534 misses:3 toobig:15
$

Cheers,
Andy

_______________________________________________
Xen-users mailing list
[hidden email]
https://lists.xenproject.org/mailman/listinfo/xen-users
Reply | Threaded
Open this post in threaded view
|

Re: Trying out vixen: failure to start device model

George Dunlap
In reply to this post by andy smith-10
On Thu, Jan 11, 2018 at 9:16 PM, Andy Smith <[hidden email]> wrote:

> Hi,
>
> I'm attempting to experiment with Vixen as described in the recent
> XSA-254 update. Unfortunately I'm failing at the first hurdle and am
> probably doing something stupid.
>
> All the steps up until creating the guest seemed to work. I ended up
> with a generated config that looks like this:
>
> name       = "debtest1"
> memory     = 2560
> vcpus      = 2
> vif        = [ "mac=00:16:5e:00:02:39, ip=192.168.82.225, vifname=v-debtest1" ]
> kernel     = "/opt/grub/lib/grub-x86_64-xen.bin"
> disk       = [ "phy:/dev/ssdvg/domu_debtest1_xvda,xvda,w",
>                "phy:/dev/ssdvg/domu_debtest1_xvdb,xvdb,w" ]
> builder='hvm'
> type='hvm'
> device_model_version='qemu-xen'
> device_model_override='/var/lib/xen/pvshim-sidecars/debtest1.dm'
> device_model_args_hvm=['-cdrom','/var/lib/xen/pvshim-sidecars/debtest1.iso']
> boot='c'
> serial='pty'
>
> When I try to create it I get:
>
> Parsing config from /etc/xen/debtest1-with-shim.conf
> libxl: error: libxl_dm.c:2189:device_model_spawn_outcome: domain 7 device model: spawn failed (rc=-3)
> libxl: error: libxl_create.c:1504:domcreate_devmodel_started: device model did not start: -3
> libxl: error: libxl_dm.c:2303:kill_device_model: Device Model already exited
> libxl: error: libxl.c:1575:libxl__destroy_domid: non-existant domain 7
> libxl: error: libxl.c:1534:domain_destroy_callback: unable to destroy guest with domid 7
> libxl: error: libxl.c:1463:domain_destroy_cb: destruction of domain 7 failed
>
> I've never tried running anything HVM before so I'm probably just
> missing some qemu thing.
>
> The dom0 is Debian jessie and qemu-system-x86 package is installed.
>
> The rest of the Xen installation is a recompiled 4.8 from
> jessie-backports.
>
> Searching around for the error, I saw someone 4 years ago had some
> success with:
>
> device_model_version="qemu-xen"
> device_model_override="/usr/bin/qemu-system-x86_64"
>
> But I don't think that could be the answer as 1) it's later said
> that's no longer necessary, and 2) device_model_override is already
> being set above.
>
> Any ideas?

Thanks for the detailed report -- it looks like the conversion script
needs a bit of wider testing.

So debtest.dm listed there is a "wrapper script", that needs to know
where qemu-system-x86 lives.  The current version checks
/usr/lib/xen/bin/ and /usr/local/lib/xen/bin, but given the output in
your subsequent email, yours is probably in /usr/lib/xen-4.8/bin.

Fastest thing to do is
1. Find out for sure where qemu-system-i386 lives
2. Modify the debtest.dm script so that it checks the right path.

We'll try to have an improved script tomorrow.

 -George

_______________________________________________
Xen-users mailing list
[hidden email]
https://lists.xenproject.org/mailman/listinfo/xen-users
Reply | Threaded
Open this post in threaded view
|

Re: Trying out vixen: failure to start device model

andy smith-10
In reply to this post by andy smith-10
[Cc'ing xen-devel as this bit seems like a bug in pvshim]

On Thu, Jan 11, 2018 at 09:59:24PM +0000, Andy Smith wrote:

> libxl: debug: libxl_dm.c:2094:libxl__spawn_local_dm: Spawning device-model /var/lib/xen/pvshim-sidecars/debtest1.dm with arguments:
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   /var/lib/xen/pvshim-sidecars/debtest1.dm
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -xen-domid
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   9
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -chardev
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-9,server,nowait
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -no-shutdown
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -mon
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   chardev=libxl-cmd,mode=control
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -chardev
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   socket,id=libxenstat-cmd,path=/var/run/xen/qmp-libxenstat-9,server,nowait
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -mon
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   chardev=libxenstat-cmd,mode=control
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -nodefaults
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -no-user-config
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -name
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   debtest1
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -vnc
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   127.0.0.1:0,to=99
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -display
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   none
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -kernel
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   /opt/grub/lib/grub-x86_64-xen.bin
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -serial
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   pty
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -device
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   cirrus-vga,vgamem_mb=8
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -boot
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   order=c
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -smp
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   2,maxcpus=2
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -device
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   rtl8139,id=nic0,netdev=net0,mac=00:16:5e:00:02:39
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -netdev
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   type=tap,id=net0,ifname=vif9.0-emu,script=no,downscript=no
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -machine
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   xenfv
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -cdrom
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   /var/lib/xen/pvshim-sidecars/debtest1.iso
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -m
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   2552
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -drive
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   file=/dev/ssdvg/domu_debtest1_xvda,if=ide,index=0,media=disk,format=raw,cache=writeback
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   -drive
> libxl: debug: libxl_dm.c:2096:libxl__spawn_local_dm:   file=/dev/ssdvg/domu_debtest1_xvdb,if=ide,index=1,media=disk,format=raw,cache=writeback
> libxl: debug: libxl_dm.c:2098:libxl__spawn_local_dm: Spawning device-model /var/lib/xen/pvshim-sidecars/debtest1.dm with additional environment:
> libxl: debug: libxl_dm.c:2100:libxl__spawn_local_dm:   XEN_QEMU_CONSOLE_LIMIT=1048576
> libxl: debug: libxl_event.c:636:libxl__ev_xswatch_register: watch w=0x1b46a58 wpath=/local/domain/0/device-model/9/state token=2/2: register slotnum=2
> libxl: debug: libxl_event.c:573:watchfd_callback: watch w=0x1b46a58 wpath=/local/domain/0/device-model/9/state token=2/2: event epath=/local/domain/0/device-model/9/state
> libxl: debug: libxl_exec.c:398:spawn_watch_event: domain 9 device model: spawn watch p=(null)
> libxl: debug: libxl_event.c:673:libxl__ev_xswatch_deregister: watch w=0x1b46a58 wpath=/local/domain/0/device-model/9/state token=2/2: deregister slotnum=2
> libxl: error: libxl_dm.c:2189:device_model_spawn_outcome: domain 9 device model: spawn failed (rc=-3)
> libxl: error: libxl_create.c:1504:domcreate_devmodel_started: device model did not start: -3

I looked in the generated /var/lib/xen/pvshim-sidecars/debtest1.dm
and noted:

 63 for path in /usr/local/lib /usr/lib; do
 64     $path/xen/bin/qemu-system-i386 "${newargs[@]}" ||:
 65 done
 66 echo >&2 'could not exec qemu'

My qemu-system-i386 is at /usr/bin/qemu-system-i386 (Debian jessie,
qemu-system-x86 package) so is never going to be found by that.
Maybe pvshim-converter.pl should give up if it can't find
qemu-system-i386?

Anyway, as a quick test I created
/usr/local/lib/xen/bin/qemu-system-i386 as a symlink to
/usr/bin/qemu-system-i386 and now it gets further before dying with
a different error, so the above seems like it was a problem.

Parsing config from /etc/xen/debtest1-with-shim.conf
libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: /etc/xen/scripts/vif-route add [31567] exited with error status 1
libxl: error: libxl_device.c:1225:device_hotplug_child_death_cb: script: /etc/xen/scripts/vif-route failed; error detected.
libxl: error: libxl_create.c:1461:domcreate_attach_devices: unable to add nic devices
libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: /etc/xen/scripts/vif-route remove [31751] exited with error status 1
libxl: error: libxl_device.c:1225:device_hotplug_child_death_cb: script: /etc/xen/scripts/vif-route failed; error detected.

Cheers,
Andy

_______________________________________________
Xen-users mailing list
[hidden email]
https://lists.xenproject.org/mailman/listinfo/xen-users
Reply | Threaded
Open this post in threaded view
|

Re: Trying out vixen: failure to start device model

andy smith-10
In reply to this post by George Dunlap
Hi,

On Thu, Jan 11, 2018 at 10:24:34PM +0000, George Dunlap wrote:
> Fastest thing to do is
> 1. Find out for sure where qemu-system-i386 lives
> 2. Modify the debtest.dm script so that it checks the right path.

Thanks, I was just writing about that and then got to your email.
I'm still having problems but that was definitely one of them.

Cheers,
Andy

_______________________________________________
Xen-users mailing list
[hidden email]
https://lists.xenproject.org/mailman/listinfo/xen-users
Reply | Threaded
Open this post in threaded view
|

Trying out vixen: vif-route issue

andy smith-10
In reply to this post by andy smith-10
Hi,

On Thu, Jan 11, 2018 at 10:26:36PM +0000, Andy Smith wrote:
> Parsing config from /etc/xen/debtest1-with-shim.conf
> libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: /etc/xen/scripts/vif-route add [31567] exited with error status 1
> libxl: error: libxl_device.c:1225:device_hotplug_child_death_cb: script: /etc/xen/scripts/vif-route failed; error detected.
> libxl: error: libxl_create.c:1461:domcreate_attach_devices: unable to add nic devices
> libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: /etc/xen/scripts/vif-route remove [31751] exited with error status 1
> libxl: error: libxl_device.c:1225:device_hotplug_child_death_cb: script: /etc/xen/scripts/vif-route failed; error detected.

I seem to have got it working. The vif-route thing was this:

https://lists.xen.org/archives/html/xen-users/2015-08/msg00005.html

i.e. /etc/xen/scripts/vif-route in HVM mode is *still* being called
with both "online" and "add", and fails with the latter, leading to
"unable to add nic devices". I used Martti's suggested workaround
and things seem to work now.

In dom0 I have an extra v-debtest-emu interface that is shutdown.
What is that for? Do I need it? If not, can it be gotten rid of
somehow? It can't be doing too much if it's shutdown with no
addresses on it.

There is something odd going on with my pvgrub2 kernel which was
compiled with a ram disk. The first thing that happens is I get:

error: file `/ramdisk' not found.

Press any key to continue...

Then I can either press a key or else wait about 5 seconds, either
way pvgrub2 continues to boot, presents the menu I put in its ram
disk and the options correctly chain to whatever they are meant to
(only tested grub2 inside guest so far). The /ramdisk message
doesn't appear in PV mode so I don't know what that is about yet.

qemu process still hangs around after guest is shut down.

Cheers,
Andy

_______________________________________________
Xen-users mailing list
[hidden email]
https://lists.xenproject.org/mailman/listinfo/xen-users