| 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 |
|
|---|
| 7 | VBOXMANAGE=/c/progra~1/Oracle/VirtualBox/VBoxManage.exe
|
|---|
| 8 | VM=repro13583
|
|---|
| 9 |
|
|---|
| 10 | # we need a small, simple guest image
|
|---|
| 11 | # tinycorelinux will work fine for that
|
|---|
| 12 |
|
|---|
| 13 | if [ ! -e core.iso ]
|
|---|
| 14 | then
|
|---|
| 15 | curl -X GET http://distro.ibiblio.org/tinycorelinux/5.x/x86/release/Core-current.iso -o core.iso
|
|---|
| 16 | fi
|
|---|
| 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
|
|---|
| 28 | sleep 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
|
|---|