Virsh failure revisited


(Keith Bierman) #1

Multiple uninstall/reinstalls … seems to implicate the brew formulae.

**brew doctor**
**Your system is ready to brew.**


virsh -c vbox:///sessions list
error: failed to connect to the hypervisor
error: Failed to connect socket to '/usr/local/var/run/libvirt/libvirt-sock': No such file or directory

virsh -c vbox+unix:///sessions list
error: failed to connect to the hypervisor
error: Failed to connect socket to '/usr/local/var/run/libvirt/libvirt-sock': No such file or directory

brew services list

Name Status User Plist

dbus started AB84394
…/Library/LaunchAgents/homebrew.mxcl.dbus.plist

libvirt started AB84394 …
/Library/LaunchAgents/homebrew.mxcl.libvirt.plist

The libvirt FAQ fingers this as a build configuration error:
https://wiki.libvirt.org/page/FAQ

But brew reports no build failures or warnings …


(Keith Bierman) #2

Doing yet another uninstall, followed by a reboot, then an install … and MANUALLY starting libvirtd (sudo libvirtd) I saw a helpful message about the VirtualBox 6 interface version not being supported. So another round, removed virtualbox, reinstalled 5.2.22 and then reinstalled libvirt … while the “brew services” status is happy, manually running libvirtd isn’t happy. Apparently, dmidecode qemu are expected (but aren’t installed by brew). Indeed, there isn’t a dmidecode formula … there is a qemu formula which brew reports IS installed; but the various references don’t satisfy …

