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