Difference between revisions of "Installing Arch Linux in VMware (systemd)"

From ArchWiki
Jump to: navigation, search
(VMWare user suid wrapper)
Line 10: Line 10:
 
== Drivers ==
 
== Drivers ==
 
Add the VMWare drivers to your ''mkinitcpio.conf'':
 
Add the VMWare drivers to your ''mkinitcpio.conf'':
{{Hc|head=/etc/mkinitcpio.conf|...
+
{{Hc|head=/etc/mkinitcpio.conf|output=
MODULES&#61"vmxnet3 vmgfx vmw_ballon vmci"
+
...
 +
MODULES="vmxnet3 vmgfx vmw_ballon vmci"
 
...}}
 
...}}
  
Line 21: Line 22:
  
 
Create the following files:
 
Create the following files:
{{Hc|head=/etc/tmpfiles.d/vmblock.conf|
+
{{Hc|head=/etc/tmpfiles.d/vmblock.conf|output=
 
# creates the directory which is used by the vmblock driver
 
# creates the directory which is used by the vmblock driver
 
d /tmp/VMwareDnD 1777 root root}}
 
d /tmp/VMwareDnD 1777 root root}}
  
{{Hc|head=/etc/systemd/system/proc-fs-vmblock-mountPoint.mount|
+
{{Hc|head=/etc/systemd/system/proc-fs-vmblock-mountPoint.mount|output=
 
[Unit]
 
[Unit]
 
Description&#61Mount the vmblock device
 
Description&#61Mount the vmblock device
ConditionPathExists&#61/tmp/VMwareDnD
+
ConditionPathExists=/tmp/VMwareDnD
After&#61vmblock.conf
+
After=vmblock.conf
Requires&#61vmblock.conf
+
Requires=vmblock.conf
  
 
[Mount]
 
[Mount]
 
What&#61none
 
What&#61none
Where&#61/proc/fs/vmblock/mountPoint
+
Where=/proc/fs/vmblock/mountPoint
Type&#61vmblock}}
+
Type=vmblock}}
  
 
== VMWare user suid wrapper ==
 
== VMWare user suid wrapper ==
 
The following script is responsible that you can resize the window of your virtual machine:
 
The following script is responsible that you can resize the window of your virtual machine:
{{Hc|head=/etc/xdg/autostart/vmware-user.desktop|
+
{{Hc|head=/etc/xdg/autostart/vmware-user.desktop|output=
 
[Desktop Entry]
 
[Desktop Entry]
 
Type=Application
 
Type=Application
Name&#61VMWare User Agent
+
Name=VMWare User Agent
Exec&#61/usr/bin/vmware-user-suid-wrapper
+
Exec=/usr/bin/vmware-user-suid-wrapper
Icon&#61system-run
+
Icon=system-run
Comment&#61Enable Unity, DnD, etc.}}
+
Comment=Enable Unity, DnD, etc.}}

Revision as of 19:12, 28 January 2012

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="vmxnet3 vmgfx vmw_ballon vmci"
...

Now you have to rebuild your kernel:

# 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&#61Mount the vmblock device
ConditionPathExists=/tmp/VMwareDnD
After=vmblock.conf
Requires=vmblock.conf

[Mount]
What&#61none
Where=/proc/fs/vmblock/mountPoint
Type=vmblock

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.