VMware's background boot

Source: Internet
Author: User
Tags goto

VMware interface starts, consumes a lot of resources, I believe the background start is the way you like, simple introduction of the following several commonly used commands are as follows:

Open the DOS window and execute the following command:

Go to the Virtual machine installation directory: CD C:\Program Files (x86) \VMware\VMware Workstation
Start: vmrun-t ws start "C:\UBUNTU/UBUNTU.VMX" Nogui

[Description: C:\UBUNTU/UBUNTU.VMX is the Ubuntu system you created in the virtual machine, the following same]
To see if it started successfully: Tasklist|findstr VMware
[Description: This is the UNIX system in the Ps-ef|grep "VMware"]

Normal shutdown: Vmrun stop "C:\UBUNTU/UBUNTU.VMX" soft
Force shutdown: Vmrun Stop "C:\UBUNTU/UBUNTU.VMX" hard
Suspend hibernation: Vmrun suspend "c:\ubuntu/ubuntu.vmx" hard | Soft

List running virtual machines: Vmrun List

The above is to make our common use of the operation, but each time the input is certainly more troublesome, write a bat script, convenient many, paste out 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\vmware Workstation
    vmrun Stop "c:\ubuntu/ Ubuntu.vmx "Hard
    @echo stop succeed!
    Pause
    exit
: Start
    CD C:\Program Files (x86) \vmware\vmware Workstation
    vmrun list
    vmrun-t ws Start "C:\UBUNTU/UBUNTU.VMX" Nogui
    tasklist|findstr vmware
    @echo start succeed!
    Pause
    Exit

Not familiar with bat script, writing is ugly, but available.

OK, good luck to everyone.

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.