Bug 909652 - Sandbox options to use --host-bind broken / no replacement
Summary: Sandbox options to use --host-bind broken / no replacement
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libvirt-sandbox
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Daniel Berrangé
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-10 06:25 UTC by d. johnson
Modified: 2013-10-18 20:01 UTC (History)
4 users (show)

Fixed In Version: libvirt-sandbox-0.1.1-3.fc18
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-18 20:01:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.