Installing Arch Linux in VMware (systemd)

From ArchWiki
Revision as of 08:42, 27 May 2012 by Fliang (Talk | contribs) (Drivers)

Jump to: navigation, search

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.


Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어


External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

This article describes how to get Archlinux running in a VMWare virtual machine when you're using systemd as SysV replacement.

Prerequisites

Please install the open-vm-tools-modules from the Community repository.

Drivers

Add the VMWare drivers to your mkinitcpio.conf:

/etc/mkinitcpio.conf
...
MODULES="vmsync vmblock vmxnet3 vmwgfx vmw_balloon vmci autofs4 vmhgfs"
...

Now you have to rebuild your kernel:

# depmod
# mkinitcpio -p linux

Systemd scripts

In the following steps you have to create some systemd scripts so that the vmblock driver can be used successfully.

Create the following files:

/etc/tmpfiles.d/vmblock.conf
# creates the directory which is used by the vmblock driver
d /tmp/VMwareDnD 1777 root root
/etc/systemd/system/proc-fs-vmblock-mountPoint.mount
[Unit]
Description=Mount the vmblock device
ConditionPathExists=/proc/fs/vmblock/
After=vmblock.conf
Requires=vmblock.conf

[Mount]
What=none
Where=/proc/fs/vmblock/mountPoint/
Type=vmblock
/etc/systemd/system/proc-fs-vmblock-mountPoint.automount
[Unit]
Description=Mount the vmblock device
ConditionPathExists=/proc/fs/vmblock/
After=vmblock.conf
Requires=vmblock.conf

[Automount]
Where=/proc/fs/vmblock/mountPoint/

[Install]
WantedBy=multi-user.target

Then you have to enable the mount point in systemd:

 # systemctl enable proc-fs-vmblock-mountPoint.automount

VMware user suid wrapper

The following script is responsible that you can resize the window of your virtual machine:

/etc/xdg/autostart/vmware-user.desktop
[Desktop Entry]
Type=Application
Name=VMWare User Agent
Exec=/usr/bin/vmware-user-suid-wrapper
Icon=system-run
Comment=Enable Unity, DnD, etc.

Disable unneeded drivers

The open-vm-tools-modules package installs a configuration file for the vmxnet driver. Either delete the following file or comment the contents:

 /etc/modprobe.d/open-vm-tools-modules.conf

To make sure the vmxnet driver doesn't get loaded create the following file:

/etc/modprobe.d/vmxnet.conf
blacklist vmxnet

Enable shared folders

For shared folders to be working you need to have loaded the vmhgfs driver. Simply add the following line to your fstab:

/etc/fstab
...
# enable shared folders
.host:/ /mnt/hgfs vmhgfs defaults,ttl=5 0 0

The shared folders will be mounted in /mnt/hgfs/.

Enable 3d accleration

To enable 3d acceleration go to Edit virtual machine settings -> Hardware -> Display and enable the checkbox for Accelerate 3D graphics

Fix for problems

Mouse not working as expected

If you have the problem that mouse clicks are not registered in some programs you can try the following: edit /etc/X11/xorg.conf.d/10-evdev.conf and comment out the section with the identifier evdev pointer catchall [xf86-input-vmmouse does not work expected]