Bug 909652

Summary: Sandbox options to use --host-bind broken / no replacement
Product: [Fedora] Fedora Reporter: d. johnson <drjohnson1>
Component: libvirt-sandboxAssignee: Daniel Berrangé <berrange>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: ajia, berrange, dwalsh, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libvirt-sandbox-0.1.1-3.fc18 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-18 20:01:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description d. johnson 2013-02-10 06:25:45 UTC
Description of problem:

# virt-sandbox -c lxc:/// --host-bind /=/var/lib/libvirt/filesystems/container1 /bin/sh
Unknown option --host-bind
Run 'virt-sandbox --help' to see a full list of available command line options

Version-Release number of selected component (if applicable):

lxc-0.7.5-2.fc18.x86_64
libvirt-sandbox-0.1.0-1.fc18.x86_64

How reproducible:

100%

Steps to Reproduce:
1. Create a LXC chroot
2. Verify it works using LXC directly
3. Try to use LXC chroot as virt-sandbox root (instead of host system's rootfs)
  
Actual results:

"man virt-sandbox" indicates the above should work.

"virt-sandbox --help" does not, and does not have an equivalent option.

Expected results:

docs should match actual options available.

Additional info:


Create LXC root like this for an example:

LXCDIR=/var/lib/libvirt/filesystems/lxc1
mkdir -p $LXCDIR/tmp
rpm --root $LXCDIR --initdb
yumdownloader --resolve --destdir=$LXCDIR/tmp fedora-release
rpm --root $LXCDIR -ivh $LXCDIR/tmp/fedora-release-*.noarch.rpm
yum --installroot=$LXCDIR install bash coreutils dhclient

Comment 1 Daniel Berrangé 2013-02-11 09:49:52 UTC
The new syntax  is  '-m host-bind:GUEST-DST=HOST-SRC', but I forgot to update the manpage

http://libvirt.org/git/?p=libvirt-sandbox.git;a=commitdiff;h=75f26e52e52fe9bba013494d0f1b4ff8b9c280b3

Comment 2 Fedora Update System 2013-10-01 15:08:37 UTC
libvirt-sandbox-0.1.1-3.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/libvirt-sandbox-0.1.1-3.fc18

Comment 3 Fedora Update System 2013-10-02 06:45:24 UTC
Package libvirt-sandbox-0.1.1-3.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing libvirt-sandbox-0.1.1-3.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-18108/libvirt-sandbox-0.1.1-3.fc18
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-10-18 20:01:41 UTC
libvirt-sandbox-0.1.1-3.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.