Virsh fails with "unable to initalize VirtualBox driver"


(Keith Bierman) #1

Mac OS X 10.14.2
VirtualBox 5.2.22 and 6.0.0
libvirt installed via homebrew
virsh -V
Virsh command line tool of libvirt 4.10.0

Compiled with support for:
Hypervisors: QEMU/KVM VMware VirtualBox ESX Test
Networking: Remote Bridging
Storage: Dir
Miscellaneous: Daemon Secrets Debug

brew services start libvirt

virsh -c vbox:///session list

error: failed to connect to the hypervisor

error: internal error: unable to initialize VirtualBox driver API

I’ve seen the same failure on MacOS X 10.13.6; the release of virtualbox seems not to matter. Brew doctor is clean. dtruss results follow … but elided due to posting limitation.

Last login: Mon Jan 7 12:31:39 on console

/Users/AB84394>sudo dtruss -fn virsh

PID/THRD SYSCALL(args) = return

918/0x3b12: thread_selfid(0x0, 0x0, 0x0) = 15122 0

918/0x3b12: __mac_syscall(0x112B02C89, 0x5A, 0x7FFEE285EF00) = 0 0

918/0x3b12: shared_region_check_np(0x7FFEE285ED68, 0x0, 0x0) = 0 0

918/0x3b12: stat64("/private/var/db/dyld/dyld_shared_cache_x86_64h\0", 0x7FFEE285ECB0, 0x0) = 0 0

918/0x3b12: csrctl(0x0, 0x7FFEE285EA7C, 0x4) = -1 Err#1

918/0x3b12: stat64("/usr/local/bin/virsh\0", 0x7FFEE285F400, 0x0) = 0 0

918/0x3b12: getpid(0x0, 0x0, 0x0) = 918 0

918/0x3b12: proc_info(0x2, 0x396, 0x16) = 1272 0

918/0x3b12: stat64("/usr/local/Cellar/libvirt/4.10.0/lib/libvirt-lxc.0.dylib\0", 0x7FFEE285DC00, 0x0) = 0 0

918/0x3b12: stat64("/usr/local/Cellar/libvirt/4.10.0/lib/libvirt-lxc.0.dylib\0", 0x7FFEE285E040, 0x0) = 0 0

918/0x3b12: open("/usr/local/Cellar/libvirt/4.10.0/lib/libvirt-lxc.0.dylib\0", 0x0, 0x0) = 3 0

918/0x3b12: pread(0x3, "\317\372\355\376\a\0", 0x1000, 0x0) = 4096 0

918/0x3b12: fcntl(0x3, 0x62, 0x7FFEE28557D0) = 0 0

918/0x3b12: mmap(0x10D421000, 0x4000, 0x5, 0x12, 0x3, 0x0) = 0x10D421000 0

918/0x3b12: mmap(0x10D425000, 0x1000, 0x3, 0x12, 0x3, 0x4000) = 0x10D425000 0

918/0x3b12: mmap(0x10D426000, 0x6CC, 0x1, 0x12, 0x3, 0x5000) = 0x10D426000 0

918/0x3b12: fcntl(0x3, 0x2C, 0x7FFEE28559D0) = 0 0

918/0x3b12: close(0x3) = 0 0

918/0x3b12: stat64("/usr/local/Cellar/libvirt/4.10.0/lib/libvirt-qemu.0.dylib\0", 0x7FFEE285DC00, 0x0) = 0 0

918/0x3b12: stat64("/usr/local/Cellar/libvirt/4.10.0/lib/libvirt-qemu.0.dylib\0", 0x7FFEE285E040, 0x0) = 0 0

918/0x3b12: open("/usr/local/Cellar/libvirt/4.10.0/lib/libvirt-qemu.0.dylib\0", 0x0, 0x0) = 3 0

918/0x3b12: pread(0x3, "\317\372\355\376\a\0", 0x1000, 0x0) = 4096 0

918/0x3b12: fcntl(0x3, 0x62, 0x7FFEE28557D0) = 0 0

918/0x3b12: mmap(0x10D42E000, 0x4000, 0x5, 0x12, 0x3, 0x0) = 0x10D42E000 0

918/0x3b12: mmap(0x10D432000, 0x1000, 0x3, 0x12, 0x3, 0x4000) = 0x10D432000 0

918/0x3b12: mmap(0x10D433000, 0x4D4, 0x1, 0x12, 0x3, 0x5000) = 0x10D433000 0

918/0x3b12: fcntl(0x3, 0x2C, 0x7FFEE28559D0) = 0 0

918/0x3b12: close(0x3) = 0 0

918/0x3b12: stat64("/usr/local/Cellar/libvirt/4.10.0/lib/libvirt.0.dylib\0", 0x7FFEE285DC00, 0x0) = 0 0

