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


Groups > alt.os.linux > #43298 > unrolled thread

kvm kern module

Started by"Bill Cunningham" <nospam@nspam.invalid>
First post2017-03-11 12:03 -0500
Last post2017-03-13 12:53 -0500
Articles 18 — 3 participants

Back to article view | Back to alt.os.linux


Contents

  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

#43298 — kvm kern module

From"Bill Cunningham" <nospam@nspam.invalid>
Date2017-03-11 12:03 -0500
Subjectkvm kern module
Message-ID<oa1af6$7i7$1@dont-email.me>
 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?

Bill

[toc] | [next] | [standalone]


#43300

FromMarek Novotny <marek.novotny@marspolar.com>
Date2017-03-11 11:46 -0600
Message-ID<xvadnXbXneRtqlnFnZ2dnUU7-fnNnZ2d@giganews.com>
In reply to#43298
On 2017-03-11, Bill Cunningham <nospam@nspam.invalid> 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?

Did you install it?

$ egrep '^flags.*(vmx|svm)' /proc/cpuinfo && su -c \
	"dnf group install with-optional virtualization"

$ su -c "systemctl start libvirtd"
$ su -c "systemctl enable libvirtd"

Check to make sure you are in the libvirt group...

$ grep $USER /etc/group

Check to see if the kernel object is loaded...

$ lsmod | grep kvm

-- 
Marek Novotný
https://github.com/marek-novotny

[toc] | [prev] | [next] | [standalone]


#43301

From"Bill Cunningham" <nospam@nspam.invalid>
Date2017-03-11 13:42 -0500
Message-ID<oa1g9b$nu$1@dont-email.me>
In reply to#43300
"Marek Novotny" <marek.novotny@marspolar.com> wrote in message 
news:xvadnXbXneRtqlnFnZ2dnUU7-fnNnZ2d@giganews.com...
> On 2017-03-11, Bill Cunningham <nospam@nspam.invalid> 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?
>
> Did you install it?
>
> $ egrep '^flags.*(vmx|svm)' /proc/cpuinfo && su -c \
> "dnf group install with-optional virtualization"
>
> $ su -c "systemctl start libvirtd"
> $ su -c "systemctl enable libvirtd"
>
> Check to make sure you are in the libvirt group...
>
> $ grep $USER /etc/group
>
> Check to see if the kernel object is loaded...
>
> $ lsmod | grep kvm

    Well I am root and I see in the list (I am using yum btw) libvirt and 
virt and I am not sure what they are for. I installed all the qemus I am 
thinking kvm works with it. Is libvirt kvm?

Bill

[toc] | [prev] | [next] | [standalone]


#43302

From"Bill Cunningham" <nospam@nspam.invalid>
Date2017-03-11 13:43 -0500
Message-ID<oa1gbj$1er$1@dont-email.me>
In reply to#43301
"Bill Cunningham" <nospam@nspam.invalid> wrote in message 
news:oa1g9b$nu$1@dont-email.me...
>
> "Marek Novotny" <marek.novotny@marspolar.com> wrote in message 
> news:xvadnXbXneRtqlnFnZ2dnUU7-fnNnZ2d@giganews.com...
>> On 2017-03-11, Bill Cunningham <nospam@nspam.invalid> 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?
>>
>> Did you install it?
>>
>> $ egrep '^flags.*(vmx|svm)' /proc/cpuinfo && su -c \
>> "dnf group install with-optional virtualization"
>>
>> $ su -c "systemctl start libvirtd"
>> $ su -c "systemctl enable libvirtd"
>>
>> Check to make sure you are in the libvirt group...
>>
>> $ grep $USER /etc/group
>>
>> Check to see if the kernel object is loaded...
>>
>> $ lsmod | grep kvm
>
>    Well I am root and I see in the list (I am using yum btw) libvirt and 
> virt and I am not sure what they are for. I installed all the qemus I am 
> thinking kvm works with it. Is libvirt kvm?

    Oh what I mean by "the list" is 'yum search virt'.

Bill

[toc] | [prev] | [next] | [standalone]


#43304

FromMarek Novotny <marek.novotny@marspolar.com>
Date2017-03-11 15:01 -0600
Message-ID<-sudnZcw4sdf-FnFnZ2dnUU7-N3NnZ2d@giganews.com>
In reply to#43301
On 2017-03-11, Bill Cunningham <nospam@nspam.invalid> wrote:
>
> "Marek Novotny" <marek.novotny@marspolar.com> wrote in message 
> news:xvadnXbXneRtqlnFnZ2dnUU7-fnNnZ2d@giganews.com...
>> On 2017-03-11, Bill Cunningham <nospam@nspam.invalid> 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?
>>
>> Did you install it?
>>
>> $ egrep '^flags.*(vmx|svm)' /proc/cpuinfo && su -c \
>> "dnf group install with-optional virtualization"
>>
>> $ su -c "systemctl start libvirtd"
>> $ su -c "systemctl enable libvirtd"
>>
>> Check to make sure you are in the libvirt group...
>>
>> $ grep $USER /etc/group
>>
>> Check to see if the kernel object is loaded...
>>
>> $ lsmod | grep kvm
>
>     Well I am root and I see in the list (I am using yum btw) libvirt and 
> virt and I am not sure what they are for. I installed all the qemus I am 
> thinking kvm works with it. Is libvirt kvm?

bring up a terminal and bang both of these out. Report back what you
see:

$ cat /etc/fedora-release 
$ cat /etc/issue

Also, this...

$ id -u

And this....

which virt-manager

And did you do everything I said up above? If not, copy and past those
into your terminal and do each of them. 

-- 
Marek Novotný
https://github.com/marek-novotny

[toc] | [prev] | [next] | [standalone]


#43306

From"Bill Cunningham" <nospam@nspam.invalid>
Date2017-03-11 16:52 -0500
Message-ID<oa1ref$ddp$1@dont-email.me>
In reply to#43304
"Marek Novotny" <marek.novotny@marspolar.com> wrote in message 
news:-sudnZcw4sdf-FnFnZ2dnUU7-N3NnZ2d@giganews.com...

[...]

> bring up a terminal and bang both of these out. Report back what you
> see:
>
> $ cat /etc/fedora-release
> $ cat /etc/issue
>
> Also, this...
>
> $ id -u
>
> And this....
>
> which virt-manager
>
> And did you do everything I said up above? If not, copy and past those
> into your terminal and do each of them.

    Ok well I am running an old F20. The last one before dnf was required 
and then became default. I also have a F23 here that I install but it's not 
up right now. With the old F20 I just use CLI and have no GUI support but 
qemu has ran a ipxe before in CLI. With the F23 I either upgrade to 24 or 
just use the GUI terminal and all with F23. F20 is so old I just use 
development libraries there. For gcc.

    id -u reports 0.
Now I'll use that egrep and see what you're looking for with the cpu. I 
manually install virt-manager and systemctl says libvirtd is running. Get 
right back.

Bill

[toc] | [prev] | [next] | [standalone]


#43310

From"Bill Cunningham" <nospam@nspam.invalid>
Date2017-03-11 17:22 -0500
Message-ID<oa1t59$tge$1@dont-email.me>
In reply to#43304
"Marek Novotny" <marek.novotny@marspolar.com> wrote in message 
news:-sudnZcw4sdf-FnFnZ2dnUU7-N3NnZ2d@giganews.com...
> On 2017-03-11, Bill Cunningham <nospam@nspam.invalid> wrote:
>>
>> "Marek Novotny" <marek.novotny@marspolar.com> wrote in message
>> news:xvadnXbXneRtqlnFnZ2dnUU7-fnNnZ2d@giganews.com...
>>> On 2017-03-11, Bill Cunningham <nospam@nspam.invalid> 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?
>>>
>>> Did you install it?
>>>
>>> $ egrep '^flags.*(vmx|svm)' /proc/cpuinfo && su -c \
>>> "dnf group install with-optional virtualization"
>>>
>>> $ su -c "systemctl start libvirtd"
>>> $ su -c "systemctl enable libvirtd"
>>>
>>> Check to make sure you are in the libvirt group...
>>>
>>> $ grep $USER /etc/group
>>>
>>> Check to see if the kernel object is loaded...
>>>
>>> $ lsmod | grep kvm
>>
>>     Well I am root and I see in the list (I am using yum btw) libvirt and
>> virt and I am not sure what they are for. I installed all the qemus I am
>> thinking kvm works with it. Is libvirt kvm?
>
> bring up a terminal and bang both of these out. Report back what you
> see:
>
> $ cat /etc/fedora-release
> $ cat /etc/issue
>
> Also, this...
>
> $ id -u
>
> And this....
>
> which virt-manager
>
> And did you do everything I said up above? If not, copy and past those
> into your terminal and do each of them.

    which says virt-manager is in bin
    I looked at the entire cpuinfo listing. Thre's no flag registers called 
vmx or svm listed.

dnf grouplist says the same as yum. And
qemu-system-x86_64 -enable-kvm -m 1G -kernel ipxe.lkrn

says there's no kvm or kvm module. I used modprobe to put the kvm.ko in. So 
something is missing.

Something also wanted GTK, well that's definately not there.

Humm

Bill

[toc] | [prev] | [next] | [standalone]


#43312

FromMarek Novotny <marek.novotny@marspolar.com>
Date2017-03-11 17:02 -0600
Message-ID<E-ednWOInaaOH1nFnZ2dnUU7-LednZ2d@giganews.com>
In reply to#43310
On 2017-03-11, Bill Cunningham <nospam@nspam.invalid> wrote:
>
> "Marek Novotny" <marek.novotny@marspolar.com> wrote in message 
> news:-sudnZcw4sdf-FnFnZ2dnUU7-N3NnZ2d@giganews.com...
>> On 2017-03-11, Bill Cunningham <nospam@nspam.invalid> wrote:
>>>
>>> "Marek Novotny" <marek.novotny@marspolar.com> wrote in message
>>> news:xvadnXbXneRtqlnFnZ2dnUU7-fnNnZ2d@giganews.com...
>>>> On 2017-03-11, Bill Cunningham <nospam@nspam.invalid> 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?
>>>>
>>>> Did you install it?
>>>>
>>>> $ egrep '^flags.*(vmx|svm)' /proc/cpuinfo && su -c \
>>>> "dnf group install with-optional virtualization"
>>>>
>>>> $ su -c "systemctl start libvirtd"
>>>> $ su -c "systemctl enable libvirtd"
>>>>
>>>> Check to make sure you are in the libvirt group...
>>>>
>>>> $ grep $USER /etc/group
>>>>
>>>> Check to see if the kernel object is loaded...
>>>>
>>>> $ lsmod | grep kvm
>>>
>>>     Well I am root and I see in the list (I am using yum btw) libvirt and
>>> virt and I am not sure what they are for. I installed all the qemus I am
>>> thinking kvm works with it. Is libvirt kvm?
>>
>> bring up a terminal and bang both of these out. Report back what you
>> see:
>>
>> $ cat /etc/fedora-release
>> $ cat /etc/issue
>>
>> Also, this...
>>
>> $ id -u
>>
>> And this....
>>
>> which virt-manager
>>
>> And did you do everything I said up above? If not, copy and past those
>> into your terminal and do each of them.
>
>     which says virt-manager is in bin
>     I looked at the entire cpuinfo listing. Thre's no flag registers called 
> vmx or svm listed.
>
> dnf grouplist says the same as yum. And
> qemu-system-x86_64 -enable-kvm -m 1G -kernel ipxe.lkrn
>
> says there's no kvm or kvm module. I used modprobe to put the kvm.ko in. So 
> something is missing.
>
> Something also wanted GTK, well that's definately not there.
>
> Humm

I'm not familiar with the AMD CPU. Has this previously worked on this
same machine? 

-- 
Marek Novotný
https://github.com/marek-novotny

[toc] | [prev] | [next] | [standalone]


#43315

From"Bill Cunningham" <nospam@nspam.invalid>
Date2017-03-12 14:43 -0500
Message-ID<oa4873$2os$1@dont-email.me>
In reply to#43312
"Marek Novotny" <marek.novotny@marspolar.com> wrote in message 
news:E-ednWOInaaOH1nFnZ2dnUU7-LednZ2d@giganews.com...

> I'm not familiar with the AMD CPU. Has this previously worked on this
> same machine?

    Yes it has. This has been in a previous install. I have cleared out 
everything before and re installed manually what I want. And as I say this 
is an old version I "fiddle" with. A minimal install I use for development 
and experimentation. Maybe I shall get the F23 up in the next day or so. I 
can do a minimal then add desktop, a GUI, I prefer Gnome myself.

    But none of this was present when I did this before from CLI. It maybe 
