qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-discuss] Problem with sharing a folder between guest and host


From: Alex
Subject: Re: [Qemu-discuss] Problem with sharing a folder between guest and host
Date: Sat, 2 Apr 2016 19:43:30 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1

That's because of the "restrict=on" parameter. You can delete it or use "restrict=off" to access internet through the same device.

/--Regards, Alex/

On 02/04/16 19:34, Mahmood Naderan wrote:
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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]