When using the following command where <vm_name> is the vm's name I want to start (e.g. Debian):
Code: Select all
virsh --connect vbox:///session start <vm_name>
Code: Select all
error: Failed to start domain <vm_name>
error: operation failed: OpenRemoteSession/LaunchVMProcess failed, domain can't be started
Taking a look at the virtualbox logs I found the following error
Code: Select all
02:00:36.620577 nspr-5 ERROR [COM]: aRC=VBOX_E_IPRT_ERROR (0x80bb0005) aIID={85632c68-b5bb-4316-a900-5eb28d3413df} aComponent={MachineWrap} aText={Could not launch the VM process for the machine <vm_name> (VERR_ENV_INVALID_VAR_NAME)}, preserve=false aResultDetail=-752
Here are some specifications:
virtualbox version: 6.1.44r156814
OS: Fedora Linux 38 (Workstation Edition)
Linux kernel: 6.2.15-300.fc38.x86_64
Libvirt version: 9.0.0
Although this error occurs with any virtual machine, please let me know if you need any specific VM information (including logs) that might be helpful.