title: VMware tools installation (Shared Folders) on Arch Linux
body: <p>I'm using <strong>VMware Workstation 10.0.1</strong> and <strong>Windows 7 32 bit</strong>. I'm trying to install VMware Tools on Arch Linux to Share Folder between Windows host and Arch Linux guest.</p>
  
  <p>Here is the details of my machine <code>uname -a</code></p>
  
  <pre><code>Linux archlinux 3.18.2-2-ARCH #1 SMP PREEMPT Fri Jan 9 07:23:08 CET 2015 i686 GNU/Linux
  </code></pre>
  
  <p>I've tried to install <strong>VMware tools</strong> in various ways. Every time it installs successfully but only the <strong>Shared Folder</strong> feature didn't work. Neither the vmware supplied hgfs module nor the hgfs module from the open-vm-tools compiles on my machine.</p>
  
  <p>I've tried both <strong>Official VMware Tools</strong> and <strong>Open-VM-Tools</strong> from <a href="https://wiki.archlinux.org/index.php/Installing_Arch_Linux_in_VMware" rel="nofollow noreferrer">Installing Arch Linux in VMware</a>. But no luck.</p>
  
  <p>I've also tried the patch from GitHub <a href="https://github.com/rasa/vmware-tools-patches" rel="nofollow noreferrer">here</a> to automate the process. But nothing changed.</p>
  
  <p>I've also tried this patch got from another question on StackOverflow <a href="https://stackoverflow.com/questions/20342703/vmware-shared-folders-hgfs-linux-kernel-3-12-ubuntu-14-04-not-compiling">here</a></p>
  
  <hr>
  
  <p>Here is in brief what I've done,</p>
  
  <p>I've tried to install all the dependencies needed for Official VMware Tools and Open-VM-Tools. For this reason I've installed</p>
  
  <pre><code># pacman -S base-devel net-tools linux-headers
  </code></pre>
  
  <p>and also installed <code>aurget</code> to install community packages. Then,</p>
  
  <p>For installing Open-VM-Tools</p>
  
  <pre><code># pacman -S open-vm-tools
  $ aurget -S open-vm-tools-dkms // installed as regular user not root
  # cat /proc/version &gt; /etc/arch-release
  # systemctl enable vmtoolsd.service
  # reboot
  </code></pre>
  
  <p>For installing Official VMware Tools</p>
  
  <pre><code># cd /lib/modules/$(uname -r)/build/include/linux
  # ln -sv ../generated/uapi/linux/version.h
  # for x in {0..6}; do mkdir -pv /etc/init.d/rc$x.d; done
  # mount /dev/cdrom /mnt
  # cd /root
  # tar zxf /mnt/VMwareTools*.tar.gz
  # cd vmware-tools-distrib
  # ./vmware-install.pl
  # systemctl reboot
  </code></pre>
  
  <p>After rebooting and logging in,</p>
  
  <pre><code># /etc/init.d/rc6.d/K99vmware-tools start
  </code></pre>
  
  <p>Then I've created a folder on my <code>D:\xshare</code> and added this to the machine by menu</p>
  
  <pre><code>VM --&gt; Settings... --&gt; Options --&gt; Shared Folders
  </code></pre>
  
  <p>Then created a directory on the system</p>
  
  <pre><code># mkdir /home/archuser/xshare
  </code></pre>
  
  <p>After that trying to share the folder between host and guest temporarily running this command</p>
  
  <pre><code># mount -t vmhgfs .host:/xshare /home/archuser/xshare
  Error: cannot mount filesystem: No such device
  </code></pre>
  
  <p>But getting error.</p>
  
  <p>There is an instruction on the Arch installation page to solve this by running this but I'm also getting error here</p>
  
  <pre><code># modprobe vmhgfs
  modprobe: FATAL: Module vmhgfs not found.
  </code></pre>
  
  <p>Please help me to solve this issue.
  Thanks in advance.</p>