3 rem ensure environment is ready
5 cd "C:\Documents and Settings\%USERNAME%\VirtualBox VMs"
7 rem get recent initial VM and create disk image
8 echo "download initial OpenSecurity VM"
9 rem wget http://service.x-net.at/opensecurity/OsecVM_initialized.ova
10 VBoxManage.exe import OsecVM_initialized.ova --vsys 0 --vmname SecurityDVM --unit 12 --disk SecurityDVM.vmdk
12 # launch the SecurityVM the first time to let the user do initial updates
13 VBoxManage.exe startvm SecurityDVM
15 echo "# Start VirtualBox and update the machine "
19 echo "# pass: osecvm "
21 echo "# issue these commands as root "
23 echo "# # apt-get update "
24 echo "# # apt-get upgrade "
25 echo "# # apt-get dist-upgrade "
27 echo "# then shutdown the machine with "
29 echo "# # shutdown -h now "
31 echo "# press a key when done to proceed "
34 rem Turn the VM disk image immutable and attach it
35 VBoxManage.exe storageattach SecurityDVM --storagectl SATA --port 0 --medium none
36 VBoxManage.exe modifyhd SecurityDVM.vmdk settype immutable
37 VBoxManage.exe storageattach SecurityDVM --storagectl SATA --port 0 --device 0 --type hdd --mtype normal --medium SecurityDVM.vmdk