Win7 Install a Linux virtual machine, learning under very good.
But every time you use Linux, you open the Linux system with virtualbox--> boot installation--and then connect with Remote Desktop (SSH, etc.)
Each time the manual open is troublesome, and the Linux virtual machine also has Windows, compare Miscellaneous. If you can boot up and run a Linux virtual machine (no visible window) in the background, then be happy.
Locate the installation directory for VirtualBox
My VirtualBox installed in D:\virualBox, enter this directory, you will see there is a VBoxManage.exe file, there is no mistake, we just use it to start the virtual machine.
How does it start? The command line is as follows
Vboxmanage STARTVM <uuid>|<name> [--type gui|sdl|headless]
For example, my new virtual machine is called study, so
D:\virualBox\VBoxManage STARTVM Study--type Headless
--type headless: Show background execution, no window OH
Come on, let's open cmd and try this command.
Tip The study virtual machine has been started.
Boot from boot
The window is not visible now, but you still need to manually enter the command line to start. If you can boot from the boot, okay.
1, preferred we want to make a bat script: Virtualboxtstart.bat
2, inside Write the above command: D:\virualBox\VBoxManage STARTVM study--type Headless
3, put Virtualboxtstart.bat to C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup, the script in this directory is the start of the time automatically run OH
All right, the handyman Gaocheng. Restart the computer, you will find that Win7 secretly helped us to launch the study this virtual machine.
can be connected with SSH, operation.
Note: You can also use the command line to perform state management of a virtual machine in cmd:
Vboxmanage CONTROLVM <uuid>|<name> pause|resume|reset|poweroff|savestate|
For example I want to close:
D:\virualBox\VBoxManage CONTROLVM Study Poweroff
Win7 VirtualBox virtual machine boot background self-booting