13.0

Table Of Contents
vmrun removeSharedFolder Ubuntu16.vmwarevm/Ubuntu16.vmx sharedFolderName
Note On Windows Vista and Windows 7 or later guests, only the Administrator account
can use copyFileFromHostToGuest and deleteFileInGuest options to write and delete files in
the C:\ and system folders, or use the createDirectoryInGuest and deleteDirectoryInGuest
options to modify system directories. Regular users, even those with administrator privilege,
cannot perform these operations.
Guest Variables and Environment
n From the host, set a guest variable on the virtual machines.
vmrun writeVariable Win10.vmwarevm/Win10.vmx guestVar vmstartdate 21April2017
n On the guest operating systems, read the guest variable that you just set.
> rpctool.exe "info-get guestinfo.vmstartdate"
$ vmware-rpctool "info-get guestinfo.vmstartdate"
n From the host, set a guest environment variable on a Linux virtual machine and verify by
writing the environment variables into a temporary file.
vmrun writeVariable Ubuntu16.vmwarevm/Ubuntu16.vmx guestEnv LD_LIBRARY_PATH /usr/local/lib
Guest user: root
Guest password:
vmrun runScriptInGuest Ubuntu16.vmwarevm/Ubuntu16.vmx /bin/bash "/usr/bin/env > /tmp/
env.out"
Guest user: root
Guest password:
Note No output is sent to the host when you use the runScriptInGuest option with the vmrun
command. Find the output of the command in the /tmp/env.out file on the guest.
n On a Linux guest, determine the IP address and set it in a guest variable.
$ ipaddr=`ifconfig eth0 | grep inet.addr`
$ vmware-rpctool "info-set guestinfo.theip $ipaddr"
n From the host, retrieve the IP address that was just set to the guest.
vmrun readVariable Ubuntu10/Ubuntu10.vmx guestVar theip
Using VMware Fusion
VMware, Inc. 205