The Unable to open connection error is fixed when adding the user to the livrtd group.
Now I see this issue:
https://bugzilla.redhat.com/show_bug.cgi?format=multiple&id=903593
and the rest of the issues in my previous post.

On Tue, Jan 29, 2013 at 1:21 PM, pablo platt <pablo.platt@gmail.com> wrote:
Thank you for the fix, I can build and install now.

Now I'm having issues with the example in the man page.

I'm getting unkonw option error for --host-bind:
> mkdir $HOME/scratch
> virt-sandbox -c lxc:/// --host-bind $HOME=$HOME/scratch /bin/sh
Unknown option --host-bind

The part in the man page for the options probably has typo.
-b DST-GUEST-DIR=SRC-GUEST-DIR, --guest-bind
One of them should probably be HOST-DIR?

-B DST-GUEST-DIR=SRC-HOST-DIR, --guest-bind DST-GUEST-DIR=SRC-HOST-DIR
Maybe it should be --host-bind?

When dropping the --host-bind option I'm getting permission denied error:
> virt-sandbox -c lxc:/// /bin/sh
Unable to open connection: Unable to open lxc:///: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Permission denied

I've found this
http://wiki.libvirt.org/page/Failed_to_connect_to_the_hypervisor#Permission_denied
But it's not clear what to put in unix_sock_group, unix_sock_ro_perms and unix_sock_rw_perms.

When running as root I'm getting another error (or warning):
> sudo virt-sandbox -c lxc:/// /bin/sh
/bin/sh: 0: can't access tty; job control turned off

Thanks


On Tue, Jan 29, 2013 at 12:15 PM, Daniel P. Berrange <berrange@redhat.com> wrote:
On Tue, Jan 29, 2013 at 04:03:08AM +0200, pablo platt wrote:
> I'm trying to build libvirt-sandbox under ubuntu 12.10
>
> sudo apt-get install git build-essential lxc libvirt-bin libvirt-glib-1.0
> libglib2.0-0 libglib2.0-dev gtk-doc-tools libxml2-dev libselinux-dev
> git clone git://libvirt.org/libvirt-sandbox.git
> cd libvirt-sandbox
> sudo ./autobuild
>
> The error I'm getting:
> make[2]: Entering directory `/home/user/libvirt-sandbox/build/bin'
>   CC     virt_sandbox-virt-sandbox.o
>   CCLD   virt-sandbox
>   CC     virt_sandbox_service_util-virt-sandbox-service-util.o
> make[2]: *** No rule to make target `container.c', needed by
> `virt_sandbox_service_util-container.o'.  Stop.
>
> Am I doing something wrong?

Looks like Dan added a bogus line to the Makefile - i've deleted it
now and pushed the fix. So update your GIT checkout.


Daniel
--
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|