A
A
Alexander2015-05-27 15:21:08
virtual box
Alexander, 2015-05-27 15:21:08

How to run a script on VM startup in Virtualbox?

There is an N-th number of VMs in Virtualbox, you need to run some script.sh at start and dow VM, to which you need to pass the name of the VM and the type of operation (start / down)
Actually, the question is, is it possible, if so, how?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Solid, 2015-05-27
@etverdiy

under Windows is done by such commands

cd "c:\Program Files\Oracle\VirtualBox\"
VBoxHeadless.exe -s 8_1   -v on

First we go to the folder with VB, then we use VBoxHeadless.exe
here info about using it from Linux
I did it like this
Or do you not want it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question