Hi!

Michael Tokarev schrieb:
> Are you sure that
> 
> a) the log you provided actually corresponds to the right samba?
>    Qemu puts "logfile = /tmp/qemu-smb../smb.log" directive into the
>    smb.conf file, so there should be no logging in syslog, and

This is my /tmp/qemu-smb.28665-0/log.smbd from the last attempt:

,----[ log.smbd ]
  [2012/07/18 15:10:00.326881,  0] passdb/secrets.c:76(secrets_init)
    Failed to open /var/lib/samba/secrets.tdb
  [2012/07/18 15:10:00.359342,  0] passdb/secrets.c:76(secrets_init)
    Failed to open /var/lib/samba/secrets.tdb
  [2012/07/18 15:10:00.359432,  0] smbd/server.c:1170(main)
    ERROR: smbd can not open secrets.tdb
  [2012/07/18 15:10:00.398203,  0] passdb/secrets.c:76(secrets_init)
    Failed to open /var/lib/samba/secrets.tdb
  [2012/07/18 15:10:00.398631,  0] passdb/secrets.c:76(secrets_init)
    Failed to open /var/lib/samba/secrets.tdb
  [2012/07/18 15:10:00.398689,  0] smbd/server.c:1170(main)
    ERROR: smbd can not open secrets.tdb
  [2012/07/18 15:10:00.478893,  0] passdb/secrets.c:76(secrets_init)
    Failed to open /var/lib/samba/secrets.tdb
  [2012/07/18 15:10:00.479187,  0] passdb/secrets.c:76(secrets_init)
    Failed to open /var/lib/samba/secrets.tdb
  [2012/07/18 15:10:00.479229,  0] smbd/server.c:1170(main)
    ERROR: smbd can not open secrets.tdb
  [2012/07/18 15:10:43.735350,  0] passdb/secrets.c:76(secrets_init)
    Failed to open /var/lib/samba/secrets.tdb
  [2012/07/18 15:10:43.735900,  0] passdb/secrets.c:76(secrets_init)
    Failed to open /var/lib/samba/secrets.tdb
  [2012/07/18 15:10:43.735944,  0] smbd/server.c:1170(main)
    ERROR: smbd can not open secrets.tdb
  [2012/07/18 15:10:43.800338,  0] passdb/secrets.c:76(secrets_init)
    Failed to open /var/lib/samba/secrets.tdb
  [2012/07/18 15:10:43.800741,  0] passdb/secrets.c:76(secrets_init)
    Failed to open /var/lib/samba/secrets.tdb
  [2012/07/18 15:10:43.800785,  0] smbd/server.c:1170(main)
    ERROR: smbd can not open secrets.tdb
  [2012/07/18 15:10:43.837507,  0] passdb/secrets.c:76(secrets_init)
    Failed to open /var/lib/samba/secrets.tdb
  [2012/07/18 15:10:43.838233,  0] passdb/secrets.c:76(secrets_init)
    Failed to open /var/lib/samba/secrets.tdb
  [2012/07/18 15:10:43.838282,  0] smbd/server.c:1170(main)
    ERROR: smbd can not open secrets.tdb
`----

> b) you're using the right smbd binary?

here's an strace:

,----
  > strace -f -e execve kvm -snapshot -drive file=$HOME/foo.qed,if=virtio -net 
user,smb=$HOME/tmp/myshare -net nic,model=virtio -m 2048 -cpu host -smp 2
  execve("/usr/bin/kvm", ["kvm", "-snapshot", "-drive", 
"file=/home/user/foo.qed"..., "-net", "user,smb=/home/user/tmp/myshare"..., 
"-net", "nic,model=virtio", "-m", "2048", "-cpu", "host", "-smp", "2"], [/* 143 
vars */]) = 0
  Process 31284 attached (waiting for parent)
  Process 31284 resumed (parent 31280 ready)
  Process 31285 attached
  Process 31286 attached
  Process 31342 attached
  Process 31349 attached
  Process 31383 attached (waiting for parent)
  Process 31383 resumed (parent 31280 ready)
  Process 31384 attached (waiting for parent)
  Process 31384 resumed (parent 31383 ready)
  Process 31385 attached (waiting for parent)
  Process 31385 resumed (parent 31384 ready)
  Process 31386 attached
  Process 31387 attached
  Process 31388 attached (waiting for parent)
  Process 31388 resumed (parent 31280 ready)
  [pid 31388] execve("/usr/sbin/smbd", ["/usr/sbin/smbd", "-s", 
"/tmp/qemu-smb.31280-0/smb.conf"], [/* 146 vars */]) = 0
  Process 31388 detached
  [pid 31280] --- SIGCHLD (Child exited) @ 0 (0) ---
  Process 31389 attached
  [pid 31389] execve("/usr/sbin/smbd", ["/usr/sbin/smbd", "-s", 
"/tmp/qemu-smb.31280-0/smb.conf"], [/* 146 vars */]) = 0
  Process 31389 detached
  [pid 31280] --- SIGCHLD (Child exited) @ 0 (0) ---
  Process 31390 attached (waiting for parent)
  Process 31390 resumed (parent 31280 ready)
  [pid 31390] execve("/usr/sbin/smbd", ["/usr/sbin/smbd", "-s", 
"/tmp/qemu-smb.31280-0/smb.conf"], [/* 146 vars */]) = 0
  Process 31390 detached
  [pid 31280] --- SIGCHLD (Child exited) @ 0 (0) ---
  ^CProcess 31284 detached
  Process 31285 detached
  Process 31286 detached
  Process 31342 detached
  Process 31349 detached
  Process 31383 detached
  Process 31384 detached
  Process 31385 detached
  Process 31386 detached
  Process 31387 detached
`----

/usr/sbin/smbd:

,----
  > dlocate /usr/sbin/smbd 
  samba: /usr/sbin/smbd
> file /usr/sbin/smbd 
/usr/sbin/smbd: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), 
dynamically linked (uses shared libs), for GNU/Linux 2.6.26, 
BuildID[sha1]=0xd3ae71f3bafb0f27d4ca66f32d329effd30640df, stripped
> dpkg -p samba
Package: samba
Priority: optional
Section: net
Installed-Size: 23319
Maintainer: Debian Samba Maintainers <pkg-samba-ma...@lists.alioth.debian.org>
Architecture: amd64
Version: 2:3.6.6-2
Replaces: samba-common (<= 2.0.5a-2)
Depends: samba-common (= 2:3.6.6-2), libwbclient0 (= 2:3.6.6-2), libacl1 (>= 
2.2.51-8), libattr1 (>= 1:2.4.46-8), libc6 (>= 2.10), libcap2 (>= 2.10), 
libcomerr2 (>= 1.01), libcups2 (>= 1.4.0), libgssapi-krb5-2 (>= 1.10+dfsg~), 
libk5crypto3 (>= 1.6.dfsg.2), libkrb5-3 (>= 1.10+dfsg~), libldap-2.4-2 (>= 
2.4.7), libpam0g (>= 0.99.7.1), libpopt0 (>= 1.14), libtalloc2 (>= 
2.0.4~git20101213), libtdb1 (>= 1.2.7+git20101214), zlib1g (>= 1:1.1.4), 
debconf (>= 0.5) | debconf-2.0, libpam-runtime (>= 1.0.1-11), libpam-modules, 
lsb-base (>= 3.2-13), procps, update-inetd, adduser
Pre-Depends: dpkg (>= 1.15.7.2)
Recommends: logrotate, tdb-tools
Suggests: openbsd-inetd | inet-superserver, smbldap-tools, ldb-tools, ctdb
Conflicts: samba4 (<< 4.0.0~alpha6-2)
Size: 8329736
[...]
`----

I'm reasonably sure I'm using the right binary.

smb.conf written by qemu:

,----
  > cat /tmp/qemu-smb.31280-0/smb.conf 
  [global]
  private dir=/tmp/qemu-smb.31280-0
  smb ports=0
  socket address=127.0.0.1
  pid directory=/tmp/qemu-smb.31280-0
  lock directory=/tmp/qemu-smb.31280-0
  log file=/tmp/qemu-smb.31280-0/log.smbd
  smb passwd file=/tmp/qemu-smb.31280-0/smbpasswd
  security = share
  [qemu]
  path=/home/user/tmp/myshare
  read only=no
  guest ok=yes
`----

But I had an old qemu-kvm package (1.0) ;-) Just upgraded to qemu-kvm
1.1.0+dfsg-1 and I get the following result:

,----
 > kvm -snapshot -drive file=$HOME/foo.qed,if=virtio -net 
 > user,smb=$HOME/tmp/myshare -net nic,model=virtio -m 2048 -cpu host -smp 2
kvm: symbol lookup error: kvm: undefined symbol: rbd_aio_discard
`----

Upgrading librbd and librados2 to 0.48-1 solves that problem.

And I also can access the smb share \o/

Looks like this bug is invalid, but leads to a couple of questions:

 - I guess qemu-kvm 1.1.0 should depend on librbd 0.48-1 which is an
   entirely different bug.

 - It seems I forgot to upgrade qemu-kvm to 1.1.0 as well. Would it be
   useful to require matching/identical versions for all the qemu-*
   Packages?

Kind regards
     Friedel
-- 
        Friedrich Delgado <frie...@nomaden.org>
                             TauPan on Ircnet and Freenode ;)


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to