This article covers transferring data and services from KUMA standalone to Kaspersky Next XDR Expert.
After the migration is complete, all services of KUMA standalone are reconnected to KUMA Core under Kaspersky Next XDR Expert, and then the services are automatically restarted. KUMA standalone Core is not modified during migration, but if any services were installed on the same host as the KUMA standalone Core, the KUMA standalone Core may become unavailable, since the binary files are replaced during the course of the procedure.
To perform the migration from KUMA standalone to Kaspersky Next XDR Expert, complete the following stages:
Preparing for migration
Before you perform the migration, follow the steps:
/api/v1/system/backup
request, and keep the token in a safe place. Later, you specify the new token to create a backup copy for KUMA standalone.ssh-copy-id -i /home/xdr/.ssh/id_rsa.pub <user>@<ip_kuma>
The preparing for migration stage is complete.
Creating a backup copy for KUMA standalone
Create a backup for KUMA standalone and keep the backup in a safe place. You will be able to restore the instance of KUMA standalone and repeat the migration all over again. Otherwise, in case of a failure, KUMA Core may be corrupted and you will not be able to perform the migration.
Before you create a backup, verify that KUMA Core in Kaspersky Next XDR Expert has network access to API ports of KUMA standalone services.
Create the backup file for KUMA standalone and upload it on the target host:
curl -sS -k "https://<KUMA_standalone_core_FQDN>:7223/api/v1/system/backup" -H "Authorization: Bearer $(cat standalone_token)" --output kuma_standalone_backup.tar.gz
Where standalone_token is the token that you previously generated in KUMA standalone.. Also, you can specify the token instead of $(cat standalone_token).
Preparing the inventory file for migration
Prepare the inventory file. In the inventory file, list all hosts that you use for services in KUMA standalone. The hosts must match in both inventory files: the one you used for KUMA standalone deployment and the one you are going to use for migration. If necessary, you can get the required information regarding hosts in KUMA standalone, in Resources → Active services section.
If you want to expand the infrastructure and deploy KUMA services while performing the migration, make sure that you specify the additional hosts in the inventory file, and that the designation of hosts that you listed for migration in the inventory file remains unchanged.
Path to the inventory file that you prepared is specified in the multinode.smp_param.yaml or singlenode.smp_param.yaml file in the inventory
parameter.
When preparing the inventory file, verify that you observe the following conditions:
kuma_utils
group of parameters, specify hosts with services. Also, in this group of parameters, if you want to expand the infrastructure along with the migration, you can specify new hosts where KUMA services are be deployed.kuma_core
section.all
group of parameters, avoid changing the ansible_connection
and ansible_user
variables, since the variables correspond to the user and the type of connection used for invocation image.kuma
group of parameters, the ansible_connection
and ansible_user
variables must correspond to the user who performs the installation on the remote hosts. For details about inventory file, users, and rights, refer to KUMA help.false
for the generate_etc_hosts
parameter or skip the generate_etc_hosts
parameter.Sample of the inventory.yaml with KUMA standalone services installed on a single host
Sample of the inventory.yaml with KUMA standalone services installed on multiple hosts.
Migration
To perform the migration:
kuma_backup_file
parameter. Specify the path to the transport archive with the Kaspersky Next XDR Expert components and the path to the prepared multinode.smp_param.yaml or singlenode.smp_param.yaml file, same as for initial installation../kdt apply -k <
path_to_transport_archive
> -i <
path_to_configuration_file
> --accept-eula -p --if kuma_backup_file=./<
kuma_standalone_backup
>.tar.gz
After migration is complete, all services connect to KUMA Core in Kaspersky Next XDR Expert and become available in KUMA Console under Resources → Active services.
If KUMA standalone Core was installed on an individual host, after you perform the migration, KUMA standalone Core maintains the option to address the services migrated to Kaspersky Next XDR Expert. In this case, service statuses are displayed and you are able to restart the services, change the services configuration, get the service log, and view the events. To avoid such case, use any of the following options:
./kdt invoke kuma --action resetServicesCert