This message was deleted.
# rancher-desktop
a
This message was deleted.
k
It's hard to say what's causing that problem, except it's most likely coming from lima (the VM framework we use on Linux and macOS). I'm running Ubuntu 20.04.4 LTS with no problem, and would recommend upgrading.
f
I just did a Google search on your exact error message:
"virtualization does not appear to be supported on your machine"
, and your question on Stackoverflow is the only hit, so I'm wondering where the message comes from
e
I think its not useable with VM, so I installed it on windows. But now I am getting a new issue
Error Starting Kubernetes
Copy code
Error: wsl.exe exited with code 4294967295
Copy code
wsl --update
and resetting doesn't fix
j
Just to be sure, do you have the necessary permissions on
/dev/kvm
(when running on Ubuntu 18.04? IIRC some users had problems like this on Ubuntu 18.04. For more info see https://docs.rancherdesktop.io/getting-started/installation#ensuring-you-have-access-to-devkvm
e
Yeah, I did the
Copy code
[ -r /dev/kvm ] && [ -w /dev/kvm ] || echo 'insufficient privileges'
command in cmd line
it says insufficient privileges
then i do sudo usermod -a -G kvm "$USER"
But when I do
Copy code
[ -r /dev/kvm ] && [ -w /dev/kvm ] || echo 'insufficient privileges'
again, it still says insufficient
j
What is the result of
ls -l /dev/kvm
?
I wonder if you have a file ACL or SELinux policy messing with you
Oh, also, you restarted after doing the
usermod
command right? That's the safest way to ensure that any additions to your user's permissions take effect
e
Nope. I was rebooting
I am a bit confused though, are you asking about my ubuntu installation?
or my windows?
j
Sorry, all of this pertains to your ubuntu installation
e
So on ubuntu, running
Copy code
ls -l /dev/kvm
ls: cannot access '/dev/kvm': no such file or directory
j
Sounds like there is an issue with loading the kernel module. We're getting to the limits of my knowledge here. A couple things you could try: • run `sudo dmesg | grep kvm`; do you see any output? On my machine I have this line:
[   11.869780] kvm: Nested Virtualization enabled
• try running
find /lib/modules -name '*kvm*'
; is your output similar to the below? If not, you might need to install kernel modules to get KVM working
Copy code
/lib/modules/5.16.19-76051619-generic/kernel/arch/x86/kvm
/lib/modules/5.16.19-76051619-generic/kernel/arch/x86/kvm/kvm-intel.ko
/lib/modules/5.16.19-76051619-generic/kernel/arch/x86/kvm/kvm.ko
/lib/modules/5.16.19-76051619-generic/kernel/arch/x86/kvm/kvm-amd.ko
/lib/modules/5.16.19-76051619-generic/kernel/drivers/ptp/ptp_kvm.ko
/lib/modules/5.16.19-76051619-generic/kernel/drivers/gpu/drm/i915/gvt/kvmgt.ko
/lib/modules/5.17.5-76051705-generic/kernel/arch/x86/kvm
/lib/modules/5.17.5-76051705-generic/kernel/arch/x86/kvm/kvm-intel.ko
/lib/modules/5.17.5-76051705-generic/kernel/arch/x86/kvm/kvm.ko
/lib/modules/5.17.5-76051705-generic/kernel/arch/x86/kvm/kvm-amd.ko
/lib/modules/5.17.5-76051705-generic/kernel/drivers/ptp/ptp_kvm.ko
/lib/modules/5.17.5-76051705-generic/kernel/drivers/gpu/drm/i915/gvt/kvmgt.ko
Did you install RD via the deb? If not, that would be something to try
e
Copy code
sudo dmesg | grep kvm
Running this in cmd, nothing happens
j
Yeah so you don't have the KVM kernel module loaded
e
Running
Copy code
find /lib/modules -name '*kvm*'
Displays:
Copy code
/lib/modules/5.4.0-121-generic/kernel/drivers/ptp/ptp_kvm.ko
/lib/modules/5.4.0-121-generic/kernel/drivers/gpu/drm/i915/gvt/kvmgt.ko
/lib/modules/5.4.0-121-generic/kernel/arch/x86/kvm
/lib/modules/5.4.0-121-generic/kernel/arch/x86/kvm/kvm-amd.ko
/lib/modules/5.4.0-121-generic/kernel/arch/x86/kvm/kvm.ko
/lib/modules/5.4.0-121-generic/kernel/arch/x86/kvm/kvm-intel.ko
/lib/modules/5.4.0-122-generic/kernel/drivers/ptp/ptp_kvm.ko
/lib/modules/5.4.0-122-generic/kernel/drivers/gpu/drm/i915/gvt/kvmgt.ko
/lib/modules/5.4.0-122-generic/kernel/arch/x86/kvm
/lib/modules/5.4.0-122-generic/kernel/arch/x86/kvm/kvm-amd.ko
/lib/modules/5.4.0-122-generic/kernel/arch/x86/kvm/kvm.ko
/lib/modules/5.4.0-122-generic/kernel/arch/x86/kvm/kvm-intel.ko
j
Seems like you have the needed modules there. Try loading the KVM kernel module?
e
What would be the command?
j
Not sure... it would be something like
modprobe kvm
, but check that before you do it
e
modprobe kvm not it seems
Im going to look at this
j
That looks like a good thing to try. The problem is definitely somewhere between the BIOS and the KVM kernel module. There has to be a reason why /dev/kvm isn't there
e
So it seems
INFO: Your CPU does not support KVM extensions KVM acceleration can NOT be used
Strange, I guess I have to try it on another PC
but I installed rancher desktop on windows, but its giving a different error
j
That's interesting. And yet you enabled it in the BIOS
The windows error must be due to the same thing 🤷
e
Yea, it is enabled in the BIOS
the windwos error is
Error starting Kubernetes
Copy code
Error: wsl.exe exited with code 4294967295
Last command run:
Copy code
wsl.exe --import rancher-desktop C:\Users\User\AppData\Local\rancher-desktop\distro C:\Users\User\AppData\Local\Programs\Rancher Desktop\resources\resources\win32\distro-0.24.tar --version 2
and i tried reseting kubernetes and --wsl update
also, I installed Rancher Desktop 1.4.1 - win 32(x64)
and my OS is windows 10
j
I suspect your BIOS. I don't know what WSL error code 4294967295 is, but for it to not work in a similar fashion on two different OS's seems to point to that
e
I will look again
It needs virtualization enabled
662 Views