1.安裝libvmi:
安裝介紹請見 LibVMIInstallation
下載libvmi,解壓運行:
# ./autogen.sh
提示以下錯誤:
which: no libtoolize in (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin) which: no glibtoolize in (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
通過運行 yum search libtool,查看有沒有跟關鍵字 libtool 相關的安裝包,查看結果,發現有這個包,就安裝:yum install libtool
之后執行 ./configure時,會提示找不到yacc,找不到flex,安裝之:
yum install byacc
yum install flex
之后再 ./configure 出現錯誤:
checking for GLIB... configure: error: Package requirements (glib-2.0 >= 2.16) were not met:
No package 'glib-2.0' found
安裝glib2:
yum install glib2-devel
之后再 ./configure 出現錯誤:
checking for CHECK... configure: error: Package requirements (check >= 0.9.4) were not met:
安裝check:
yum install check-devel
繼續運行 ./configure
輸出如下:
Host system type: x86_64-unknown-linux-gnu Build system type: x86_64-unknown-linux-gnu Installation prefix: /usr/local Feature | Option | Reason -------------|-------------------------|---------------------------- Xen Support | --enable-xen=no | missing xenstore Xen Events | --enable-xen-events=no | no KVM Support | --enable-kvm=no | libvirt missing File Support | --enable-file=yes | yes -------------|-------------------------|---------------------------- Tools | Option | Reason -------------|-------------------------|---------------------------- VMIFS | --enable-vmifs=no | FUSE library missing (libfuse-dev)
可以看到由於缺失libvirt,所以導致libvmi還不能支持KVM
安裝libvirt,按照提示 kvm-support,為了讓libvirt支持QMP,需要從源碼安裝libvirt,而且要先安裝好 yajl-devel
2.安裝libvirt
從libvirt官網,下載libvirt的源碼
wget http://libvirt.org/sources/libvirt-1.0.3.tar.gz
解壓后,運行
./autogen.sh --system --enable-compile-warnings=error
有錯,提示:
./bootstrap: Error: 'python-config' not found
安裝python開發包:yum install python-dev
再次運行
./autogen.sh --system --enable-compile-warnings=error
有錯,提示:
checking libxml2 xml2-config >= 2.6.0 ... configure: error: Could not find libxml2 anywhere (see config.log for details).
同理,安裝以下的軟件包:
libxml2-devel device-mapper-devel libpciaccess-devel libnl-devel
安裝完成
如果您看了本篇博客,覺得對您有所收獲,請點擊右下角的“推薦”,讓更多人看到!
資助Jack47寫作,打賞一個雞蛋灌餅錢吧

微信打賞

支付寶打賞