#9642 closed defect (fixed)
Return code to start VM is unreliable => Fixed in SVN
回報者: | Freek de Kruijf | 負責人: | |
---|---|---|---|
元件: | VM control | 版本: | VirtualBox 4.1.2 |
關鍵字: | startvm retrun code | 副本: | |
Guest type: | Linux | Host type: | Linux |
描述
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
附加檔案 (1)
更動歷史 (3)
13 年 前 由 編輯
附檔: | 新增 VBox.log.1 |
---|
注意:
瀏覽 TracTickets
來幫助您使用待辦事項功能
VBox.log