Page 1 of 1

VBoxManage error

Posted: 12. Sep 2018, 16:02
by Bypus
Hello,

I'm running VirtualBox with Python and have come to an error.

Here is the code:

Code: Select all

startvmProc = subprocess.Popen(vboxmgrPath + " startvm " + machName)	
startvmProc.wait()
I get this OK message:
VM "MyVM" has been successfully started.
Then I run an other process like this:

Code: Select all

execProc = subprocess.Popen(vboxmgrPath + " guestcontrol " + machName + " --username " + username + " --password " + password + " run " + execPath)
execProc.wait()
But then i get this error message:
VBoxManage.exe: error: Error starting guest session (current status is: starting)
Though it said it had been successfully started.
Am I doing something wrong ?