Re: a (bad) kvm story from a plain user

Izik Eidus
2007-08-14T19:34:10Z

one easy way to check if the qemu binary you ran had kvm support at all
is:
run /usr/bin/qemu --help | grep kvm
if you see there something like: -no-kvm disable KVM hardware...
this is patched qemu with support to kvm.

after this run:
lsmod | grep kvm
and check if the kvm driver is loaded
if it is not do:
modprobe kvm-amd
if this fail please write the message it give you to this list.

after this try to run qemu again, and check if it say something like:
Could not initialize KVM, will disable KVM support

in that case if the module was loaded you probably dont have permission
to use it
easy way would be trying as root, or adding yourself to the group.

hope i helped you

On Tue, 2007-08-14 at 22:22 +0300, Slohm Gadaburi wrote:
> Hello list.
>
> I want to share my first kvm experience with you and ask for
> your advice.
>
> I run up-to-date Ubuntu 7.04 (kernel 2.6.20) on AMD processor.
>
> I did apt-get installed kvm (which gave me the kvm-amd.ko module),
> and qemu packages.
>
> I modprobed kvm-adm.ko with no hassle.
>
> and then I followed the HOWTO page on the kvm wiki -
> created an qemu image and booted off a cd for installing RH9.0
> (yeah, antique).
>
> But the installation was sooooo slow. about 3 hours !
>
> How can I know if the qemu I ran took advantage of the kvm module ?
>
> I ran /usr/bin/qemu as I didn't have /usr/local/kvm/bin/qemu like the HOWTO
> mentioned (as I didn't compiled the kvm bundle myself...).
>
> So maybe the qemu I ran was just plain qemu, without the kvm changes ?
>
> if so, then how could I have the kvm-changed qemu binaires ?
>
> I even tried to compile the kvm bundle myself (i took the one that
> is recommended for kernel 2.6.20, as the wiki says),
> but alas, the ./configure shouted I don't have gcc 3.x
> (which is indeed true as an up-to-date system today have gcc 4.x).
>
> so was there another way to compile the kvm bundle ?
>
> last question - the ./configure script has the option reflecting whether the
> kernel is patched or not. if i download the cutting edge rc3 kernel,
> should i add the --patched flag or not ?
>
> thank you
> hope u could help me
> slohm
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> kvm-devel mailing list
> kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/kvm-devel