I run Linux Gentoo Guest (2.6.39-gentoo-r3) on the VMware x86_64 host. The open-vm-tools emerge successfully, but vmtoolsd does not start and /var/log/messages log in the Guest shows the following: -- MARK -- Jul 17 02:26:28 /etc/init.d/vmware-tools[18515]: WARNING: -c/--chuid is deprecated and will be removed in the future, please use -u/--user instead Jul 17 02:26:28 vmsvc[18516]: [ warning] [vmtoolsd] The vmsvc service needs to run inside a virtual machine. In the guests /var/log/messages I get this entry: vmsvc[2240]: [ warning] [vmtoolsd] The vmsvc service needs to run inside a virtual machine. So apparently the open-vm-tools do not recognize the guest virtual machine as a VMware guest. Reproducible: Always Steps to Reproduce: 1. Install openSUSE 11.4 or 12.1 MS2 x86_64 with kernel 'default' 2. Install open-vm-tools and vmware-guest-kmp-default 3. Try to start vmtoolsd Actual Results: vmtoolsd will not start and give this error in the messages log vmsvc[2240]: [ warning] [vmtoolsd] The vmsvc service needs to run inside a virtual machine. Expected Results: I expect vmtoolsd to run. Reproducible: Always Steps to Reproduce: In the guest OS: 1. emerge open-vm-tools 2. run: /etc/init.d/vmware-tools start 3. see /var/log/messages or results from "vmware-checkvm" I tried to apply the following checkvm-iopl.patch: --- a/checkvm/checkvm.c +++ b/checkvm/checkvm.c @@ -40,6 +40,8 @@ #include "checkvm_version.h" #include "embed_version.h" +#include <sys/io.h> + VM_EMBED_VERSION(CHECKVM_VERSION_STRING); @@ -83,6 +85,8 @@ uint32 screensize = 0; uint32 hwVersion; + iopl(3); + if (!VmCheck_IsVirtualWorld()) { fprintf(stdout, "Not running in a virtual machine.\n"); return 1; --- vmware-checkvm would return then: "VMware software version 6 (good)". But /etc/init.d/vmware-tools would not start the "vmtoolsd" anyway. What is the problem? Andrejs
Please ignore the first "Steps to reproduce", see the second ones. The first ones I simply copied from a similar bug report on the OpenSUSE bugzilla. Thanks Andrejs
same problem here: /sbin/start-stop-daemon: user 'root:vmware' not found Portage 2.1.9.42 (default/linux/x86/10.0, gcc-4.4.5, libc-0-r0, 2.6.32-gentoo-r33 i686) ================================================================= System uname: Linux-2.6.32-gentoo-r33-i686-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-1.12.14 Timestamp of tree: Tue, 19 Jul 2011 13:00:01 +0000 ccache version 2.4 [disabled] app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.4.4-r6, 2.5.4-r3, 2.6.6-r2, 2.7.1-r1, 3.1.3-r1 dev-util/ccache: 2.4-r9 dev-util/cmake: 2.8.1-r2 dev-util/pkgconfig: 0.25-r2 sys-apps/baselayout: 1.12.14-r1 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.13, 2.65-r1 sys-devel/automake: 1.5, 1.7.9-r2, 1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.3.4, 4.4.5 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.81-r2 sys-kernel/linux-headers: 2.6.30-r1 sys-libs/glibc: 2.12.2 virtual/os-headers: 0 ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /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" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j2" 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/enlightenment /usr/local/portage/duncan" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acl alsa berkdb bzip2 cdr cli cracklib crypt cups cxx dri dvd dvdread fortran gdbm gpm gstreamer gtk gtk2 gtkhtml iconv imap libwww maildir modules mudflap mysql ncurses nls nptl nptlonly odbc openmp pam pam-mysql pcre perl pppd python readline samba sasl session ssl sysfs tcpd tiff unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 cgi cgid 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" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
(In reply to comment #0) > vmsvc[2240]: [ warning] [vmtoolsd] The vmsvc service needs to run inside a > virtual machine. > > What is the problem? I can't reproduce your bug so far. Could you show me the output of lsmod | grep vmw
(In reply to comment #2) > same problem here: /sbin/start-stop-daemon: user 'root:vmware' not found I don't think it's the same problem > sys-apps/baselayout: 1.12.14-r1 I've changed flag --chuid to --user for recently stabilized baselayout2 and openrc. It looks like using "--user root --group vmware" instead of "--user root:vmware" will be backward compatible.
(In reply to comment #4) > (In reply to comment #2) > > same problem here: /sbin/start-stop-daemon: user 'root:vmware' not found > > I don't think it's the same problem > > > sys-apps/baselayout: 1.12.14-r1 > > I've changed flag --chuid to --user for recently stabilized baselayout2 and > openrc. > It looks like using "--user root --group vmware" instead of "--user > root:vmware" will be backward compatible. Thank you! "--user root --group vmware" did the trick :-) !