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