To perform operations like live migration or resizing an instance between compute nodes in OpenStack, SSH key-based authentication must be configured between all the nodes. This ensures smooth communication for moving instance disks without encountering errors like "Permission denied." Follow these steps to configure SSH between compute nodes: Step 1: Obtain or Generate SSH Key Pair: On the first compute node, either use the existing SSH key pair located in /root/.ssh/id_rsa (private key) and /root/.ssh/id_rsa.pub (public key) , or generate a new key pair if none exists: # ssh-keygen -t rsa -b 2048 This will create a private key (id_rsa) and a public key (id_rsa.pub) in the .ssh directory. Step 2: Disable SELinux (Optional): If you are using SELinux, switch to permissive mode temporarily to avoid permission issues: # setenforce 0 Step 3: Enable Login for the nova User: Ensure that the nova user has shell access: # usermod -s /bin/bash nova Switch to the nova user...
The Linux Knowledge Hub