aboutsummaryrefslogtreecommitdiffstats
path: root/testing/start-testing
diff options
context:
space:
mode:
authorReto Buerki <reet@codelabs.ch>2013-01-16 11:58:01 +0100
committerTobias Brunner <tobias@strongswan.org>2013-01-17 16:55:04 +0100
commit2c4954ad249a4ae17f5c0b0e768538b212dc412c (patch)
tree12033e9592f7ec30c4b838aca023bbd29d4e1543 /testing/start-testing
parent677795c3e7fe20e1e85138a14854b90e52d7f327 (diff)
downloadstrongswan-2c4954ad249a4ae17f5c0b0e768538b212dc412c.tar.bz2
strongswan-2c4954ad249a4ae17f5c0b0e768538b212dc412c.tar.xz
Switch to 'mapped' access mode for hostfs
Passthrough mode only works as expected when running as root. On Debian/Ubuntu systems qemu runs as user 'libvirt-qemu' and group 'kvm' so all shared files must be chowned to grant access from guests. Symlinks created on the host are still problematic because the Plan 9 filesystem has no direct notion of symbolic links, see [1]. [1] - http://ericvh.github.com/9p-rfc/rfc9p2000.u.html
Diffstat (limited to 'testing/start-testing')
-rwxr-xr-xtesting/start-testing5
1 files changed, 3 insertions, 2 deletions
diff --git a/testing/start-testing b/testing/start-testing
index e4e00bb1b..9be1f8619 100755
--- a/testing/start-testing
+++ b/testing/start-testing
@@ -19,8 +19,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"
+log_action "Deploying $SHAREDDIR as hostfs"
+execute "chown -R $KVMUSER:$KVMGROUP $SHAREDDIR" 0
+execute "ln -Tfs $SHAREDDIR $HOSTFSTARGET"
for net in $NETWORKS
do