Vmware background startup
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!