[libvirt-users] Fail to build libvirt-sandbox under ubuntu 12.10

pablo platt pablo.platt at gmail.com
Tue Jan 29 19:05:24 UTC 2013


On Tue, Jan 29, 2013 at 7:02 PM, Daniel P. Berrange <berrange at redhat.com>wrote:

> On Tue, Jan 29, 2013 at 01:21:15PM +0200, pablo platt 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?
>
> Opps, the man page was out of date the - syntax checked - see the
> updated man page i just committed to git.
>

Please see additional small issues in the man page:

guest-bind
      If TYPE is host-image, then SRC is interpreted as the path
      to another directory in the container filesystem.

Should be "if TYpe is guest-bind" ?

The "--include" option is useful for populating these temporary directories
with copies of host files.
I don't see --include option in the man page.

This example should be updated:
# mkdir $HOME/scratch
# virt-sandbox -c lxc:/// --host-bind $HOME=$HOME/scratch /bin/sh


> > 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
>
> I dunno why sh is doing this - i don't see it myself with bash
> on Fedora - i assume 'sh' is dash on Ubuntu
>

I've tried /bin/bash instead of /bin/sh on Ubuntu and I'm not getting the
above error
so there is some problem with dash.

I'm probably missing something because when running the following, I'm
getting the contents of my home dir:
sudo virt-sandbox -c lxc:/// /bin/ls $HOME

Shouldn't virt-sandbox hide everything in the host from the guest except
for specifically mounted folders?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20130129/943ffa4c/attachment.htm>


More information about the libvirt-users mailing list