To move VMmanager from one server to another you need to perform following steps:
- Import VMmanager data.
- Import the domain name if it assigned to the source server.
- Change the license token
Step 1. Import VMmanager data
- On the target server:
- Install VMmanager. Learn more in the article Installation.
-
Suspend VMmanager and delete the containers:
vm down
-
Delete the data created by the installer:
rm -rf /opt/ispsystem/vm/mysql /opt/ispsystem/vm/clickhouse /opt/ispsystem/vm/config.json
- Check that the nodes and virtual machines of the source server are accessible from the target server. Edit the firewall configuration if needed.
-
On the source server:
-
Stop VMmanager and delete its docker containers:
vm down
-
Move the directories /opt/ispsystem/vm/mysql/, /opt/ispsystem/vm/telegram-srv/, /opt/ispsystem/vm/clickhouse/ and the file /opt/ispsystem/vm/config.json to the target server. For example:
Move the data using rsyncrsync -avzP /opt/ispsystem/vm/{mysql,clickhouse,config.json} user@1.2.3.4:/opt/ispsystem/vm/
DetailsDetailsNotersync must be installed both on the source and target servers. -
Stop and deactivate VMmanager service:
systemctl stop vm
systemctl disable vm
-
-
Start VMmanager on the target server:
vm start
- If the migration was successful, remove the platform from the source server:
-
Stop VMmanager service and disable it:
systemctl stop vm.service
systemctl disable vm.service
-
Delete the information about the platform operation:
rm /opt/ispsystem/vm -rf
-
Remove the installed docker images and containers:
docker system prune -a -f
-
Remove Docker software:
AlmaLinux, CentOS, RED OSyum remove docker-ce docker-ce-cli docker-ce-rootless-extras containerd.io
Ubnutu, Astra Linuxapt remove docker-ce docker-ce-cli docker-ce-rootless-extras containerd.io
-
Step 2. Move the domain name
- Edit the A-record: change the IP address of the source server into the IP of the target one.
- If an SSL certificate is connected to the domain, copy its files from the source server to the target one.
Step 3. Change the license token
When moving the platform to the new server, you need to recreate the license token. If you purchased a license from ISPsystem, change the Token value for your license in eu.ispsystem.com client area.
To update your license token information:
- Connect to VMmanager via SSH protocol with superuser permission (the default level is root).
-
Delete all files from the /opt/ispsystem/license/ directory except machine_id:
find /opt/ispsystem/license/ -type f -not -name 'machine_id' -delete
-
In VMmanager interface, go to → System information.
- In the License token field enter the value of the license token.
- Click the Activate button.