1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/OpenSecurity/install/initial_vm.txt Thu Jan 23 11:18:32 2014 +0000
1.3 @@ -0,0 +1,30 @@
1.4 +#!/bin/sh
1.5 +
1.6 +# this is the target installation folder
1.7 +#OPENSECURITY_DIR="/cygdrive/c/Program Files/OpenSecurity"
1.8 +OPENSECURITY_DIR="OpenSecurity"
1.9 +
1.10 +# get recent initial VM and create disk image
1.11 +cd "${OPENSECURITY_DIR}"
1.12 +wget http://service.x-net.at/opensecurity/OsecVM_initialized.ova
1.13 +mkdir -p ${OPENSECURITY_DIR}/vm
1.14 +VBoxManage.exe import OsecVM_initialized.ova --vsys 0 --vmname SecurityDVM --unit 12 --disk vm/SecurityDVM.vmdk
1.15 +
1.16 +# Start VirtualBox and update the machine
1.17 +#
1.18 +# login with
1.19 +# user: root
1.20 +# pass: osecvm
1.21 +#
1.22 +# issue these commands as root
1.23 +#
1.24 +# # apt-get update
1.25 +# # apt-get upgrade
1.26 +# # apt-get dist-upgrade
1.27 +#
1.28 +
1.29 +# Turn the VM disk image immutable and attach it
1.30 +VBoxManage.exe storageattach SecurityDVM --storagectl SATA --port 0 --medium none
1.31 +VBoxManage.exe modifyhd vm/SecurityDVM.vmdk settype immutable
1.32 +VBoxManage.exe storageattach SecurityDVM --storagectl SATA --port 0 --device 0 --type hdd --mtype normal --medium vm/SecurityDVM.vmdk
1.33 +