lost and found ( for me ? )

Linux KVM : Build virt-manager from source code

Here’s an explanation of how to build virt-manager from source code.

I have already installed kvm , libvirtd and virt-manager via apt-get.
# kvm --version
QEMU emulator version 0.14.1 (qemu-kvm-0.14.1), Copyright (c) 2003-2008 Fabrice Bellard

# libvirtd --version
libvirtd (libvirt) 0.9.2

# tail -1 /etc/lsb-release

download the latest virt-manager (virt-manager-0.9.1.tar.gz) from http://virt-manager.org/download.html

build virt-manager
# tar xzvf virt-manager-0.9.1.tar.gz
# cd virt-manager-0.9.1/
# ./configure --prefix=/home/hattori/virt-manager
configure: Required virtinst:               0.600.1
configure: Default qemu user:               root
configure: Install TUI:                     yes
configure: Enable unsupported RHEL options: yes
configure: Preferred distros:               none
configure: Libvirt packages:                none
configure: KVM packages:                    none
configure: Default graphics:                vnc

# make
# make install

# /home/hattori/virt-manager/bin/virt-manager --version

start virt-manager 0.9.1
$ LANG=C /home/hattori/virt-manager/bin/virt-manager

nnn , error.

It seems that virtinst version is too old..
Error starting Virtual Machine Manager: virtinst version 0.600.0 is too old.

virt-manager requires the python-virtinst library version 0.600.1 or greater. This can be downloaded at:


Actually virtinsta I have installed via apt-get is 0.600.0
# LANG=C dpkg -l virtinst | tail -1
ii  virtinst                               0.600.0-1ubuntu1                             Programs to create and clone virtual machines

download virtinst 0.600.1 from http://virt-manager.org/download.html and build it.

build virtinst
# tar xzvf virtinst-0.600.1.tar.gz
# cd virtinst-0.600.1/

# python setup.py install
copying build/scripts-2.7/virt-clone -> /usr/local/bin
copying build/scripts-2.7/virt-install -> /usr/local/bin
copying build/scripts-2.7/virt-image -> /usr/local/bin
copying build/scripts-2.7/virt-convert -> /usr/local/bin

# virt-install --version

# which virt-install

start virt-manager again.
$ LANG=C /home/hattori/virt-manager/bin/virt-manager &

OK , I can start virt-manager 0.9.1

I can fly a VM via virt-manager 0.9.1.

I also confirmed that I could fly a VM via a virt-manager 0.9.0 which I had installed via apt-get.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.