aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-04-01 10:54:31 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-04-01 10:54:31 -0300
commitac123e5b5f4525c745a3b31dad19546cc5a58f0c (patch)
treeec2d5935418ad0cd6aae8ec9463e14787c75d79b
parenta10cf0de8d21d2394f882859b322ff2f0d198ace (diff)
downloadkvmx-ac123e5b5f4525c745a3b31dad19546cc5a58f0c.tar.gz
kvmx-ac123e5b5f4525c745a3b31dad19546cc5a58f0c.tar.bz2
Add commented lines for samba sharing
-rwxr-xr-xkvmx3
1 files changed, 3 insertions, 0 deletions
diff --git a/kvmx b/kvmx
index 4ee1055..a47557f 100755
--- a/kvmx
+++ b/kvmx
@@ -217,6 +217,8 @@ function kvmx_up {
if [ ! -z "$shared_folder" ]; then
# Get absolute path of shared folder relative to project path
shared_folder="`cd $KVMX_PROJECT_FOLDER && cd $shared_folder &> /dev/null && pwd`"
+ # Requires samba package installed in the host; see http://unix.stackexchange.com/a/183609
+ #local shared="-net user,smb=$shared_folder"
local shared="-fsdev local,id=shared,path=$shared_folder,security_model=none -device virtio-9p-pci,fsdev=shared,mount_tag=shared"
fi
@@ -307,6 +309,7 @@ function kvmx_up {
echo "Mounting $shared_folder on $shared_folder_mountpoint on guest..."
echo "sudo mkdir -p $shared_folder_mountpoint" | kvmx_ssh
echo "sudo mount -t 9p -o trans=virtio shared $shared_folder_mountpoint -oversion=9p2000.L,posixacl,cache=loose" | kvmx_ssh
+ #echo "sudo mount //10.0.2.4/qemu $shared_folder_mountpint" | kvmx_ssh
fi
kvmx_status