[libvirt] Uknown OS typehvm

Daniel P. Berrange berrange at redhat.com
Mon Sep 28 11:44:50 UTC 2009


On Sun, Sep 27, 2009 at 08:43:24PM +0200, Fred Leeflang wrote:
> Hello,
> 
> I've had an older version of libvirtd/qemu running on Debian Lenny and had
> defined 4 virtual servers.
> I have the kvm and kvm_intel modules loaded (also compiled from source). I
> copied over my 4 config
> files from /etc/libvirt/qemu to /usr/local/etc/libvirt/qemu
> 
> Now when I start up libvirtd -v:
> 
> omega:~# libvirtd -v
> 20:17:38.877: warning : qemudStartup:566 : Unable to create cgroup for
> driver: No such device or address
> libvir: Domain Config error : unknown OS type hvm
> libvir: Domain Config error : unknown OS type hvm
> libvir: Domain Config error : unknown OS type hvm
> libvir: Domain Config error : unknown OS type hvm
> 
> I'm trying to make sense out of the config files at this point but not very
> successful at it. I googled around
> a bit to see if others had this error message but most of the ones I found
> relate to not having the kernel
> modules loaded, which is visible in the 'virsh capabilities' output. Mine
> shows:
> 
> fredl at omega:~$ which virsh
> /usr/local/bin/virsh
> fredl at omega:~$ virsh capabilities
> <capabilities>
> 
>   <host>
>     <cpu>
>       <arch>x86_64</arch>
>     </cpu>
>     <migration_features>
>       <live/>
>       <uri_transports>
>         <uri_transport>tcp</uri_transport>
>       </uri_transports>
>     </migration_features>
>   </host>
> 
> </capabilities>

This doesn't list any <guest> sections, so that says it has not found
any 'qemu' or 'qemu-system-*' or 'qemu-kvm' or 'kvm' binaries in /usr/bin.


> I'm guessing that's the problem and I realized that in the Debian package
> the qemu binary is named 'kvm' (may be a symlink) while mine's in
> 
> -rwxr-xr-x 1 root staff 2286848 2009-09-26 19:31
> /usr/local/bin/qemu-system-x86_64

There's problem - you need them in /usr/bin


Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|




More information about the libvir-list mailing list