ubuntu12.04编译安装libvirt-1.2.0

1.安装0.9.8

sudo apt-get install libvirt-bin

 

2. 获取1.2.0的源代码

wget http://libvirt.org/sources/libvirt-1.2.0.tar.gz

tar zxvf libvirt-1.2.0.tar.gz

cd libvirt-1.2.0/

 

3. 安装依赖包

sudo apt-get install  libxml2-dev libdevmapper-dev python-dev  libnl-dev libgnutls-dev  pkg-config libpciaccess-dev libcurl4-gnutls-dev libcurl4-nss-dev libavahi-client-dev libavahi-common-dev libblkid-dev libnetcf-dev libiscsi-dev open-iscsi-utils open-iscsi libnl-3-dev  libnl-route-3-dev libhal-dev libattr1-dev libaudit-dev libfuse-dev libyajl-dev libnuma-dev

 

4.修改libnl版本号

pkg-config --modversion libnl-1

 

5. 配置(会覆盖0.9.8)

./configure --prefix=/usr --localstatedir=/var  --sysconfdir=/etc --with-avahi --with-blkid --with-curl --with-netcf --with-storage-iscsi --with-attr --with--audit --with-fuse --with-hal

 

6. 编译

make

 

7.安装

make install

 

8. 验证

libvirtd --version

virsh --version

 

你可能感兴趣的:(ubuntu,kvm)