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

From ArchWiki
Jump to: navigation, search
m (Prerequisites)
(All info merged.)
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Getting and installing Arch]]
+
#REDIRECT [[Installing Arch Linux in VMware]]
[[Category:Virtualization]]
+
{{Merge|Installing Arch Linux in VMware|Only Systemd scripts part is systemd centric.}}
+
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'', ''open-vm-tools-modules'' and the graphics driver from the ''Community'' and ''Extra'' repository:
+
  # pacman -S open-vm-tools open-vm-tools-modules xf86-input-vmmouse xf86-video-vmware
+
 
+
If you're booting into a graphical target you're almost done. ''/etc/xdg/autostart/vmware-user.desktop'' will get started which will setup most of the things needed to work with the virtual machine.
+
 
+
If you're booting into ''multi-user.target'' then you need to enable the ''vmtoolsd.service'':
+
  # systemctl enable vmtoolsd.service
+
 
+
== Enable shared folders ==
+
For shared folders to be working you need to have loaded the ''vmhgfs'' driver.
+
Simply create the following systemd files:
+
{{Hc|head=/etc/systemd/system/mnt-hgfs.mount|output=
+
[Unit]
+
Description=Load VMware shared folders
+
ConditionPathExists=.host:/
+
 
+
[Mount]
+
What=.host:/
+
Where=/mnt/hgfs
+
Type=vmhgfs
+
Options=defaults,noatime
+
 
+
[Install]
+
WantedBy=multi-user.target
+
}}
+
 
+
{{Hc|head=/etc/systemd/system/mnt-hgfs.automount|output=
+
[Unit]
+
Description=Load VMware shared folders
+
ConditionPathExists=.host:/
+
 
+
[Automount]
+
Where=/mnt/hgfs
+
 
+
[Install]
+
}}
+
 
+
Make sure that the folder ''/mnt/hgfs'' exists:
+
  # mkdir -p /mnt/hgfs
+
Enable the mount target with:
+
  # systemctl enable mnt-hgfs.automount
+
 
+
== 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'' [[http://www.spinics.net/lists/xorg/msg53932.html xf86-input-vmmouse does not work expected]]
+
 
+
=== Network connection not working ===
+
Add the following line to your ''.vmx'' file:
+
  ethernet0.virtualDev = "vmxnet3"
+
More informations about the network adpater types can be found on the following page: [http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&docType=ex&bbid=TSEBB_1295982031224&url=&stateId=1%200%20381138238&dialogID=381134132&docTypeID=DT_KB_1_1&externalId=1001805&sliceId=2&rfId= Choosing a network adapter for your virtual machine]
+

Revision as of 05:23, 7 March 2013