Posts

Showing posts from September, 2017

How to autostart openstack instance or VM

Image
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 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   To Domain list.     virsh domstats virsh net-list Here is no auto restart VM found Set  'autostart' flag virsh autostart instance-00000001 For autostart you need to use available KVM functionality.

step by step extend volume size in openstack

Image
Openstack Extend Volume Step 1: View the current  volume groups by “pvs” command pvs /dev/loop0 is cinder-volumes lvm2, its 20 GB volume   Step 2: Increase the capacity of the volume group by creating a new partition             cd  /var/lib/cinder dd if=/dev/zero of=cinder-volumes1 bs=1 count=0 seek=50G Here: cinder-volumes = file name 50GB        = new volume size Step 3: File is associated to the loop device /dev/loop1 losetup /dev/loop1 cinder-volumes1 Step 4: Create partition using fdisk fdisk /dev/loop1 Create New Partition : Command (m for help): n Partition type:     p   primary (0 primary, 0 extended, 4 free) e   extended Select (default p): p Partition number (1-4, default 1): 1 First sector (2048-104857599, default 2048):      #Enter Using default value 2048 Last sector, +sectors or +size{K,M,G} (2048-104857599, default 104857599):  #Enter C...