Custom Search

Friday, March 8, 2013

How to Compile and Install libvirt 1.0.0 on Ubuntu 12.10

1)
Download the libvirt tarball from 
http://libvirt.org/sources/
http://libvirt.org/sources/libvirt-1.0.0.tar.gz

2)
Extract the tarball


3)
Install dependencies
#sudo apt-get install gcc make pkg-config libxml2-dev libgnutls-dev libdevmapper-dev libcurl4-gnutls-dev python-dev libpciaccess-dev libxen-dev libnl-dev libyajl-dev
You can omit the libcurl4-gnutls-dev package if you don’t want ESX support.

4)
run the configure command.
#./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --with-esx=yes --with-xen=yes
if you need Xen support, you’ll need to add --with-xen=yes to the command.

5)
#sudo make
#sudo make install

6)
Verify that everything seems to be working as expected.
a)
restart libvirt 
#sudo initctl stop libvirt-bin
#sudo initctl start libvirt-bin

7)
Verify Version
#virsh --version
#libvirtd --version
to verify that you’re running libvirt 1.0.0

No comments:

Post a Comment