Vmware KVM
Vmware KVM
You can find the most up-to-date technical documentation on the VMware website at:
https://docs.vmware.com/
If you have comments about this documentation, submit your feedback to
[email protected]
VMware, Inc.
3401 Hillview Ave.
Palo Alto, CA 94304
www.vmware.com
Copyright © 2013–2018 VMware, Inc. All rights reserved. Copyright and trademark information.
VMware, Inc. 2
Contents
1 VMware KVM 4
Use VMware KVM 4
Set Hot Keys for VMware KVM 5
Set the VMware KVM Log File 6
VMware, Inc. 3
VMware KVM 1
With VMware Workstation Pro, you can run virtual machines with VMware KVM, which allows you to use
hot keys to switch among running virtual machines and the host, as if they were attached to a KVM
switch.
To use VMware KVM, you must create virtual machines with Workstation Pro or Workstation Player, and
you must configure keyboard shortcuts to cycle through the virtual machines. VMware KVM is only
available with VMware Workstation 10 and later.
You can include the command to start a virtual machine in a shortcut in the host operating system's
startup group so that the virtual machine starts when a user logs on to the host computer.
You must run the vmware-kvm.exe command once for each virtual machine you want to start or stop with
VMware KVM.
Procedure
1 Open the Windows command prompt and navigate to the VMware Workstation Pro installation folder.
Option Description
--power-off Powers off the specified virtual machine. Add =hard to perform a hard power off
to the virtual machine. When you power off a virtual machine, vmware-kvm.exe
closes the virtual machine and switches to the next active virtual machine.
--suspend Suspends the specified virtual machine. Add =hard to perform a hard suspend to
the virtual machine.
VMware, Inc. 4
VMware KVM
Option Description
--reset Resets the specified virtual machine. Add =hard to perform a hard reset to the
virtual machine.
--detach Detaches the specified virtual machine. The virtual machine then runs in the
background.
--preferences Shows the vmware-kvm preferences dialog box, where you set a hot key for
switching between virtual machines.
For example, type vmware-kvm.exe --power-off=hard MyVM.vmx to hard power off the virtual
machine MyVM.vmx. Type vmware-kvm.exe --reset MyVM.vmx to reset MyVM.vmx.
Note When a virtual machine is opened with VMware KVM , it cannot be opened with Workstation
Pro or Workstation Player. To open the virtual machine with Workstation Pro or Workstation Player,
you must close the virtual machine using vmware-kvm.exe --detach MyVM.vmx, or using the --exit
command.
What to do next
You can set specific hot keys to cycle between virtual machines and the host. See Set Hot Keys for
VMware KVM
Each time you press the specified hot key, the screen displays the next virtual machine or the host, in
order. When you press the hot keys and a particular virtual machine is not running, it is skipped.
Prerequisites
Review the hot key combinations to avoid selecting hot key combinations already recognized by
Workstation virtual machines. See Default Hot Key Combinations.
Procedure
3 Click Modify.
VMware, Inc. 5
VMware KVM
5 Select the check boxes next to the other feature to enable or disable.
Option Description
Stretch guest Allows the virtual machine to change the guest display to fit the full screen. The
guest display resolution is not changed.
6 Select an exiting behavior for the virtual machines used with VMware KVM.
7 Click OK.
The following keys are reserved and cannot be assigned as hot keys.
Ctrl+Alt+Insert Shut down or, depending on the guest operating system, log out of the guest operating system. This
command is received solely by the virtual machine.
The log file records diagnostic information from vmware-kvm.exe. The log file is separate from the
vmware.log file, which stores information on running virtual machines.
If you do not specify a log file, vmware-kvm.exe generates a log file in the %TEMP% folder .
Procedure
VMware, Inc. 6