Windows set up VMware boot automatically, virtual machines also start

Source: Internet
Author: User

Many children's shoes, developed with Windows system computers, install a virtual machine on their computer and use it as a server in a Linux system. But every time the computer boot to restart the virtual machine power, it is not cost-effective. Now, Bishop Bo. On the Windows system, set up VMware boot automatically, and the virtual machine will start.

First in a certain disk, find a quiet corner, first create a new vm_start.bat file, and then open with the editor, write down D:\Program files\vmware\vmrun.exe "Start" E:\system \CENTOS6.5-1\CENTOS6.5-1-BIT.VMX "Nogui this line to open the script.

  Note: Start the front section is your VMware installation path, and the back to Nogui section is your Linux system file path.

  

  

  

Then, we build a vm_stop.bat file, write down " D:\Program files\vmware\vmrun.exe" Stop "E:\system\centos6.5-1\ CENTOS6.5-1-BIT.VMX"Soft script, path and just the same.

If you can test yourself write not write right, you can double-click the file, if you pop up the following DOS interface, and open your virtual machine, it means that you write is right! ^_^

  

Next, we can add to the Windows script (Login/Logoff), run > Gpedit.msc > User Configuration > Windows Settings > Scripts (Login/Logoff) > Add

  

Double-click on " login " and " logout ", then click " Add " to select the path of the script file we just created.

  

Then click OK and note that the script parameter is not written because we have written it in the. bat file .

  

Windows set up VMware boot automatically, virtual machines also start

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.