Avatar of J
J asked on

Start Virtual Box VM on server boot

I have a specific VM that runs within Virtual Box, and I would like that VM to be started automatically in the event the windows server (2012) reboots or is restarted after power outage.

Is this possible ideally without any third party software that incurs additional cost.

Thanks.
Windows Server 2012Microsoft Server OSVirtualization

Avatar of undefined
Last Comment
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

8/22/2022 - Mon
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

if you create a script, as follows, and add it to the Startup folder of Windows 2012


--- script start

cd "C:\Program Files\Oracle\VirtualBox"
VBoxHeadless --startvm name_of_your_vm_here

--- script end
ASKER
J

Thank you hanccocka, however that script will only be executed once someone logs into the server, if nobody logs in it will not execute.
ASKER CERTIFIED SOLUTION
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes