#746156 libvirt-bin: Wrong parameters for qemu-dm

Package:
libvirt-bin
Source:
libvirt
Submitter:
Dirk Doerflinger
Date:
2023-04-17 15:57:07 UTC
Severity:
important
Tags:
#746156#5
Date:
2014-04-27 13:47:16 UTC
From:
To:
Dear Maintainer,

I am running Jessie with Xen and libvirt. I can run virtual machines (using external kernels) without any problem.
I cannot create a hvm machine, probably due to wrong parameters submitted to qemu-dm:

The logfile from libvirt (/var/log/libvirt/libxl/hvmtest.log) states:
  libxl: verbose: libxl_create.c:130:libxl__domain_build_info_setdefault: qemu-xen is unavailable, use qemu-xen-traditional instead: No such file or directory

and later:

libxl: debug: libxl_dm.c:1206:libxl__spawn_local_dm: Spawning device-model /usr/lib/xen-4.3/bin/qemu-dm with arguments:
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   /usr/lib/xen-4.3/bin/qemu-dm
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -d
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   3
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -domain-name
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   hvmtest
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -vnc
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   127.0.0.1:0
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -vncunused
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -serial
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   pty
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -videoram
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   8
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -boot
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   dc
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -acpi
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -vcpu_avail
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   0x01
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -net
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   nic,vlan=0,macaddr=00:16:3e:b7:27:61,model=rtl8139
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -net
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   tap,vlan=0,ifname=vif3.0-emu,bridge=virbr0,script=no,downscript=no
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   -M
libxl: debug: libxl_dm.c:1208:libxl__spawn_local_dm:   xenfv
libxl: debug: libxl_event.c:559:libxl__ev_xswatch_register: watch w=0x7f21f01a9df0 wpath=/local/domain/0/device-model/3/state token=3/1: register slotnum=3
libxl: debug: libxl_event.c:503:watchfd_callback: watch w=0x7f21f01a9df0 wpath=/local/domain/0/device-model/3/state token=3/1: event epath=/local/domain/0/device-model/3/state
libxl: debug: libxl_event.c:596:libxl__ev_xswatch_deregister: watch w=0x7f21f01a9df0 wpath=/local/domain/0/device-model/3/state token=3/1: deregister slotnum=3
libxl: error: libxl_dm.c:1275:device_model_spawn_outcome: domain 3 device model: spawn failed (rc=-3)
libxl: error: libxl_create.c:1075:domcreate_devmodel_started: device model did not start: -3
libxl: error: libxl_dm.c:1306:libxl__destroy_device_model: Device Model already exited

The logfile from xen states:

cat /var/log/xen/qemu-dm-hvmtest.log
qemu-dm: -domain-name: invalid option

I have got the qemu-system-* binaries installed, /etc/alternatives/qemu points to /usr/bin/qemu-system-x86_64

Running /usr/bin/qemu-system-x86_64 with the parameters from the logfile above shows that e.g. -domain-name and -vncunused are invalid.

#746156#10
Date:
2015-08-13 09:18:48 UTC
From:
To:
Hi,

Can you attach your domain xml please so I can try to reproduce?
Cheers,
 -- Guido