* Re: [Qemu-devel] Read/Write to shares on Windows (XP Pro) host from Windows (2000 Adv) guest.
2005-08-25 2:23 ` [Qemu-devel] Read/Write to shares on Windows (XP Pro) host from Windows (2000 Adv) guest Francois Rioux
@ 2005-08-25 3:20 ` Jim C. Brown
2005-08-25 4:26 ` John R. Hogerhuis
` (2 subsequent siblings)
3 siblings, 0 replies; 13+ messages in thread
From: Jim C. Brown @ 2005-08-25 3:20 UTC (permalink / raw)
To: qemu-devel
On Wed, Aug 24, 2005 at 07:23:11PM -0700, Francois Rioux wrote:
> Hi,
>
> What I manage to do with a certain success is to map network shares of the host in the guest (net use z: 10.0.2.2\MyShare in the guest). I can browse and read files from the mapped drive. However I can't write to it from the guest. I received an Access Denied message instead even if the share is set so Everyone has Full Control.
>
Well, you could try mounting the share using the IP on the ethernet card (e.g. the lan IP) of the host.
> I don't understand why this doesn't work. Is it Windows preventing the write is the exchange this a limitation in QEMU or in SLiRP? As I understand it SLiRP translates some tcp headers and acts as a firewall preventing incoming calls but autorizes outgoing calls from the guest out. That's why web browsing works in user network mode. Should't file transfer work too? Is the network file sharing protocol more complex than that for writes? Or is that rather a Windows security issue?
>
Not sure. I do know that sometimes using 10.0.2.2 doesn't work but using the lan IP does. This is due to what may be a bug in the slirp code where the localhost ip (127.0.0.1) is not properly rewritten (into 10.0.2.2), but I'm not sure whether or not this is the cause of the issue that you are experiencing.
> Any explanation or workaround would be appreciated.
>
> Thanks.
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
--
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] Read/Write to shares on Windows (XP Pro) host from Windows (2000 Adv) guest.
2005-08-25 2:23 ` [Qemu-devel] Read/Write to shares on Windows (XP Pro) host from Windows (2000 Adv) guest Francois Rioux
2005-08-25 3:20 ` Jim C. Brown
@ 2005-08-25 4:26 ` John R. Hogerhuis
2005-08-25 6:38 ` [Qemu-devel] Read/Write to shares on Windows (XP Pro) host fromWindows " Kazu
2005-08-25 12:35 ` [Qemu-devel] Read/Write to shares on Windows (XP Pro) host from Windows " Doctor Bill
3 siblings, 0 replies; 13+ messages in thread
From: John R. Hogerhuis @ 2005-08-25 4:26 UTC (permalink / raw)
To: qemu-devel
On Wed, 2005-08-24 at 19:23 -0700, Francois Rioux wrote:
> I don't understand why this doesn't work. Is it Windows preventing the
> write is the exchange this a limitation in QEMU or in SLiRP? As I
> understand it SLiRP translates some tcp headers and acts as a firewall
> preventing incoming calls but autorizes outgoing calls from the guest
> out. That's why web browsing works in user network mode. Should't
> file transfer work too? Is the network file sharing protocol more
> complex than that for writes? Or is that rather a Windows security
> issue?
>
Could be an authentication issue. Probably you should be typing in the
fully qualified username and password into the net use command
net use z: \\10.0.2.2\MyShare /USER:domain\username password
or just
ctrl-esc->Run-> \\10.0.2.2\MyShare<ENTER> and type the fully qualified
username and password at the prompt.
After making the share connection, what do you get as output when you
just type
net use<ENTER>
Knowing a bit about the NetBT protocol and the stunning quality of the
Slirp NAT code I'm kind of surprised that it works at all.
CIFS requires some assistance from an application level gateway (ALG) to
work well across a NAT. In the direction you're going (guest to host)
there are less problems, but I think there are still NAT issues with
browsing and name binding; but then you're using IP addresses rather
than names so it may not matter.
If none of the above works, I'd look at it with a snooper on either side
of the connection (in the guest and on the host), and see what packets
are getting dropped (shows up on one side of snooper but not the other)
or improperly NATed (private IP addresses leak out either in headers or
in packet payload onto the host network).
You might also try port forwarding the NetBT (NetBIOS over TCP/IP, aka
CIFS) TCP and UDP ports. See RFCs 1001, 1002 for port numbers.
-- John.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] Read/Write to shares on Windows (XP Pro) host fromWindows (2000 Adv) guest.
2005-08-25 2:23 ` [Qemu-devel] Read/Write to shares on Windows (XP Pro) host from Windows (2000 Adv) guest Francois Rioux
2005-08-25 3:20 ` Jim C. Brown
2005-08-25 4:26 ` John R. Hogerhuis
@ 2005-08-25 6:38 ` Kazu
2005-08-25 17:35 ` Francois Rioux
2005-08-25 17:35 ` Francois Rioux
2005-08-25 12:35 ` [Qemu-devel] Read/Write to shares on Windows (XP Pro) host from Windows " Doctor Bill
3 siblings, 2 replies; 13+ messages in thread
From: Kazu @ 2005-08-25 6:38 UTC (permalink / raw)
To: qemu-devel
Thursday, August 25, 2005 11:23 AM Francois Rioux wrote:
>What I'm trying to achieve is to write a file from a guest OS to a host.
>In this case both are Windows OS.
>
>I use the user network command line options since I looking for a no
>install on host, portable solution.
>
>I've tried various build in solutions: -tftp (read-only), and -smb (not
>supported in windows host) do me no good.
>
>What I manage to do with a certain success is to map network shares of the
>host in the guest (net use z: >10.0.2.2>\MyShare in the guest). I can
>browse and read files from the mapped drive. However I can't write to it
>from the guest. I received an Access Denied message instead even if the
>share is set so Everyone has Full Control.
I think there is a checkbox that "Allow to change files to network user" in
MyShrare folder's property on Windows XP host.
Sorry I don't have English version of Windows, so "explanation" is not
correct. I checked it, then I can write a file from guest to host.
There isn't such checkbox on Windows 2000 host.
Regards,
Kazu
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] Read/Write to shares on Windows (XP Pro) host fromWindows (2000 Adv) guest.
2005-08-25 6:38 ` [Qemu-devel] Read/Write to shares on Windows (XP Pro) host fromWindows " Kazu
@ 2005-08-25 17:35 ` Francois Rioux
2005-08-25 17:35 ` Francois Rioux
1 sibling, 0 replies; 13+ messages in thread
From: Francois Rioux @ 2005-08-25 17:35 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 1220 bytes --]
Thank yoy Kazu,
You sent me in the right direction. It was just a configuration issue : I had given the directory full access to everyone but that wasn't enough. I needed to give the network SHARE itself the write rights to everyone. That is through the Permission button on the Sharing tab also.
I'm so glad it worked!
Thanks the other contributors too. Your input helped me understand networking a bit more.
I didn't think LMHosts configuration could play a role in that. It is just part of the name to ip resolution process. I might eventually use it as a convenience.
NAT and SLIRP seem to be robust enough to handle that. At least during my preliminary testing.
Long life to QEMU!
Kazu <kazoo@r3.dion.ne.jp> wrote:
I think there is a checkbox that "Allow to change files to network user" in
MyShrare folder's property on Windows XP host.
Sorry I don't have English version of Windows, so "explanation" is not
correct. I checked it, then I can write a file from guest to host.
There isn't such checkbox on Windows 2000 host.
Regards,
Kazu
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[-- Attachment #2: Type: text/html, Size: 1517 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] Read/Write to shares on Windows (XP Pro) host fromWindows (2000 Adv) guest.
2005-08-25 6:38 ` [Qemu-devel] Read/Write to shares on Windows (XP Pro) host fromWindows " Kazu
2005-08-25 17:35 ` Francois Rioux
@ 2005-08-25 17:35 ` Francois Rioux
1 sibling, 0 replies; 13+ messages in thread
From: Francois Rioux @ 2005-08-25 17:35 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 1220 bytes --]
Thank yoy Kazu,
You sent me in the right direction. It was just a configuration issue : I had given the directory full access to everyone but that wasn't enough. I needed to give the network SHARE itself the write rights to everyone. That is through the Permission button on the Sharing tab also.
I'm so glad it worked!
Thanks the other contributors too. Your input helped me understand networking a bit more.
I didn't think LMHosts configuration could play a role in that. It is just part of the name to ip resolution process. I might eventually use it as a convenience.
NAT and SLIRP seem to be robust enough to handle that. At least during my preliminary testing.
Long life to QEMU!
Kazu <kazoo@r3.dion.ne.jp> wrote:
I think there is a checkbox that "Allow to change files to network user" in
MyShrare folder's property on Windows XP host.
Sorry I don't have English version of Windows, so "explanation" is not
correct. I checked it, then I can write a file from guest to host.
There isn't such checkbox on Windows 2000 host.
Regards,
Kazu
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[-- Attachment #2: Type: text/html, Size: 1517 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] Read/Write to shares on Windows (XP Pro) host from Windows (2000 Adv) guest.
2005-08-25 2:23 ` [Qemu-devel] Read/Write to shares on Windows (XP Pro) host from Windows (2000 Adv) guest Francois Rioux
` (2 preceding siblings ...)
2005-08-25 6:38 ` [Qemu-devel] Read/Write to shares on Windows (XP Pro) host fromWindows " Kazu
@ 2005-08-25 12:35 ` Doctor Bill
3 siblings, 0 replies; 13+ messages in thread
From: Doctor Bill @ 2005-08-25 12:35 UTC (permalink / raw)
To: qemu-devel, Francois Rioux
On 8/24/05, Francois Rioux <francoisrioux@yahoo.com> wrote:
> What I manage to do with a certain success is to map network shares of the
> host in the guest (net use z: 10.0.2.2\MyShare in the guest). I can browse
> and read files from the mapped drive. However I can't write to it from the
> guest. I received an Access Denied message instead even if the share is set
> so Everyone has Full Control.
>
> I don't understand why this doesn't work. Is it Windows preventing the write
> is the exchange this a limitation in QEMU or in SLiRP? As I understand it
> SLiRP translates some tcp headers and acts as a firewall preventing incoming
> calls but autorizes outgoing calls from the guest out. That's why web
> browsing works in user network mode. Should't file transfer work too? Is
> the network file sharing protocol more complex than that for writes? Or is
> that rather a Windows security issue?
>
> Any explanation or workaround would be appreciated.
I posted something about this in the forum. In my case, I was trying
to print to the Windows host. Unfortunately, it looks like the post
is no longer there. The solution was simply to add the real IP
address and machine name into the lmhost file. Once you do that, you
should be able to access samba read-write. Be aware, Windows has a
lmhost.sam file by defauft, and hides the .sam extension. Editing
that file will have no effect unless it is renamed to just lmhost with
no extension.
For example, my C:\Windows\lmhost file contains the following:
135.162.253.250 docbill002
When I want to connect via SAMBA I use the hostname not the IP address.
Once you do that, write access is determined completely by Windows security.
By default, only the "SharedFolders" and shared printers are writable
by guests...
Generally, when I want to add guest write access to a folder, I use a
cygwin command. For example, I have drive Q: shared as Data. If I
want guest to have write access, in addition to setting the shared
folder properties I would do:
chmod -R ugo+w /cygdrive/q
I can than modify \\docbill002\Data as guest as much as I want.
Maybe someone on the list can specify the non-cygwin equivalent of this command.
Bill
^ permalink raw reply [flat|nested] 13+ messages in thread