Start the background of vmware and start the background of vmware

Source: Internet
Author: User

Start the background of vmware and start the background of vmware

Starting the vmware interface consumes a lot of resources. I believe that background startup is a favorite method. The following common commands are briefly introduced:

Open the dos window and execute the following command:

Enter the Virtual Machine installation directory: cd C: \ Program Files (x86) \ VMware Workstation
Start: vmrun-T ws start "C: \ ubuntu/Ubuntu. vmx" nogui

[Note: C: \ ubuntu/Ubuntu. vmx is the ubuntu system you have created in the virtual machine. The following is the same]
Check whether the startup is successful: tasklist | findstr vmware
[Note: ps-ef | grep "vmware" in unix systems]

Normal shutdown: vmrun stop "C: \ ubuntu/Ubuntu. vmx" soft
Force Shutdown: vmrun stop "C: \ ubuntu/Ubuntu. vmx" hard
Pending sleep: vmrun suspend "C: \ ubuntu/Ubuntu. vmx" hard | soft

List running virtual machines: vmrun list

The above are common operations, but every input is certainly troublesome. It is much more convenient to write a bat script. It is pasted as follows:

: Start vmware @ echo s: start vmware p: stop vmware @ set/p select = input: @ if "% select %" = "s" goto start @ if "% select %" = "p" goto stop: stop cd C: \ Program Files (x86) \ VMware Workstation vmrun stop "C: \ ubuntu/Ubuntu. vmx "hard @ echo stop succeed! Pause exit: start cd C: \ Program Files (x86) \ VMware Workstation vmrun list vmrun-T ws start "C: \ ubuntu/Ubuntu. vmx "nogui tasklist | findstr vmware @ echo start succeed! Pause exit

I am not familiar with the bat script. It is ugly but usable.

Good luck!

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.