One batch command to start the vmwarevm

Source: Internet
Author: User


A batch processing command is used to start the vmwarevm. My working machine is the window7 system. Every day, I have to deal with the Ubuntu System of the server version. So I used VmWare to build the Ubuntu environment, the first thing to do at work is to double-click the VmWare icon on the desktop, select the Ubuntu virtual machine, and click the start button. Because I use shell commands on the Ubuntu system, I cannot use the graphic interface at all, after the VM is started, I want to switch to the backend mode to Run (Run in Background ). The above operations are time-consuming and labor-consuming. Depending on the latency of the machine, there is still a different degree of waiting and poor experience. So I found a one-click method to enable a virtual machine under VmWare on the Internet and shared it with you. Www.2cto.com: My VmWare version is 7.1.4 (64-bit). Both 32-bit and 64-bit VmWare comes with a command line tool: VMRun, you can specify the virtual system startup parameters. My VmWare software installation path is: "C: \ Program Files (x86) \ VMware Workstation \ vmrun.exe" Ubuntu Virtual Machine storage path is: "D: \ Ubuntu. vmx "is very simple. You only need the following command to start the Ubuntu Virtual Machine" C: \ Program Files (x86) \ VMware Workstation \ vmrun.exe "start" D: \ Ubuntu. vmx "creates a text file. Copy the preceding command and save it as start. bat (batch file type), and double-click the file to start the Ubuntu virtual machine. The above command format is: vmrun path start virtual machine storage path. If this is the only way, the virtual machine will still display the interface when it is started. How can we make the virtual machine run in the background? You only need to add a nogui parameter after the preceding command, for example, "C: \ Program Files (x86) \ VMware Workstation \ vmrun.exe" start "D: \ Ubuntu. vmx "nogui www.2cto.com, the virtual machine will be started silently in the background, and you can directly use the terminal tool putty to log on to the Ubuntu system. If you want to enable the VM automatically after windows is started, you can add the above batch file to the windows Startup item or schedule the task. In addition, different parameters can be passed for vmrun.exe to implement different functions, such as shutting down virtual machine systems and running programs. You can directly run the vmrun program without parameters to view its help documentation. The VmWare official instructions are attached: http://up.2cto.com/2012/0810/20120810031846130.pdf Author ciray

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.