How to start a VirtualBox VM headless in Windows 10

If you wanted to start a VirtualBox VM headless (no UI) in the past, you needed additional tools.  I always found this to be a bit of a pain that VirtualBox didn't support this 'out of the box'.  Thankfully Version 5.0 has been recently released and it will finally handle this for you. Yay!

There is now a command line option for starting your VMs without having to open the UI.  This means we can add it to our windows startup and our VM can start with windows. To test this out, you need to know 2 things:

  1. Location of your VirtualBox install.
  2. The name of the VM you want to start.

Create a shortcut to start the VM headless

Right click your desktop and 'create a new shortcut'.  For the path of your shortcut you want to Browse to the VirtualBox install location and select VBoxManage.exe, Save and then right click the new shortcut to edit the properties.  From here we just need to add some extra arguments to the Target: startvm "MyVMName" --type headless

In my case the VM was Named "Ubuntu14" so the target ended up looking like this:

"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" startvm "Ubuntu14" --type headless

To test, simply double click your new shortcut. If all goes well the VM should start minus the UI.

Getting it start with windows 10

This probably works with previous versions of Windows too.  Press Windows Key + R to open the run dialog.  Then type:

shell:Startup

This will open your startup folder, simply drag your shortcut created earlier into this folder.  Job done! Your VM will now start with Windows on startup.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值