The VirtualBox Virtual Machine in win7 is automatically started at the startup of the background, and win7virtualbox

Source: Internet
Author: User

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

 

Related Article

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.