Discussion:
[libvirt-users] LIBVIRT-4.6.0 can't work with QEMU 3.0.0
Holger Schranz
2018-08-08 08:07:58 UTC
Permalink
Hello,

if I try to use Llibvirt-4.6.0 together with qemu-3.0.0-rc4.
I run into an issue. Please see the following Memo.

Best regards

Holger

================================================================================

Procduce QEMU-3.0.0-RC4 and LIBVIRT-4.6.0:

QEMU-3-0-0-RC4:

  make clean
  ./configure --enable-libiscsi --enable-libusb --enable-bzip2
--enable-libnfs --enable-spice --enable-user --enable-virtfs
--enable-opengl --enable-sdl --enable-gtk --enable-virglrenderer
--disable-seccomp --prefix=/usr;make -j$(grep -c ^processor /proc/cpuinfo)
   su
   make install

LIBVIRT-4.6.0

  make clean
  ./configure -q --with-lxc --with-storage-iscsi --with-storage-scsi
--with-interface --with-storage-lvm --with-storage-fs --with-udev
--with-vmware --with-storage-mpath --prefix=/usr;make -j$(grep -c
^processor /proc/cpuinfo)
  su
  systemctl stop libvirtd.service
  cd libvirt-4.5.0
  make uninstall
  cd ..
  cd libvirt-4.6.0
  make install
  systemctl status libvirtd.service -l
  systemctl daemon-reload
  systemctl start libvirtd.service
  systemctl status libvirtd.service -l

? libvirtd.service - Virtualization daemon
   Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled;
vendor preset: disabled)
   Active: active (running) since Wed 2018-08-08 09:05:26 CEST; 3s ago
     Docs: man:libvirtd(8)
           https://libvirt.org
 Main PID: 137948 (libvirtd)
    Tasks: 19 (limit: 32768)
   CGroup: /system.slice/libvirtd.service
           ??  4725 /usr/sbin/dnsmasq
--conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro
--dhcp-script=/usr/lib/libvirt_leaseshelper
           ??  4726 /usr/sbin/dnsmasq
--conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro
--dhcp-script=/usr/lib/libvirt_leaseshelper
           ??137948 /usr/sbin/libvirtd

Aug 08 09:05:26 etcsvms5 systemd[1]: Starting Virtualization daemon...
Aug 08 09:05:26 etcsvms5 systemd[1]: Started Virtualization daemon.
Aug 08 09:05:26 etcsvms5 libvirtd[137948]: 2018-08-08 07:05:26.876+0000:
137964: info : libvirt version: 4.6.0
Aug 08 09:05:26 etcsvms5 libvirtd[137948]: 2018-08-08 07:05:26.876+0000:
137964: info : hostname: etcsvms5
Aug 08 09:05:26 etcsvms5 libvirtd[137948]: 2018-08-08 07:05:26.876+0000:
137964: error : virNetworkObjAssignDefLocked:589 : operation failed:
network 'default' already exists with uuid
52abe250-4f23-40fe-875e-0808d57ce72d
Aug 08 09:05:27 etcsvms5 dnsmasq[4725]: read /etc/hosts - 8 addresses
Aug 08 09:05:27 etcsvms5 dnsmasq[4725]: read
/var/lib/libvirt/dnsmasq/default.addnhosts - 0 addresses
Aug 08 09:05:27 etcsvms5 dnsmasq-dhcp[4725]: read
/var/lib/libvirt/dnsmasq/default.hostsfile
Aug 08 09:05:27 etcsvms5 libvirtd[137948]: 2018-08-08 07:05:27.711+0000:
137964: warning : virLXCDriverCapsInit:82 : Failed to get host CPU cache
info
Aug 08 09:05:27 etcsvms5 libvirtd[137948]: 2018-08-08 07:05:27.719+0000:
137964: warning : umlCapsInit:73 : Failed to get host CPU cache info
etcsvms5:/home/shl/Install/libvirt-4.6.0 #

---> test1: Start virt-manager

etcsvms5:/home/shl/Install/libvirt-4.6.0 # virsh version
Compiled against library: libvirt 4.6.0
Using library: libvirt 4.6.0
Using API: LXC 4.6.0
Running hypervisor: LXC 4.4.140

etcsvms5:/home/shl/Install/libvirt-4.6.0 #



Information on virt-manager window:
Unable to connect to libvirt qemu:///system.

no connection driver available for qemu:///system