918/0x3b12: stat64("/usr/local/Cellar/libvirt/4.10.0/lib/libvirt.0.dylib\0", 0x7FFEE285E040, 0x0) = 0 0

918/0x3b12: open("/usr/local/Cellar/libvirt/4.10.0/lib/libvirt.0.dylib\0", 0x0, 0x0) = 3 0

918/0x3b12: pread(0x3, "\317\372\355\376\a\0", 0x1000, 0x0) = 4096 0

918/0x3b12: fcntl(0x3, 0x62, 0x7FFEE28557D0) = 0 0

918/0x3b12: mmap(0x10D438000, 0x252000, 0x5, 0x12, 0x3, 0x0) = 0x10D438000 0

918/0x3b12: mmap(0x10D68A000, 0x12000, 0x3, 0x12, 0x3, 0x252000) = 0x10D68A000 0

918/0x3b12: mmap(0x10D69D000, 0x8FED4, 0x1, 0x12, 0x3, 0x264000) = 0x10D69D000 0

918/0x3b12: fcntl(0x3, 0x2C, 0x7FFEE28559D0) = 0 0

918/0x3b12: close(0x3) = 0 0

918/0x3b12: stat64("/usr/local/opt/yajl/lib/libyajl.2.dylib\0", 0x7FFEE285DC00, 0x0) = 0 0

918/0x3b12: stat64("/usr/local/opt/yajl/lib/libyajl.2.dylib\0", 0x7FFEE285E040, 0x0) = 0 0

918/0x3b12: open("/usr/local/opt/yajl/lib/libyajl.2.dylib\0", 0x0, 0x0) = 3 0

918/0x3b12: pread(0x3, "\317\372\355\376\a\0", 0x1000, 0x0) = 4096 0

918/0x3b12: fcntl(0x3, 0x62, 0x7FFEE28557D0) = 0 0

918/0x3b12: mmap(0x10D72E000, 0x7000, 0x5, 0x12, 0x3, 0x0) = 0x10D72E000 0

918/0x3b12: mmap(0x10D735000, 0x1000, 0x3, 0x12, 0x3, 0x7000) = 0x10D735000 0

918/0x3b12: mmap(0x10D736000, 0x1150, 0x1, 0x12, 0x3, 0x8000) = 0x10D736000 0

918/0x3b12: fcntl(0x3, 0x2C, 0x7FFEE28559D0) = 0 0

918/0x3b12: close(0x3) = 0 0

918/0x3b12: stat64("/usr/lib/libSystem.B.dylib\0", 0x7FFEE285E040, 0x0) = 0 0

918/0x3b12: stat64("/usr/lib/libsasl2.2.dylib\0", 0x7FFEE285E040, 0x0) = 0 0

918/0x3b12: stat64("/usr/local/opt/gnutls/lib/libgnutls.30.dylib\0", 0x7FFEE285DC00, 0x0) = 0 0

918/0x3b12: stat64("/usr/local/opt/gnutls/lib/libgnutls.30.dylib\0", 0x7FFEE285E040, 0x0) = 0 0


