Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 634376 - app-emulation/vmware-player can not lock ram
Summary: app-emulation/vmware-player can not lock ram
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo VMWare Bug Squashers [disabled]
URL:
Whiteboard:
Keywords: InOverlay
Depends on:
Blocks:
 
Reported: 2017-10-15 21:35 UTC by chenglcc
Modified: 2017-11-30 11:22 UTC (History)
2 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 chenglcc 2017-10-15 21:35:32 UTC
Hi,

It seems like vmware has some problem acquiring ram from the host machine once I upgraded to kernel 4.13.6. 

I used Google to search around and found this bit from archlinux that seems like the same problem.

https://wiki.archlinux.org/index.php/VMware#Failed_to_lock_page_for_guest_RAM_on_Linux_4.13

Here is the snip from the vmware error logs:

2017-10-15T14:07:38.454-07:00| vcpu-0| I125: MsgQuestion: msg.monitorInit.mem.lockFailed reply=0
2017-10-15T14:07:38.454-07:00| vcpu-0| I125: MemSched: caller 0 numvm 1 locked pages: num 12231 max 0
2017-10-15T14:07:38.454-07:00| vcpu-0| I125: MemSched: locked Page Limit: host 0 config 7196672 dynam -1
2017-10-15T14:07:38.454-07:00| vcpu-0| I125: MemSched: minmempct 50  timestamp 744
2017-10-15T14:07:38.454-07:00| vcpu-0| I125: MemSched: VM 0 min 1075249 max 2123825 shares 2097152 paged 1024095 nonpaged 6142 anonymous 20531 locked 12231 touchedPct 93 dirtiedPct 93 timestamp 744 vmResponsive is 1
2017-10-15T14:07:38.454-07:00| vcpu-0| I125: MemSched: locked 12231 target 12231 balloon 17320 17320 1363148 swapped 459555 459555 allocd 0 128 state 3 2
2017-10-15T14:07:38.454-07:00| vcpu-0| I125: MemSched: states: 0 156 : 1 325 : 2 1102 : 3 3589
2017-10-15T14:07:38.454-07:00| vcpu-0| I125: MemSched: Balloon enabled 1 guestType 4 maxSize 0
2017-10-15T14:07:38.454-07:00| vcpu-0| E105: PANIC: Failed to lock page for guest RAM!
2017-10-15T14:07:38.454-07:00| vcpu-0| W115: 
2017-10-15T14:07:38.454-07:00| vcpu-0| W115+ The core dump limit is set to ZERO; no core dump should be expected

emerge --info

Portage 2.3.8 (python 3.4.5-final-0, default/linux/amd64/13.0, gcc-5.4.0, glibc-2.23-r4, 4.13.6 x86_64)
=================================================================
System uname: Linux-4.13.6-x86_64-Intel-R-_Core-TM-_i7-6700_CPU_@_3.40GHz-with-gentoo-2.3
KiB Mem:    32888168 total,  26264292 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Fri, 13 Oct 2017 00:45:01 +0000
Head commit of repository gentoo: c2f6aa1371c7a50616dabdc606481cf3a44989c4
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.28 p1.2) 2.28
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.28::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.28-r2::gentoo, 2.28.1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

vmware
    location: /var/lib/layman/vmware
    masters: gentoo
    priority: 50

Installed sets: @steam
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl acpi alsa amd64 berkdb bindist bzip2 cli cracklib crypt cxx dri exif fortran gdbm gtk3 iconv ipv6 jpeg lua mmx modules multilib ncurses nls nptl openmp pam pcre png readline seccomp session sse sse2 ssl svg tcpd threads tiff truetype unicode vmware_guest_windows x264 xattr zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="en ja ko zh-CN zh-TW" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en ja ja_JP ko zh_TW zh_CN" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="nvidia intel" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Mike Gilbert gentoo-dev 2017-10-28 16:04:51 UTC
With which vmware product do you experience this issue?

Please put the full catagory/package in the bug summary.
Comment 2 chenglcc 2017-10-29 03:39:52 UTC
I am having problems with app-emulation/vmware-player
Comment 3 Fabio Rossi 2017-11-09 21:58:33 UTC
I have put the needed patches for version vmware 12.5 in the overlay, please test it
Comment 4 chenglcc 2017-11-11 01:14:16 UTC
Verified, it is working now on kernel 4.13.11

thanks.
Comment 5 Manfred Knick 2017-11-21 20:18:13 UTC
(In reply to chenglcc from comment #4)
> Verified, it is working now on kernel 4.13.11
Please close as RESOLVED / FIXED.

Note: 

a) Please upgrade to current 12.5.8 minor to avoid vulnerabilities:

Bug 637922 - [vmware] 
             app-emulation/vmware-{workstation, player}-12.5.8 version bump 
             [VMSA-2017-0018] multiple security vulnerabilities

b) EOL :     https://bugs.gentoo.org/634770#c14
Comment 6 Manfred Knick 2017-11-30 11:22:25 UTC
C.f. comment #4
> Verified, it is working now on kernel 4.13.11

Further info:

VMware Products have been removed from Main Portage Tree during Nov-2017.

Further development has been relegated to [vmware] Overlay.

Situation as of today, 30-Nov-2017:
Workstation : stable in [vmware] = 12.5.8  / released = 14.0.0  : Bug 634770
Player      : stable in [vmware] = 12.5.8  / released = 14.0.0  : Bug 639162
Modules     : stable in [vmware] = 308.5.8 / released = 329.0.0 : Bug 634862
Tools       : stable in [vmware] = 10.1.6  / released = 10.1.15 : Bug 634854