10 Linkedin groups every Enterprise Architect should join: http://www.corso3.com/blog/bid/337069/10-LinkedIn-groups-every-Enterprise-Architect-should-join

Building an Openstack lab from scratch with PackStack on AWS and Google Cloud – Installing OpenStack via Packstack: https://www.ravellosystems.com/blog/openstack-packstack-installation-on-aws/#more-5830

When you boot standard Ubuntu Cloud image in the Openstack, no password or user is generated in the image by default. You can configure your Ubuntu Cloud image to set a static password or generate a password in the first boot of the image. You need to configure metadata service in the Openstack in order to use this.

Step 1:

Firstly, download your Ubuntu cloud image from this link: https://cloud-images.ubuntu.com/

Step 2:

Install guestfish in your server. This server probably will be your Glance image server. :

aptget install guestfish
Step 3:
In order to edit the image file open it with guestfish:
guestfish rw a preciseservercloudimgamd64disk1.img
root@ppm-dc-c3sv3-ju:~/sandbox# guestfish –rw -a precise-server-cloudimg-amd64-disk1.img
Step 4:
Now you will be taken to tje guestfish shell.
Welcome to guestfish, the guest filesystem shell for
editing virtual machine filesystems and disk images.

Type: ‘help’ for help on commands
‘man’ to read the manual
‘quit’ to quit the shell

Step 5:
><fs> run
Step 6:
><fs> list-filesystems
/dev/sda1: ext4
Step 7:
><fs> mount /dev/sda1 /
Step 8:
><fs> vi /etc/shadow
Blank the password for ubuntu user as follows
Step 9:
Now add this image to openstack glance and launch the instance.
Step 10:
You can log into the instance from the openstack horizon vnc console.
Once you log in as the ubuntu user, you can change the password with
the passwd command to one of your choice.

Here is a simple and useful URL about OpenStack APIs.


Using Libvirt to boot a VM.

Posted: December 30, 2014 in Uncategorized

My previous post was about how to boot a VM using KVM.

Let’s focus now on booting a VM using Libvirt.

The following example shows how to use the qemu-img command to create an empty image file. virt-install command to start up a virtual machine using that image file.

1. First create a .qcow2 image file


root@xyz:~# qemu-img create -f qcow2 /home/nazarite/ubuntu-14.04-server.qcow2 250G


2. Use net-start in virsh to start the default network


virsh # net-start default
Network default started


3. I am going to use virt-install tool to boot the virtual machine through libvirt and connect to the graphical console from a VNC client installed on your local machine.


root@xyz:~# virt-install –virt-type kvm –name ubuntu-14.04-server –ram 10240 –cdrom=/home/nazarite/ubuntu-14.04.1-server-amd64.iso –disk path=/home/ppmuser/ubuntu-14.04-server.qcow2,size=250,format=qcow2 –network network=default –graphics vnc,listen= –noautoconsole –os-type=linux –os-variant=ubuntutrusty

Starting install…
Creating domain…                                                                                                          |    0 B     00:00
Domain installation still in progress. You can reconnect to
the console to complete the installation process.


4. Use the ‘virsh vncdisplay vm-name’ command to get the VNC port number.

# virsh vncdisplay ubuntu-14.04-server

5. Connect to a vnc client like tightvnc with the I.P Addresss_of_host:

Using KVM to boot a VM

Posted: December 8, 2014 in Uncategorized

To create an image:

root@zion:~# qemu-img create -f qcow2 ubuntu.img 10G

To Install from the .iso image:

root@zion:~# qemu-system-x86_64 -enable-kvm -m 10000 -cdrom ubuntu-14.04.1-server-amd64.iso -drive file=ubuntu.img,if=virtio,index=0 -boot d -net nic -net user -nographic -vnc 10.x.x.178:1

Use a VNC client to log into the VNC session. Enter 10.x.x.178:1 to log into the VNC Session and complete the installation.

Once the installation is complete, login to the VM using any vnc client.

kvm -m 10000 -drive file=ubuntu.img,if=virtio,index=0 -boot c -net nic -net user -nographic -vnc :1

The Laws of Logical Thought

Posted: October 30, 2013 in Uncategorized

The 3 Laws of Logical thought are as follows

1) Law of identity:  A is A

A is A which means Everything is the same as itself; or a statement cannot not remain the same and change its truth value.

As per Aristotle is “that every thing is the same with itself and different from another”: A is A and not ~A.

2) Law of of non-contradiction:  NOT (A and not A)

Nothing can both exist and not exist at the same time and
in the same respect; or no statement is both true and false.

As per Aristotle “one cannot say of something that it is and that it is not in the same respect and at the same time”.

3. The law of non excluded middle Either (A or not A)

Something either exists or does not exist; or every statement
is either true or false.

As per Aristole “But on the other hand there cannot be an intermediate between contradictories, but of one subject we must either affirm or deny any one predicate. This is clear, in the first place, if we define what the true and the false are. To say of what is that it is not, or of what is not that it is, is false, while to say of what is that it is, and of what is not that it is not, is true; so that he who says of anything that it is, or that it is not, will say either what is true or what is false; …”