qemu 启动基于vhost-user disk虚拟机 , 报错
1
| (process:96671): GLib-WARNING **: 15:17:23.577: gmem.c:489: custom memory allocation vtable not supported
|
启动命令
1 2 3 4 5 6 7
| qemu-system-x86_64 \ --enable-kvm \ -cpu host -smp 8,sockets=8,cores=1,threads=1 \ -m 2G -object memory-backend-file,id=mem0,size=2G,mem-path=/dev/hugepages,share=on -numa node,memdev=mem0 \ -chardev socket,id=spdk_vhost_scsi0,path=/etc/libvirt/qemu/spdk/vhost.0 \ -device vhost-user-scsi-pci,id=scsi0,chardev=spdk_vhost_scsi0 \ -vnc 10.224.130.52:1
|
环境
1 2
| qemu-kvm-ev-2.12.0-44.1.el7_8.1.x86_64 libvirt-client-4.5.0-1.el7.centos.x86_64
|
经过谷歌搜索后,发现应该是qemu版本的问题,当前环境qemu的版本为2.0
https://bugzilla.redhat.com/show_bug.cgi?id=1594304 显示的结果来看,应该是bug问题。建议升级qemu版本。