Author: richter Date: Sun Apr 3 19:32:58 2011 New Revision: 2497 Log: store live-cd extension snapshot in a iso-file; uses the mkisofs command now the virtual testbed can be build as normal user Modified: trunk/tools/testbed/pisa-testbed_vms/plugins/actions/vbox/node_hook Modified: trunk/tools/testbed/pisa-testbed_vms/plugins/actions/vbox/node_hook ============================================================================== --- trunk/tools/testbed/pisa-testbed_vms/plugins/actions/vbox/node_hook Sun Apr 3 19:17:27 2011 (r2496) +++ trunk/tools/testbed/pisa-testbed_vms/plugins/actions/vbox/node_hook Sun Apr 3 19:32:58 2011 (r2497) @@ -2,13 +2,12 @@ set +e delete(){ + VBoxManage -q storageattach "$FULL_NAME" --storagectl "IDE Controller" --port 0 --device 1 --medium none VBoxManage -q storageattach "$FULL_NAME" --storagectl "IDE Controller" --port 0 --device 0 --medium none -# VBoxManage -q storageattach "$FULL_NAME" --storagectl "IDE Controller" --port 0 --device 1 --medium none - VBoxManage -q storageattach "$FULL_NAME" --storagectl "SATA Controller" --port 0 --device 0 --medium none +# VBoxManage -q storageattach "$FULL_NAME" --storagectl "SATA Controller" --port 0 --device 0 --medium none VBoxManage -q closemedium dvd "$VBOX_ISO" -# VBoxManage -q closemedium dvd "$TESTBED_PATH/bin/${FULL_NAME}-${VERSION}.iso" -# VBoxManage -q closemedium dvd "$TESTBED_PATH/bin/${FULL_NAME}.iso" - VBoxManage -q closemedium disk "$TESTBED_PATH/bin/${FULL_NAME}.vdi" + VBoxManage -q closemedium dvd "$TESTBED_PATH/bin/${FULL_NAME}.iso" +# VBoxManage -q closemedium disk "$TESTBED_PATH/bin/${FULL_NAME}.vdi" VBoxManage -q unregistervm "$FULL_NAME" --delete } @@ -26,12 +25,12 @@ VBoxManage -q openmedium dvd $VBOX_ISO VBoxManage -q storageattach $FULL_NAME --storagectl "IDE Controller" --port 0 --device 0 --type dvddrive --medium $VBOX_ISO - rm -f "$TESTBED_PATH/bin/$FULL_NAME".vdi - VBoxManage -q convertfromraw "$TESTBED_PATH/bin/$FULL_NAME".img "$TESTBED_PATH/bin/$FULL_NAME".vdi - VBoxManage -q openmedium disk "$TESTBED_PATH/bin/$FULL_NAME".vdi - VBoxManage -q storageattach $FULL_NAME --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium "$TESTBED_PATH/bin/$FULL_NAME.vdi" -# VBoxManage -q openmedium dvd "$TESTBED_PATH/bin/${FULL_NAME}-${VERSION}.iso" -# VBoxManage -q storageattach $FULL_NAME --storagectl "IDE Controller" --port 0 --device 1 --type dvddrive --medium "$TESTBED_PATH/bin/${FULL_NAME}-${VERSION}.iso" +# rm -f "$TESTBED_PATH/bin/$FULL_NAME".vdi +# VBoxManage -q convertfromraw "$TESTBED_PATH/bin/$FULL_NAME".img "$TESTBED_PATH/bin/$FULL_NAME".vdi +# VBoxManage -q openmedium disk "$TESTBED_PATH/bin/$FULL_NAME".vdi +# VBoxManage -q storageattach $FULL_NAME --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium "$TESTBED_PATH/bin/$FULL_NAME.vdi" + VBoxManage -q openmedium dvd "$TESTBED_PATH/bin/${FULL_NAME}.iso" + VBoxManage -q storageattach $FULL_NAME --storagectl "IDE Controller" --port 0 --device 1 --type dvddrive --medium "$TESTBED_PATH/bin/${FULL_NAME}.iso" } recreate(){ -- This is the pisa developer mailing list. Please also subscribe to the main pisa list at: //www.freelists.org/list/pisa