VirtualBox virtual machine running in the background

Let us talk about the principle of VirtualBox virtual machine running in the background, VirtualBox virtual machine has established a model for the headless mode, which means that no monitor, no echo, control of virtual machine remotely through a remote desktop remote VNC or windows link function to complete. For only a command-line Linux virtual machine without a GUI, a function ssh can get perfect control, and for the systematic graphical interface of course we want to take full advantage of its graphical shell to manage them slightly. After the article Cows separate system in a virtual machine with VNC How to Remote Desktop to manage for everyone to talk about.

For VirtualBox, it provides a complete command-line administration. Here cows as we start the virtual machine and the instruction was introduced to running in the background.

VBoxManage startvm     <uuid>|<name>     [--type gui|sdl|headless]

We assume that the virtual machine is called nenew, we like the headless mode startup of virtual machines, we can execute the following command:

vboxmanage startvm nenew --type headless

Above this command can be run headless mode virtual machines. After running the command virtual machine should have been running in the background, the emergence of downside and tips:

Waiting for the VM to power on…
VM has been successfully started.

If no further minimized if a screen prompt does not display a black screen may be performed by the following command headless mode

vboxmanage startvm nenew --type headless

ok, the virtual machine is running in the background, you can be accessed by remote tool, linux desktop systems to be configured VNC remote control and be turned on at the display options of a virtual machine to allow remote access. For opened a headless mode virtual machines can be shut down our Chongqing and other operations with the following command.

VBoxManage controlvm <uuid>|<name>     pause|resume|reset|poweroff|savestate|

For example, closed just started headless virtual machine nenew we can use the following command to complete

vboxmanage controlvm nenew poweroff

Reproduced in: https: //www.cnblogs.com/ericsun/archive/2013/06/06/3120889.html

Guess you like

Origin blog.csdn.net/weixin_34411563/article/details/93154961