[libvirt-users] The error for creating a new vm for kvm

I checked the capabilities. I do not know why the guest is only for vbox. <guest> <os_type>hvm</os_type> <arch name='i686'> <wordsize>32</wordsize> <domain type='vbox'> </domain> </arch> </guest> I want it run qemu-kvm. and when i run virsh define /etc/libvirt/qemu/demo.xml. It shows error: Failed to define domain from /etc/libvirt/qemu/demo.xml error: unknown OS type hvm Then I use virsh-install --prompt to install kvm guest, it shows error: libvirtError: this function is not supported by the connection driver: virConnectNumOfDefinedStoragePools I really do not know how to do, please help me, thanks. -- Have a nice day! Qian

Hi Qian, I encountered exactly same problem. I found out that I didnot have qemu installed. Please check that you have qemu-kvm installed by running "apt-get install qemu-kvm" on debian! Thanks, Saurabh Deochake NTT DATA OSS Center. On Sun, Aug 25, 2013 at 10:20 PM, Qian Feng <qianfeng04161001@gmail.com>wrote:
I checked the capabilities. I do not know why the guest is only for vbox. <guest> <os_type>hvm</os_type> <arch name='i686'> <wordsize>32</wordsize> <domain type='vbox'> </domain> </arch> </guest>
I want it run qemu-kvm. and when i run virsh define /etc/libvirt/qemu/demo.xml. It shows error: Failed to define domain from /etc/libvirt/qemu/demo.xml error: unknown OS type hvm
Then I use virsh-install --prompt to install kvm guest, it shows error: libvirtError: this function is not supported by the connection driver: virConnectNumOfDefinedStoragePools
I really do not know how to do, please help me, thanks.
-- Have a nice day!
Qian
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

----- Original Message ----- | From: "Qian Feng" <qianfeng04161001@gmail.com> | To: libvirt-users@redhat.com | Sent: Sunday, August 25, 2013 10:20:03 PM | Subject: [libvirt-users] The error for creating a new vm for kvm | | I checked the capabilities. I do not know why the guest is only for vbox. | <guest> | <os_type>hvm</os_type> | <arch name='i686'> | <wordsize>32</wordsize> | <domain type='vbox'> | </domain> | </arch> | </guest> | | I want it run qemu-kvm. and when i run virsh define | /etc/libvirt/qemu/demo.xml. It shows error: Failed to define domain from | /etc/libvirt/qemu/demo.xml | error: unknown OS type hvm Any of the possibility listed here can contribute that error.. http://humblec.com/error-libvirt-unknown-os-type-hvm/ | | Then I use virsh-install --prompt to install kvm guest, it shows error: | libvirtError: this function is not supported by the connection driver: | virConnectNumOfDefinedStoragePools | | I really do not know how to do, please help me, thanks. | | -- | Have a nice day! | | Qian | | _______________________________________________ | libvirt-users mailing list | libvirt-users@redhat.com | https://www.redhat.com/mailman/listinfo/libvirt-users
participants (3)
-
Humble Chirammal
-
Qian Feng
-
Saurabh Deochake