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
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
相关文章推荐
- How to create and start VirtualBox VM without GUI
- How to create and start VirtualBox VM without GUI
- How far can you be without any encouragement
- How can I edit the welcome message when ssh start?
- How can I throw an exception without losing the original stack trace information in .NET?
- How can I exit the window while press the Esc key
- How can we listen for errors that do not trigger window.onerror?
- How can I change TinyMCE's editing-window- WIDTH
- How can we refactor code without unit tests?
- How can one start solving Dynamic Programming problems?
- How can I install mySQL on CentOS without being root/su?
- [转]How can I install the VS2017 version of msbuild on a build server without installing the IDE?
- How to start a VirtualBox VM headless in Windows 10
- How to resolve "can not start db2 in windows command line"
- How can use window.showModalDialog to open a .aspx page pop up window.
- How can selenium web driver get to know when the new window has opened and then resume its execution
- OllyDbg完全教程 如何开始调试[How to start debugging session] CPU 窗口[CPU window]
- How can we live with loss — and could we truly live without it?
- How to start weblogic managed servers without manually entering the password
- Cannot start session without errors, please check错误解决