kvm 虚机环境碰到的两个小坑

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软件,

然后重新启动

大功告成

猜你喜欢

转载自www.cnblogs.com/cnmumian/p/10716235.html
KvM