To start a VMware virtual machine using command line mode

Source: Internet
Author: User

Working with the installation of VMware Workstation in CentOS to deploy virtual machines, previously using a graphical interface to start a virtual machine, to adjust the resolution size of VNC, after restarting the VNC server all virtual machines are shut down. The post-mortem analysis may be that the graphical boot virtual machine is running at Level 5, and restarting VNC server is equivalent to unregistering the session running VMware Workstation, and all virtual machines are turned off.

To avoid this problem again, feel like starting the virtual machine in Level 3 with command line mode.

Basic command:

# vmrun-t ws start "/opt/vmware/win2k8r2.vmx" Nogui to start the virtual machine without graphical interface (-T is the type of host that differentiates, Ws|server|server1|fusion|esx|vc|player, It may be more common to use WS, ESX, and player, but I do not have add-t at workstation, which may be needed by ESX and server.

# Vmrun Start "/OPT/VMWARE/WIN2K8R2.VMX" GUI launcher with graphical interface virtual machine

# Vmrun Stop "/OPT/VMWARE/WIN2K8R2.VMX" hard | Soft force shutdown of virtual machines (equivalent to direct power off) | Graceful shutdown of virtual machines

# vmrun Reset "/OPT/VMWARE/WIN2K8R2.VMX" hard | Soft Cold restart Virtual machine | Hot Restart virtual machine

# Vmrun Suspend "/OPT/VMWARE/WIN2K8R2.VMX" hard | Soft suspend virtual machine (may be equivalent to hibernation)

# Vmrun Pause "/opt/vmware/win2k8r2.vmx" Pause virtual machine

# vmrun Unpause "/OPT/VMWARE/WIN2K8R2.VMX" Stop pausing virtual machine

# Vmrun List List of running virtual machines

# PS aux | grep vmx Another way to see how a virtual machine is running

# vmrun-t ws snapshot "/opt/vmware/win2k8r2.vmx" snapshotname Create a Snapshot

# vmrun-t ws revertosnapshot "/OPT/VMWARE/WIN2K8R2.VMX" Snapshotname recovering a virtual machine from a snapshot

# vmrun-t ws listsnapshots "/OPT/VMWARE/WIN2K8R2.VMX" lists the number and name of virtual machine snapshots

# vmrun-t ws deletesnapshot "/opt/vmware/win2k8r2.vmx" snapshotname Delete a snapshot

It is better to stop the virtual machine from creating the snapshot when it is created, and it is said that this creates a snapshot that is much smaller and not verified than when running the virtual machines.

Of course there are many commands, specifically through vmrun--help self-query, Linux and Windows command format is the same.

To start a VMware virtual machine using command line mode

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.