Open micheldiemer opened 1 week ago
Hey, @micheldiemer! If I understand correctly, you want to share a folder over SMB. The errors you reported are related to an SSHFS mount, which is a different technology. Are those mounts totally unrelated? Also, if you want an SMB share, Multipass on Hyper-V provides that feature through native mounts. You could do something like:
multipass mount --type native <source-dir> <instance-name>:<target-dir>
Description I have a shared folder in Windows. I have created a specific local user for this kind of shared. The shared folder is mounted on the multipass VM startup on /etc/fstab. The driver is Hyper-V. When booting up my computer, connecting to the VM is very slow and the folders are not shared.
To Reproduce
etc/fstab
with the following settings ://WINDOWS-PC/multipass-bin /usr/local/smbbin cifs,vers=3.0,credentials=/root/.smbcredentials,uid=1000,gid=33,actimeo=0,closetimeo=0,iocharset=utf8,forceuid,forcegid,domain=WORKGROUP,mfsymlinks,dir_mode=02755,file_mode=0755,noperm 0 0
multipass restart virtualmachinewithmanualsharedfolders
is required.Expected behavior I want shared folders to work all the time, having no need to restart the virtual machine for this reason.
Logs See attached file
In particular these two errors :
[sshfs-mount-handler] There was an error with sshfs_server for instance 'dev' with path "/var/www/gsbpesanti.lan": Crashed - program: C:/Program Files/Multipass/bin/sshfs_server; error: Process crashed
[sshfs mount] Caught an unhandled exception: unable to create a channel for remote process: 'findmnt --source :C:/Users/Michel/Documents/A/Informatique/ETABLISSEMENTS/IFIDE SUP'FORMATION/2023-2024/SIO1/ATELIER 2/ATELIER 2 - RENDUS/PESANTI Luke/Livrable2/gsbMVC -o TARGET -n', the SSH session is not connected The folder << C:\Users\Michel\Documents\A\Informatique\ETABLISSEMENTS\IFIDE SUP'FORMATION\2023-2024\SIO1\ATELIER 2\ATELIER 2 - RENDUS\PESANTI Luke\Livrable2\gsbMVC >> exists.
Additional info
multipass version
multipass 1.13.1+win multipassd 1.13.1+winmultipass info
Name: dev State: Running Snapshots: 0 IPv4: 172.19.247.186 192.168.10.1 Release: Ubuntu 24.04 LTS Image hash: 32a9d30d1880 (Ubuntu 24.04 LTS) CPU(s): 1 Load: 0.00 0.00 0.00 Disk usage: 4.8GiB out of 19.3GiB Memory usage: 467.3MiB out of 896.3MiB Mounts: C:/Users/Michel/Documents/A/Informatique/ETABLISSEMENTS/IFIDE SUP'FORMATION/2023-2024/SIO1/ATELIER 2/ATELIER 2 - RENDUS/PESANTI Luke/Livrable2/gsbMVC => /var/www/gsbpesanti.lan UID map: -2:default GID map: -2:default
multipass get local.driver
hyperv