Autostart VirtualBox VM with GUI
Autostart VirtualBox VM with GUI
I tried to use the autostart plist script to fire up a VM, it works fine. Problem is I need the GUI to actually show on the desktop screen, we are using Jenkins to build our Android code and deploy it to the VM then run UI tests using Robotium. Problem is the VM started via the plist script doesn't have a UI that is visible to Jenkins. Please don't say use VBoxSDL its not actually installed on the Mac and its not for production environments since its only for devs of VB to use.
-
noteirak
- Site Moderator
- Posts: 5231
- Joined: 13. Jan 2012, 11:14
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: Debian, Win 2k8, Win 7
- Contact:
Re: Autostart VirtualBox VM with GUI
If you are refering to the autostart provided within Virtualbox, it starts the VM using the vboxheadless front-end, which does not have a GUI by design. If you still wish to interact with the desktop of the VM, you can always use the VRDE server.
Else, it is simply not possible to switch between front-ends without restarting the VM.
Else, it is simply not possible to switch between front-ends without restarting the VM.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Manage your VirtualBox infrastructure the free way!
Re: Autostart VirtualBox VM with GUI
I know that I can run it headless but the purpose of my post was to find out how to run a GUI particularly and Android VM so that I can run GUI testing with Robotium. So please can you address this issue with specifics instead of vague references to VRDE.
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Autostart VirtualBox VM with GUI
Starting VBox local (not headless) guests at host boot is a process of the host. Create a startup script and place it on the host where it will run at boot/login.
Example:
VBoxManage startvm <uuid|name>
Example:
VBoxManage startvm <uuid|name>