OpenSecurity/install/initial_vm.txt
author dyle@opensecurity.d03.arc.local
Thu, 23 Jan 2014 11:18:32 +0000
changeset 49 45903be121b4
permissions -rw-r--r--
Define how to setup your first initial OpenSecurity VM
     1 #!/bin/sh
     2 
     3 # this is the target installation folder
     4 #OPENSECURITY_DIR="/cygdrive/c/Program Files/OpenSecurity"
     5 OPENSECURITY_DIR="OpenSecurity"
     6 
     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
    12 
    13 # Start VirtualBox and update the machine
    14 #
    15 # login with
    16 #   user: root
    17 #   pass: osecvm
    18 #
    19 # issue these commands as root
    20 #
    21 #       # apt-get update
    22 #       # apt-get upgrade
    23 #       # apt-get dist-upgrade
    24 #
    25 
    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
    30