https://rancher.com/ logo
Title
e

enough-airport-11075

07/20/2022, 5:18 PM
Hi, I am having an issue when I try to launch Rancher Desktop. I am running Ubuntu version 18.04.6 LTS. I have a suspicion the error is because I need a newer Ubuntu version but I am not sure. Also, my CPU has virtualization enabled (checked BIOS) so I am not sure why it is doing this.
Error: virtualization does not appear to be supported on your machine
bugs: cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit srbds bogomips: 6820.02 clflush size: 64 cache_alignment: 64 address sizes: 43 bits physical, 48 bits virtual power management: 2022-07-19T23:34:47.202Z: Error starting lima: Error: Virtualization does not appear to be supported on your machine. at Qe.ensureVirtualizationSupported (/opt/rancher-desktop/resources/app.asar/dist/app/background.js:17:179719) at processTicksAndRejections (node:internal/process/task_queues:96:5
k

kind-iron-72902

07/20/2022, 6:00 PM
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

fast-garage-66093

07/20/2022, 8:12 PM
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

enough-airport-11075

07/21/2022, 4:36 PM
I think its not useable with VM, so I installed it on windows. But now I am getting a new issue
Error Starting Kubernetes
Error: wsl.exe exited with code 4294967295
wsl --update
and resetting doesn't fix
j

jolly-forest-99711

07/21/2022, 9:45 PM
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

enough-airport-11075

07/21/2022, 9:58 PM
Yeah, I did the
[ -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
[ -r /dev/kvm ] && [ -w /dev/kvm ] || echo 'insufficient privileges'
again, it still says insufficient
j

jolly-forest-99711

07/21/2022, 10:11 PM
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

enough-airport-11075

07/21/2022, 10:14 PM
Nope. I was rebooting
I am a bit confused though, are you asking about my ubuntu installation?
or my windows?
j

jolly-forest-99711

07/21/2022, 10:14 PM
Sorry, all of this pertains to your ubuntu installation
e

enough-airport-11075

07/21/2022, 10:17 PM
So on ubuntu, running
ls -l /dev/kvm
ls: cannot access '/dev/kvm': no such file or directory
j

jolly-forest-99711

07/21/2022, 10:33 PM
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
/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

enough-airport-11075

07/21/2022, 10:34 PM
sudo dmesg | grep kvm
Running this in cmd, nothing happens
j

jolly-forest-99711

07/21/2022, 10:34 PM
Yeah so you don't have the KVM kernel module loaded
e

enough-airport-11075

07/21/2022, 10:35 PM
Running
find /lib/modules -name '*kvm*'
Displays:
/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

jolly-forest-99711

07/21/2022, 10:45 PM
Seems like you have the needed modules there. Try loading the KVM kernel module?
e

enough-airport-11075

07/21/2022, 10:46 PM
What would be the command?
j

jolly-forest-99711

07/21/2022, 10:47 PM
Not sure... it would be something like
modprobe kvm
, but check that before you do it
e

enough-airport-11075

07/21/2022, 10:51 PM
modprobe kvm not it seems
Im going to look at this
j

jolly-forest-99711

07/21/2022, 10:53 PM
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

enough-airport-11075

07/21/2022, 10:54 PM
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

jolly-forest-99711

07/21/2022, 10:55 PM
That's interesting. And yet you enabled it in the BIOS
The windows error must be due to the same thing 🤷
e

enough-airport-11075

07/21/2022, 10:56 PM
Yea, it is enabled in the BIOS
the windwos error is
Error starting Kubernetes
Error: wsl.exe exited with code 4294967295
Last command run:
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

jolly-forest-99711

07/21/2022, 11:12 PM
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

enough-airport-11075

07/21/2022, 11:12 PM
I will look again
It needs virtualization enabled