KVM guest reports errors – How to troubleshoot or track it ? systemtap ?

I have seen reports saying that – under some scenarios, the KVM guest system reports I/O errors in its ‘dmesg’ against virtio block devices and also, some times it cause the filesystems inside the guest to go ‘READONLY’ mode. Tracking such issues are a bit difficult and its a pain. I believe we should make …

Read more

Complete guide to extend guest disk from backend, LVM and Filesystem inside KVM guest.

First of all this is my guest system layout. There is a disk called ‘vda’ where my guest filesystem resides. IN GUEST Two guest logical volumes ‘fedora-swap’ and ‘fedora-root’ are created inside guest physical volume vda. Discard ‘fedora-swap’ for now. The physical volume layout is shown below: Now guest image is on a file in …

Read more

How to build a virt-p2v ISO in fedora ( F18/F17) using virt-p2v-image-builder ?

Install ‘virt-p2v-image-builder’ package in your fedora system. I installed in fedora 18 . virt-p2v-image-builder-0.9.0-1.fc18.noarch   Now, run ‘virt-p2v-image-builder ‘ commmand as shown below [cc] [root]# virt-p2v-image-builder Package ql2200-firmware is obsoleted by linux-firmware, trying to install linux-firmware-20130418-0.1.gitb584174.fc18.noarch instead Package ql23xx-firmware is obsoleted by linux-firmware, trying to install linux-firmware-20130418-0.1.gitb584174.fc18.noarch instead Package ql2100-firmware is obsoleted by linux-firmware, trying …

Read more

What is Open Virtualization Format Or OVF ?

Open Virtualization Format (OVF) is an open-source standard for packaging and distributing  virtual machines (VM) and it is platform independent.. You can watch/consider OVF as a container or a package which contains OVF descriptor. This container/package can be used to port any VMs to any vendor specific virt setups which support OVF. OVF is basically …

Read more

How to share ‘a disk’ to more than one VM using libvirt? Or What ‘sharable’ flag do in libvirt ?

Libvirt provides support for ‘sharing a disk with mulitple VMs’, even virt-manager utililty has the support for it. How-ever there is a common misunderstanding that, once you enable ‘sharable’ it is done and you can concurrently write data to it. Please note that, the <shareable/> flag tells libvirt that the disk will be *concurrently* accessed …

Read more

Is it possible to do online resizing of guest block devices ( Or without shutdown ?)

Today I got this question, Is it possible to resize the guest block device without shutting down the guest? Or in another way, Is it possible to do online resizing of guest block devices ? The answer was ‘YES‘, it is possible with a switch called ‘blockresize’ of ‘virsh’ command : Below example would illustrate …

Read more

QMP ( qemu monitor protocol ) and Different ways of accessing it

The QEMU Monitor Protocol (QMP) is a JSON-based protocol which allows applications to communicate with a QEMU instance. Read more about QMP here :http://wiki.qemu.org/QMP Its a client server architecture where the data can be exchanged. The monitor protocol is really useful for debugging, experimenting and also useful for collecting statistics and for fetching data about …

Read more

Validate hypervisor driver capabilities using virt-host-validate in fedora

libvirt-client package provides a binary called ‘virt-host-validate’. This tool validates that the host is configured in a suitable way to run libvirt hypervisor drivers. If invoked without any arguments it will check support for all hypervisor drivers it is aware of. Optionally it can be given a particular   hypervisor type (‘qemu’ or ‘lxc’) to restrict …

Read more

‘lscpu’ command to check ‘virtualization’ support of CPU/processor

Somebody was asking me, how to know whether the cpu support ‘virtualization’ or not.  Till now I was answering , ‘look at ‘svm or vmx’ flag in /proc/cpuinfo. For Intel, it should show ‘vmx’ and for AMD it should show ‘svm’. But recently I have noticed a command called ‘lscpu’ which will list the specifications …

Read more

Red Hat’s KVM Hypervisor Achieves Top Virtualization Performance Results with IBM

Red Hat is excited to announce today that the Kernel-based Virtual Machine (KVM) hypervisor, which is incorporated in both Red Hat Enterprise Linux and Red Hat Enterprise Virtualization, has again achieved top performance results. This latest performance mark was achieved on the IBM® System x3850 X5 host server with Qlogic® QLE 256x Host Bus Adapters, …

Read more