Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C4Ny5-0003mU-K9 for qemu-devel@nongnu.org; Mon, 06 Sep 2004 14:11:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C4Ny3-0003js-Si for qemu-devel@nongnu.org; Mon, 06 Sep 2004 14:11:53 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C4Ny3-0003jm-QI for qemu-devel@nongnu.org; Mon, 06 Sep 2004 14:11:51 -0400 Received: from [216.254.0.205] (helo=mail5.speakeasy.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C4NsY-00022X-Py for qemu-devel@nongnu.org; Mon, 06 Sep 2004 14:06:11 -0400 Received: from dsl081-088-222.lax1.dsl.speakeasy.net (HELO [192.168.111.2]) ([64.81.88.222]) (envelope-sender ) by mail5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 6 Sep 2004 18:04:47 -0000 Subject: Re: [Qemu-devel] SAMBA support in QEMU From: "John R. Hogerhuis" In-Reply-To: <413BA018.60601@bellard.org> References: <413BA018.60601@bellard.org> Content-Type: text/plain Message-Id: <1094493901.28260.1116.camel@aragorn> Mime-Version: 1.0 Date: Mon, 06 Sep 2004 11:05:01 -0700 Content-Transfer-Encoding: 7bit Reply-To: jhoger@pobox.com, qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Sun, 2004-09-05 at 16:24, Fabrice Bellard wrote: > Hi, > > I just commited a simple solution to enable direct access to host files > from Windows guests with user mode networking and with almost no set up. > It is currently very experimental but it works, at least for Windows 98 > with the Samba server from Red Hat 9. Any suggestion is welcome. > > How to use it: > > * host config: > qemu -user-net -smb /myhostdir ... > > * guest config: > > Add the line: > > 10.0.2.4 smbserver > > in the file C:\WINDOWS\LMHOSTS (for windows 9x) > > Then /myhostdir can be accessed in '\\smbserver\qemu'. No network drive > can be mapped to it, so it is better to add a short cut to this link. > > Ignore the messages saying that the network directory cannot be reached. > > Fabrice. > Curious, why the LMHOSTS change? Is name resolution not working across the NAT? I think that's just an issue of port forwarding of NetBT (RFC 1001, 1002) ports. Possibly may need to write some extra NAT code too (it's been a while since I had to deal with NATing SMB). -- John.