918/0x3b12: stat64("/System/Library/Frameworks/NetFS.framework/Versions/A/NetFS\0", 0x7FFEE285D420, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth\0", 0x7FFEE285D2B0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport\0", 0x7FFEE285D1B0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC\0", 0x7FFEE285D3F0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/PrivateFrameworks/CoreNLP.framework/Versions/A/CoreNLP\0", 0x7FFEE285D3F0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/PrivateFrameworks/MetadataUtilities.framework/Versions/A/MetadataUtilities\0", 0x7FFEE285D3F0, 0x0) = 0 0

918/0x3b12: stat64("/usr/lib/libmecabra.dylib\0", 0x7FFEE285D3F0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices\0", 0x7FFEE285D2B0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics\0", 0x7FFEE285D0C0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/CoreText.framework/Versions/A/CoreText\0", 0x7FFEE285D0C0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO\0", 0x7FFEE285D0C0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/ColorSync.framework/Versions/A/ColorSync\0", 0x7FFEE285D0C0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS\0", 0x7FFEE285D0C0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSyncLegacy.framework/Versions/A/ColorSyncLegacy\0", 0x7FFEE285D0C0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices\0", 0x7FFEE285D0C0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis\0", 0x7FFEE285D0C0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore\0", 0x7FFEE285D0C0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD\0", 0x7FFEE285D0C0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis\0", 0x7FFEE285D0C0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/SkyLight\0", 0x7FFEE285CF20, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface\0", 0x7FFEE285CF20, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate\0", 0x7FFEE285CF20, 0x0) = 0 0

918/0x3b12: stat64("/usr/lib/libcompression.dylib\0", 0x7FFEE285CC70, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/CoreDisplay.framework/Versions/A/CoreDisplay\0", 0x7FFEE285CC70, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/Metal.framework/Versions/A/Metal\0", 0x7FFEE285CC70, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/MetalPerformanceShaders.framework/Versions/A/MetalPerformanceShaders\0", 0x7FFEE285CC70, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport\0", 0x7FFEE285CC70, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore\0", 0x7FFEE285CC70, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage\0", 0x7FFEE285CB70, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib\0", 0x7FFEE285CB70, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib\0", 0x7FFEE285C9D0, 0x0 = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib\0", 0x7FFEE285C9D0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib\0", 0x7FFEE285C9D0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib\0", 0x7FFEE285C9D0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib\0", 0x7FFEE285C9D0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparseBLAS.dylib\0", 0x7FFEE285C9D0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libQuadrature.dylib\0", 0x7FFEE285C9D0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBNNS.dylib\0", 0x7FFEE285C9D0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparse.dylib\0", 0x7FFEE285C9D0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/PrivateFrameworks/GPUWrangler.framework/Versions/A/GPUWrangler\0", 0x7FFEE285CA20, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/PrivateFrameworks/IOAccelerator.framework/Versions/A/IOAccelerator\0", 0x7FFEE285CA20, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/PrivateFrameworks/IOPresentment.framework/Versions/A/IOPresentment\0", 0x7FFEE285CA20, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/PrivateFrameworks/DSExternalDisplay.framework/Versions/A/DSExternalDisplay\0", 0x7FFEE285CA20, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreFSCache.dylib\0", 0x7FFEE285C880, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSCore.framework/Versions/A/MPSCore\0", 0x7FFEE285CAE0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSImage.framework/Versions/A/MPSImage\0", 0x7FFEE285CAE0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSNeuralNetwork.framework/Versions/A/MPSNeuralNetwork\0", 0x7FFEE285CAE0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSMatrix.framework/Versions/A/MPSMatrix\0", 0x7FFEE285CAE0, 0x0 = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSRayIntersector.framework/Versions/A/MPSRayIntersector\0", 0x7FFEE285CAE0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/PrivateFrameworks/MetalTools.framework/Versions/A/MetalTools\0", 0x7FFEE285C950, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/PrivateFrameworks/AggregateDictionary.framework/Versions/A/AggregateDictionary\0", 0x7FFEE285C950, 0x0) = 0 0

918/0x3b12: stat64("/usr/lib/libMobileGestalt.dylib\0", 0x7FFEE285C7F0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage\0", 0x7FFEE285CA20, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo\0", 0x7FFEE285CA20, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL\0", 0x7FFEE285CA20, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/PrivateFrameworks/GraphVisualizer.framework/Versions/A/GraphVisualizer\0", 0x7FFEE285C790, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore\0", 0x7FFEE285C790, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL\0", 0x7FFEE285C790, 0x0) = 0 0

918/0x3b12: stat64("/usr/lib/libFosl_dynamic.dylib\0", 0x7FFEE285C790, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/PrivateFrameworks/OTSVG.framework/Versions/A/OTSVG\0", 0x7FFEE285C590, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib\0", 0x7FFEE285C590, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib\0", 0x7FFEE285C590, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib\0", 0x7FFEE285C170, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib\0", 0x7FFEE285C170, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib\0", 0x7FFEE285C170, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib\0", 0x7FFEE285C170, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib\0", 0x7FFEE285C170, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib\0", 0x7FFEE285C170, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/PrivateFrameworks/AppleJPEG.framework/Versions/A/AppleJPEG\0", 0x7FFEE285C170, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib\0", 0x7FFEE285C460, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib\0", 0x7FFEE285C260, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib\0", 0x7FFEE285C260, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib\0", 0x7FFEE285C0D0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginSupport.dylib\0", 0x7FFEE285BFD0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib\0", 0x7FFEE285BEC0, 0x0) = 0 0

918/0x3b12: stat64("/usr/lib/libcups.2.dylib\0", 0x7FFEE285CE70, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos\0", 0x7FFEE285CCE0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/GSS.framework/Versions/A/GSS\0", 0x7FFEE285CCE0, 0x0) = 0 0

918/0x3b12: stat64("/usr/lib/libresolv.9.dylib\0", 0x7FFEE285CCE0, 0x0) = 0 0

918/0x3b12: stat64("/usr/lib/libiconv.2.dylib\0", 0x7FFEE285CCE0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal\0", 0x7FFEE285CBD0, 0x0) = 0 0

918/0x3b12: stat64("/usr/lib/libheimdal-asn1.dylib\0", 0x7FFEE285CA00, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory\0", 0x7FFEE285CB50, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth\0", 0x7FFEE285CB50, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory\0", 0x7FFEE285C9E0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation\0", 0x7FFEE285C9E0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/PrivateFrameworks/APFS.framework/Versions/A/APFS\0", 0x7FFEE285C8A0, 0x0) = 0 0

918/0x3b12: stat64("/usr/lib/libutil.dylib\0", 0x7FFEE285C790, 0x0) = 0 0

918/0x3b12: stat64("/usr/lib/libcharset.1.dylib\0", 0x7FFEE285CC00, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio\0", 0x7FFEE285CF50, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox\0", 0x7FFEE285CF50, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/PrivateFrameworks/AppleSauce.framework/Versions/A/AppleSauce\0", 0x7FFEE285CDE0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/PrivateFrameworks/AssertionServices.framework/Versions/A/AssertionServices\0", 0x7FFEE285CDE0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/PrivateFrameworks/BaseBoard.framework/Versions/A/BaseBoard\0", 0x7FFEE285CCB0, 0x0) = 0 0

918/0x3b12: stat64("/usr/lib/libmecab.1.0.0.dylib\0", 0x7FFEE285D250, 0x0) = 0 0

918/0x3b12: stat64("/usr/lib/libgermantok.dylib\0", 0x7FFEE285D250, 0x0) = 0 0

918/0x3b12: stat64("/usr/lib/libThaiTokenizer.dylib\0", 0x7FFEE285D250, 0x0) = 0 0

918/0x3b12: stat64("/usr/lib/libChineseTokenizer.dylib\0", 0x7FFEE285D250, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling\0", 0x7FFEE285D110, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/PrivateFrameworks/CoreEmoji.framework/Versions/A/CoreEmoji\0", 0x7FFEE285CF40, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/PrivateFrameworks/Lexicon.framework/Versions/A/Lexicon\0", 0x7FFEE285CF40, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/PrivateFrameworks/LinguisticData.framework/Versions/A/LinguisticData\0", 0x7FFEE285CF40, 0x0) = 0 0

918/0x3b12: stat64("/usr/lib/libcmph.dylib\0", 0x7FFEE285CF40, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/CoreData.framework/Versions/A/CoreData\0", 0x7FFEE285D1C0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement\0", 0x7FFEE285D220, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/PrivateFrameworks/BackgroundTaskManagement.framework/Versions/A/BackgroundTaskManagement\0", 0x7FFEE285D0C0, 0x0) = 0 0

918/0x3b12: stat64("/usr/lib/libxslt.1.dylib\0", 0x7FFEE285D3C0, 0x0) = 0 0

918/0x3b12: stat64("/usr/local/opt/libffi/lib/libffi.6.dylib\0", 0x7FFEE285D6F0, 0x0) = 0 0

918/0x3b12: stat64("/usr/local/opt/libffi/lib/libffi.6.dylib\0", 0x7FFEE285DB30, 0x0) = 0 0

918/0x3b12: open("/usr/local/opt/libffi/lib/libffi.6.dylib\0", 0x0, 0x0) = 3 0

918/0x3b12: pread(0x3, "\317\372\355\376\a\0", 0x1000, 0x0) = 4096 0

918/0x3b12: fcntl(0x3, 0x62, 0x7FFEE28552C0) = 0 0

918/0x3b12: mmap(0x10DC03000, 0x5000, 0x5, 0x12, 0x3, 0x0) = 0x10DC03000 0

918/0x3b12: mmap(0x10DC08000, 0x1000, 0x3, 0x12, 0x3, 0x5000) = 0x10DC08000 0

918/0x3b12: mmap(0x10DC09000, 0x10AC, 0x1, 0x12, 0x3, 0x6000) = 0x10DC09000 0

918/0x3b12: fcntl(0x3, 0x2C, 0x7FFEE28554C0) = 0 0

918/0x3b12: close(0x3) = 0 0

918/0x3b12: stat64("/usr/local/Cellar/nettle/3.4.1/lib/libnettle.6.dylib\0", 0x7FFEE285D6D0, 0x0) = 0 0

918/0x3b12: stat64("/usr/local/Cellar/nettle/3.4.1/lib/libnettle.6.dylib\0", 0x7FFEE285DB10, 0x0) = 0 0

918/0x3b12: stat64("/usr/lib/libcrypto.42.dylib\0", 0x7FFEE285DC40, 0x0) = 0 0

918/0x3b12: stat64("/usr/lib/libssl.44.dylib\0", 0x7FFEE285DC40, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/LDAP.framework/Versions/A/LDAP\0", 0x7FFEE285DC40, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent\0", 0x7FFEE285DB60, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/PrivateFrameworks/CoreDaemon.framework/Versions/B/CoreDaemon\0", 0x7FFEE285DAD0, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/PrivateFrameworks/AppleSRP.framework/Versions/A/AppleSRP\0", 0x7FFEE285D960, 0x0) = 0 0

918/0x3b12: open("/dev/dtracehelper\0", 0x2, 0xFFFFFFFFE285EE90) = 3 0

918/0x3b12: ioctl(0x3, 0x80086804, 0x7FFEE285ECA0) = 0 0

918/0x3b12: close(0x3) = 0 0

918/0x3b12: madvise(0x10D87E000, 0x2000, 0x5) = 0 0

918/0x3b12: madvise(0x10D406000, 0x2000, 0x5) = 0 0

918/0x3b12: access("/AppleInternal/XBS/.isChrooted\0", 0x0, 0x0) = -1 Err#2

918/0x3b12: bsdthread_register(0x7FFF6DA47408, 0x7FFF6DA473F8, 0x2000) = 1073742047 0

918/0x3b12: sysctlbyname(kern.bootargs, 0xD, 0x7FFEE285C5B0, 0x7FFEE285C5A8, 0x0) = 0 0

918/0x3b12: ioctl(0x2, 0x4004667A, 0x7FFEE285C834) = 0 0

918/0x3b12: mprotect(0x10DC0B000, 0x1000, 0x0) = 0 0

918/0x3b12: mprotect(0x10DC12000, 0x1000, 0x0) = 0 0

918/0x3b12: mprotect(0x10DC13000, 0x1000, 0x0) = 0 0

918/0x3b12: mprotect(0x10DC1A000, 0x1000, 0x0) = 0 0

918/0x3b12: mprotect(0x10D429000, 0x90, 0x1) = 0 0

918/0x3b12: mprotect(0x10D420000, 0x1000, 0x1) = 0 0

918/0x3b12: mprotect(0x10D429000, 0x90, 0x3) = 0 0

918/0x3b12: mprotect(0x10D429000, 0x90, 0x1) = 0 0

918/0x3b12: issetugid(0x0, 0x0, 0x0) = 0 0

918/0x3b12: getentropy(0x7FFEE2859E00, 0x20, 0x0) = 0 0

918/0x3b12: getpid(0x0, 0x0, 0x0) = 918 0

918/0x3b12: stat64("/AppleInternal\0", 0x7FFEE285CA20, 0x0) = -1 Err#2

918/0x3b12: csops(0x396, 0x7, 0x7FFEE285C550) = -1 Err#22

918/0x3b12: proc_info(0x2, 0x396, 0xD) = 64 0

918/0x3b12: csops(0x396, 0x7, 0x7FFEE285BDA0) = -1 Err#22

918/0x3b12: geteuid(0x0, 0x0, 0x0) = 502 0

918/0x3b12: getuid(0x0, 0x0, 0x0) = 502 0

918/0x3b12: sysctl([CTL_KERN, 14, 1, 918, 0, 0] (4), 0x7FFEE285B168, 0x7FFEE285B148, 0x0, 0x0) = 0 0

918/0x3b12: gettid(0x7FFEE285B408, 0x7FFEE285B40C, 0x0) = -1 Err#3

918/0x3b12: geteuid(0x0, 0x0, 0x0) = 502 0

918/0x3b12: getegid(0x0, 0x0, 0x0) = 20 0

918/0x3b12: getuid(0x0, 0x0, 0x0) = 502 0

918/0x3b12: getgid(0x0, 0x0, 0x0) = 20 0

918/0x3b12: geteuid(0x0, 0x0, 0x0) = 502 0

918/0x3b12: getegid(0x0, 0x0, 0x0) = 20 0

918/0x3b12: issetugid(0x0, 0x0, 0x0) = 0 0

918/0x3b12: issetugid(0x0, 0x0, 0x0) = 0 0

918/0x3b12: issetugid(0x0, 0x0, 0x0) = 0 0

918/0x3b12: issetugid(0x0, 0x0, 0x0) = 0 0

918/0x3b12: stat64("/etc/gnutls/default-priorities\0", 0x7FFEE285CA78, 0x0) = -1 Err#2

918/0x3b12: stat64("/System/Library/PrivateFrameworks/Heimdal.framework/Heimdal\0", 0x7FFEE285B670, 0x0) = 0 0

918/0x3b12: stat64("/System/Library/Frameworks/GSS.framework/GSS\0", 0x7FFEE285B670, 0x0) = 0 0

918/0x3b12: ioctl(0x0, 0x4004667A, 0x7FFEE285F564) = 0 0

918/0x3b12: ioctl(0x0, 0x40487413, 0x7FFEE285F6B8) = 0 0

918/0x3b12: getuid(0x0, 0x0, 0x0) = 502 0

918/0x3b12: geteuid(0x0, 0x0, 0x0) = 502 0

918/0x3b12: sysctl([CTL_KERN, 10, 0, 0, 0, 0] (2), 0x10D69B970, 0x7FFEE285F2C8, 0x0, 0x0) = 0 0

918/0x3b12: getrlimit(0x1008, 0x7FFEE285F270, 0x0) = 0 0

918/0x3b12: open_nocancel("/private/etc/ssl/openssl.cnf\0", 0x0, 0x1B6) = 3 0

918/0x3b12: fstat64(0x3, 0x7FFEE285F108, 0x0) = 0 0

918/0x3b12: read_nocancel(0x3, "[ req ]\n#default_bits\t\t= 2048\n#default_md\t\t= sha256\n#default_keyfile \t= privkey.pem\ndistinguished_name\t= req_distinguished_name\nattributes\t\t= req_attributes\n\n[ req_distinguished_name ]\ncountryName\t\t\t= Country Name (2 letter code)\ncountryName_min\t\t\t= 2\ncoun", 0x1000) = 745 0

918/0x3b12: read_nocancel(0x3, "\0", 0x1000) = 0 0

918/0x3b12: close_nocancel(0x3) = 0 0

918/0x3b12: socket(0x1E, 0x2, 0x0) = 3 0

918/0x3b12: close(0x3) = 0 0

918/0x3b12: issetugid(0x0, 0x0, 0x0) = 0 0

918/0x3b12: issetugid(0x0, 0x0, 0x0) = 0 0

918/0x3b12: pipe(0x0, 0x0, 0x0) = 3 0

918/0x3b12: fcntl(0x4, 0x3, 0x0) = 1 0

918/0x3b12: fcntl(0x4, 0x4, 0x5) = 0 0

918/0x3b12: fcntl(0x3, 0x3, 0x0) = 0 0

918/0x3b12: fcntl(0x3, 0x4, 0x4) = 0 0

918/0x3b12: fcntl(0x4, 0x1, 0x0) = 0 0

918/0x3b12: fcntl(0x4, 0x2, 0x1) = 0 0

918/0x3b12: fcntl(0x3, 0x1, 0x0) = 0 0

918/0x3b12: fcntl(0x3, 0x2, 0x1) = 0 0

918/0x3b12: bsdthread_create(0x10D48FEC4, 0x7FCE20607AA0, 0x70000D280000) = 220725248 0

918/0x3b15: thread_selfid(0x0, 0x0, 0x0) = 15125 0

918/0x3b12: geteuid(0x0, 0x0, 0x0) = 502 0

918/0x3b12: issetugid(0x0, 0x0, 0x0) = 0 0

918/0x3b12: geteuid(0x0, 0x0, 0x0) = 502 0

918/0x3b12: shm_open(0x7FFF6DA3ACD8, 0x0, 0x0) = 5 0

918/0x3b12: mmap(0x0, 0x1000, 0x1, 0x1, 0x5, 0x0) = 0x10D42B000 0

918/0x3b12: close_nocancel(0x5) = 0 0

918/0x3b12: open_nocancel("/etc/.mdns_debug\0", 0x0, 0x0) = -1 Err#2

918/0x3b12: issetugid(0x0, 0x0, 0x0) = 0 0

918/0x3b12: issetugid(0x0, 0x0, 0x0) = 0 0

918/0x3b12: proc_info(0x2, 0x396, 0x11) = 56 0

918/0x3b12: proc_info(0x2, 0x396, 0x11) = 56 0

918/0x3b12: sysctl([CTL_KERN, 14, 1, 918, 0, 0] (4), 0x7FFEE285ED28, 0x7FFEE285ED18, 0x0, 0x0) = 0 0

918/0x3b12: issetugid(0x0, 0x0, 0x0) = 0 0

918/0x3b12: openat(0xFFFFFFFFFFFFFFFE, "/Library/Preferences/Logging/com.apple.diagnosticd.filter.plist\0", 0x1000104, 0xFFFFFFFFE285EB40) = 5 0

918/0x3b12: lseek(0x5, 0x0, 0x2) = 62 0

918/0x3b12: pread(0x5, "bplist00\321\001\002Vglobal\023\0", 0x3E, 0x0) = 62 0

918/0x3b12: close(0x5) = 0 0

918/0x3b12: open("/usr/local/bin/virsh\0", 0x8004, 0x6DA83DD2) = 5 0

918/0x3b12: fcntl(0x5, 0x32, 0x7FFEE285E590) = 0 0

918/0x3b12: close(0x5) = 0 0

918/0x3b12: access("/Users/AB84394/.config/libvirt/libvirt.conf\0", 0x0, 0x0 = -1 Err#2

918/0x3b12: issetugid(0x0, 0x0, 0x0) = 0 0

918/0x3b12: geteuid(0x0, 0x0, 0x0) = 502 0

918/0x3b12: getuid(0x0, 0x0, 0x0) = 502 0

918/0x3b12: geteuid(0x0, 0x0, 0x0) = 502 0

918/0x3b12: getuid(0x0, 0x0, 0x0) = 502 0

918/0x3b12: geteuid(0x0, 0x0, 0x0) = 502 0

918/0x3b12: issetugid(0x0, 0x0, 0x0) = 0 0

918/0x3b12: issetugid(0x0, 0x0, 0x0) = 0 0

918/0x3b12: geteuid(0x0, 0x0, 0x0) = 502 0

918/0x3b12: issetugid(0x0, 0x0, 0x0) = 0 0

918/0x3b12: issetugid(0x0, 0x0, 0x0) = 0 0

918/0x3b12: issetugid(0x0, 0x0, 0x0) = 0 0

918/0x3b12: geteuid(0x0, 0x0, 0x0) = 502 0

918/0x3b12: stat64("/Users/AB84394/.cache/libvirt\0", 0x7FFEE285EFA0, 0x0) = 0 0

918/0x3b12: open("/Users/AB84394/.cache/libvirt/libvirtd.lock\0", 0x202, 0x180) = 5 0

918/0x3b12: fcntl(0x5, 0x1, 0x206084A0) = 0 0

918/0x3b12: fcntl(0x5, 0x2, 0x1) = 0 0

918/0x3b12: fcntl(0x5, 0x9, 0x7FFEE285F058) = 0 0

918/0x3b12: socket(0x1, 0x1, 0x0) = 6 0

918/0x3b12: connect(0x6, 0x7FFEE285F0E0, 0x6A) = 0 0

918/0x3b12: getsockname(0x6, 0x7FFEE285F170, 0x7FFEE285F1F0) = 0 0

918/0x3b12: fcntl(0x6, 0x1, 0xD65B4AF) = 0 0

918/0x3b12: fcntl(0x6, 0x2, 0x1) = 0 0

918/0x3b12: fcntl(0x6, 0x3, 0x0) = 2 0

918/0x3b12: fcntl(0x6, 0x4, 0x6) = 0 0

918/0x3b12: unlink("/Users/AB84394/.cache/libvirt/libvirtd.lock\0", 0x0, 0x0 = 0 0

918/0x3b12: close(0x5) = 0 0

918/0x3b12: pipe(0x0, 0x0, 0x0) = 5 0

918/0x3b12: fcntl(0x7, 0x1, 0x0) = 0 0

918/0x3b12: fcntl(0x7, 0x2, 0x1) = 0 0

918/0x3b12: fcntl(0x5, 0x1, 0x0) = 0 0

918/0x3b12: fcntl(0x5, 0x2, 0x1) = 0 0

918/0x3b12: write(0x4, "\0", 0x1) = 1 0

918/0x3b15: select(0x4, 0x70000D27FC20, 0x70000D27FCA0, 0x70000D27FD20, 0x0) = 1 0

918/0x3b15: recvfrom(0x3, 0x0, 0x0) = -1 Err#38

918/0x3b15: ioctl(0x3, 0x4004667F, 0x70000D27FDC0) = 0 0

918/0x3b15: read(0x3, "\0", 0x1) = 1 0

918/0x3b12: write(0x4, "\0", 0x1) = 1 0

918/0x3b12: __pthread_sigmask(0x1, 0x7FFEE285F04C, 0x7FFEE285F05C) = 0 0

918/0x3b15: select(0x7, 0x70000D27FC20, 0x70000D27FCA0, 0x70000D27FD20, 0x0) = 1 0

918/0x3b12: select(0x7, 0x7FFEE285EE50, 0x7FFEE285EED0, 0x7FFEE285EF50, 0x0) = 1 0

918/0x3b15: recvfrom(0x3, 0x0, 0x0) = -1 Err#38

918/0x3b12: __pthread_sigmask(0x3, 0x7FFEE285F05C, 0x0) = 0 0

918/0x3b15: ioctl(0x3, 0x4004667F, 0x70000D27FDC0) = 0 0

918/0x3b15: read(0x3, "\0", 0x1) = 1 0

918/0x3b12: write(0x6, "\0", 0x1C) = 28 0

918/0x3b12: __pthread_sigmask(0x1, 0x7FFEE285F04C, 0x7FFEE285F05C) = 0 0

918/0x3b12: select(0x7, 0x7FFEE285EE50, 0x7FFEE285EED0, 0x7FFEE285EF50, 0x0) = 1 0

918/0x3b12: recvfrom(0x6, 0x0, 0x0) = 0 0

918/0x3b12: ioctl(0x6, 0x4004667F, 0x7FFEE285EFF0) = 0 0

918/0x3b12: __pthread_sigmask(0x3, 0x7FFEE285F05C, 0x0) = 0 0

918/0x3b12: read(0x6, "\0", 0x4) = 4 0

918/0x3b12: read(0x6, " \0", 0x20) = 32 0

918/0x3b12: write(0x4, "\0", 0x1) = 1 0

918/0x3b15: select(0x4, 0x70000D27FC20, 0x70000D27FCA0, 0x70000D27FD20, 0x0) = 1 0

918/0x3b12: write(0x4, "\0", 0x1) = 1 0

918/0x3b15: recvfrom(0x3, 0x0, 0x0) = -1 Err#38

918/0x3b12: __pthread_sigmask(0x1, 0x7FFEE285F04C, 0x7FFEE285F05C) = 0 0

918/0x3b15: ioctl(0x3, 0x4004667F, 0x70000D27FDC0) = 0 0

918/0x3b15: recvfrom(0x3, 0x0, 0x0) = -1 Err#38

918/0x3b15: ioctl(0x3, 0x4004667F, 0x70000D27FDC0) = 0 0

918/0x3b15: read(0x3, "\0", 0x1) = 1 0

918/0x3b12: write_nocancel(0x2, "error: \0", 0x7) = 7 0

918/0x3b15: close(0x7) = 0 0

918/0x3b15: close(0x5) = 0 0

918/0x3b12: write_nocancel(0x2, "failed to connect to the hypervisor\n\0", 0x24) = 36 0

918/0x3b12: write_nocancel(0x2, "error: \0", 0x7) = 7 0

918/0x3b12: write_nocancel(0x2, "internal error: unable to initialize VirtualBox driver API\n\0", 0x3B) = 59 0

918/0x3b12: write(0x4, "\0", 0x1) = 1 0

918/0x3b15: close(0x6) = 0 0

918/0x3b15: __disable_threadsignal(0x1, 0x0, 0x0) = 0 0

918/0x3b15: ulock_wake(0x1000002, 0x70000D280034, 0x0) = 0 0

918/0x3b12: ulock_wait(0x1020002, 0x70000D280034, 0x1303) = 0 0

918/0x3b12: issetugid(0x0, 0x0, 0x0) = 0 0

919/0x3b1a: thread_selfid(0x70000D1FF000, 0x81000, 0x1303) = 15130 0

95/0x3b19: thread_selfid(0x1, 0x0, 0x0) = 15129 0


(Sean Molenaar) #2

If this is an issue you’re reporting you should post it to Github. And if it’s a question I’m not sure I understand the question.


(Keith Bierman) #3

Well, brew usually works … ;> I’m at a loss for how to debug … virsh -V output suggests to me it’s built with the appropriate support compiled in … at first I thought this was a Mojave issue … but I’ve replicated it with High Sierra … so do others have it working? If so, what’s my pilot error? If not, what’s the most helpful information to log to which group (libvirt-users@redhat … brew@github … ?)


(Keith Bierman) #4

replaying my install
brew install libvirt

brew services start libvirt
brew doctor
Your system is ready to brew.

So is the virsh failure due to:

  1. pilot error on my part in installing via brew?
  2. an issue with the formula?
  3. something inherently broken in libvirt?

I’m hoping for (1) or possibly (2) …


(Sean Molenaar) #5

I’d say this might be easier to figure out with the libvirt developers.


(Keith Bierman) #6

For whatever it’s worth, the expected socket files (libvirt-socket and friends) are created IF we start the service with sudo

sudo brew services libvirt

Sadly, they then have the wrong permissions, so virsh can’t manipulate them (obviously, running it sudo is possible; but that seems inappropriate). Is there an obvious change to the plist? Seems to me a lot of Linux flavored daemons would have similar issues…

?xml version=“1.0” encoding=“UTF-8”?>

<!DOCTYPE plist PUBLIC “-//Apple Computer//DTD PLIST 1.0//EN” “http://www.apple.com/DTDs/PropertyList-1.0.dtd”>

<plist version=“1.0”>

<dict>

<key>EnvironmentVariables</key>

<dict>

<key>PATH</key>

<string>/usr/local/bin</string>

</dict>

<key>Label</key>

<string>homebrew.mxcl.libvirt</string>

<key>ProgramArguments</key>

<array>

<string>/usr/local/Cellar/libvirt/4.10.0/sbin/libvirtd</string>

</array>

<key>KeepAlive</key>

<true/>

<key>RunAtLoad</key>

<true/>

</dict>

</plist>


(Sean Molenaar) #7

Linux daemons often run as root. Maybe there’s a way in the configuration to set which users have access?