You are not logged in.

#1 2019-08-02 13:41:33

joeknock
Member
Registered: 2018-09-10
Posts: 3

[SOLVED] Libvirt starts before /dev/kvm is created

I've got this problem ever since updating to a Ryzen 3000 series CPU. I'm on the latest Agesa 1003ABB bios that was just release to fix the RDRAND issue.

I've got libvirt enabled at startup but it it throws this error at every boot

Unable to open /dev/kvm: No such file or directory

I've confirmed that /dev/kvm exists and has the following permissions (these were default, I didn't have to change anything)

crw-rw-rw- 1 root kvm 10, 232 Aug  2 06:45 /dev/kvm

Restarting libvirt get it working fine after boot. However, that's annoying as now autostart is completely useless.

Is there a workaround or am I doing something wrong?

Last edited by joeknock (2019-08-05 18:31:15)

Offline

#2 2019-08-04 02:22:05

Carmanaught
Member
Registered: 2017-06-11
Posts: 1

Re: [SOLVED] Libvirt starts before /dev/kvm is created

I don't have the most recent AGESA (only on 1.0.0.3AB at the moment) but I've run into this as well.

I don't know if it's a proper fix to the issue or if there's something else that will be a better solution in future, but my fix has been to add the kvm_amd module to the MODULES=() line in /etc/mkinitcpio.conf:

MODULES=(kvm_amd)

And then recreate the initramfs image:

mkinitcpio -p linux

This seems to ensure that the module is loaded early enough in the boot process.

Offline

#3 2019-08-05 18:22:17

joeknock
Member
Registered: 2018-09-10
Posts: 3

Re: [SOLVED] Libvirt starts before /dev/kvm is created

I probably should have thought of loading the module instead of letting modconf handle it. I'm going to try this. Thanks!

Yep, That worked!

Last edited by joeknock (2019-08-05 18:26:13)

Offline

#4 2019-08-09 04:06:26

papertigers
Member
Registered: 2009-05-14
Posts: 35
Website

Re: [SOLVED] Libvirt starts before /dev/kvm is created

Just ran into this issue myself, hopefully the above fixes it.
I will try an update this post after my next reboot with the results.

Edit:
This did indeed fix my issue.

Last edited by papertigers (2019-08-26 14:27:38)

Offline

Board footer

Powered by FluxBB