您的位置:首页 > 其它

How can I start a VM without getting a window?

2014-12-26 14:55 246 查看
VirtualBox has a window showing the display of the guest OS. I am connecting to VirtualBox with Remote Desktop, so I don't need VirtualBox to show that window in the host OS.

1. Old question, but an update is in order:

As of VirtualBox 4.2, you can start a headless machine from the GUI by holding Shift while
you click the Start button.

2, cmd line way

VBoxManage list vms

VBoxHeadless -s <Guest-OS-Name>

VBoxHeadless -s <UUID>

VBoxManage startvm <guest-os-name> --type headless


create a bat

start_vm_rhel.bat

"C:\Program Files\Oracle\VirtualBox\VBoxHeadless.exe" -s "rhel"

3,cmd backgroud running setting

notice: mind the fuck windows space error!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

run_bgnd.vbs

Set ws = CreateObject("Wscript.Shell")

ws.run "cmd.exe /c c:\ProgramData\VirtualBox\start_vm_rhel.bat",vbhide

start_vm_rhel.bat

"C:\Program Files\Oracle\VirtualBox\VboxHeadless.exe" --startvm "rhel"

regedit

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\


ref:

zz: http://superuser.com/questions/72449/how-can-i-start-a-vm-without-getting-a-window
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: