VirtualBox

Opened 3 years ago

Last modified 3 years ago

#20130 new defect

Calling launchVMProcess via vboxwebsrv causes VERR_ENV_INVALID_VAR_NAME

Reported by: pnhowe Owned by:
Component: VM control Version: VirtualBox 6.1.16
Keywords: VERR_ENV_INVALID_VAR_NAME, launchVMProcess Cc:
Guest type: Linux Host type: Linux

Description

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

Attachments (1)

myvm01.vbox (2.6 KB ) - added by pnhowe 3 years ago.
vm definition file

Download all attachments as: .zip

Change History (2)

by pnhowe, 3 years ago

Attachment: myvm01.vbox added

vm definition file

comment:1 by pnhowe, 3 years ago

I just tried with 6.1.18, same error

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use