FS#37026 - [open-vm-tools-dkms] can not build against linux and linux-lts
Attached to Project:
Community Packages
Opened by Hamo Bai (hamo) - Sunday, 22 September 2013, 14:58 GMT
Last edited by Balló György (City-busz) - Friday, 21 February 2014, 12:08 GMT
Opened by Hamo Bai (hamo) - Sunday, 22 September 2013, 14:58 GMT
Last edited by Balló György (City-busz) - Friday, 21 February 2014, 12:08 GMT
|
Details
Description:
open-vm-tool-dkms can not build against linux (3.11.1-1) and linux-lts (3.10.12-1) Additional info: * package version(s) open-vm-tool-dkms 3:2013.04.16-1 * config and/or log files etc. Steps to reproduce: |
This task depends upon
Closed by Balló György (City-busz)
Friday, 21 February 2014, 12:08 GMT
Reason for closing: Won't fix
Additional comments about closing: The package dropped from the repository.
Friday, 21 February 2014, 12:08 GMT
Reason for closing: Won't fix
Additional comments about closing: The package dropped from the repository.
0.9.4 I couldn't compile for 311 and up.
linux310-open-vm-tools-module... (3 KiB)
btw there are vsock, vmxnet and baloon drivers in linux kernel, not sure what is the difference between open-vm-tools and mainline linux modules.
As Sergej already told vsock is in the kernel so i've removed it as well as vmsync in dkms.conf. Afterwards build went fine on 3.11.4-1-ARCH :)
I've attached my current build package. It would be really nice if someone could point out what causes the error.
Here's what I did after installing the package:
dkms add open-vm-tools/2013.09.16
dkms autoinstall -k `uname -r`
modprobe vmhgfs
I wanted to let you know I was having the same problem and just managed to get it working.
I switched to the 3.10.18-lts kernel in the hope that the dkms install would work with the "older" kernel but it did not.
I removed all modules from dkms.conf except vmhgfs and it built, but I got the same error as you when trying to load the vmhgfs module using modprobe.
I downloaded the vmware-tools-patches package from the AUR, but I only ended up using one patch, vmblock.3.10.patch. Building open-vm-tools and open-vm-tools-dkms with this patch and a modified dkms.conf that included only vmblock and vmhgfs got the file sharing working for me. My shares now show up in /mnt/hgfs.
So it seems that the file sharing depends on vmblock since it's inclusion got things working despite not applying any patches to vmhgfs. I noticed in your dkms.conf that you did not include vmblock.
1. I noticed yesterday that my file sharing only works when I have mnt-hgfs.automount enabled as described in the archwiki for installing arch linux in vmware.
2. You are using a different kernel and more patches than I.
I realize Dominik stated above that he got it working with 3.11.4. I cannot comment on that since I have not tried it and don't plan too. I'm quite happy to be on the 3.10.18-lts kernel so I don't have to redo this with every minor kernel update. I also changed packman.conf to ignore open-vm-tools so I don't inadvertantly break this when doing a system update.
I have attached the PKGBUILD and dkms.conf.patch (which is from my src directory) which I used to compile open-vm-tools for lts-3.10. This PKGBUILD expects vmblock.3.10.patch to be in the src directory as well.
Hope this helps.
dkms.conf.patch (1.6 KiB)
My best guess is that this is a bug when calling ./configure with --without-x. The Makefile only builds vmware-user-suid-wrapper if HAVE_X11 is set. However, a couple of the other packages need to reference one of the files it builds. Has anyone else seen this work without X11 for kernel 3.10-lts?
sudo mount -t vmhgfs .host:/Users/joe /mnt/shared
I get: Error: cannot mount filesystem: No such device.
1. Install linux-lts 3.10 with pacman, followed wiki instructions for that one
2. Downloaded & unpacked source of the vm-open-tools package from the Arch repository
3. Pulled in vmblock.3.10.patch from https://github.com/rasa/vmware-tools-patches
4. Pulled in dkms.conf.patch attached by @jwbwater above
5. Add patches to PKGBUILD along with md5sums; apply in prepare()
At this point, if you aren't using X11 (like me) you'll need to add --without-x & --disable-multimon to ./configure in the build() function of PKGBUILD; you'll also want to comment out the lines involving vmware-user.desktop & vmware-user-suid-wrapper in the package_open-vm-tools() function of PKGBUILD.
6. Build the package with makepkg -rs, go grab coffee & then install the resulting archive with pacman -U
7. Follow the wiki instructions at https://wiki.archlinux.org/index.php/Installing_Arch_Linux_in_VMware#Installing_Open-VM-Tools for the remainder of your journey
Once you're done make sure you load the vmhgfs module with `modprobe vmhgfs`. You should now be able to setup shares using the VMware GUI!