Sunday, July 10, 2016

archlinux - VMWare tools

Straightforward guide from arch wiki.

Summarized:
- Install the dependencies using pacman: base-devel (for building), net-tools (for ifconfig, used by the installer) and linux-headers (for kernel headers).
e.g. 
# pacman -S net-tools

- Create bogus init directories for the installer:
# for x in {0..6}; do mkdir -p /etc/init.d/rc${x}.d; done

- The installer can then be mounted:
# mount /dev/cdrom /mnt

- Extracted (e.g. to /tmp):
# tar xf /mnt/VMwareTools*.tar.gz -C /tmp

- And started:
# perl /tmp/vmware-tools-distrib/vmware-install.pl

- Reboot the Virtual Machine:
# systemctl reboot

- Log in and start the VMware Tools:
# /etc/init.d/rc6.d/K99vmware-tools start


Additionally, autostart of VMWare tools on every boot.

- Create the following text file:
# nano /etc/systemd/system/vmwaretools.service

Add the following text:
[Unit]
Description=VMWare Tools daemon

[Service]
ExecStart=/etc/init.d/vmware-tools start
ExecStop=/etc/init.d/vmware-tools stop
PIDFile=/var/lock/subsys/vmware
TimeoutSec=0
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

- To have it start at boot write the following in the terminal:
# systemctl enable vmwaretools.service


References:
https://wiki.archlinux.org/index.php/VMware/Installing_Arch_as_a_guest#Official_VMware_Tools
http://www.unax.dk/2014/01/running-vmware-tools-on-boot-in-arch-linux/

1 comment: