CData Virtuality Server as a Service
Depending on your Linux distribution, please follow the installation steps in the corresponding section below.
By default, CData Virtuality Server comes with an embedded PostgreSQL database for internal configuration. If your operations require an external PostgreSQL database, this is also possible.
Please see our Best Practices Guide regarding backups and clean-ups for all installations.
RPM-based Distributions
If you are using an RPM-based distribution (such as RHEL, CentOS, or Amazon Linux), please obtain the RPM provided by CData Virtuality, install it, enable, and start the service using the following commands:
rpm -i <release archive>.rpm
sudo systemctl enable datavirtuality.service
sudo systemctl start datavirtuality.service
Debian-based Distributions
If your Linux distribution is based on Debian (such as Ubuntu, Linux Mint, or Kali Linux), you can use the DEB package and this command to install it:
sudo dpkg -i dvserver-RELEASE_<version>.deb
To remove the package but keep the manually updated configurations, use the following command:
sudo dpkg -r datavirtuality
For removing the package and all its configurations use:
sudo dpkg --purge datavirtuality
Other Distributions
If you have some other distribution, please follow the instructions below.
User Account, Directories, and Permissions
In most cases, the server is supposed to be running permanently as a background service. Due to security considerations, this requires using an extra user account.
So, first of all, create a special user account using these commands:
groupadd -f -r datavirtuality
useradd -r -g datavirtuality -d /opt/datavirtuality -s /bin/bash -c "Data Virtuality system user" datavirtuality
Then, create the installation directory and change its owner:
mkdir /opt/datavirtuality
chown -R datavirtuality:datavirtuality /opt/datavirtuality
Go to the new directory, download the CData Virtuality Server, and unpack it:
cd /opt/datavirtuality
wget "<insert provided download URL>"
unzip <name of downloaded file>
chown -R datavirtuality:datavirtuality dvserver
CData Virtuality Service Setup
Please download the unit file and save it as /etc/systemd/system/datavirtuality.service: datavirtuality.service.
To install the service, use the following commands:
sudo systemctl daemon-reload
sudo systemctl enable datavirtuality.service
sudo systemctl start datavirtuality.service
See Also
Launching the Data Virtuality AMI on AWS if you plan to launch CData Virtuality on your AWS account
Backup and High-Availability Options on AWS for two possible solutions to achieve high availability or prepare for a disaster recovery scenario