Playing with KVM and OpenStack I wanted to create a custom Linux virtual machine template. The easiest way to do this is to first create a blank disk using the qemu-img command.

Here we specify the format as qcow2 with the -f switch, the path to where we want to create it, and the size by specifying 20G.

See the man page for qemu-img here

Once you have the disk created, you can then use the virt-install command to install an OS to the blank disk.

With the following command, we specify the amount of memory, hardware acceleration, name, path to the blank disk, what ISO file we want attached and console arguments so I can do the install via SSH session.

Without using the console specifications, you will not be able to fully boot the image, as it will hang at:

Not giving you much information as to what is going on :)

Once your image build is completed, you can then import the image into OpenStack using glance

You should be able to now see the image registered with Nova using the nova image list command.

Now you can use the nova boot command to create a VM from the image and start it.

31. July 2012 · Write a comment · Categories: PureFlex · Tags: , , , , ,

During our Lab workout today, we encountered a unique situation where the remote KVM would not function correctly on the Pure Flex Power Series P260 or P460 blades. Upon further digging, we found that for Power blades, the serial-over-LAN configuration must be disabled for the remote KVM to work.

Go to