Win7 under VirtualBox virtual machine boot background self-boot

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.