Compute Service (Nova) Architecture

API server Message queue Compute worker These basic categories describe the service architecture and information about the cloud controller. API server At the heart of the cloud framework is an API server, which makes command and control of the hypervisor, storage, and networking programmatically available to users. The API endpoints are basic HTTP web services which handle authentication, authorization, and basic command and control functions using various API interfaces under the Amazon, Rackspace, and related models. [Read More]

How to find the Swap usage of Guest VMs KVM

  • How to find the Swap usage of Virtual Machines from a Swapped KVM host
find /proc -maxdepth 2 -path "/proc/[0-9]*/status" -readable -exec awk -v FS=":" '{process[$1]=$2;sub(/^[ \t]+/,"",process[$1]);} END {if(process["VmSwap"] && process["VmSwap"] != "0 kB") printf "%10s %-30s %20s\n",process["Pid"],process["Name"],process["VmSwap"]}' '{}' \;|grep qemu
  • Output
     3529 qemu-system-x86                            15112 kB
      6362 qemu-system-x86                           151732 kB
     16441 qemu-system-x86                            32040 kB
     25338 qemu-system-x86                           267232 kB
     29052 qemu-system-x86                            66408 kB
     34747 qemu-system-x86                             7252 kB
     34876 qemu-system-x86                            26576 kB
     44797 qemu-system-x86                            11164 kB
     44838 qemu-system-x86                            77052 kB
     45507 qemu-system-x86                            13928 kB
     53475 qemu-system-x86                             8144 kB
     55232 qemu-system-x86                            22288 kB

How to install OpenVPN in Openstack Environment

Preface Use Case Deployment Setup Installation VDC Configuration Client Configuration Preface OpenVPN is an open-source commercial software that implements Virtual Private Network (VPN) techniques to create secure point-to-point or site-to-site connections in routed or bridged configurations and remote access facilities. It uses a custom security protocol that utilizes SSL/TLS for key exchange. It is capable of traversing network address translators (NATs) and firewalls. It was written by James Yonan and is published under the GNU General Public License. [Read More]

Migrate instances using Snapshot

Preface Taking snapshot Download the Image Create Image in the Destination Project Boot the new Instance Preface Cloud Administrators, or End users need to migrate instances from one Porject to another. Or, a Cloud to another cloud. There is multiple ways to achieve this. The easiest way to use snapshot feature and do the migration. Shutdown the Virtual Machine $ openstack server list +--------------------------------------+------------+--------+------------------------------+------------+ | ID | Name | Status | Networks | Image Name | +--------------------------------------+------------+--------+------------------------------+------------+ | c41f3074-c82a-4837-8673-fa7e9fea7e11 | myInstance | ACTIVE | private=10. [Read More]

Aggregate in Openstack

Preface List the available hypervisor list to add under this zone. Now, we are going to add hypervisor “compute1” under Ezone-IND Preface People may have little bit of confusion about Host Aggregates and Availabaility Zones in Nova. Here I am trying to explain how these things are worked together. All configuration options aer based on Icehouse release of Openstack. A host aggregate is a grouping of hosts with associated metadata. [Read More]

Create QCOW2 image for Openstack

Introduction Creating a new image is a step done outside of your OpenStack installation. You create the new image manually on your own system and then upload the image to your cloud. To create a new image, you will need the installation CD or DVD ISO file for the guest operating system. You will also need access to a virtualization tool. You can use KVM for this. Or, if you have a GUI desktop virtualization tool (such as, VMware Fusion or VirtualBox), you can use that instead. [Read More]

How to force openstack to resize on the same host

I want to force openstack to resize every instance on the same host if it is possible to do. How can I do that? Before that, why should I do that. Here, you have a use case, you are on a private cloud and running some critical virtual machines in a very limited resources. You should take a turn to do this. Add the following lines in /etc/nova/nova.conf allow_resize_to_same_host=True scheduler_default_filters=AllHostsFilter Restart Services [Read More]

Password Authenticaion, Cloud Images

Use case login using the pem key Elevate your privileges Create a new user Set the password for the new user Restart SSH Service Use case The cloud images bundled by various linux distributions have password authentication disabled by default for security reasons. The only possible way to login to an instance launched using one of these images is by specifying a security key during boot and using the key to ssh. [Read More]

Live Migration failure Cannot get interface MTU on ‘qbrXXXXXXXX-XX’

Some times, when you are doing a live migration , it will ended up with the following error in the nova-compute.log of hypervisor. The reason for this as follows. The Interface was removed by the user, but LIBVIRT doesnt acknowledged about this. But nova did. So, when nova initiates a live migration, libvirt is looking for this interface, which actually doesnt exists. virsh domiflist Interface Type Source Model MAC tap29b1bcde-c7 bridge qbr29b1bcde-c7 virtio fa:16:3e:79:06:2a tap887baa4b-2e bridge qbr887baa4b-2e virtio fa:16:3e:d8:e9:db At the same time [Read More]