1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/OpenSecurity/install/initial_vm.bat Thu Jan 23 17:03:27 2014 +0000
1.3 @@ -0,0 +1,37 @@
1.4 +@echo off
1.5 +
1.6 +rem ensure environment is ready
1.7 +C:
1.8 +cd "C:\Documents and Settings\%USERNAME%\VirtualBox VMs"
1.9 +
1.10 +rem get recent initial VM and create disk image
1.11 +echo "download initial OpenSecurity VM"
1.12 +rem wget http://service.x-net.at/opensecurity/OsecVM_initialized.ova
1.13 +VBoxManage.exe import OsecVM_initialized.ova --vsys 0 --vmname SecurityDVM --unit 12 --disk SecurityDVM.vmdk
1.14 +
1.15 +# launch the SecurityVM the first time to let the user do initial updates
1.16 +VBoxManage.exe startvm SecurityDVM
1.17 +
1.18 +echo "# Start VirtualBox and update the machine "
1.19 +echo "# "
1.20 +echo "# login with "
1.21 +echo "# user: root "
1.22 +echo "# pass: osecvm "
1.23 +echo "# "
1.24 +echo "# issue these commands as root "
1.25 +echo "# "
1.26 +echo "# # apt-get update "
1.27 +echo "# # apt-get upgrade "
1.28 +echo "# # apt-get dist-upgrade "
1.29 +echo "# "
1.30 +echo "# then shutdown the machine with "
1.31 +echo "# "
1.32 +echo "# # shutdown -h now "
1.33 +echo "# "
1.34 +echo "# press a key when done to proceed "
1.35 +pause
1.36 +
1.37 +rem Turn the VM disk image immutable and attach it
1.38 +VBoxManage.exe storageattach SecurityDVM --storagectl SATA --port 0 --medium none
1.39 +VBoxManage.exe modifyhd SecurityDVM.vmdk settype immutable
1.40 +VBoxManage.exe storageattach SecurityDVM --storagectl SATA --port 0 --device 0 --type hdd --mtype normal --medium SecurityDVM.vmdk