<div dir="ltr">Thank you for the fix, I can build and install now.<br><br>Now I'm having issues with the example in the man page.<br><br>I'm getting unkonw option error for --host-bind:<br>> mkdir $HOME/scratch<br>
> virt-sandbox -c lxc:/// --host-bind $HOME=$HOME/scratch /bin/sh<br>Unknown option --host-bind<br><br>The part in the man page for the options probably has typo.<br>-b DST-GUEST-DIR=SRC-GUEST-DIR, --guest-bind<br>One of them should probably be HOST-DIR?<br>
<br>-B DST-GUEST-DIR=SRC-HOST-DIR, --guest-bind DST-GUEST-DIR=SRC-HOST-DIR<br>Maybe it should be --host-bind?<br><br>When dropping the --host-bind option I'm getting permission denied error:<br>> virt-sandbox -c lxc:/// /bin/sh<br>
Unable to open connection: Unable to open lxc:///: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Permission denied<br><br>I've found this<br><a href="http://wiki.libvirt.org/page/Failed_to_connect_to_the_hypervisor#Permission_denied">http://wiki.libvirt.org/page/Failed_to_connect_to_the_hypervisor#Permission_denied</a><br>
But it's not clear what to put in unix_sock_group, unix_sock_ro_perms and unix_sock_rw_perms.<br><br>When running as root I'm getting another error (or warning):<br>> sudo virt-sandbox -c lxc:/// /bin/sh<br>/bin/sh: 0: can't access tty; job control turned off<br>
<br>Thanks<br><br><div class="gmail_quote">On Tue, Jan 29, 2013 at 12:15 PM, Daniel P. Berrange <span dir="ltr"><<a href="mailto:berrange@redhat.com" target="_blank">berrange@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Tue, Jan 29, 2013 at 04:03:08AM +0200, pablo platt wrote:<br>
> I'm trying to build libvirt-sandbox under ubuntu 12.10<br>
><br>
> sudo apt-get install git build-essential lxc libvirt-bin libvirt-glib-1.0<br>
> libglib2.0-0 libglib2.0-dev gtk-doc-tools libxml2-dev libselinux-dev<br>
> git clone git://<a href="http://libvirt.org/libvirt-sandbox.git" target="_blank">libvirt.org/libvirt-sandbox.git</a><br>
> cd libvirt-sandbox<br>
> sudo ./autobuild<br>
><br>
> The error I'm getting:<br>
> make[2]: Entering directory `/home/user/libvirt-sandbox/build/bin'<br>
>   CC     virt_sandbox-virt-sandbox.o<br>
>   CCLD   virt-sandbox<br>
>   CC     virt_sandbox_service_util-virt-sandbox-service-util.o<br>
> make[2]: *** No rule to make target `container.c', needed by<br>
> `virt_sandbox_service_util-container.o'.  Stop.<br>
><br>
> Am I doing something wrong?<br>
<br>
</div></div>Looks like Dan added a bogus line to the Makefile - i've deleted it<br>
now and pushed the fix. So update your GIT checkout.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
Daniel<br>
--<br>
|: <a href="http://berrange.com" target="_blank">http://berrange.com</a>      -o-    <a href="http://www.flickr.com/photos/dberrange/" target="_blank">http://www.flickr.com/photos/dberrange/</a> :|<br>
|: <a href="http://libvirt.org" target="_blank">http://libvirt.org</a>              -o-             <a href="http://virt-manager.org" target="_blank">http://virt-manager.org</a> :|<br>
|: <a href="http://autobuild.org" target="_blank">http://autobuild.org</a>       -o-         <a href="http://search.cpan.org/~danberr/" target="_blank">http://search.cpan.org/~danberr/</a> :|<br>
|: <a href="http://entangle-photo.org" target="_blank">http://entangle-photo.org</a>       -o-       <a href="http://live.gnome.org/gtk-vnc" target="_blank">http://live.gnome.org/gtk-vnc</a> :|<br>
</font></span></blockquote></div><br></div>