1)當部署一個商用VA的時候,出現virsh version|grep "Using library" 返回錯誤,經過查看,發現里面有漢字,猜應該是這個原因導致無法檢索到libvirt庫。
[root@localhost ~]# virsh version
根據庫編譯:libvirt 4.5.0
使用庫:libvirt 4.5.0
使用的 API: QEMU 4.5.0
運行管理程序: QEMU 2.12.0
使用如下命令修改這個回顯:
#export LANG=en_US
修改后的顯示結果:
[root@localhost ~]# virsh version
Compiled against library: libvirt 4.5.0
Using library: libvirt 4.5.0
Using API: QEMU 4.5.0
Running hypervisor: QEMU 2.12.0
2)啟動虛機的時候出現 “custom memory allocation vtable not supported”錯誤
錯誤包含: GLib-WARNING **: 11:16:17.573: gmem.c:489: custom memory allocation vtable not supported
經過谷歌搜索后,發現應該是qemu版本的問題,當前環境qemu的版本為2.0
https://bugzilla.redhat.com/show_bug.cgi?id=1594304 顯示的結果來看,應該是bug問題。建議回退版本。
卸載之前的安裝包
#yum erase qemu*
重新安裝
#yum install qemu*
發現按后安裝的穩定版本為qemu 1.5.3
用virsh start <實例>啟動,發現報個別文件不存在。
經過分析判斷,重新部署VA軟件,
然后重新啟動
大功告成