OK. Thank you very much. That is great.... If I use the mentioned command
-device e1000,netdev=host_files -netdev
user,net=10.0.2.0/24,id=host_files,restrict=on,smb=/path/to/dir/,smbserver=10.0.2.4
then the samba works and I am able to map the folder I want /path/to/dir/
However, the internet connection doesn't work in the guest.
On the other hand if I use "-dvice e1000" only, then the internet connection works inside the guest but the file sharing doesn't work (obviously)
This is not a critical thing for me right now. Just wanted to tell other guys...
Regards,
Mahmood
On Saturday, April 2, 2016 8:02 PM, Alex <address@hidden> wrote:
I didn't say you have to - I said it's better :), because -nic is
obsolete and can stop working in any new version of Qemu. Anyway, these
options work for me:
-device e1000,netdev=host_files -netdev
user,net=10.0.2.0/24,id=host_files,restrict=on,smb=/path/to/dir/,smbserver=10.0.2.4
If your windows installed NIC drivers correctly (check it - I'm not sure
about XP), you'll be able to access host files at \\10.0.2.4\qemu\
There's plenty of info in qemu's man page - check it out.
/--Regards, Alex/