VirtualBox

Ticket #13583: vbox-repro.sh

File vbox-repro.sh, 990 bytes (added by neilo, 10 years ago)

this bash script should faithfully reproduce the bug

Line 
1#!/bin/bash
2
3# this bash script is meant to run on windows
4# for example try this in the MINGW environment
5# that installs with Git for Windows.
6
7VBOXMANAGE=/c/progra~1/Oracle/VirtualBox/VBoxManage.exe
8VM=repro13583
9
10# we need a small, simple guest image
11# tinycorelinux will work fine for that
12
13if [ ! -e core.iso ]
14then
15 curl -X GET http://distro.ibiblio.org/tinycorelinux/5.x/x86/release/Core-current.iso -o core.iso
16fi
17
18# create a basic vm with the iso attached
19
20$VBOXMANAGE createvm --name $VM --register
21$VBOXMANAGE modifyvm $VM --ostype Linux_64 --memory 512
22$VBOXMANAGE storagectl $VM --add ide --name IDE --controller PIIX4
23$VBOXMANAGE storageattach $VM --storagectl IDE --type dvddrive --device 1 --port 0 --medium core.iso
24
25
26# launch and wait for the vm to boot up
27$VBOXMANAGE startvm $VM
28sleep 60
29
30# this "showvminfo" triggers the bug
31$VBOXMANAGE controlvm $VM savestate
32$VBOXMANAGE showvminfo $VM
33
34# vboxmanage.exe will crash at this point

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