diff options
-rwxr-xr-x | kvmx | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |