Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 290558 - app-emulation/vmware-server: vmware-config.pl fails to start the vmware service in kernel 2.6.30-gentoo-r8
Summary: app-emulation/vmware-server: vmware-config.pl fails to start the vmware servi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-26 11:56 UTC by Jianwen Wei
Modified: 2009-10-28 16:13 UTC (History)
3 users (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 Jianwen Wei 2009-10-26 11:56:45 UTC
Recently, I upgrade kernel from 2.8.30-r6 to 2.8.30-r8, rebuilding the necessary drivers, including vmware-server and vmware-moduels. But since then, vmware service fails to start. Here is what I install:

sys-kernel/gentoo-sources-2.6.30-r8
app-emulation/vmware-server-2.0.1.156745-r3
app-emulation/vmware-modules-1.0.0.24-r1

when I /etc/init.d/vmware start, I get:

*   VMware Server is installed, but it has not been (correctly) configured                                                        [ !! ]
*   for the running kernel.                                                                                                       [ !! ]
*   Please ensure that the modules have been compiled for this kernel:                                                            [ !! ]
*   emerge --oneshot vmware-modules                                                                                               [ !! ]
*   Also ensure VMware Server has been configured:                                                                                [ !! ]
*   /opt/vmware/server/bin/vmware-config.pl.                                                                                      [ !! ]
* VMware is not properly configured! See above.                                                                                   [ !! ]
* ERROR: vmware failed to start

Then I run vmware-config.pl under the instruction, and what I get is:

Making sure services for VMware Server are stopped.

* WARNING: vmware is already stopped
Unable to stop services for VMware Server

Execution aborted.


Reproducible: Always

Steps to Reproduce:
1. run /opt/vmware/server/bin/vmware-config.pl as root

Actual Results:  
vmware-config.pl exit the configuration process, and vmware fails to start.

Expected Results:  
vmware-config.pl finishes vmware configuration and start the vmware service.

Portage 2.1.6.13 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r8-i686-Intel-R-_Core-TM-2_Duo_CPU_E7400_@_2.80GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 26 Oct 2009 06:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.2-r1
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.2-r1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://202.38.97.230/gentoo ftp://ftp.sjtu.edu.cn/gentoo http://61.135.158.199 http://mirror.averse.net/pub/gentoo http://mirro.gentoo.gr.jp"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="zh_CN zh zh_TW en_US en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/gentoo-china"
SYNC="rsync://mirror.averse.net/gentoo-portage"
USE="# (Using 2D 3D ABL Audio CPU CUPS) Compress Cosole Desktop Environment Features Graphic Hardware Library Locale Login Management Media Netwok Network New Other POSIX Player Power SSL System System: Thread Window X acl acpi alsa are avahi bash-completion berkdb branding bzip2 cdr cjk cleartype cli cracklib crypt cups dbus dmx dri dvd emacs en_US esd essential fat file fontconfig fortran gdbm gif gnome gnutls gpm gtk hal iconv ipv6 isdnlog jfs jpeg jpeg2k latex longer mmx mmx2 modules mplayer mudflap ncurses nls no nptl nptlonly ntfs opengl openmp oss pam pcre pdf perl png pppd printers python readline reflection require samba session smp spell spl sse sse2 sse3 ssl ssse3 support svg svga sysfs system tcpd threads tiff truetype udev unicode usb x86 xfs xft xorg xscreensaver zeroconf zh_CN zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_CN zh zh_TW en_US en" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Cybertinus 2009-10-28 08:34:02 UTC
The workarround for this problem is running /opt/vmware/server/bin/vmware-config.pl --skip-start-stop

That option isn't listed when you run /opt/vmware/server/bin/vmware-config.pl --help so it would be nice if that is added, so people get reminded that this option exists.

I just ran into the same problem when I upgraded from 2.6.31-gentoo-r3 to 2.6.31-gentoo-r4.
Comment 2 Jianwen Wei 2009-10-28 09:31:02 UTC
Thanks for your replay! This should have work for me (Gentoo Wiki mentions that). 

But, no matter I try 

/opt/vmware/server/bin/vmware-config.pl --skip-start-stop

or, 

/opt/vmware/server/bin/vmware-config.pl --skipstartstop

I got the following message from the terminal. vmware-config.pl really sucks me. T_T


Use of uninitialized value in concatenation (.) or string at /opt/vmware/server/bin/vmware-config.pl line 2421.
VMware Server 2.0.1 build-156745 for  configurator
Usage: /opt/vmware/server/bin/vmware-config.pl [[-][-]d[efault]] 
[[-][-]c[ompile]] [[-][-]p[rebuilt]] [[-][-]t[ry-modules]] [[-][-]p[reserve]] 
[[-][-]o[verwrite][[-][-]m[odules-only]] [[-][-]k[ernel-version] version]
. default: Automatically answer questions with the proposed answer.
. compile: Force the compilation of kernel modules.
. prebuilt: Force the use of pre-built kernel modules.
. try-modules: Try to load all the compatible modules . preserve: Always 
preserve user-modified configuration files.
. overwrite: Always overwrite user-modified configuration files.from the VMware
Server package.
. modules-only: Only build/install kernel modules, skip all other configuration
steps.
. kernel-version: Build/install modules for the given kernel version instead of
the running one, implies modules-only, skip-stop-start and compile.

Command line arguments:  The acceptable characters are:
	the letters A, B, C, ...,
	the letters a, b, c, ...,
	the numbers 0, 1, 2, ...,
	and the special characters '_' and '-' and '='.



(In reply to comment #1)
> The workarround for this problem is running
> /opt/vmware/server/bin/vmware-config.pl --skip-start-stop
> 
> That option isn't listed when you run /opt/vmware/server/bin/vmware-config.pl
> --help so it would be nice if that is added, so people get reminded that this
> option exists.
> 
> I just ran into the same problem when I upgraded from 2.6.31-gentoo-r3 to
> 2.6.31-gentoo-r4.
> 

(In reply to comment #1)
> The workarround for this problem is running
> /opt/vmware/server/bin/vmware-config.pl --skip-start-stop
> 
> That option isn't listed when you run /opt/vmware/server/bin/vmware-config.pl
> --help so it would be nice if that is added, so people get reminded that this
> option exists.
> 
> I just ran into the same problem when I upgraded from 2.6.31-gentoo-r3 to
> 2.6.31-gentoo-r4.
> 

Comment 3 Cybertinus 2009-10-28 09:43:30 UTC
Ok, that is to bad :(. I found another bug report that mentioned that options.

But you could try the method I just used to skip the start stop sequence:
1. Open /opt/vmware/server/bin/vmware-config.pl in a editor
2. Go to line 2487. You'll see the line "$gOption{'skip-stop-start'} = vmware_product() eq 'server';" there.
3. Replace the part after the = with the number 1.
4. Save the file
5. Rerun /opt/vmware/server/bin/vmware-config.pl, now it shouldn't try to stop and start vmware server.

Hope this helps :)
Comment 4 Jianwen Wei 2009-10-28 11:44:33 UTC
Cybertinus, you did a great job! This does work around.

(In reply to comment #3)
> Ok, that is to bad :(. I found another bug report that mentioned that options.
> 
> But you could try the method I just used to skip the start stop sequence:
> 1. Open /opt/vmware/server/bin/vmware-config.pl in a editor
> 2. Go to line 2487. You'll see the line "$gOption{'skip-stop-start'} =
> vmware_product() eq 'server';" there.
> 3. Replace the part after the = with the number 1.
> 4. Save the file
> 5. Rerun /opt/vmware/server/bin/vmware-config.pl, now it shouldn't try to stop
> and start vmware server.
> 
> Hope this helps :)
> 

Comment 5 Martin Borchardt 2009-10-28 14:46:53 UTC
I have another and simpler way to overcome this problem without editing the vmware-config.pl

you have to run:
/opt/vmware/server/bin/vmware-config.pl --skip-stop-start

there was only a small mistake in the parameter
Comment 6 Jianwen Wei 2009-10-28 16:13:43 UTC
Thanks, man. This works just great!

(In reply to comment #5)
> I have another and simpler way to overcome this problem without editing the
> vmware-config.pl
> 
> you have to run:
> /opt/vmware/server/bin/vmware-config.pl --skip-stop-start
> 
> there was only a small mistake in the parameter
>