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.
Recent Posts
- Stubbing class constants with rspec and Ruby
- Downloading All The Github Repositories
- Generating entropy in the cloud
- Disabling Firefox shortcuts on OS X
- Recreating the Opscode Chef validation key
- require-rubygems.overrides and gem2deb 0.2.2
- locale errors on debian
- Creating a Debian sid emi for Eucalyptus
- LVM errors with sbuild
- munin-cgi-graph with fcgid on ubuntu lucid
Archives
What I'm Doing...
- Sun and porchfilled bands (@ Somerville Porchfest w/ 14 others) http://t.co/adfUK54G 1 day ago
- Hooray Emma! #lesley2012 http://t.co/VDoaHVJQ 2 days ago
- @ScottMuc as in, the meatcloud. http://t.co/pyk67swq in reply to ScottMuc 3 days ago
- More updates...
Posting tweet...
Powered by Twitter Tools
Holy crap thank you. This saved my sanity.
Yeah,I met the same problem and then I found I forget to load the kvm module after restart the computer.
I owe you a beer…
Hi folks, just to add two cents. If you try to create a vm using a xml file from another server (generally with older virsh), you can get this error too. Solution:
1) Run command “virsh capabilities”
2) Based on virsh results, update two attributes on xml file: and
It worked for me.
Anyway, I owe you a beer too for insightful post.
Hello I get the following error returned when I use a perl script.
Unknown OSTYPE
Ubuntu 8.04.4 LTS
2.6.24-28-server
Love Ya! Josir.
I had no idea of such usefull command. And I sped several hours finding out what to put in the XML file.