VirtualBox

Opened 13 years ago

Closed 13 years ago

#9642 closed defect (fixed)

Return code to start VM is unreliable => Fixed in SVN

Reported by: Freek de Kruijf Owned by:
Component: VM control Version: VirtualBox 4.1.2
Keywords: startvm retrun code Cc:
Guest type: Linux Host type: Linux

Description

I have a shell script which runs as root to start a VM for a normal user. Since the newest version of VirtualBox, 4.1.2 the return code is unreliable. Sometimes it returns a failure where the VM is successfully started.

The script looks like this:

vboxmanage()
{
    CMD="/usr/bin/VBoxManage -nologo $@"
    su - freek -c "$CMD"
}
ERROR=0
vboxmanage startvm ktmhnewb -type vrdp 2>&1 3>&1 || ERROR=1
[ $ERROR -eq 1 ] && echo "VM did not start"
[ $ERROR -eq 1 ] && exit 1

Attachments (1)

VBox.log.1 (78.8 KB ) - added by Freek de Kruijf 13 years ago.
VBox.log

Download all attachments as: .zip

Change History (3)

by Freek de Kruijf, 13 years ago

Attachment: VBox.log.1 added

VBox.log

comment:1 by Frank Mehnert, 13 years ago

Summary: Return code to start VM is unreliableReturn code to start VM is unreliable => Fixed in SVN

I think we found and fixed this problem. The fix should be available in the next maintenance release.

comment:2 by Frank Mehnert, 13 years ago

Resolution: fixed
Status: newclosed

Fix part of VBox 4.1.8.

Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette