Hello,

With a recent qemu-kvm, kvm talks to smbd using stdin. Samba detects
this and does not bind to any socket. I just submitted a patch for Samba
that allows specification of the "private dir" (Bug #249873), so that
non-root operation is in principle supported as well. So the issues in
the original report are effectively solved.

At the moment, there are three other issues that prevent qemu+smbd from
working in Debian:

- qemu-kvm writes a bogus "smb ports = 0" into the generated smbd
configuration. This causes smbd to crash. I have submitted a patch in
http://article.gmane.org/gmane.comp.emulators.qemu/148378.

- qemu-kvm needs to specify a state directory as well. Patch at
http://article.gmane.org/gmane.comp.emulators.qemu/148286/

- Samba 3.6.0 has a bug when running in "share" mode:
https://bugzilla.samba.org/show_bug.cgi?id=8414
As far as qemu-kvm is concerned, we can work around this problem with no
side effects if we add a "force user" directive to the generated smb
conf. I'll be happy to provide a patch for the Debian qemu-kvm package
if that would be integrated (I don't think working around samba bugs
would stand a good chance upstream).


The patches have been tested in Debian testing. I don't know how long it
will take for them to be integrated upstream, so it would be great if
they could already be added to the Debian package so that qemu smb
sharing will work in wheezy.


Best,

   -Nikolaus

-- 
 »Time flies like an arrow, fruit flies like a Banana.«

  PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to