* [Qemu-devel] Fail to share Samba directory with guest
@ 2012-02-27 9:21 Jun Koi
2012-02-27 16:08 ` Shu Ming
0 siblings, 1 reply; 9+ messages in thread
From: Jun Koi @ 2012-02-27 9:21 UTC (permalink / raw)
To: qemu-devel
hi,
on qemu 1.0.1, i am trying to share a host directory with the Windows
guest like below:
qemu-system-i386 -enable-kvm -m 1000 -net nic,model=rtl8139 -net
user,smb=/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??
thanks,
Jun
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] Fail to share Samba directory with guest
2012-02-27 9:21 [Qemu-devel] Fail to share Samba directory with guest Jun Koi
@ 2012-02-27 16:08 ` Shu Ming
2012-02-28 1:43 ` Jun Koi
0 siblings, 1 reply; 9+ messages in thread
From: Shu Ming @ 2012-02-27 16:08 UTC (permalink / raw)
To: Jun Koi; +Cc: qemu-devel
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 Windows
> guest like below:
>
> qemu-system-i386 -enable-kvm -m 1000 -net nic,model=rtl8139 -net
> user,smb=/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 network
the guest belongs to?
>
> thanks,
> Jun
>
--
Shu Ming<shuming@linux.vnet.ibm.com>
IBM China Systems and Technology Laboratory
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] Fail to share Samba directory with guest
2012-02-27 16:08 ` Shu Ming
@ 2012-02-28 1:43 ` Jun Koi
2012-03-01 4:21 ` Jun Koi
0 siblings, 1 reply; 9+ messages in thread
From: Jun Koi @ 2012-02-28 1:43 UTC (permalink / raw)
To: Shu Ming; +Cc: qemu-devel
On Tue, Feb 28, 2012 at 12:08 AM, Shu Ming <shuming@linux.vnet.ibm.com> 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 Windows
>> guest like below:
>>
>> qemu-system-i386 -enable-kvm -m 1000 -net nic,model=rtl8139 -net
>> user,smb=/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 network 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.
thanks,
Jun
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] Fail to share Samba directory with guest
2012-02-28 1:43 ` Jun Koi
@ 2012-03-01 4:21 ` Jun Koi
2012-03-01 9:59 ` Jan Kiszka
0 siblings, 1 reply; 9+ messages in thread
From: Jun Koi @ 2012-03-01 4:21 UTC (permalink / raw)
To: Shu Ming; +Cc: qemu-devel
On Tue, Feb 28, 2012 at 9:43 AM, Jun Koi <junkoi2004@gmail.com> wrote:
> On Tue, Feb 28, 2012 at 12:08 AM, Shu Ming <shuming@linux.vnet.ibm.com> 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 Windows
>>> guest like below:
>>>
>>> qemu-system-i386 -enable-kvm -m 1000 -net nic,model=rtl8139 -net
>>> user,smb=/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 network 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.
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
so this is definitely a bug. perhaps the Samba setting in net/slirp.c is wrong?
the current configuration is like below. i am not experienced with
Samba, so cannot figure out what is wrong.
btw, it seems the Qemu unittest ignore this sharing folder testing?
thanks,
Ju
// from net/slirp.c, function slirp_smb()
fprintf(f,
"[global]\n"
"private dir=%s\n"
"smb ports=0\n"
"socket address=127.0.0.1\n"
"pid directory=%s\n"
"lock directory=%s\n"
"log file=%s/log.smbd\n"
"smb passwd file=%s/smbpasswd\n"
"security = share\n"
"[qemu]\n"
"path=%s\n"
"read only=no\n"
"guest ok=yes\n",
s->smb_dir,
s->smb_dir,
s->smb_dir,
s->smb_dir,
s->smb_dir,
exported_dir
);
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] Fail to share Samba directory with guest
2012-03-01 4:21 ` Jun Koi
@ 2012-03-01 9:59 ` Jan Kiszka
2012-03-01 10:14 ` Jun Koi
0 siblings, 1 reply; 9+ messages in thread
From: Jan Kiszka @ 2012-03-01 9:59 UTC (permalink / raw)
To: Jun Koi; +Cc: Shu Ming, qemu-devel
[-- Attachment #1: Type: text/plain, Size: 2457 bytes --]
On 2012-03-01 05:21, Jun Koi wrote:
> On Tue, Feb 28, 2012 at 9:43 AM, Jun Koi <junkoi2004@gmail.com> wrote:
>> On Tue, Feb 28, 2012 at 12:08 AM, Shu Ming <shuming@linux.vnet.ibm.com> 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 Windows
>>>> guest like below:
>>>>
>>>> qemu-system-i386 -enable-kvm -m 1000 -net nic,model=rtl8139 -net
>>>> user,smb=/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 network 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.
>
> 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
>
> so this is definitely a bug. perhaps the Samba setting in net/slirp.c is wrong?
> the current configuration is like below. i am not experienced with
> Samba, so cannot figure out what is wrong.
>
> btw, it seems the Qemu unittest ignore this sharing folder testing?
>
> thanks,
> Ju
>
>
> // from net/slirp.c, function slirp_smb()
> fprintf(f,
> "[global]\n"
> "private dir=%s\n"
> "smb ports=0\n"
> "socket address=127.0.0.1\n"
> "pid directory=%s\n"
> "lock directory=%s\n"
> "log file=%s/log.smbd\n"
> "smb passwd file=%s/smbpasswd\n"
> "security = share\n"
> "[qemu]\n"
> "path=%s\n"
> "read only=no\n"
> "guest ok=yes\n",
> s->smb_dir,
> s->smb_dir,
> s->smb_dir,
> s->smb_dir,
> s->smb_dir,
> exported_dir
> );
>
>
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
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] Fail to share Samba directory with guest
2012-03-01 9:59 ` Jan Kiszka
@ 2012-03-01 10:14 ` Jun Koi
2012-03-01 10:21 ` Jan Kiszka
0 siblings, 1 reply; 9+ messages in thread
From: Jun Koi @ 2012-03-01 10:14 UTC (permalink / raw)
To: Jan Kiszka; +Cc: Shu Ming, qemu-devel
On Thu, Mar 1, 2012 at 5:59 PM, Jan Kiszka <jan.kiszka@web.de> wrote:
> On 2012-03-01 05:21, Jun Koi wrote:
>> On Tue, Feb 28, 2012 at 9:43 AM, Jun Koi <junkoi2004@gmail.com> wrote:
>>> On Tue, Feb 28, 2012 at 12:08 AM, Shu Ming <shuming@linux.vnet.ibm.com> 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 Windows
>>>>> guest like below:
>>>>>
>>>>> qemu-system-i386 -enable-kvm -m 1000 -net nic,model=rtl8139 -net
>>>>> user,smb=/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 network 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.
>>
>> 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
>>
>> so this is definitely a bug. perhaps the Samba setting in net/slirp.c is wrong?
>> the current configuration is like below. i am not experienced with
>> Samba, so cannot figure out what is wrong.
>>
>> btw, it seems the Qemu unittest ignore this sharing folder testing?
>>
>> thanks,
>> Ju
>>
>>
>> // from net/slirp.c, function slirp_smb()
>> fprintf(f,
>> "[global]\n"
>> "private dir=%s\n"
>> "smb ports=0\n"
>> "socket address=127.0.0.1\n"
>> "pid directory=%s\n"
>> "lock directory=%s\n"
>> "log file=%s/log.smbd\n"
>> "smb passwd file=%s/smbpasswd\n"
>> "security = share\n"
>> "[qemu]\n"
>> "path=%s\n"
>> "read only=no\n"
>> "guest ok=yes\n",
>> s->smb_dir,
>> s->smb_dir,
>> s->smb_dir,
>> s->smb_dir,
>> s->smb_dir,
>> exported_dir
>> );
>>
>>
>
> 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?
this is samba 3.4.7, on Ubuntu 10.4. and the guest is Windows XP, latest update.
>
> Also, you said you are running another samba on the host. What changes
> if you stop it temporally?
another samba? i dont understand. i mean i am running smbd on the
host, and that is the only samba i run.
if i stop that, how can the guest still see the samba folder?
or do you mean that there is internal samba built-in inside Qemu, and
Samba on the host must be off?
that doesnt seem so, because ./configure always looks for the smbd at
compilation process.
thanks,
Jun
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] Fail to share Samba directory with guest
2012-03-01 10:14 ` Jun Koi
@ 2012-03-01 10:21 ` Jan Kiszka
2012-03-01 10:24 ` Jun Koi
0 siblings, 1 reply; 9+ messages in thread
From: Jan Kiszka @ 2012-03-01 10:21 UTC (permalink / raw)
To: Jun Koi; +Cc: Shu Ming, qemu-devel
Jun Koi <junkoi2004@gmail.com> schrieb:
>On Thu, Mar 1, 2012 at 5:59 PM, Jan Kiszka <jan.kiszka@web.de> wrote:
>> On 2012-03-01 05:21, Jun Koi wrote:
>>> On Tue, Feb 28, 2012 at 9:43 AM, Jun Koi <junkoi2004@gmail.com>
>wrote:
>>>> On Tue, Feb 28, 2012 at 12:08 AM, Shu Ming
><shuming@linux.vnet.ibm.com> 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
>Windows
>>>>>> guest like below:
>>>>>>
>>>>>> qemu-system-i386 -enable-kvm -m 1000 -net nic,model=rtl8139 -net
>>>>>> user,smb=/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
>network 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.
>>>
>>> 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
>>>
>>> so this is definitely a bug. perhaps the Samba setting in
>net/slirp.c is wrong?
>>> the current configuration is like below. i am not experienced with
>>> Samba, so cannot figure out what is wrong.
>>>
>>> btw, it seems the Qemu unittest ignore this sharing folder testing?
>>>
>>> thanks,
>>> Ju
>>>
>>>
>>> // from net/slirp.c, function slirp_smb()
>>> fprintf(f,
>>> "[global]\n"
>>> "private dir=%s\n"
>>> "smb ports=0\n"
>>> "socket address=127.0.0.1\n"
>>> "pid directory=%s\n"
>>> "lock directory=%s\n"
>>> "log file=%s/log.smbd\n"
>>> "smb passwd file=%s/smbpasswd\n"
>>> "security = share\n"
>>> "[qemu]\n"
>>> "path=%s\n"
>>> "read only=no\n"
>>> "guest ok=yes\n",
>>> s->smb_dir,
>>> s->smb_dir,
>>> s->smb_dir,
>>> s->smb_dir,
>>> s->smb_dir,
>>> exported_dir
>>> );
>>>
>>>
>>
>> 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?
>
>this is samba 3.4.7, on Ubuntu 10.4. and the guest is Windows XP,
>latest update.
>
>>
>> Also, you said you are running another samba on the host. What
>changes
>> if you stop it temporally?
>
>another samba? i dont understand. i mean i am running smbd on the
>host, and that is the only samba i run.
>if i stop that, how can the guest still see the samba folder?
>
>or do you mean that there is internal samba built-in inside Qemu, and
>Samba on the host must be off?
>that doesnt seem so, because ./configure always looks for the smbd at
>compilation process.
Qemu forks off a dedicated smbd, you don't need to worry about it. In theory, there should be no conflict with a smbd run "normally" on the host as well, I just like to exclude this possibility.
Jan
--
Sent from an Android - sorry just in case...
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] Fail to share Samba directory with guest
2012-03-01 10:21 ` Jan Kiszka
@ 2012-03-01 10:24 ` Jun Koi
2012-03-01 10:33 ` Jan Kiszka
0 siblings, 1 reply; 9+ messages in thread
From: Jun Koi @ 2012-03-01 10:24 UTC (permalink / raw)
To: Jan Kiszka; +Cc: Shu Ming, qemu-devel
On Thu, Mar 1, 2012 at 6:21 PM, Jan Kiszka <jan.kiszka@web.de> wrote:
>
>
> Jun Koi <junkoi2004@gmail.com> schrieb:
>
>>On Thu, Mar 1, 2012 at 5:59 PM, Jan Kiszka <jan.kiszka@web.de> wrote:
>>> On 2012-03-01 05:21, Jun Koi wrote:
>>>> On Tue, Feb 28, 2012 at 9:43 AM, Jun Koi <junkoi2004@gmail.com>
>>wrote:
>>>>> On Tue, Feb 28, 2012 at 12:08 AM, Shu Ming
>><shuming@linux.vnet.ibm.com> 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
>>Windows
>>>>>>> guest like below:
>>>>>>>
>>>>>>> qemu-system-i386 -enable-kvm -m 1000 -net nic,model=rtl8139 -net
>>>>>>> user,smb=/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
>>network 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.
>>>>
>>>> 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
>>>>
>>>> so this is definitely a bug. perhaps the Samba setting in
>>net/slirp.c is wrong?
>>>> the current configuration is like below. i am not experienced with
>>>> Samba, so cannot figure out what is wrong.
>>>>
>>>> btw, it seems the Qemu unittest ignore this sharing folder testing?
>>>>
>>>> thanks,
>>>> Ju
>>>>
>>>>
>>>> // from net/slirp.c, function slirp_smb()
>>>> fprintf(f,
>>>> "[global]\n"
>>>> "private dir=%s\n"
>>>> "smb ports=0\n"
>>>> "socket address=127.0.0.1\n"
>>>> "pid directory=%s\n"
>>>> "lock directory=%s\n"
>>>> "log file=%s/log.smbd\n"
>>>> "smb passwd file=%s/smbpasswd\n"
>>>> "security = share\n"
>>>> "[qemu]\n"
>>>> "path=%s\n"
>>>> "read only=no\n"
>>>> "guest ok=yes\n",
>>>> s->smb_dir,
>>>> s->smb_dir,
>>>> s->smb_dir,
>>>> s->smb_dir,
>>>> s->smb_dir,
>>>> exported_dir
>>>> );
>>>>
>>>>
>>>
>>> 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?
>>
>>this is samba 3.4.7, on Ubuntu 10.4. and the guest is Windows XP,
>>latest update.
>>
>>>
>>> Also, you said you are running another samba on the host. What
>>changes
>>> if you stop it temporally?
>>
>>another samba? i dont understand. i mean i am running smbd on the
>>host, and that is the only samba i run.
>>if i stop that, how can the guest still see the samba folder?
>>
>>or do you mean that there is internal samba built-in inside Qemu, and
>>Samba on the host must be off?
>>that doesnt seem so, because ./configure always looks for the smbd at
>>compilation process.
>
> Qemu forks off a dedicated smbd, you don't need to worry about it. In theory, there should be no conflict with a smbd run "normally" on the host as well, I just like to exclude this possibility.
ok, i stopped smbd, but that doesnt help.
do we need to have root privilege for this -smb option? because it
seems smbd need to access to secrets.tdb file, which is for root only.
thanks,
Jun
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Qemu-devel] Fail to share Samba directory with guest
2012-03-01 10:24 ` Jun Koi
@ 2012-03-01 10:33 ` Jan Kiszka
0 siblings, 0 replies; 9+ messages in thread
From: Jan Kiszka @ 2012-03-01 10:33 UTC (permalink / raw)
To: Jun Koi; +Cc: Shu Ming, qemu-devel
Jun Koi <junkoi2004@gmail.com> schrieb:
>On Thu, Mar 1, 2012 at 6:21 PM, Jan Kiszka <jan.kiszka@web.de> wrote:
>>
>>
>> Jun Koi <junkoi2004@gmail.com> schrieb:
>>
>>>On Thu, Mar 1, 2012 at 5:59 PM, Jan Kiszka <jan.kiszka@web.de> wrote:
>>>> On 2012-03-01 05:21, Jun Koi wrote:
>>>>> On Tue, Feb 28, 2012 at 9:43 AM, Jun Koi <junkoi2004@gmail.com>
>>>wrote:
>>>>>> On Tue, Feb 28, 2012 at 12:08 AM, Shu Ming
>>><shuming@linux.vnet.ibm.com> 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
>>>Windows
>>>>>>>> guest like below:
>>>>>>>>
>>>>>>>> qemu-system-i386 -enable-kvm -m 1000 -net nic,model=rtl8139
>-net
>>>>>>>> user,smb=/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
>>>network 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.
>>>>>
>>>>> 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
>>>>>
>>>>> so this is definitely a bug. perhaps the Samba setting in
>>>net/slirp.c is wrong?
>>>>> the current configuration is like below. i am not experienced with
>>>>> Samba, so cannot figure out what is wrong.
>>>>>
>>>>> btw, it seems the Qemu unittest ignore this sharing folder
>testing?
>>>>>
>>>>> thanks,
>>>>> Ju
>>>>>
>>>>>
>>>>> // from net/slirp.c, function slirp_smb()
>>>>> fprintf(f,
>>>>> "[global]\n"
>>>>> "private dir=%s\n"
>>>>> "smb ports=0\n"
>>>>> "socket address=127.0.0.1\n"
>>>>> "pid directory=%s\n"
>>>>> "lock directory=%s\n"
>>>>> "log file=%s/log.smbd\n"
>>>>> "smb passwd file=%s/smbpasswd\n"
>>>>> "security = share\n"
>>>>> "[qemu]\n"
>>>>> "path=%s\n"
>>>>> "read only=no\n"
>>>>> "guest ok=yes\n",
>>>>> s->smb_dir,
>>>>> s->smb_dir,
>>>>> s->smb_dir,
>>>>> s->smb_dir,
>>>>> s->smb_dir,
>>>>> exported_dir
>>>>> );
>>>>>
>>>>>
>>>>
>>>> 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?
>>>
>>>this is samba 3.4.7, on Ubuntu 10.4. and the guest is Windows XP,
>>>latest update.
>>>
>>>>
>>>> Also, you said you are running another samba on the host. What
>>>changes
>>>> if you stop it temporally?
>>>
>>>another samba? i dont understand. i mean i am running smbd on the
>>>host, and that is the only samba i run.
>>>if i stop that, how can the guest still see the samba folder?
>>>
>>>or do you mean that there is internal samba built-in inside Qemu, and
>>>Samba on the host must be off?
>>>that doesnt seem so, because ./configure always looks for the smbd at
>>>compilation process.
>>
>> Qemu forks off a dedicated smbd, you don't need to worry about it. In
>theory, there should be no conflict with a smbd run "normally" on the
>host as well, I just like to exclude this possibility.
>
>ok, i stopped smbd, but that doesnt help.
>
>do we need to have root privilege for this -smb option? because it
>seems smbd need to access to secrets.tdb file, which is for root only.
Maybe this is now required for newer samba versions. The one I use definitely has no such requirement.
Jan
--
Sent from an Android - sorry just in case...
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2012-03-01 10:34 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-27 9:21 [Qemu-devel] Fail to share Samba directory with guest Jun Koi
2012-02-27 16:08 ` Shu Ming
2012-02-28 1:43 ` Jun Koi
2012-03-01 4:21 ` Jun Koi
2012-03-01 9:59 ` Jan Kiszka
2012-03-01 10:14 ` Jun Koi
2012-03-01 10:21 ` Jan Kiszka
2012-03-01 10:24 ` Jun Koi
2012-03-01 10:33 ` Jan Kiszka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).