VirtualBox

Ticket #13452 (new enhancement)

Opened 8 years ago

Last modified 7 years ago

Please add workdir argument to guestcontrol exec

Reported by: indifferent Owned by:
Component: guest control Version: VirtualBox 4.3.16
Keywords: Cc:
Guest type: Linux Host type: Linux

Description

I'm working on virtual build-test factory, based on VirtualBox. VBoxManage guestcontrol helps immensely, but tasks such as 'make' often need concrete folder to run in. Because of that I have to use construct as following, wrapping everything under bash command:

VBoxManage guestcontrol "$ARG_VM_NAME" exec --wait-exit --wait-stderr \
--image "/bin/bash" --username $VM_USER_LOGIN --password $VM_USER_PASSWORD \
-- -c "cd '/mnt/ramdisk/$BUILD/buildroot' && make images"

It would be very helpful to have --workdir or similar argument to guestcontrol exec, similarly to process spawning libraries in programming languages and libraries.

Change History

comment:1 Changed 7 years ago by kjonca

This would be (even more) desirable option for windows guests.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use