some little thing.

Bill


[toc] | [prev] | [next] | [standalone]


#43317

FromMarek Novotny <marek.novotny@marspolar.com>
Date2017-03-12 14:49 -0500
Message-ID<Xb2dna76SuiiO1jFnZ2dnUU7-W-dnZ2d@giganews.com>
In reply to#43315
On 2017-03-12, Bill Cunningham <nospam@nspam.invalid> wrote:
>
> "Marek Novotny" <marek.novotny@marspolar.com> wrote in message 
> news:E-ednWOInaaOH1nFnZ2dnUU7-LednZ2d@giganews.com...
>
>> I'm not familiar with the AMD CPU. Has this previously worked on this
>> same machine?
>
>     Yes it has. This has been in a previous install. I have cleared out 
> everything before and re installed manually what I want. And as I say this 
> is an old version I "fiddle" with. A minimal install I use for development 
> and experimentation. Maybe I shall get the F23 up in the next day or so. I 
> can do a minimal then add desktop, a GUI, I prefer Gnome myself.
>
>     But none of this was present when I did this before from CLI. It maybe 
> some little thing.

I actively use a KVM server I built for myself and have installed it a
few times. Should be as easy as I pointed out. Beyond that I am not
really sure. And I have installed it on Ubuntu, Mint, RHEL6.x, 7x,
Manjaro and fedora. There's not much too it. 

-- 
Marek Novotný
https://github.com/marek-novotny

[toc] | [prev] | [next] | [standalone]


#43309

From"J.O. Aho" <user@example.net>
Date2017-03-11 23:20 +0100
Message-ID<eijbh3F2a35U1@mid.individual.net>
In reply to#43298
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.

-- 

 //Aho

[toc] | [prev] | [next] | [standalone]


#43311

From"Bill Cunningham" <nospam@nspam.invalid>
Date2017-03-11 17:31 -0500
Message-ID<oa1tmf$2qr$1@dont-email.me>
In reply to#43309
"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.

Bill

[toc] | [prev] | [next] | [standalone]


#43314

From"J.O. Aho" <user@example.net>
Date2017-03-12 09:08 +0100
Message-ID<eikdviF868gU1@mid.individual.net>
In reply to#43311
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

[toc] | [prev] | [next] | [standalone]


#43316

From"Bill Cunningham" <nospam@nspam.invalid>
Date2017-03-12 14:48 -0500
Message-ID<oa48gi$3r6$1@dont-email.me>
In reply to#43314
"J.O. Aho" <user@example.net> wrote in message 
news:eikdviF868gU1@mid.individual.net...

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

    No I have never heard of such a command with yum or dnf with an 
ampersand.

> 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

    Would this show the same as lsmod? That's what I usually use.


> 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.

    Yes.

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

    OK.

> 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

    No xvm or svm. I already know that.
I used cat /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.

Thanks much. These little things teach much about this system things.

Bill


[toc] | [prev] | [next] | [standalone]


#43319

From"Bill Cunningham" <nospam@nspam.invalid>
Date2017-03-12 17:11 -0500
Message-ID<oa4dd4$la3$1@dont-email.me>
In reply to#43314
"J.O. Aho" <user@example.net> wrote in message 
news:eikdviF868gU1@mid.individual.net...
> 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.

    Ok I installed the group basic desktop. And rpms called libsvm and 
anything doing with these and their dependancies. Still no svm in the fllags 
section of cpuinfo.
Hum :( I looked at kernel and I believe it said kernel-3.8 or so. But I have 
seen kvm in the system concerning both intel and AMD processors.

Bill

[toc] | [prev] | [next] | [standalone]


#43320

From"Bill Cunningham" <nospam@nspam.invalid>
Date2017-03-12 17:51 -0500
Message-ID<oa4fna$t52$1@dont-email.me>
In reply to#43314
"J.O. Aho" <user@example.net> wrote in message 
news:eikdviF868gU1@mid.individual.net...
> 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.

    I have gnome installed too. The same thing happens. What I am trying to 
access is the netinstall or archlinux. I've accessed it before. I am sure. 
but 'modprobe kvm_amd;dmesg|tail' says there is svm support; but no hardware 
support. So I don't know.

Bill

[toc] | [prev] | [next] | [standalone]


#43321

From"J.O. Aho" <user@example.net>
Date2017-03-13 07:13 +0100
Message-ID<eimrjrFn0smU1@mid.individual.net>
In reply to#43320
On 03/12/17 20:48, Bill Cunningham wrote:
> "J.O. Aho" <user@example.net> wrote in message 
> news:eikdviF868gU1@mid.individual.net...
> 
>> You did run 'yum install @virtualization' on your F20?
> 
>     No I have never heard of such a command with yum or dnf with an 
> ampersand.
> 
>> 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
> 
>     Would this show the same as lsmod? That's what I usually use.

No, lsmod shows which modules been loaded, the ls command line will only
show if you have the kvm modules on disk.


>> 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.
> 
>     Yes.
> 
>> If you happen to find the kernel modules, then maybe you have
>> blacklisted them, take a look at /etc/modprobe.d/
> 
>     OK.
> 
>> 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
> 
>     No xvm or svm. I already know that.
> I used cat /proc/cpuinfo.

Using the grep, you don't need to use your brain and eyes to see if the
string you are looking for is there or not.

This gives you the similar result: lscpu | grep --color svm

Not all distributions comes with lscpu installed, kind of the same
output as with your cat, except it will just show the data once instead
for once for each core/cpu.


>> 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.
>
> Thanks much. These little things teach much about this system things.
> 
>     I have gnome installed too. The same thing happens. What I am trying to 
> access is the netinstall or archlinux. I've accessed it before. I am sure. 
> but 'modprobe kvm_amd;dmesg|tail' says there is svm support; but no hardware 
> support. So I don't know.

Find your motherboards/computers manual, check if it has a BIOS setting
to enable virtualisation, if it do not support virtualisation you are
out of luck for kvm and have to settle with the plain qemu.


-- 

 //Aho

[toc] | [prev] | [next] | [standalone]


#43323

From"Bill Cunningham" <nospam@nspam.invalid>
Date2017-03-13 12:53 -0500
Message-ID<oa6ile$vj4$1@dont-email.me>
In reply to#43321
"J.O. Aho" <user@example.net> wrote in message 
news:eimrjrFn0smU1@mid.individual.net...
> On 03/12/17 20:48, Bill Cunningham wrote:
>> "J.O. Aho" <user@example.net> wrote in message
>> news:eikdviF868gU1@mid.individual.net...
>>
>>> You did run 'yum install @virtualization' on your F20?
>>
>>     No I have never heard of such a command with yum or dnf with an
>> ampersand.
>>
>>> 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
>>
>>     Would this show the same as lsmod? That's what I usually use.
>
> No, lsmod shows which modules been loaded, the ls command line will only
> show if you have the kvm modules on disk.
>
>
>>> 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.
>>
>>     Yes.
>>
>>> If you happen to find the kernel modules, then maybe you have
>>> blacklisted them, take a look at /etc/modprobe.d/
>>
>>     OK.
>>
>>> 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
>>
>>     No xvm or svm. I already know that.
>> I used cat /proc/cpuinfo.
>
> Using the grep, you don't need to use your brain and eyes to see if the
> string you are looking for is there or not.
>
> This gives you the similar result: lscpu | grep --color svm
>
> Not all distributions comes with lscpu installed, kind of the same
> output as with your cat, except it will just show the data once instead
> for once for each core/cpu.
>
>
>>> 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.
>>
>> Thanks much. These little things teach much about this system things.
>>
>>     I have gnome installed too. The same thing happens. What I am trying 
>> to
>> access is the netinstall or archlinux. I've accessed it before. I am 
>> sure.
>> but 'modprobe kvm_amd;dmesg|tail' says there is svm support; but no 
>> hardware
>> support. So I don't know.
>
> Find your motherboards/computers manual, check if it has a BIOS setting
> to enable virtualisation, if it do not support virtualisation you are
> out of luck for kvm and have to settle with the plain qemu.

https://www.archlinux.org/releng/netboot/

The image here. ipxe.lkrn I have installewd before and it is used to boot 
and install archilinux from another distro. Doesn't work now.

Bill


[toc] | [prev] | [standalone]


Back to top | Article view | alt.os.linux


csiph-web