Export compile directory to guests

Use 9p over virtio to share files on the host with the guest domains.
The files are accessible in the guests /hostfs directory.
This commit is contained in:
Reto Buerki authored and Tobias Brunner committed 2013-01-17 16:54:58 +01:00
1 parent 48ea1d8b0b
commit 0593b6c975
13 files changed
+61 -14

No files matched your search

+3
View File
@@ -48,6 +48,7 @@ do_on_exit umount $LOOPDIR/proc
mkdir -p $LOOPDIR/root/compile
log_action "Mounting $ROOTIMGCOMPILEDIR as /root/compile"
execute "mount -o bind $ROOTIMGCOMPILEDIR $LOOPDIR/root/compile"
do_on_exit rm -r $LOOPDIR/root/compile
do_on_exit umount $LOOPDIR/root/compile
echo "Installing software from source"
@@ -63,3 +64,5 @@ done
log_action "Removing /etc/resolv.conf"
execute "rm -f $LOOPDIR/etc/resolv.conf"
mkdir -p $LOOPDIR/hostfs