/Users/AB84394>sudo libvirtd
2019-01-10 22:14:41.024+0000: 123145555038208: info : libvirt version: 4.10.0
2019-01-10 22:14:41.024+0000: 123145555038208: info : hostname: khb-x1078182.dhcp.intranet
2019-01-10 22:14:41.024+0000: 123145555038208: warning : virProcessGetStartTime:1068 : Process start time of pid 1793 not available on this platform
2019-01-10 22:14:41.027+0000: 123145555038208: error : virSysinfoReadX86:1149 : internal error: Failed to find path for dmidecode binary
2019-01-10 22:14:41.031+0000: 123145555038208: error : virFileFindHugeTLBFS:3755 : this function is not supported by the connection driver: virFileFindHugeTLBFS
2019-01-10 22:14:41.051+0000: 123145555038208: warning : virQEMUCapsInit:914 : Failed to get host CPU cache info
2019-01-10 22:14:41.053+0000: 123145555038208: error : virExec:520 : Cannot find 'pm-is-supported' in path: No such file or directory
2019-01-10 22:14:41.053+0000: 123145555038208: warning : virQEMUCapsInit:921 : Failed to get host power management capabilities
2019-01-10 22:14:41.053+0000: 123145555038208: error : virNumaGetPages:931 : Operation not supported: page info is not supported on this platform
2019-01-10 22:14:41.053+0000: 123145555038208: warning : virQEMUCapsInit:928 : Failed to get pages info
2019-01-10 22:14:41.056+0000: 123145555038208: error : virQEMUCapsNewForBinaryInternal:4563 : internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.056+0000: 123145555038208: warning : virQEMUCapsLogProbeFailure:4510 : Failed to probe capabilities for /usr/local/bin/qemu-system-alpha: internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.059+0000: 123145555038208: error : virQEMUCapsNewForBinaryInternal:4563 : internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.059+0000: 123145555038208: warning : virQEMUCapsLogProbeFailure:4510 : Failed to probe capabilities for /usr/local/bin/qemu-system-arm: internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.061+0000: 123145555038208: error : virQEMUCapsNewForBinaryInternal:4563 : internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.061+0000: 123145555038208: warning : virQEMUCapsLogProbeFailure:4510 : Failed to probe capabilities for /usr/local/bin/qemu-system-aarch64: internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.064+0000: 123145555038208: error : virQEMUCapsNewForBinaryInternal:4563 : internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.064+0000: 123145555038208: warning : virQEMUCapsLogProbeFailure:4510 : Failed to probe capabilities for /usr/local/bin/qemu-system-cris: internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.067+0000: 123145555038208: error : virQEMUCapsNewForBinaryInternal:4563 : internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.067+0000: 123145555038208: warning : virQEMUCapsLogProbeFailure:4510 : Failed to probe capabilities for /usr/local/bin/qemu-system-i386: internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.069+0000: 123145555038208: error : virQEMUCapsNewForBinaryInternal:4563 : internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.069+0000: 123145555038208: warning : virQEMUCapsLogProbeFailure:4510 : Failed to probe capabilities for /usr/local/bin/qemu-system-lm32: internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.072+0000: 123145555038208: error : virQEMUCapsNewForBinaryInternal:4563 : internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.072+0000: 123145555038208: warning : virQEMUCapsLogProbeFailure:4510 : Failed to probe capabilities for /usr/local/bin/qemu-system-m68k: internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.074+0000: 123145555038208: error : virQEMUCapsNewForBinaryInternal:4563 : internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.074+0000: 123145555038208: warning : virQEMUCapsLogProbeFailure:4510 : Failed to probe capabilities for /usr/local/bin/qemu-system-microblaze: internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.077+0000: 123145555038208: error : virQEMUCapsNewForBinaryInternal:4563 : internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.077+0000: 123145555038208: warning : virQEMUCapsLogProbeFailure:4510 : Failed to probe capabilities for /usr/local/bin/qemu-system-microblazeel: internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.081+0000: 123145555038208: error : virQEMUCapsNewForBinaryInternal:4563 : internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.081+0000: 123145555038208: warning : virQEMUCapsLogProbeFailure:4510 : Failed to probe capabilities for /usr/local/bin/qemu-system-mips: internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.084+0000: 123145555038208: error : virQEMUCapsNewForBinaryInternal:4563 : internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.084+0000: 123145555038208: warning : virQEMUCapsLogProbeFailure:4510 : Failed to probe capabilities for /usr/local/bin/qemu-system-mipsel: internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.087+0000: 123145555038208: error : virQEMUCapsNewForBinaryInternal:4563 : internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.087+0000: 123145555038208: warning : virQEMUCapsLogProbeFailure:4510 : Failed to probe capabilities for /usr/local/bin/qemu-system-mips64: internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.090+0000: 123145555038208: error : virQEMUCapsNewForBinaryInternal:4563 : internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.090+0000: 123145555038208: warning : virQEMUCapsLogProbeFailure:4510 : Failed to probe capabilities for /usr/local/bin/qemu-system-mips64el: internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.093+0000: 123145555038208: error : virQEMUCapsNewForBinaryInternal:4563 : internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.093+0000: 123145555038208: warning : virQEMUCapsLogProbeFailure:4510 : Failed to probe capabilities for /usr/local/bin/qemu-system-ppc: internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.096+0000: 123145555038208: error : virQEMUCapsNewForBinaryInternal:4563 : internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.096+0000: 123145555038208: warning : virQEMUCapsLogProbeFailure:4510 : Failed to probe capabilities for /usr/local/bin/qemu-system-ppc64: internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.099+0000: 123145555038208: error : virQEMUCapsNewForBinaryInternal:4563 : internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.099+0000: 123145555038208: warning : virQEMUCapsLogProbeFailure:4510 : Failed to probe capabilities for /usr/local/bin/qemu-system-ppc64: internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.101+0000: 123145555038208: error : virQEMUCapsNewForBinaryInternal:4563 : internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.101+0000: 123145555038208: warning : virQEMUCapsLogProbeFailure:4510 : Failed to probe capabilities for /usr/local/bin/qemu-system-riscv32: internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.104+0000: 123145555038208: error : virQEMUCapsNewForBinaryInternal:4563 : internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.104+0000: 123145555038208: warning : virQEMUCapsLogProbeFailure:4510 : Failed to probe capabilities for /usr/local/bin/qemu-system-riscv64: internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.107+0000: 123145555038208: error : virQEMUCapsNewForBinaryInternal:4563 : internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.107+0000: 123145555038208: warning : virQEMUCapsLogProbeFailure:4510 : Failed to probe capabilities for /usr/local/bin/qemu-system-s390x: internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.109+0000: 123145555038208: error : virQEMUCapsNewForBinaryInternal:4563 : internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.109+0000: 123145555038208: warning : virQEMUCapsLogProbeFailure:4510 : Failed to probe capabilities for /usr/local/bin/qemu-system-sh4: internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.112+0000: 123145555038208: error : virQEMUCapsNewForBinaryInternal:4563 : internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.112+0000: 123145555038208: warning : virQEMUCapsLogProbeFailure:4510 : Failed to probe capabilities for /usr/local/bin/qemu-system-sh4eb: internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.114+0000: 123145555038208: error : virQEMUCapsNewForBinaryInternal:4563 : internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.114+0000: 123145555038208: warning : virQEMUCapsLogProbeFailure:4510 : Failed to probe capabilities for /usr/local/bin/qemu-system-sparc: internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.117+0000: 123145555038208: error : virQEMUCapsNewForBinaryInternal:4563 : internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.117+0000: 123145555038208: warning : virQEMUCapsLogProbeFailure:4510 : Failed to probe capabilities for /usr/local/bin/qemu-system-sparc64: internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.119+0000: 123145555038208: error : virQEMUCapsNewForBinaryInternal:4563 : internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.119+0000: 123145555038208: warning : virQEMUCapsLogProbeFailure:4510 : Failed to probe capabilities for /usr/local/bin/qemu-system-unicore32: internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.121+0000: 123145555038208: error : virQEMUCapsNewForBinaryInternal:4563 : internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.121+0000: 123145555038208: warning : virQEMUCapsLogProbeFailure:4510 : Failed to probe capabilities for /usr/local/bin/qemu-system-x86_64: internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.124+0000: 123145555038208: error : virQEMUCapsNewForBinaryInternal:4563 : internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.124+0000: 123145555038208: warning : virQEMUCapsLogProbeFailure:4510 : Failed to probe capabilities for /usr/local/bin/qemu-system-xtensa: internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.127+0000: 123145555038208: error : virQEMUCapsNewForBinaryInternal:4563 : internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

2019-01-10 22:14:41.127+0000: 123145555038208: warning : virQEMUCapsLogProbeFailure:4510 : Failed to probe capabilities for /usr/local/bin/qemu-system-xtensaeb: internal error: Failed to probe QEMU binary with QMP: libvirt:  error : cannot set supplemental groups: Invalid argument

(Sean Molenaar) #3

Brew formula are written and kept up to date by users like you and me. It can very well be that the original author didn’t try and use the same components you did and never integrated them properly. I’m not an expert regarding qemu and libvirt so I can’t really help you debug here. The only thing I can do about this would be to ask you that when you solve your issue you please make a pull request so the next user doesn’t have the same issue you did.