﻿id	summary	reporter	owner	description	type	status	component	version	resolution	keywords	cc	guest	host
20130	Calling launchVMProcess via vboxwebsrv causes VERR_ENV_INVALID_VAR_NAME	pnhowe		"When Sending the SOAP request:


{{{
<soap-env:Envelope xmlns:soap-env=""http://schemas.xmlsoap.org/soap/envelope/"">
	<soap-env:Body>
		<ns0:IMachine_launchVMProcess xmlns:ns0=""http://www.virtualbox.org/"">
			<_this>692d166c1e430875-0000000000000004</_this>
			<session>692d166c1e430875-0000000000000003</session>
			<name/>
			<environmentChanges/>
		</ns0:IMachine_launchVMProcess>
	</soap-env:Body>
</soap-env:Envelope>
}}}


I get:


{{{
<SOAP-ENV:Envelope xmlns:SOAP-ENV=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:SOAP-ENC=""http://schemas.xmlsoap.org/soap/encoding/"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:vbox=""http://www.virtualbox.org/"">
	<SOAP-ENV:Body>
		<SOAP-ENV:Fault>
			<faultcode>SOAP-ENV:Client</faultcode>
			<faultstring>VirtualBox error: rc=0x80bb0005 Could not launch the VM process for the machine 'myvm01' (VERR_ENV_INVALID_VAR_NAME) (0x80bb0005)</faultstring>
			<detail>
				<vbox:RuntimeFault>
					<resultCode>-2135228411</resultCode>
					<returnval>692d166c1e430875-0000000000000005</returnval>
				</vbox:RuntimeFault>
			</detail>
		</SOAP-ENV:Fault>
	</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
}}}


I am able to start the VM without messages via the GUI and with 
""vboxmanage startvm myvm01""

It does not look like any messages are added to the VM's log file, and the only thing added to VBoxSVC.log is


{{{
01:40:03.911204 nspr-3   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 'myvm01' (VERR_ENV_INVALID_VAR_NAME)}, preserve=false aResultDetail=-752
}}}


All my soap calls to create the VM, query the power state, and power off the VM function.  My code did work as expected on version 5.1.

I also got the error on 6.1.14 and 6.1.12, I was unable to test prior versions due to compile errors when compiling the kernel modules.  I'm running on Ubuntu 20.04 with the ""virtualbox-6.1_6.1.16-140961~Ubuntu~eoan_amd64.deb"" package downloaded from virtualbox's downloads.

My code can be found at:
https://github.com/T3kton/subcontractor_plugins/tree/master/subcontractor_plugins/virtualbox

the power on function is at:
https://github.com/T3kton/subcontractor_plugins/blob/master/subcontractor_plugins/virtualbox/client.py#L182

Thanks"	defect	new	VM control	VirtualBox 6.1.16		VERR_ENV_INVALID_VAR_NAME, launchVMProcess		Linux	Linux
