Avatar of Dan
DanFlag for United Kingdom of Great Britain and Northern Ireland

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)
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

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
Avatar of Dan
Dan
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

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
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Microsoft Server OS
Microsoft Server OS

The Microsoft Server topic includes all of the legacy versions of the operating system, including the Windows NT 3.1, NT 3.5, NT 4.0 and Windows 2000 and Windows Home Server versions.

59K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo