changed import script to make sure the vmdk is immutable (because update_template does not get automatically invoked anymore)
authorBarthaM@N3SIM1218.D03.arc.local
Wed, 06 Aug 2014 17:05:54 +0100
changeset 216358381a8c60a
parent 215 9d777587cdab
child 217 4162648fb167
changed import script to make sure the vmdk is immutable (because update_template does not get automatically invoked anymore)
OpenSecurity/bin/initial_vm.sh
     1.1 --- a/OpenSecurity/bin/initial_vm.sh	Thu Jul 24 11:57:00 2014 +0200
     1.2 +++ b/OpenSecurity/bin/initial_vm.sh	Wed Aug 06 17:05:54 2014 +0100
     1.3 @@ -147,13 +147,13 @@
     1.4  
     1.5  # detach disk image
     1.6  #
     1.7 -#echo "detach disk image ..."
     1.8 -#"${VBOX_MANAGER}" storageattach SecurityDVM --storagectl ${VDISK_CONTROLLER} --port ${VDISK_PORT} --medium none
     1.9 +echo "detach disk image ..."
    1.10 +"${VBOX_MANAGER}" storageattach SecurityDVM --storagectl ${VDISK_CONTROLLER} --port ${VDISK_PORT} --medium none
    1.11  
    1.12  # immutablize disk
    1.13  #
    1.14 -#echo "reattach immutable disk image ..."
    1.15 -#"${VBOX_MANAGER}" storageattach SecurityDVM --storagectl ${VDISK_CONTROLLER} --port ${VDISK_PORT} --device ${VDISK_DEVICE} --type hdd --mtype immutable --medium "${VDISK_IMAGE}"
    1.16 +echo "reattach immutable disk image ..."
    1.17 +"${VBOX_MANAGER}" storageattach SecurityDVM --storagectl ${VDISK_CONTROLLER} --port ${VDISK_PORT} --device ${VDISK_DEVICE} --type hdd --mtype immutable --medium "${VDISK_IMAGE}"
    1.18  
    1.19  echo "imported initial OsecVM.ova image"
    1.20