Running mig-agent on the Host
- Download virtCCA-SDK and compile and configure mig-agent.
- Pull the master branch code of the organization repository.
git clone https://atomgit.com/openeuler/virtCCA_sdk.git --depth 10
- Compile mig-agent.
cd virtCCA_sdk/virtcca-mig-agent make
- Deploy certificates under the migration node directory /etc/virtcca-mig/, including the Certificate Authority (CA) certificate, server node certificate signed by the CA certificate, and server node certificate key.
ls /etc/virtcca-mig/ ca.crt mig.crt mig.key
- Pull the master branch code of the organization repository.
- Run mig-agent.
- Run mig-agent on the source server and specify the IP address of the node to be migrated. You can use the -a parameter to specify the core range to which mig-agent is bound. At least 16 cores must be provided. If no core is provided, cores 0 to 15 are bound by default.
./mig-agent -c {dst_ip} -a 1-16 - Run mig-agent on the destination server and specify the listening IP address.
./mig-agent -s {dst_ip} -a 1-16
If you run mig-agent directly on the server, migcvm must be destroyed. The two migration modes are mutually exclusive: either running migcvm-agent on migcvm, or running mig-agent directly on the server.
- Run mig-agent on the source server and specify the IP address of the node to be migrated. You can use the -a parameter to specify the core range to which mig-agent is bound. At least 16 cores must be provided. If no core is provided, cores 0 to 15 are bound by default.
Parent topic: Enabling Live cVM Migration