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:
committed by
Tobias Brunner
parent
48ea1d8b0b
commit
0593b6c975
@@ -6,6 +6,7 @@ NETWORKS="vnet1 vnet2 vnet3"
|
||||
CONFDIR=$PWD/config/kvm
|
||||
KNLSRC=$BUILDDIR/$KERNEL/arch/x86/boot/bzImage
|
||||
KNLTARGET=/var/run/kvm-swan-kernel
|
||||
HOSTFSTARGET=/var/run/kvm-swan-hostfs
|
||||
|
||||
echo "Starting test environment"
|
||||
|
||||
@@ -16,6 +17,9 @@ check_commands virsh
|
||||
log_action "Deploying kernel $KERNEL"
|
||||
execute "ln -fs $KNLSRC $KNLTARGET"
|
||||
|
||||
log_action "Deploying $ROOTIMGCOMPILEDIR as hostfs"
|
||||
execute "ln -Tfs $ROOTIMGCOMPILEDIR $HOSTFSTARGET"
|
||||
|
||||
for net in $NETWORKS
|
||||
do
|
||||
log_action "Network $net"
|
||||
|
||||
Reference in New Issue
Block a user