This is a port of the [open-vm-tools](https://github.com/vmware/open-vm-tools) implementation of VMware Tools to the [Synology DSM](https://www.synology.com/en-global/dsm) platform.
Here you will find ready-built binary installable `.spk`-packages for `Synology DSM`, together with the necessary sources, should you choose to build it yourself.
**Read this in other languages: | [English](README.md) |**
## open-vm-tools
`open-vm-tools` is a set of services and modules that enable several features in `VMware` products for better management of, and seamless user interactions with, guest operating systems.
Specifically, this port enables interaction with a virtualised `Synology DSM` running as a `VMware` guest VM. A typical host runs the `VMware ESXi` hypervisor.
`open-vm-tools` is open source software released under `GPL v2` and `GPL v2` compatible licenses.
More information can be found at the official [open-vm-tools source repository](https://github.com/vmware/open-vm-tools).
## Synology DSM Package (.spk) Files
`.spk`-packages are found under the Release section. SPK releases track `open-vm-tools` versions from the upstream project.
`[Arch]` is the CPU architecture supported by the package. Use the correct one that matches the intended `Synology` hardware model. This can be found in the official [Synology knowledge base](https://www.synology.com/en-global/knowledgebase/DSM/tutorial/Compatibility_Peripherals/What_kind_of_CPU_does_my_NAS_have).
`[DSM ver]` is the minimum `Synology DSM` version supported by the package.
`[open-vm-tools ver]` is the `open-vm-tools` version matching the upstream releases.
`[build]` is the incremental build number. Get the latest available to benefit from more recent patches built from upstream hotfixes.
For example, to install `open-vm-tools 11.2.5` on a `Synology NAS` model `DS3615xs` (Package Arch: `Bromolow`) running `DSM 6.2`, download a package file named `open-vm-tools_bromolow-6.2_11.2.5-xx.spk` which supports `DSM` versions `6.1` and above.
## Build Tooling
Builds are created using the cross-compilation framework provided by the [spksrc project](https://github.com/SynoCommunity/spksrc) from SynoCommunity.
`spksrc` is open source software released under the `BSD` license.
More information, including instructions to build this and many other projects relying on `spksrc`, can be found at the official [SynoCommunity/spksrc source repository](https://github.com/SynoCommunity/spksrc).
## Compiling
The release builds provided here were compiled by using an `Ubuntu Desktop 20.04 LTS` VM on a `VMware Workstation Player 16` type 2 hypervisor.
If you want to compile `open-vm-tools` for `Synology DSM` by yourself, do the following on a `Ubuntu/Debian` (or similiar) system, according to the following example (`open-vm-tools 11.5.2` and `apollolake/DSM 6.2` architecture):
**1.** Download the desired official [open-vm-tools release](https://github.com/vmware/open-vm-tools/releases/):
**7.** Edit the following file which holds the according checksum files and replace all values with the previously generated checksums from `~/tmp.txt`:
**9.** Edit the following file and customize the value for the variable `SPK_VERS` and, if you want (optional), also for the variables `MAINTAINER` and `CHANGELOG`:
`mv: cannot stat '/spksrc/spk/open-vm-tools/work-apollolake-6.2/install/var/packages/open-vm-tools/target/etc/vmware-tools/vm-support': No such file or directory`