# HG changeset patch # User dyle@opensecurity.d03.arc.local # Date 1390475912 0 # Node ID 45903be121b46fc46b9e141d38974954ae72dfdd # Parent 495ebaa3af5b4212dd41cb248ebcccecb4ce56b6 Define how to setup your first initial OpenSecurity VM diff -r 495ebaa3af5b -r 45903be121b4 OpenSecurity/install/initial_vm.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/OpenSecurity/install/initial_vm.txt Thu Jan 23 11:18:32 2014 +0000 @@ -0,0 +1,30 @@ +#!/bin/sh + +# this is the target installation folder +#OPENSECURITY_DIR="/cygdrive/c/Program Files/OpenSecurity" +OPENSECURITY_DIR="OpenSecurity" + +# get recent initial VM and create disk image +cd "${OPENSECURITY_DIR}" +wget http://service.x-net.at/opensecurity/OsecVM_initialized.ova +mkdir -p ${OPENSECURITY_DIR}/vm +VBoxManage.exe import OsecVM_initialized.ova --vsys 0 --vmname SecurityDVM --unit 12 --disk vm/SecurityDVM.vmdk + +# Start VirtualBox and update the machine +# +# login with +# user: root +# pass: osecvm +# +# issue these commands as root +# +# # apt-get update +# # apt-get upgrade +# # apt-get dist-upgrade +# + +# Turn the VM disk image immutable and attach it +VBoxManage.exe storageattach SecurityDVM --storagectl SATA --port 0 --medium none +VBoxManage.exe modifyhd vm/SecurityDVM.vmdk settype immutable +VBoxManage.exe storageattach SecurityDVM --storagectl SATA --port 0 --device 0 --type hdd --mtype normal --medium vm/SecurityDVM.vmdk +