libvirt: unknown OS type hvm

It took me a little while to narrow this down. Building a kvm guest with vmbuilder via libvirt I was getting the error “unknown OS type hvm”. When I compared the output of ‘virsh capabilities’ on a good host and the one that wasn’t working, the later was missing the kvm hvm entries. When I checked out the init script for kvm, I realized the the kernel module wasn’t loaded and a quick check of dmesg confirmed that virtualization was disabled in the bios.

3 Responses to “libvirt: unknown OS type hvm”


  1. 1 Cory

    Holy crap thank you. This saved my sanity.

  2. 2 swliao

    Yeah,I met the same problem and then I found I forget to load the kvm module after restart the computer.

  3. 3 Roberto Aloi

    I owe you a beer…

Leave a Reply