Last active
May 17, 2022 14:09
-
-
Save kkirsche/381e17fab1457ccf3b8b750edbc40b79 to your computer and use it in GitHub Desktop.
Mount or restart open VM toolchain
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Source: https://gitlab.com/kalilinux/packages/kali-tweaks/-/blob/kali/master/data/restart-vm-tools | |
test $(id -u) -eq 0 || { echo "Please call this script with sudo" >&2; exit 1; } | |
systemctl stop run-vmblock\\x2dfuse.mount | |
killall -q -w vmtoolsd | |
systemctl start run-vmblock\\x2dfuse.mount | |
systemctl enable run-vmblock\\x2dfuse.mount | |
vmware-user-suid-wrapper vmtoolsd -n vmusr 2>/dev/null | |
vmtoolsd -b /var/run/vmroot 2>/dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment