Use nova command on Openstack reinstall the virtual machine system

Requirements: a machine to automatically reload failed to handle manually.
Command: rebuild uuid glanceid id
Case IP: 10.14.45.83
1, first we need to find a machine to UUID
command: Nova List --all | grep 10.14.45.83
Use nova command on Openstack reinstall the virtual machine system
UUID: b2bbeac8-4c69-4a20-8d07-23f86c573f32

2, need to find the image ID of
the command: glance image-list
Use nova command on Openstack reinstall the virtual machine system

3, reinstall the image to the specified IP
command: Nova rebuild UUID glanceid
Use nova command on Openstack reinstall the virtual machine system
4, waiting for the completion of monitoring can
watch -n 1 'nova show b2bbeac8-4c69-4a20-8d07-23f86c573f32 | grep status'
Use nova command on Openstack reinstall the virtual machine system

5, testing, installation is successful
Use nova command on Openstack reinstall the virtual machine system

Guess you like

Origin blog.51cto.com/11620628/2430123