This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| open_nebula_kvm_with_drbd [2020/02/23 13:10] – herwarth | open_nebula_kvm_with_drbd [2020/02/23 13:23] (current) – [Move front-end VM to new cluster] herwarth | ||
|---|---|---|---|
| Line 316: | Line 316: | ||
| onedatastore create images-ds.conf | onedatastore create images-ds.conf | ||
| </ | </ | ||
| - | ===== Configure oneadmin | + | ===== Configure oneadmin SSH ===== |
| + | < | ||
| + | su - oneadmin | ||
| + | </ | ||
| + | < | ||
| + | ssh-keygen | ||
| + | cat ~/ | ||
| + | chown oneadmin: | ||
| + | chmod 600 ~/ | ||
| + | </ | ||
| + | < | ||
| + | cat << EOT > ~/ | ||
| + | Host * | ||
| + | StrictHostKeyChecking no | ||
| + | ConnectTimeout 5 | ||
| + | UserKnownHostsFile /dev/null | ||
| + | EOT | ||
| + | chmod 600 ~/ | ||
| + | </ | ||
| + | Now we need to copy it to all nodes. Set a password on the oneadmin user on all nodes first. When done you can disable the password on the back-end nodes by using the following command on all back-end nodes: passwd -d oneadmin | ||
| + | < | ||
| + | scp -r / | ||
| + | </ | ||
| + | Check if you can login to all nodes as the oneadmin user. And do a reboot on the front-end node to make sure. | ||
| + | < | ||
| + | shutdown -r now | ||
| + | </ | ||
| + | ===== Move front-end VM to new cluster ===== | ||
| + | I created the VM on a laptop and now I want to move it to a back-end node. In this case I move it to server1 and do not want to see it in Open Nebula. | ||
| + | |||
| + | Shutdown the VM and copy the qcow2 file to / | ||
| + | |||
| + | Create a VM with virt-manager using the import exsisting volume. Make sure you connect it to the mgmt bridge. | ||
| + | |||
| + | Enable boot on startup and reboot your back-end server. The VM should start automatically. Check with virt-manager on that server. | ||