Opened 16 years ago
Last modified 16 years ago
#3064 new enhancement
Wanted pre-start post-stop scripts
Reported by: | Bengt-Arne Fjellner | Owned by: | |
---|---|---|---|
Component: | VM control | Version: | VirtualBox 2.1.0 |
Keywords: | Cc: | ||
Guest type: | other | Host type: | other |
Description
It would be very nice to be able to add a script/program so its run before resp after the vm.
Use case: VBoxManage setextradata global|<uuid>|<name> prestart /full/program/path_for_start
VBoxManage setextradata global|<uuid>|<name> postrun /full/program/path_for_stop
These programs would be called with the machine name as parameter and could mount/unmount partitions(nice for rawmdk) or check other conditions. If prestart fails(non-zero exit code) then the start would be aborted and whatever the script printed on stderr would be displayed.
Attachments (1)
Change History (5)
comment:1 by , 16 years ago
comment:3 by , 16 years ago
I would like to have this feature as well.
So if you start a special vm it should at first run your script....
Another way would be to have hardcoded names that gets run if they exist. Same as before with exit status and showing output.
There could also be global start/stop scripts.