Problem on installation on Windows 11 - VBoxManage trying to unregister a locked unexistent machine

Hello, there! I tried to install microk8s version 2.3.1, having VirtualBox 7.0.6 already installed.

Making a long story short, I’m facing the following problem:

C:\Users\lucas>microk8s status --wait-ready
MicroK8s is not installed. Please run `microk8s install`.

C:\Users\lucas>microk8s install
[2023-02-10T16:05:20.013] [error] [microk8s-vm] Could not unregister VM: VBoxManage.exe: error: Cannot unregister the machine 'microk8s-vm' while it is locked
VBoxManage.exe: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee IUnknown
VBoxManage.exe: error: Context: "Unregister(fDeleteAll ? CleanupMode_DetachAllReturnHardDisksAndVMRemovable :CleanupMode_DetachAllReturnHardDisksOnly, ComSafeArrayAsOutParam(aMedia))" at line 236 of file VBoxManageMisc.cpp

launch failed: Could not start VM: VBoxManage.exe: error: UUID {9aa00452-a0c7-46fd-934d-039c9ddaac76} of the medium 'C:\ProgramData\Multipass\data\virtualbox\vault\instances\microk8s-vm\ubuntu-18.04-server-cloudimg-amd64.vdi' does not match the value {d1773776-824f-4773-8173-a89394a8a2a6} stored in the media registry ('C:\windows\system32\config\systemprofile\.VirtualBox\VirtualBox.xml')
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MediumWrap, interface IMedium
Waiting for VM "microk8s-vm" to power on...

And then this message repeats every ~5 seconds.
The list of virtual machines on VirtualBox is empty.

I’m pretty stuck on it. Anybody has an idea on how to solve it?


Lucas Bracher