Libvirt URI is: qemu:///system

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/connection.py", line 1036,
in _do_open
    self._backend.open(self._do_creds_password)
  File "/usr/share/virt-manager/virtinst/connection.py", line 144, in open
    open_flags)
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 104, in
openAuth
    if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirtError: no connection driver available for qemu:///system

---> TEst2: Call VM via virsh create

etcsvms5:/home/shl/Install/libvirt-4.6.0 # cd /kvm/CS8400/M4
etcsvms5:/kvm/CS8400/M4 # cd VLP0
etcsvms5:/kvm/CS8400/M4/VLP0 # virsh create M4-VLP0.xml
error: Failed to create domain from M4-VLP0.xml
error: invalid argument: could not find capabilities for arch=x86_64
domaintype=kvm

etcsvms5:/kvm/CS8400/M4/VLP0 #

-----

switch back to LIBVIRT.4-5-0 and all runs o.k.




---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprÃŒft.
https://www.avast.com/antivirus
Daniel P. Berrangé
2018-08-08 08:10:35 UTC
Permalink
Post by Holger Schranz
Hello,
if I try to use Llibvirt-4.6.0 together with qemu-3.0.0-rc4.
I run into an issue. Please see the following Memo.
Best regards
Holger
================================================================================
  make clean
  ./configure --enable-libiscsi --enable-libusb --enable-bzip2
--enable-libnfs --enable-spice --enable-user --enable-virtfs --enable-opengl
--enable-sdl --enable-gtk --enable-virglrenderer --disable-seccomp
--prefix=/usr;make -j$(grep -c ^processor /proc/cpuinfo)
Please show the full output of configure here.
Post by Holger Schranz
   su
   make install
LIBVIRT-4.6.0
  make clean
  ./configure -q --with-lxc --with-storage-iscsi --with-storage-scsi
--with-interface --with-storage-lvm --with-storage-fs --with-udev
--with-vmware --with-storage-mpath --prefix=/usr;make -j$(grep -c ^processor
/proc/cpuinfo)
And again full output of configure please.


Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Holger Schranz
2018-08-08 08:58:50 UTC
Permalink
Hello,

I have attached the requested material (I hope)

Best regards

Holger
Post by Daniel P. Berrangé
Post by Holger Schranz
Hello,
if I try to use Llibvirt-4.6.0 together with qemu-3.0.0-rc4.
I run into an issue. Please see the following Memo.
Best regards
Holger
================================================================================
  make clean
  ./configure --enable-libiscsi --enable-libusb --enable-bzip2
--enable-libnfs --enable-spice --enable-user --enable-virtfs --enable-opengl
--enable-sdl --enable-gtk --enable-virglrenderer --disable-seccomp
--prefix=/usr;make -j$(grep -c ^processor /proc/cpuinfo)
Please show the full output of configure here
Post by Holger Schranz
   su
   make install
LIBVIRT-4.6.0
  make clean
  ./configure -q --with-lxc --with-storage-iscsi --with-storage-scsi
--with-interface --with-storage-lvm --with-storage-fs --with-udev
--with-vmware --with-storage-mpath --prefix=/usr;make -j$(grep -c ^processor
/proc/cpuinfo)
And again full output of configure please.
Regards,
Daniel
---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprÃŒft.
https://www.avast.com/antivirus
Daniel P. Berrangé
2018-08-08 09:06:12 UTC
Permalink
checking for JANSSON... no
This is the problem. In 4.6.0 we just switched to using JANSSOn instead
of yajl for JSON parsing. Your host doesn't have the development headers
installed for jansson....
configure: Configuration summary
configure: =====================
configure: Drivers
configure: QEMU: no
so the QEMU driver was not built.

