The VirtualBox Virtual Machine in win7 is automatically started at the startup of the background, and win7virtualbox
Install a linux Virtual Machine in win7.
However, every time you use linux, you can open virtualBox --> Start the installed linux System --> connect to the Remote Desktop (SSH, etc.).
It is troublesome to manually open each time, and there are windows for linux virtual machines, which is redundant. If you can start the system and run the linux Virtual Machine (no visible window) in the background, you will be happy.
Find the installation directory of VirtualBox
My virtualbox is installed in D: \ virualbox. when you enter this directory, you will see a vboxmanage.exe file. No error occurs. We use it to start the virtual machine.
How to start it? The command line is as follows:
VBoxManage startvm <uuid> | <name> [-- type gui | sdl | headless]
For example, if my new virtual machine is study
D: \ virualBox \ VBoxManage startvm study -- type headless
-- Type headless: Indicates execution in the background, no window
Come on. Open cmd and try this command.
Prompt that study virtual machine has been started.
Auto-start
You cannot see the window, but you still need to manually enter the command line to start it. If it can be started automatically
1. The first choice is to create a bat Script: virtualboxtStart. bat.
2. Write the above command: D: \ virualBox \ VBoxManage startvm study -- type headless
3. Place virtualboxtStart. bat in C: \ ProgramData \ Microsoft \ Windows \ Start Menu \ Programs \ Startup. The script in this directory runs automatically when it is started.
Okay, the employee is done. Restart the computer and you will find that win7 secretly helped us start the study virtual machine.
You can use SSH to connect.
Note: You can also use the command line in cmd to manage the status of the virtual machine:
VBoxManage controlvm <uuid> | <name> pause | resume | reset | poweroff | savestate |
For example, if you want to disable:
D: \ virualBox \ VBoxManage controlvm study poweroff