1

I am building out a python script that automatically starts the virtual box run a file in virtual box and take snapshot of the VM. So i am planning to use VBoxManage which is command line tool in ubuntu.

To start VM i am using

VBoxManage controlvm        uuid|name
                            pause|resume|reset|poweroff|savestate|
                            acpipowerbutton|acpisleepbutton|

But to run command i did not find any command. Can anyone suggest me any other way to execute a command in virtual box using command line in ubuntu?

3
  • 1
    If you want to run a command within the guest environment, vboxmanage cannot do that. The command will have to be scripted within the guest. It may be helpful to describe what you want to do in more detail.
    – Arronical
    Mar 6, 2017 at 13:26
  • You may be able to execute a guest application using VBoxmanage guestcontrol but I haven't yet figured out how to pass any parameters to this application. See askubuntu.com/questions/153894/… and virtualbox.org/manual/ch08.html#vboxmanage-guestcontrol
    – Takkat
    Mar 6, 2017 at 14:32
  • I read about it, but i guess Launching in guestcontrol will not give full privilege i.e will not give permission to run as root. Mar 6, 2017 at 15:01

0

You must log in to answer this question.

Browse other questions tagged .