解决openstack虚拟机迁移ssh权限问题

出错日志:

Unexpected error while running command.\nCommand: ssh 172.16.112.73 mkdir -p /var/lib/nova/instances/bbd76d56-e150-412a-9ae7-e244172f31a3\nExit code: 1\nStdout: \'\'\nStderr: "Warning: Permanently added \'172.16.112.73\' (RSA) to the list of known hosts.\\r\\n"\n'

解决ssh权限问题:

#usermod -s /bin/bash nova
#su nova
bash-4.1$ mkdir -p /var/lib/nova/.ssh
bash-4.1$ exit

#cp /root/.ssh/* /var/lib/nova/.ssh/

也可以自己生成密钥文件

你可能感兴趣的:(openstack)