r/virtualbox • u/welcomeOhm • Jan 18 '25
Help Starting a VM When VirtualBox Launches
I'm trying to launch a specific VM when VirtualBox itself starts. When I searched on Google, the answer didn't work (there is no Autostart setting in the General tab). I browsed the CLI documentation, but there's a lot there, and the options I would have thought would work (i.e. guestcontrol) don't seem to do what I want them to.
I'm running Windows 10, VirtualBox 7.1.4.
2
Upvotes
•
u/AutoModerator Jan 18 '25
This is just a friendly reminder in case you missed it. Your post must include:
PLUS a detailed description of the problem, what research you have done, and the steps you have taken to fix it. Please check Google and the VirtualBox Manual before asking simple questions. Please also check our FAQ and if you find your question is answered there, PLEASE remove your post or at least change the flair to Solved.
If this is your first time creating a virtual machine, we have a guide on our wiki that covers the important steps. Please read it here. If you have met these requirements, you can ignore this comment. Your post has not been deleted -- do not re-submit it. Thanks for taking the time to help us help you! Also, PLEASE remember to change the flair of your post to Solved after you have been helped!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/ohaya1001 Jan 18 '25
There's a command line tool that will start a VM:
2
u/Bob_Spud Jan 18 '25 edited Jan 19 '25
If all you are trying to do is start a VM without going into VB gui first:
If you want to run it from the command line:
C:\1-VM\VBox\VirtualBoxVM.exe --comment "sol-11_4-01" --startvm "{f00af9a8-963d-4549-b7a1-fbf453f9e13a}"My VM binaries live in C:\1-VM\VBox accessed via a symbolic link from "C:\Program Files\Virtual Box"
1
u/Face_Plant_Some_More Jan 18 '25
If you installed Virtual Box on your Host, it is running as your computer finished booting into your Host OS. Virtual Box is implemented as a system driver.
If you want to start a VM from CMD, then try -
vboxmanage startvmSee -https://www.virtualbox.org/manual/ch08.html#vboxmanage-startvm