diff options
author | Simon Rettberg | 2023-01-05 13:37:00 +0100 |
---|---|---|
committer | Simon Rettberg | 2023-01-05 13:37:00 +0100 |
commit | edd9020372ae5deae8406cebfd163b4450100ff8 (patch) | |
tree | 497632e93ebcf2ac1fc2dd4630df0c23185b2c2b /core/modules/vmware17/data | |
parent | [virt-manager] Fix build on newer setuptools versions (diff) | |
download | mltk-edd9020372ae5deae8406cebfd163b4450100ff8.tar.gz mltk-edd9020372ae5deae8406cebfd163b4450100ff8.tar.xz mltk-edd9020372ae5deae8406cebfd163b4450100ff8.zip |
[vmware17] Switch to VMware 17
Diffstat (limited to 'core/modules/vmware17/data')
-rw-r--r-- | core/modules/vmware17/data/addon-required | 19 | ||||
-rwxr-xr-x | core/modules/vmware17/data/opt/openslx/bin/vmplayer | 16 | ||||
l--------- | core/modules/vmware17/data/opt/openslx/bin/vmware | 1 | ||||
l--------- | core/modules/vmware17/data/usr/bin/vmplayer | 1 | ||||
l--------- | core/modules/vmware17/data/usr/bin/vmware | 1 |
5 files changed, 38 insertions, 0 deletions
diff --git a/core/modules/vmware17/data/addon-required b/core/modules/vmware17/data/addon-required new file mode 100644 index 00000000..a86e41bc --- /dev/null +++ b/core/modules/vmware17/data/addon-required @@ -0,0 +1,19 @@ +#!/bin/bash + +# the vmware helper needs the kmod msr and the tool rdmsr, +# /dev, /sys and /proc to properly detect the CPU info. + +bindmount=("/dev" "/proc" "/sys") + +for bm in "${bindmount[@]}"; do + mount --bind "$bm" "${NEWROOT}/${bm}" +done + +export PATH="$PATH:/opt/openslx/sbin:/opt/openslx/bin" +version="$(chroot "$NEWROOT" vmware-get-supported-version)" + +for bm in "${bindmount[@]}"; do + umount "${NEWROOT}/${bm}" +done + +[ -n "$version" ] && [ "$version" = "new" ] diff --git a/core/modules/vmware17/data/opt/openslx/bin/vmplayer b/core/modules/vmware17/data/opt/openslx/bin/vmplayer new file mode 100755 index 00000000..05a4ec3a --- /dev/null +++ b/core/modules/vmware17/data/opt/openslx/bin/vmplayer @@ -0,0 +1,16 @@ +#!/bin/ash +# radically simplified version of the original script vmplayer by VMware Inc. +PREFIX=/usr/lib/vmware # depends on the vmware location + +# HACK: Let the OpenGL driver report s3tc capability even if not present, so 3D will be enabled +export force_s3tc_enable=true + +# Turn off "helpful" DE features +export APPMENU_DISPLAY_BOTH=1 +export UBUNTU_MENUPROXY=0 +export GNOME_DISABLE_CRASH_DIALOG=1 + +PROG=$(basename $0) + +exec "$PREFIX/bin/$PROG" "$@" + diff --git a/core/modules/vmware17/data/opt/openslx/bin/vmware b/core/modules/vmware17/data/opt/openslx/bin/vmware new file mode 120000 index 00000000..aa0b74b1 --- /dev/null +++ b/core/modules/vmware17/data/opt/openslx/bin/vmware @@ -0,0 +1 @@ +vmplayer
\ No newline at end of file diff --git a/core/modules/vmware17/data/usr/bin/vmplayer b/core/modules/vmware17/data/usr/bin/vmplayer new file mode 120000 index 00000000..2944838d --- /dev/null +++ b/core/modules/vmware17/data/usr/bin/vmplayer @@ -0,0 +1 @@ +/opt/openslx/bin/vmplayer
\ No newline at end of file diff --git a/core/modules/vmware17/data/usr/bin/vmware b/core/modules/vmware17/data/usr/bin/vmware new file mode 120000 index 00000000..bde6f9c0 --- /dev/null +++ b/core/modules/vmware17/data/usr/bin/vmware @@ -0,0 +1 @@ +/opt/openslx/bin/vmware
\ No newline at end of file |