Trouble running Clear Linux on KVM

Hi,

I’m trying to fire up a VM on KVM using the guide at Home Clear Linux* Project | Clear Linux* Project, but I’m getting the following error:

$ ./start_qemu.sh clear-29620-kvm.img
Could not access KVM kernel module: Permission denied
qemu-system-x86_64: failed to initialize KVM: Permission denied

The really strange thing is, it worked once! After I shut down the VM, I’ve been unable to start it since.

Can anyone provide any pointers here?

Try sudo ./start_gemu.sh clear-29620-kvm.img

2 Likes

Try sudo ./start_gemu.sh clear-29620-kvm.img

Or ad your user to the KVM group and qemu group

sudo usermod -aG kvm,qemu $USER

then restart your session to takes this new values.

2 Likes

Thanks, @TomL and @miguelinux - I chose to add myself to the kvm & qemu groups, which did the trick.

1 Like