With an option like -netdev user,net=,id=host_files,restrict=off,smb=/home/mahmood,smbserver=, I can share the home folder and my linux home is accessible from windows by mapping \\\qemu.

However, I want to know how can I share multiple folders? Using smb=/home/mahmood,smbserver=,smb=/etc,smbserver= is not correct.

  • 1
    According to wiki.archlinux.org/index.php/… "If you are using sharing options multiple times like -net user,smb=shared_dir_path1 -net user,smb=shared_dir_path2 or -net user,smb=shared_dir_path1,smb=shared_dir_path2 then it will share only the last defined one." so what you want may not be possible with these options and you may just need to run a full smb server – Stephen Harris Dec 24 '18 at 20:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.