Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52855 - Wrong vmware start order in init.d scripts
Summary: Wrong vmware start order in init.d scripts
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor
Assignee: Chris Gianelloni (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-03 02:09 UTC by Viacheslav Kaloshin
Modified: 2004-06-03 12:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Viacheslav Kaloshin 2004-06-03 02:09:08 UTC
VmWare init scripts calls after samba scripts.

Reproducible: Always
Steps to Reproduce:
1. install and configure vmware and samba
2. add in samba config (smb.conf) options, that affected interfaces and access control. Say, if I configure vmware to use 172.31.1.1/24 as address of vmnet interface and then add to smb.conf next lines:

   hosts allow = ..... 172.31. 
   interfaces = ..... 172.31.1.1/24 

3. reboot.
Actual Results:  
At first, samba starts, cannot find 172.31.1.1 interface and nmbd die. In
/var/log/samba/log.nmbd something like this:

[2004/06/01 20:23:50, 0] lib/util_sock.c:open_socket_in(666)                    
  bind failed on port 137 socket_addr = 172.31.1.1.                             
  Error = Cannot assign requested address                                       
[2004/06/01 20:23:50, 0] nmbd/nmbd_subnetdb.c:make_subnet(126)                  
nmbd_subnetdb:make_subnet()                                                     
  Failed to open nmb socket on interface 172.31.1.1 for port 137.  Error was Can
not assign requested address                                                    
[2004/06/01 20:23:50, 0] nmbd/nmbd.c:main(732)                                  
  ERROR: Failed when creating subnet lists. Exiting.

when start vmware. and guest operating system cannot find server/network path.
Other external clients to samba server fails to work too.

So i need manually stop, zap then start samba.

Expected Results:  
starts vmware interfaces with other network interfaces, before any
server-related software.

net-fs/samba 3.0.2a-r2
app-emulation/vmware-workstation 4.5.1.7568

Portage 2.0.50-r7 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040420-r0, 2.
6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 i686 Intel(R) Pentium(R) M processor 1500MHz
Gentoo Base System version 1.4.15
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/s
hare/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmai
l/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ ftp://ftp.
snt.utwente.nl/pub/os/linux/gentoo http://ftp.easynet.nl/mirror/gentoo/"
MAKEOPTS=""
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa avi berkdb cdr cjk crypt dvd encode foomaticdb gd gdbm gif gpm 
gtk2 imap imlib jpeg libg++ libwww mad maildir mikmod mmx motif mozilla mpeg mys
ql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime read
line sdl slang sse ssl svga tcpd truetype unicode x86 xml2 xmms xv zlib"
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2004-06-03 03:51:44 UTC
I'm just curious, but you're not using VMWare's built-in samba?  It looks to me like you've emerged samba instead.
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2004-06-03 08:37:52 UTC
The "use samba" in the vmware init script was added to ensure that samba starts before vmware. -> Bug 36941 
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2004-06-03 10:09:37 UTC
The original poster is trying to use his system samba as VMware's samba.  The problem is that samba (because of the use samba) starts before VMware, which means that the interface/address is non-existant.

My answer is to use VMware's built-in samba and *not* the system one, or to hack the vmware init script yourself.  This is not the "normal" configuration, and therefore I am marking this as INVALID.  If you see a reason to object, feel free to and we will look into it further.
Comment 4 Viacheslav Kaloshin 2004-06-03 12:18:07 UTC
Ok. May be you right, but imho for one task must use one software title, not two ;-)))
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2004-06-03 12:55:51 UTC
VMware is entirely self-contained.  It has its own network drivers... it's own video hooks... it's own samba... it is only one product... you were the one trying to use two... :P

You can configure VMware's samba duing the vmware-config.pl for setting up VMware.