13.0

Table Of Contents
Option Parameters Description
CopyFileFromGuestToHost path to .vmx file
file path in guest
file path on host
Copies a file from the guest operating system to the host. VMware
Tools and a valid guest login are required. For example, you can use
the -gu and -gp options to log in to the guest. Specify the source
filename, or guest filename, before the destination filename, or host
filename.
renameFileInGuest path to .vmx file
original filename
new filename
Renames or moves a file in the guest operating system. VMware Tools
and a valid guest login are required. For example, you can use the -gu
and -gp options to log in to the guest. Specify the source filename, or
original filename, before the destination filename.
connectNamedDevice path to .vmx file
device name
Connects the device named in the command to the guest operating
system. You can only run this command when the virtual machine
is powered on. You can use device names, such as sound, serial0,
Ethernet0
,
sata0:1
, etc.
Note After you use the vmrun connectNamedDevice command to
connect a disconnected sound device to a running virtual machine,
powering off the virtual machine might disconnect the sound device
from the virtual machine, even though the virtual machine settings list
the sound device as connected.
disconnectNamedDevice path to .vmx file
device name
Disconnects the device named in the command from the guest
operating system. You can only run this command when the virtual
machine is powered on. You can use device names, such as sound,
serial0
,
Ethernet0
,
sata0:1
, etc.
Note After you use the vmrun disconnectNamedDevice command to
disconnect a connected sound device from a running virtual machine,
powering off the virtual machine might reconnect the sound device to
the virtual machine, even though the virtual machine settings list the
sound device as disconnected.
captureScreen path to .vmx file
output path on
host
Captures the screen of the virtual machine to a local file. The specified
output file on the host is in PNG format. A valid guest login is
required. For example, you can use the -gu and -gp options to log
in to the guest.
writeVariable path to .vmx file
[ guestVar |
runtimeConfig |
guestEnv ]
variable name
variable value
Writes a variable to the virtual machine state or guest. You can set
a nonpersistent guest variable, guestVar, a runtime configuration
variable,runtimeConfig, as stored in the .vmx file, or an environment
variable,
guestEnv, in the guest operating system. A guest variable
is a runtimeonly value that provides a simple way to pass runtime
values in and out of the guest. Environment variables require VMware
Tools and a valid guest login. For example, you can use the -gu
and -gp options to log in to the guest. With Linux, setting the guest
environment also requires root login.
Using VMware Fusion
VMware, Inc. 200