This article explains to install Acronis software on Linux systems without installing packages required for compiling SnapAPI module on every machine. Instead, it's possible to install Acronis agent on a test machine and distribute precompiled module over your systems.
Solution
On the source machine:
1. Build SnapAPI modules:
- Ensure your source machine has exactly same kernel version as target system and has all necessary packages installed:
Acronis Backup 11.7
Acronis Cyber Backup 12/12.5 - Install the agent (for version 11.7 see this link) and build SnapAPI on the source system:
dkms build -m snapapi26 -v <SNAPAPI_VERSION>
(refer to Legend at the end of the article)
2. Make an archive (tarball) with built modules:
dkms mktarball -m snapapi26 -v <SNAPAPI_VERSION> --archive=snapapi26-<SNAPAPI_VERSION>.tar.gz
3. Copy the tarball to target system.
In case you don't have system with exact same kernel version as target machine:
1. Make sure that you have gcc on a source system with the same version as on target system:
Acronis Backup 11.7
Acronis Cyber Backup 12/12.5
2. Install kernel sources that 100% correspond to the kernel on a target system.
3. Build modules:
dkms build -m snapapi26 -v <SNAPAPI_VERSION> -k`uname -r` --arch `uname -m` --kernelsourcedir=<KERNEL_SOURCES_DIR>
4. Make an archive (tarball) with built modules:
dkms mktarball -m snapapi26 -v <SNAPAPI_VERSION> --archive=snapapi26-<SNAPAPI_VERSION>.tar.gz
5. Copy the tarball to target systems.
On the target machine:
1. Install Acronis software and decline building kernel modules when prompted.
2. Install modules prebuilt as described in the source machine section:
dkms ldtarball --archive=<TARBALL_LOCATION>/snapapi26-<SNAPAPI_VERSION>.tar.gz
dkms install -m snapapi26 -v <SNAPAPI_VERSION>
3. Re/start acronis services (acronis_mms, acronis_agent):
/etc/init.d/acronis_mms restart
If systemd is used then MMS should be restarted using the following command:
systemctl restart acronis_mms
Make sure that software works correctly.
Legend:
<SNAPAPI_VERSION> - is a version of snapapi modules (see in /usr/src/ )
<KERNEL_SOURCES_DIR> - directory with a sources for KERNEL_VERSION
<TARBALL_LOCATION >- directory that contains tarball with pre-built modules