I used the following two methods to log in to the operating system, but neither took effect. However, manually executing sudo sh kvm.sh can take effect. I don’t know where the mistake is.
This isn’t an area I’m familiar with. However you shouldn’t have scripts in your local home folder since the home folder is subject to different permissions and often encrypted.
Put your scripts in something like /usr/local/bin and remember to give it root:root access with executable rights - probably 755 chmod. Test with 777 rights before reducing it to something less security vulnerable.
I moved the script to /usr/local/bin, and reboot,but the same error occurred when starting the virtual machine. Only by manually executing the script can the virtual machine start.
VM Name: Win11
VD: Backend 'VBoxIsoMaker' does not support async I/O (VERR_NOT_SUPPORTED).
VirtualBox can't operate in VMX root mode. Please disable the KVM kernel extension, recompile your kernel and reboot (VERR_VMX_IN_VMX_ROOT_MODE).
Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
ConsoleWrap
Interface:
IConsole {6ac83d89-6ee7-4e33-8ae6-b257b2e81be8}