2

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

However, I want to know how can I share multiple folders? Using smb=/home/mahmood,smbserver=10.0.2.4,smb=/etc,smbserver=10.0.2.5 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.