Prerequisites to Automatically Add KVM Host

Prerequisites to Automatically Add KVM Host

KB ID: 115210
Supported Operating Systems
Debian Linux(64-bit)
  1. Debian Linux 11
  2. Ubuntu 20.04
  3. Ubuntu 22.04
Redhat Linux(64-bit)
  1. CentOS 8 Core
  2. CentOS Stream 9
  3. AlmaLinux 8
  4. AlmaLinux 9
  5. Rocky Linux 9
System Requirements
  1. Memory: Minimum: 2 GB
  2. CPU: Minimum: Dual-Core Processor
Prerequisites to Automatically Add KVM Host 
1.User Account with Root Privileges:
Make sure the user account you specify to add the KVM Host has root privileges. If you add a non-root account, make sure to provide the root password.
2.User Account Credentials:
You can add the user account credentials using any of the following options:
i) Linux Account Option:
You can connect to the Linux machine directly using the Username and Password of the specified user account
ii) Linux Private Key Option:
You can connect to the Linux machine using the Identity/Pubkey authentication method.
If you have already generated public-private key pair, provide the Username, Private key, and Passphrase (if applicable) and save the Linux credentials (or) you can follow the steps below to generate the public-private key pair.
Step 1:  Generate a pair of keys - a public key and a private key using the command below:
ssh-key -t rsa
Step 2: Specify the location and the file name in the format .ppk or .pem to save the key. In the below examples, keys are generated in the .ppk format.
Example: /home/key.ppk
Step 3: Enter a passphrase or leave it empty. The private key is protected with a passphrase.
Step 4: Then, the private key (.ppk) and public key (.pub) will be saved to the specified location and file.
Example:  Your identification has been saved in /home/key.ppk
Your public key has been saved in /home/key.ppk.pub
Step 5: Change the file permissions of the private and public keys using the command below:
chmod 755 <private key file name>
Example: chmod 755 key.ppk
chmod 755 <public key file name>
Example: chmod 755 key.ppk.pub
Step 6: On the target KVM Host, Public-key needs to be kept in a special authorized_keys file containing a list of public keys using the command below:
ssh-copy-id -i <Public-key file name> <username>@<Host IP Address>
Example: ssh-copy-id -i key.ppk.pub admin@192.168.102.11
Step 7: Copy the Private Key file to the backup server using any FTP tools. You now have the Public key on the KVM Host and the Private key on the backup server.
3.Ports
Make sure the SSH Port is open allowing remote access to the machine. The default SSH port is 22. If you run the SSH server in a different port, make sure the port is accessible.
BBA installed on the KVM Host uses port 42005 to communicate with the Backup Server. Make sure your firewall rules allow port 42005 to be open for communication.
4.Internet Connection
Make sure the target KVM Host has internet access.