There's a bunch of other "no" in the summary below you should consider
whether you need any of them,
configure: UML: yes
configure: OpenVZ: yes
configure: VMware: yes
configure: VBox: yes
configure: XenAPI: no
configure: libxl: no
configure: LXC: yes
configure: PHYP: no
configure: ESX: yes
configure: Hyper-V: no
configure: vz: no
configure: Bhyve: no
configure: Test: yes
configure: Remote: yes
configure: Network: yes
configure: Libvirtd: yes
configure: Interface: yes
configure: Storage Drivers
configure: Dir: yes
configure: FS: yes
configure: NetFS: yes
configure: LVM: yes
configure: iSCSI: yes
configure: SCSI: yes
configure: mpath: yes
configure: Disk: no
configure: RBD: no
configure: Sheepdog: no
configure: Gluster: no
configure: ZFS: no
configure: Virtuozzo storage: no
configure: Security Drivers
configure: SELinux: yes
configure: AppArmor: no
configure: Driver Loadable Modules
configure: driver_modules: yes (CFLAGS='' LIBS='-ldl')
configure: Libraries
configure: acl: no
configure: apparmor: no
configure: attr: yes (CFLAGS='' LIBS='-lattr')
configure: audit: no
configure: avahi: yes (CFLAGS='-D_REENTRANT ' LIBS='-lavahi-common -lavahi-client ')
configure: bash_completion: yes (CFLAGS='' LIBS='')
configure: blkid: yes (CFLAGS='-I/usr/include/blkid -I/usr/include/uuid ' LIBS='-lblkid ')
configure: capng: no
configure: curl: yes (CFLAGS='-DCURL_DISABLE_TYPECHECK ' LIBS='-lcurl ')
configure: dbus: yes (CFLAGS='-I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include ' LIBS='-ldbus-1 ')
configure: dlopen: yes (CFLAGS='' LIBS='-ldl')
configure: firewalld: yes (CFLAGS='' LIBS='')
configure: fuse: no
configure: glusterfs: no
configure: gnutls: yes (CFLAGS='-I/usr/include/p11-kit-1 ' LIBS='-lgnutls ')
configure: hal: no
configure: jansson: no
configure: libnl: yes (CFLAGS='' LIBS='-lnl ')
configure: libpcap: no
configure: libssh: no
configure: libxl: no
configure: libxml: yes (CFLAGS='-I/usr/include/libxml2 ' LIBS='-lxml2 ')
configure: macvtap: yes (CFLAGS='' LIBS='')
configure: netcf: no
configure: NLS: yes
configure: nss: no
configure: numactl: no
configure: openwsman: no
configure: pciaccess: yes (CFLAGS='' LIBS='-lpciaccess ')
configure: pm_utils: no
configure: polkit: yes
configure: rbd: no
configure: readline: yes (CFLAGS='-D_FUNCTION_DEF ' LIBS='-lreadline')
configure: sanlock: no
configure: sasl: yes (CFLAGS='' LIBS='-lsasl2')
configure: selinux: yes (CFLAGS='' LIBS='-lselinux')
configure: ssh2: no
configure: udev: yes (CFLAGS='' LIBS='-ludev ')
configure: virtualport: yes (CFLAGS='' LIBS='')
configure: xdr: yes (CFLAGS='' LIBS='')
configure: xenapi: no
configure: yajl: no
configure: Windows
configure: Cygwin: no
configure: MinGW: no
configure: MSVC: no
configure: windres: no
configure: Test suite
configure: Coverage: no
configure: Alloc OOM: no
configure: Miscellaneous
configure: Debug: yes
configure: Use -Werror: no
configure: Warning Flags: -fno-common -W -Waddress -Waggressive-loop-optimizations -Wall -Wattributes -Wbad-function-cast -Wbuiltin-macro-redefined -Wcast-align -Wchar-subscripts -Wclobbered -Wcomment -Wcomments -Wcoverage-mismatch -Wcpp -Wdeprecated-declarations -Wdiv-by-zero -Wdouble-promotion -Wempty-body -Wendif-labels -Wextra -Wformat-contains-nul -Wformat-extra-args -Wformat-security -Wformat-y2k -Wformat-zero-length -Wfree-nonheap-object -Wignored-qualifiers -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Winit-self -Winline -Wint-to-pointer-cast -Winvalid-memory-model -Winvalid-pch -Wlogical-op -Wmain -Wmaybe-uninitialized -Wmissing-braces -Wmissing-declarations -Wmissing-field-initializers -Wmissing-include-dirs -Wmissing-parameter-type -Wmissing-prototypes -Wmultichar -Wnarrowing -Wnested-externs -Wnonnull -Wold-style-declaration -Wold-style-definition -Woverflow -Woverride-init -Wpacked-bitfield-compat -Wparentheses -Wpointer-arith -Wpointer-sign -Wpoint
er-to-int-cast -Wpragmas -Wpsabi -Wreturn-local-addr -Wreturn-type -Wsequence-point -Wshadow -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstrict-prototypes -Wsuggest-attribute=const -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wsuggest-attribute=pure -Wswitch -Wsync-nand -Wtrampolines -Wtrigraphs -Wtype-limits -Wuninitialized -Wunknown-pragmas -Wunused -Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-function -Wunused-label -Wunused-local-typedefs -Wunused-parameter -Wunused-result -Wunused-value -Wunused-variable -Wvarargs -Wvariadic-macros -Wvector-operation-performance -Wvolatile-register-var -Wwrite-strings -Wnormalized=nfc -Wno-sign-compare -Wjump-misses-init -Wswitch-enum -Wno-format-nonliteral -fexceptions -fasynchronous-unwind-tables -fipa-pure-const -Wno-suggest-attribute=pure -Wno-suggest-attribute=const -fstack-protector-all
configure: DTrace: no
configure: numad: no
configure: Init script: systemd
configure: Char device locks: /var/lock
configure: Default Editor: vi
configure: virt-login-shell: yes
configure: virt-host-validate: yes
configure: TLS priority: NORMAL
configure: Developer Tools
configure: wireshark_dissector: no
configure: Privileges
configure: QEMU: root:root
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Holger Schranz
2018-08-08 09:10:20 UTC
Permalink
Hi Daniel,

