How to autostart openstack instance or VM

How to autostart openstack instance or VM

Configuring Instances Or VM to Start Automatically in Openstack. just find resume_guests_state_on_host_boot property and update true like resume_guests_state_on_host_boot=true  openstack cloud, openstack instance, autostart vm, nova compute
Configuring Instances to Start Automatically in OpenStack

Open the nova.conf file & find resume_guests_state_on_host_boot property
vi /etc/nova/nova.conf
# resume_guests_state_on_host_boot=false
# Set the value of the property to true:

resume_guests_state_on_host_boot=true

os-resume.png

systemctl restart openstack-nova-compute
Method 2:

You can Set the 'autostart' flag so the vm/domain is started upon boot.

You can use virsh command just type virsh on terminal & get help for all available option
To list all available domain
virsh
os-virsh.png

To Domain list.
virsh domstats
os-varsh-domain.png

virsh net-list
os-rusume1.png

Here is no auto restart VM found

Set  'autostart' flag
virsh autostart instance-00000001

For autostart, you need to use available KVM functionality.


Part 1: OpenStack Mitaka 5 installation in CentOS 7

Part 2: Network Configuration in OpenStack

Part 3: Network & Router configuration using Dashboard

Part 4: Create Project, Image, Volume & Instance

Part 5: Instance Snapshot & Boot from Volume

Part 6: Autostart OpenStack Instance Setting

Part 7: Extend Volume Size
Previous
Next Post »