[libvirt] [libvirt-sandbox][PATCH] Docs: update EXAMPLES section of virt-sandbox man page

Alex Jia ajia at redhat.com
Thu Jul 18 08:22:36 UTC 2013


Signed-off-by: Alex Jia <ajia at redhat.com>
---
 bin/virt-sandbox.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/bin/virt-sandbox.c b/bin/virt-sandbox.c
index 883e6c0..b51465d 100644
--- a/bin/virt-sandbox.c
+++ b/bin/virt-sandbox.c
@@ -438,7 +438,9 @@ Run an interactive shell under LXC, replace $HOME with the contents
 of $HOME/scratch
 
   # mkdir $HOME/scratch
-  # virt-sandbox -c lxc:/// --host-bind $HOME=$HOME/scratch /bin/sh
+  # echo "hello" > $HOME/scratch/foo
+  # echo "sandbox" > $HOME/scratch/bar
+  # virt-sandbox -c lxc:/// -m host-bind:$HOME=$HOME/scratch -i $HOME/scratch/foo -i $HOME/scratch/bar /bin/sh
 
 Convert an OGG file to WAV inside QEMU
 
-- 
1.7.1




More information about the libvir-list mailing list