zoukankan      html  css  js  c++  java
  • 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 FilesOracleVirtualBoxVBoxManage.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.

  • 相关阅读:
    Java页面中文编码要转换两次encodeURI
    ajax用get刷新页面元素在IE下无效解决~~
    祝贺自己开博~~
    错误域控降级导致解析问题
    ELK 脚本自动化删除索引
    Windows针对子目录共享权限控制
    ES查询区分大小写
    Docker异常时区问题
    Docker自定义镜像无容器日志输出
    ELK时间戳
  • 原文地址:https://www.cnblogs.com/sos-blue/p/8343897.html
Copyright © 2011-2022 走看看