How to add a new type of virtio back-end driver in libvirt(or Virt-Manager)?

不羁岁月 提交于 2019-12-06 10:28:15

问题


I've made a new back-end driver for QEMU-KVM and I'd like it to be loaded for the guest OS. I'm using Virt-Manager to launch QEMU-KVM but I can't make my back-end driver loaded and ready to be used by guest OS.

I've tried to add the following item in DOMXML for the guest OS.

<controller type='virtio-mydevice' index='0'>
</controller>

But the virsh doesn't accept the item by telling the following error.

error: internal error Unknown controller type 'virtio-mydevice'

Is there any guide-line to meet this purpose?


回答1:


I've just got the answer myself. Once you've added a new virtio back-end driver, the next thing you have to do is to add an item in QEMU option by editing qemu-option.hx. You can add your own QEMU option to load the virtio back-end driver, and virsh recognize the option once you add an option in qemu-option.hx, make and install the QEMU again.



来源:https://stackoverflow.com/questions/29158244/how-to-add-a-new-type-of-virtio-back-end-driver-in-libvirtor-virt-manager

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!