Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.os.linux > #43314

Re: kvm kern module

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From "J.O. Aho" <user@example.net>
Newsgroups alt.os.linux
Subject Re: kvm kern module
Date Sun, 12 Mar 2017 09:08:17 +0100
Lines 58
Message-ID <eikdviF868gU1@mid.individual.net> (permalink)
References <oa1af6$7i7$1@dont-email.me> <eijbh3F2a35U1@mid.individual.net> <oa1tmf$2qr$1@dont-email.me>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 7bit
X-Trace individual.net lIeyGpRLM3TiiQJKeFKcVAEErnkZz/ZRy5CRzQdFCl0/YYzB3a
Cancel-Lock sha1:puPK8VPGRPZxkt2+vyrKmCpPJrs=
X-Enigmail-Draft-Status N1110
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0
In-Reply-To <oa1tmf$2qr$1@dont-email.me>
Xref csiph.com alt.os.linux:43314

Show key headers only | View raw


On 03/11/17 23:31, Bill Cunningham wrote:
> "J.O. Aho" <user@example.net> wrote in message 
> news:eijbh3F2a35U1@mid.individual.net...
>> On 03/11/17 18:03, Bill Cunningham wrote:
>>>  On my fedora version I try to run qemu and it says the kvm kernel module
>>> is mising. Well I try insmod kvm to load kvm.ko and that doesn't work. I
>>> tried modprobe kvm and that does it. So what is going on? Is kvm.ko not 
>>> on a
>>> list to be automatically loaded or something?
>>
>> What do you mean by not working? That qemu keeps on telling that kvm
>> kernel module still missing or that you get error when running
>> modprobe/insmod?
>>
>> It can be as simple as you need to load the other part of the kvm
>> module, which is CPU specific module kvm_amd or kvm_intel depending on
>> which CPU you have.
> 
> Mine is AMD
> 
> qemu-system-x86_64 -enable-kvm -m 1G -kernel ipxe ,
> 
> It says kvm not found and no kvm kernel module.
> 

You did run 'yum install @virtualization' on your F20?

You can also check that you still have the kernel modules installed in
your kernel by running the following command:

ls /lib/modules/`uname -r`/kernel/arch/x86/kvm

If you don't have the kernel modules, then reinstall the kernel. As far
as I know, at least kernel-3.11.10-301.fc20.x86_64.rpm has the two
needed kernel modules.

If you happen to find the kernel modules, then maybe you have
blacklisted them, take a look at /etc/modprobe.d/

Also using dmesg can give you some hints:
modprove kvm_amd ; dmesg | tail

then you will see why the modprobe failed, if there is something going
wrong when the system tries to load the kernel module, like the hardware
support is missing.

For AMD you need to have svm support for kvm, check it with the
following command:

grep --color svm /proc/cpuinfo

if no rows, no support for kvm. Also you may need to enable
virtualisation in the BIOS, so it's worth to take a look there too
before giving up.

-- 

 //Aho

Back to alt.os.linux | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

kvm kern module "Bill Cunningham" <nospam@nspam.invalid> - 2017-03-11 12:03 -0500
  Re: kvm kern module Marek Novotny <marek.novotny@marspolar.com> - 2017-03-11 11:46 -0600
    Re: kvm kern module "Bill Cunningham" <nospam@nspam.invalid> - 2017-03-11 13:42 -0500
      Re: kvm kern module "Bill Cunningham" <nospam@nspam.invalid> - 2017-03-11 13:43 -0500
      Re: kvm kern module Marek Novotny <marek.novotny@marspolar.com> - 2017-03-11 15:01 -0600
        Re: kvm kern module "Bill Cunningham" <nospam@nspam.invalid> - 2017-03-11 16:52 -0500
        Re: kvm kern module "Bill Cunningham" <nospam@nspam.invalid> - 2017-03-11 17:22 -0500
          Re: kvm kern module Marek Novotny <marek.novotny@marspolar.com> - 2017-03-11 17:02 -0600
            Re: kvm kern module "Bill Cunningham" <nospam@nspam.invalid> - 2017-03-12 14:43 -0500
              Re: kvm kern module Marek Novotny <marek.novotny@marspolar.com> - 2017-03-12 14:49 -0500
  Re: kvm kern module "J.O. Aho" <user@example.net> - 2017-03-11 23:20 +0100
    Re: kvm kern module "Bill Cunningham" <nospam@nspam.invalid> - 2017-03-11 17:31 -0500
      Re: kvm kern module "J.O. Aho" <user@example.net> - 2017-03-12 09:08 +0100
        Re: kvm kern module "Bill Cunningham" <nospam@nspam.invalid> - 2017-03-12 14:48 -0500
        Re: kvm kern module "Bill Cunningham" <nospam@nspam.invalid> - 2017-03-12 17:11 -0500
        Re: kvm kern module "Bill Cunningham" <nospam@nspam.invalid> - 2017-03-12 17:51 -0500
          Re: kvm kern module "J.O. Aho" <user@example.net> - 2017-03-13 07:13 +0100
            Re: kvm kern module "Bill Cunningham" <nospam@nspam.invalid> - 2017-03-13 12:53 -0500

csiph-web