Run VBoxManage commands after running the machine

11 views
Skip to first unread message

Shubham Bansal

unread,
Jun 24, 2019, 5:36:25 AM6/24/19
to Packer
I am creating a windows Vm using VBoxManage-ovf. I want to run VBoxManage command "guestcontrol". But it can run only when the virtual machine is running (turned on). "vboxmanage" allows the command to be run only before the machine the machine is booted and "vboxmanage_post" runs the command after it is shutdown. I want something in between them.

Megan Marsh

unread,
Jun 24, 2019, 2:40:31 PM6/24/19
to packe...@googlegroups.com
you can use the shell-local provisioner to call vboxmanage directly.

On Mon, Jun 24, 2019 at 2:36 AM Shubham Bansal <sbans...@gmail.com> wrote:
I am creating a windows Vm using VBoxManage-ovf. I want to run VBoxManage command "guestcontrol". But it can run only when the virtual machine is running (turned on). "vboxmanage" allows the command to be run only before the machine the machine is booted and "vboxmanage_post" runs the command after it is shutdown. I want something in between them.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/174a84fd-91fc-43eb-bc0b-a4b0627a9554%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages