[libvirt-users] libvirtd on MacOS X

Waldemar Brodkorb mail at waldemar-brodkorb.de
Thu Sep 13 09:26:12 UTC 2012


Hi,

I am trying to run libvirtd on MacOS X, but for now without success. My hypervisor is VirtualBox.
Libvirt is installed from ports system. Without libvirtd I can see my virtual machines:
LIBVIRT_LOG_FILTERS=1:vbox virsh -c vbox:///session
setlocale: No such file or directory
2012-09-13 08:56:43.937+0000: -1: info : libvirt version: 0.9.10
2012-09-13 08:56:43.937+0000: -1: debug : tryLoadOne:163 : Found VBoxXPCOMC.dylib in '/Applications/VirtualBox.app/Contents/MacOS'
2012-09-13 08:56:43.937+0000: -1: debug : vboxRegister:97 : VBoxCGlueInit found API version: 4.1.22 (4001022)
2012-09-13 08:56:43.937+0000: -1: debug : vboxRegister:129 : VirtualBox API version: 4.1
2012-09-13 08:56:43.953+0000: -1: debug : vboxOpen:1048 : in vboxOpen
2012-09-13 08:56:43.962+0000: -1: debug : vboxNetworkOpen:7319 : network initialized
2012-09-13 08:56:43.965+0000: -1: debug : vboxStorageOpen:8137 : vbox storage initialized
Welcome to virsh, the virtualization interactive terminal.

Type:  'help' for help with commands
       'quit' to quit

virsh # list
 Id    Name                           State
----------------------------------------------------
 4     xen01                          running
 5     xen02                          running

After starting libvirtd as root, I can connect, but no machines are displayed:
LIBVIRT_LOG_FILTERS=1:vbox virsh -c vbox+tcp://192.168.100.83/session                                                                         
setlocale: No such file or directory
2012-09-13 09:02:19.399+0000: -1: info : libvirt version: 0.9.10
2012-09-13 09:02:19.399+0000: -1: debug : tryLoadOne:163 : Found VBoxXPCOMC.dylib in '/Applications/VirtualBox.app/Contents/MacOS'
2012-09-13 09:02:19.399+0000: -1: debug : vboxRegister:97 : VBoxCGlueInit found API version: 4.1.22 (4001022)
2012-09-13 09:02:19.399+0000: -1: debug : vboxRegister:129 : VirtualBox API version: 4.1
Welcome to virsh, the virtualization interactive terminal.

Type:  'help' for help with commands
       'quit' to quit

virsh # list
 Id    Name                           State
----------------------------------------------------

virsh # 

When trying to start libvirtd as the user, which started the virtual machines, I get:
1|wbx at neon:~ $ libvirtd -v -l                                                                                                                              
libvirtd: initialization failed

Any idea what is wrong here? Do I have to start libvirtd in the context of the user, to see the virtual machines?

Thanks in advance for any advice,
 Waldemar








More information about the libvirt-users mailing list