openstack 虚拟机实例迁移

 

10.20.1.181    nova-api  controller

10.20.1.182 nova-compute    compute1

10.20.1.183  nova-compute  compute2

 

实例迁移,需要nova用户在nova-compute 免密钥互通

10.20.1.182 上操作
修改成bash登录
[root@compute1 ~]# usermod -s /bin/bash nova
[root@compute1 ~]# passwd nova
[root@compute1 ~]# su - nova
-bash-4.2$  ssh-keygen -t rsa
-bash-4.2$  ssh-copy-id  nova@10.20.1.182
-bash-4.2$  ssh-copy-id  nova@10.20.1.183


10.20.1.183 上操作
修改成bash登录
[root@compute2 ~]# usermod -s /bin/bash nova
[root@compute2 ~]# passwd nova
[root@compute2 ~]# su - nova
-bash-4.2$  ssh-keygen -t rsa
-bash-4.2$  ssh-copy-id  nova@10.20.1.182
-bash-4.2$  ssh-copy-id  nova@10.20.1.183
 

 

 

 

 

 

 

 

主机变更成了 compute1 

 

posted @ 2022-07-13 14:40  fengjian1585  阅读(334)  评论(0编辑  收藏  举报