Ubuntu Mate 18.04- KVM not working

Post Reply
davidwkerr
Posts: 37
Joined: Wed Mar 01, 2017 9:26 am
languages_spoken: English, French
ODROIDs: 5* XU4, 1xC2, 1xC1+
Location: Sydney, Australia
Has thanked: 0
Been thanked: 0
Contact:

Ubuntu Mate 18.04- KVM not working

Unread post by davidwkerr » Wed Mar 25, 2020 1:25 pm

Latest 18.04, updated:

Linux odroid 4.14.173-173 #1 SMP PREEMPT Mon Mar 16 17:08:14 -03 2020 armv7l armv7l armv7l GNU/Linux

I have changed the boot.ini to select the correct dtb file, as follows and also removed all but the kvm file:

setenv fdtloaded "false"
if test "x${board_name}" = "x"; then setenv board_name "xu4"; fi
if test "${board_name}" = "xu4"; then fatload mmc 0:1 0x44000000 exynos5422-odroidxu4-kvm.dtb; setenv fdtloaded "true"; fi
if test "${board_name}" = "xu3"; then fatload mmc 0:1 0x44000000 exynos5422-odroidxu3.dtb; setenv fdtloaded "true"; fi
if test "${board_name}" = "xu3l"; then fatload mmc 0:1 0x44000000 exynos5422-odroidxu3-lite.dtb; setenv fdtloaded "true"; fi
if test "${fdtloaded}" = "false"; then fatload mmc 0:1 0x44000000 exynos5422-odroidxu4-kvm.dtb; setenv fdtloaded "true"; fi

odroid@odroid:~$ sudo kvm-ok
INFO: Your CPU does not support KVM extensions
KVM acceleration can NOT be used

But I understood that this kernel was built with kvm!

dmesg returns no kvm references.

virt-manager reports no kvm.

I tried rebuilding the kernel, but I did not succeed.

Perhaps some knowledgeable person can explain what I need to do. I am believing (at the moment) that maybe the kernel was NOT built with kvm.

This is what I downloaded- not the minimal image: Ubuntu 18.04.3 (20190929)
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic

Regds,
Dave

davidwkerr
Posts: 37
Joined: Wed Mar 01, 2017 9:26 am
languages_spoken: English, French
ODROIDs: 5* XU4, 1xC2, 1xC1+
Location: Sydney, Australia
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu Mate 18.04- KVM not working

Unread post by davidwkerr » Wed Mar 25, 2020 3:03 pm

Okay,
I am certain the supplied kernel does not have kvm even though there is a kvm dtb file.
I am currently building a new one with kvm and will report back when successful.
Dave

davidwkerr
Posts: 37
Joined: Wed Mar 01, 2017 9:26 am
languages_spoken: English, French
ODROIDs: 5* XU4, 1xC2, 1xC1+
Location: Sydney, Australia
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu Mate 18.04- KVM not working

Unread post by davidwkerr » Wed Mar 25, 2020 4:54 pm

The default kernel build seems fine.
However, the one using odroidxu4_kvm_defconfig fails when performing

sudo make modules_install

It fails with all modules missing.

So, I'm not sure if anyone has tried a kvm build very recently. If you have, please let me know. Hopefully someone wiser than myself can assist.

Regds,Dave

davidwkerr
Posts: 37
Joined: Wed Mar 01, 2017 9:26 am
languages_spoken: English, French
ODROIDs: 5* XU4, 1xC2, 1xC1+
Location: Sydney, Australia
Has thanked: 0
Been thanked: 0
Contact:

Re: SOLVED Ubuntu Mate 18.04- KVM not working

Unread post by davidwkerr » Sun Mar 29, 2020 2:27 pm

Okay. The default kernel does not have kvm.

The kvm kernel build does not work. (4.14.173+)

However, applying this patch and then doing the kvm build and installing things in the correct spots solves the problem.

https://paste.ubuntu.com/p/bB8CfKbq55/

Regards,
Dave

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 0 guests