3 # this is the target installation folder
4 #OPENSECURITY_DIR="/cygdrive/c/Program Files/OpenSecurity"
5 OPENSECURITY_DIR="OpenSecurity"
7 # get recent initial VM and create disk image
8 cd "${OPENSECURITY_DIR}"
9 wget http://service.x-net.at/opensecurity/OsecVM_initialized.ova
10 mkdir -p ${OPENSECURITY_DIR}/vm
11 VBoxManage.exe import OsecVM_initialized.ova --vsys 0 --vmname SecurityDVM --unit 12 --disk vm/SecurityDVM.vmdk
13 # Start VirtualBox and update the machine
19 # issue these commands as root
23 # # apt-get dist-upgrade
26 # Turn the VM disk image immutable and attach it
27 VBoxManage.exe storageattach SecurityDVM --storagectl SATA --port 0 --medium none
28 VBoxManage.exe modifyhd vm/SecurityDVM.vmdk settype immutable
29 VBoxManage.exe storageattach SecurityDVM --storagectl SATA --port 0 --device 0 --type hdd --mtype normal --medium vm/SecurityDVM.vmdk