Opened 9 years ago
#14173 new defect
Starting a Virtual Machine in Jenkins via batch script causes immediate crash and result in aborted state
Reported by: | MTaylor | Owned by: | |
---|---|---|---|
Component: | other | Version: | VirtualBox 4.3.22 |
Keywords: | Cc: | mtaylor@… | |
Guest type: | Windows | Host type: | Windows |
Description
Symptom
Whenever I try and start a VM from the Execute Windows Batch Command inside a freestyle Jenkins job, my VM immediately crashes.
Details
Trying to execute a batch script inside a Jenkins job that starts a Virtual Machine via a batch script will immediately crash and go to the aborted state.
However, the same exact batch script can be ran by the host machine with the same variable and parameters perfectly fine manually.
Also another workaround is to have the Virtual Box GUI interface open and running and the VM will seem to start.
Is this a permissions issue?
Steps to be able to duplicate the bug
- Have an instance of Jenkins running on the host machine.
- Create a freestyle Job that will allow you to execute Windows batch scripts
- Then create a batch script as such
cd "C:\Program Files\Oracle\VirtualBox" VBoxManage.exe "Name_OF_VM"
- save and build the job
- Observer that it starts up but then immediately crashes and goes to the abort state.
Versions Affected
- Windows 8.1 64-bit (Host and Guest)
- Version 4.3.22
Workaround
Please see Details for any workarounds at the moment.