From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45244) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S32nH-0003Zc-Q5 for qemu-devel@nongnu.org; Thu, 01 Mar 2012 04:59:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S32nF-0003ZR-KO for qemu-devel@nongnu.org; Thu, 01 Mar 2012 04:59:27 -0500 Received: from fmmailgate06.web.de ([217.72.192.247]:43530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S32nF-0003ZC-Az for qemu-devel@nongnu.org; Thu, 01 Mar 2012 04:59:25 -0500 Received: from moweb001.kundenserver.de (moweb001.kundenserver.de [172.19.20.114]) by fmmailgate06.web.de (Postfix) with ESMTP id 80E65D54D34 for ; Thu, 1 Mar 2012 10:59:23 +0100 (CET) Message-ID: <4F4F4876.9010909@web.de> Date: Thu, 01 Mar 2012 10:59:18 +0100 From: Jan Kiszka MIME-Version: 1.0 References: <4F4BAA90.8070801@linux.vnet.ibm.com> In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig86CE850C53209AAB25012463" Subject: Re: [Qemu-devel] Fail to share Samba directory with guest List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jun Koi Cc: Shu Ming , qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig86CE850C53209AAB25012463 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 2012-03-01 05:21, Jun Koi wrote: > On Tue, Feb 28, 2012 at 9:43 AM, Jun Koi wrote: >> On Tue, Feb 28, 2012 at 12:08 AM, Shu Ming wrote: >>> On 2012-2-27 17:21, Jun Koi wrote: >>>> >>>> hi, >>>> >>>> on qemu 1.0.1, i am trying to share a host directory with the Window= s >>>> guest like below: >>>> >>>> qemu-system-i386 -enable-kvm -m 1000 -net nic,model=3Drtl8139 -net >>>> user,smb=3D/tmp img.winxp >>>> >>>> but in the guest, \\10.0.2.4 doesnt show me any shared directory. >>>> >>>> i already run Samba on the host (default configuration). >>>> >>>> did i miss something, or is it a bug?? >>> >>> >>> So 10.0.2.4 is your host IP with samba server? And what's the netwo= rk the >>> guest belongs to? >>> >> >> according to some network schemes used by Qemu, 10.0.2.4 is the IP of >> the Samba server (DHCP: 10.0.2.2, DNS: 10.0.2.3, Samba: 10.0.2.4) >> >> http://en.wikibooks.org/wiki/QEMU/Networking >> >> i tried \\10.0.2.2, but dont see any share folder, either. >=20 > i tested again, and again, but Samba sharing folder never work for me. > meanwhile, my guest can see the folder shared configured in /etc/samba/= smb.conf >=20 > so this is definitely a bug. perhaps the Samba setting in net/slirp.c i= s wrong? > the current configuration is like below. i am not experienced with > Samba, so cannot figure out what is wrong. >=20 > btw, it seems the Qemu unittest ignore this sharing folder testing? >=20 > thanks, > Ju >=20 >=20 > // from net/slirp.c, function slirp_smb() > fprintf(f, > "[global]\n" > "private dir=3D%s\n" > "smb ports=3D0\n" > "socket address=3D127.0.0.1\n" > "pid directory=3D%s\n" > "lock directory=3D%s\n" > "log file=3D%s/log.smbd\n" > "smb passwd file=3D%s/smbpasswd\n" > "security =3D share\n" > "[qemu]\n" > "path=3D%s\n" > "read only=3Dno\n" > "guest ok=3Dyes\n", > s->smb_dir, > s->smb_dir, > s->smb_dir, > s->smb_dir, > s->smb_dir, > exported_dir > ); >=20 >=20 Works fine here with samba 3.5.7 (from OpenSuse 11.4) and a Linux guest. What's your samba version? What's your guest? Also, you said you are running another samba on the host. What changes if you stop it temporally? Jan --------------enig86CE850C53209AAB25012463 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk9PSHcACgkQitSsb3rl5xTigwCcCDLHiGBeees/Z6SFAcTrqU0f czYAoIBJQ/X6A05cFpJwKcAGoSMh+u38 =pfDv -----END PGP SIGNATURE----- --------------enig86CE850C53209AAB25012463--