thank you very much. I will update the configuration and the environment.

Best regards

Holger
Post by Daniel P. Berrangé
checking for JANSSON... no
This is the problem. In 4.6.0 we just switched to using JANSSOn instead
of yajl for JSON parsing. Your host doesn't have the development headers
installed for jansson....
configure: Configuration summary
configure: =====================
configure: Drivers
configure: QEMU: no
so the QEMU driver was not built.
There's a bunch of other "no" in the summary below you should consider
whether you need any of them,
configure: UML: yes
configure: OpenVZ: yes
configure: VMware: yes
configure: VBox: yes
configure: XenAPI: no
configure: libxl: no
configure: LXC: yes
configure: PHYP: no
configure: ESX: yes
configure: Hyper-V: no
configure: vz: no
configure: Bhyve: no
configure: Test: yes
configure: Remote: yes
configure: Network: yes
configure: Libvirtd: yes
configure: Interface: yes
configure: Storage Drivers
configure: Dir: yes
configure: FS: yes
configure: NetFS: yes
configure: LVM: yes
configure: iSCSI: yes
configure: SCSI: yes
configure: mpath: yes
configure: Disk: no
configure: RBD: no
configure: Sheepdog: no
configure: Gluster: no
configure: ZFS: no
configure: Virtuozzo storage: no
configure: Security Drivers
configure: SELinux: yes
configure: AppArmor: no
configure: Driver Loadable Modules
configure: driver_modules: yes (CFLAGS='' LIBS='-ldl')
configure: Libraries
configure: acl: no
configure: apparmor: no
configure: attr: yes (CFLAGS='' LIBS='-lattr')
configure: audit: no
configure: avahi: yes (CFLAGS='-D_REENTRANT ' LIBS='-lavahi-common -lavahi-client ')
configure: bash_completion: yes (CFLAGS='' LIBS='')
configure: blkid: yes (CFLAGS='-I/usr/include/blkid -I/usr/include/uuid ' LIBS='-lblkid ')
configure: capng: no
configure: curl: yes (CFLAGS='-DCURL_DISABLE_TYPECHECK ' LIBS='-lcurl ')
configure: dbus: yes (CFLAGS='-I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include ' LIBS='-ldbus-1 ')
configure: dlopen: yes (CFLAGS='' LIBS='-ldl')
configure: firewalld: yes (CFLAGS='' LIBS='')
configure: fuse: no
configure: glusterfs: no
configure: gnutls: yes (CFLAGS='-I/usr/include/p11-kit-1 ' LIBS='-lgnutls ')
configure: hal: no
configure: jansson: no
configure: libnl: yes (CFLAGS='' LIBS='-lnl ')
configure: libpcap: no
configure: libssh: no
configure: libxl: no
configure: libxml: yes (CFLAGS='-I/usr/include/libxml2 ' LIBS='-lxml2 ')
configure: macvtap: yes (CFLAGS='' LIBS='')
configure: netcf: no
configure: NLS: yes
configure: nss: no
configure: numactl: no
configure: openwsman: no
configure: pciaccess: yes (CFLAGS='' LIBS='-lpciaccess ')
configure: pm_utils: no
configure: polkit: yes
configure: rbd: no
configure: readline: yes (CFLAGS='-D_FUNCTION_DEF ' LIBS='-lreadline')
configure: sanlock: no
configure: sasl: yes (CFLAGS='' LIBS='-lsasl2')
configure: selinux: yes (CFLAGS='' LIBS='-lselinux')
configure: ssh2: no
configure: udev: yes (CFLAGS='' LIBS='-ludev ')
configure: virtualport: yes (CFLAGS='' LIBS='')
configure: xdr: yes (CFLAGS='' LIBS='')
configure: xenapi: no
configure: yajl: no
configure: Windows
configure: Cygwin: no
configure: MinGW: no
configure: MSVC: no
configure: windres: no
configure: Test suite
configure: Coverage: no
configure: Alloc OOM: no
configure: Miscellaneous
configure: Debug: yes
configure: Use -Werror: no
configure: Warning Flags: -fno-common -W -Waddress -Waggressive-loop-optimizations -Wall -Wattributes -Wbad-function-cast -Wbuiltin-macro-redefined -Wcast-align -Wchar-subscripts -Wclobbered -Wcomment -Wcomments -Wcoverage-mismatch -Wcpp -Wdeprecated-declarations -Wdiv-by-zero -Wdouble-promotion -Wempty-body -Wendif-labels -Wextra -Wformat-contains-nul -Wformat-extra-args -Wformat-security -Wformat-y2k -Wformat-zero-length -Wfree-nonheap-object -Wignored-qualifiers -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Winit-self -Winline -Wint-to-pointer-cast -Winvalid-memory-model -Winvalid-pch -Wlogical-op -Wmain -Wmaybe-uninitialized -Wmissing-braces -Wmissing-declarations -Wmissing-field-initializers -Wmissing-include-dirs -Wmissing-parameter-type -Wmissing-prototypes -Wmultichar -Wnarrowing -Wnested-externs -Wnonnull -Wold-style-declaration -Wold-style-definition -Woverflow -Woverride-init -Wpacked-bitfield-compat -Wparentheses -Wpointer-arith -Wpointer-sign -Wpointer-to-int-cast -Wpragmas -Wpsabi -Wreturn-local-addr -Wreturn-type -Wsequence-point -Wshadow -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstrict-prototypes -Wsuggest-attribute=const -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wsuggest-attribute=pure -Wswitch -Wsync-nand -Wtrampolines -Wtrigraphs -Wtype-limits -Wuninitialized -Wunknown-pragmas -Wunused -Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-function -Wunused-label -Wunused-local-typedefs -Wunused-parameter -Wunused-result -Wunused-value -Wunused-variable -Wvarargs -Wvariadic-macros -Wvector-operation-performance -Wvolatile-register-var -Wwrite-strings -Wnormalized=nfc -Wno-sign-compare -Wjump-misses-init -Wswitch-enum -Wno-format-nonliteral -fexceptions -fasynchronous-unwind-tables -fipa-pure-const -Wno-suggest-attribute=pure -Wno-suggest-attribute=const -fstack-protector-all
configure: DTrace: no
configure: numad: no
configure: Init script: systemd
configure: Char device locks: /var/lock
configure: Default Editor: vi
configure: virt-login-shell: yes
configure: virt-host-validate: yes
configure: TLS priority: NORMAL
configure: Developer Tools
configure: wireshark_dissector: no
configure: Privileges
configure: QEMU: root:root
Regards,
Daniel
---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus
Peter Krempa
2018-08-08 12:02:33 UTC
Permalink
Post by Daniel P. Berrangé
checking for JANSSON... no
This is the problem. In 4.6.0 we just switched to using JANSSOn instead
of yajl for JSON parsing. Your host doesn't have the development headers
installed for jansson....
configure: Configuration summary
configure: =====================
configure: Drivers
configure: QEMU: no
so the QEMU driver was not built.
There's a bunch of other "no" in the summary below you should consider
whether you need any of them,
This is most probably caused by not having the 'jansson' library
installed.

[...]
Post by Daniel P. Berrangé
configure: jansson: no
The new approach is to disable the qemu driver if we don't have JSON
support since it would not work with qemu anyways.
Holger Schranz
2018-08-08 15:36:38 UTC
Permalink
Hi Daniel, Peter,

meanwhile it runs without any issues. Thank you for your quick help.

Best regards

Holger
Post by Peter Krempa
Post by Daniel P. Berrangé
checking for JANSSON... no
This is the problem. In 4.6.0 we just switched to using JANSSOn instead
of yajl for JSON parsing. Your host doesn't have the development headers
installed for jansson....
configure: Configuration summary
configure: =====================
configure: Drivers
configure: QEMU: no
so the QEMU driver was not built.
There's a bunch of other "no" in the summary below you should consider
whether you need any of them,
This is most probably caused by not having the 'jansson' library
installed.
[...]
Post by Daniel P. Berrangé
configure: jansson: no
The new approach is to disable the qemu driver if we don't have JSON
support since it would not work with qemu anyways.
---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus

Loading...