On Wed, Jun 19, 2013 at 1:43 PM, Tony Cebzanov <span dir="ltr"><<a href="mailto:tonycpsu@gmail.com" target="_blank">tonycpsu@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm trying to use the libvirt Python API to manage VirtualBox VMs on Mac OS X 10.8.3.  I'm running libvirt 1.0.6 via Homebrew.  However, the following trivial Python script:<br>
<br>
    import libvirt<br>
    conn = libvirt.open('vbox:///session'<u></u>)<br>
<br>
gives me the following error:<br>
<br>
libvirt:  error : Failed to find user record for uid '32722': Success<br>
Traceback (most recent call last):<br>
  File "ch3vm.py", line 3, in <module><br>
    conn = libvirt.open('vbox:///session'<u></u>)<br>
  File "/usr/local/lib/python2.7/<u></u>site-packages/libvirt.py", line 236, in open<br>
    if ret is None:raise libvirtError('virConnectOpen() failed')<br>
libvirt.libvirtError: Failed to find user record for uid '32722': Success<br>
<br>
I have no idea where that uid 32722 is coming from -- it's not the uid of my user account, any of my VirtualBox files, or anything else that I'm aware of.<br>
<br>
Anyone have any idea what's going on here?<br>
<br>
______________________________<u></u>_________________<br>
libvirt-users mailing list<br>
<a href="mailto:libvirt-users@redhat.com" target="_blank">libvirt-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/libvirt-users" target="_blank">https://www.redhat.com/<u></u>mailman/listinfo/libvirt-users</a><br>
</blockquote></div><br>You'll get the same error with all drivers connecting to 'session' on Mac OS X for some reason. I haven't had a chance to track it down. You'll see the uid change between reboots or over some X amount of time as well.<br clear="all">
<div><br></div>-- <br>Doug Goldstein