In: Computer Science
VMWARE - NETWORK
Research and find out how you can start a notepad application on the VM by running the VMRUN script on your host machine.
The vmrun tool is installed by default with the VMware Server and VMware Workstation products. Assuming that a standard installation is performed, the vmrun executable is located in \Program Files\VMware\VMware Server on Windows hosts and /usr/bin on Linux.
The basic command line syntax for using vmrun varies between host platforms and VMware product, but may be generally summarized as follows:
vmrun <host authentication flags> <guest authentication flags> <command> <parameters>
The host authentication flags are required to provide host information and the login and password for the host system to perform management tasks on the virtual machines. These are essentially the same credentials that would be used when accessing the VI Web Access management interface. These flags are required only on VMware Server hosts, and are not needed for VMware Workstation:
VMRUN in notepad
db_tool = os.path.join(r'C:\Program Files\VMware\VMware
VIX\vmrun.exe')
db_name=r"-T esx -h https://10.10.10.10/sdk -u user -p password -gu
user -gp password runProgramInGuest '[datastore1]
datastore1/datastore1.vmx' -interactive notepad.exe"
p = subprocess.Popen([db_tool, '-T' ,'server', '-h',
'https://10.10.10.10/sdk', '-u', 'user', '-p', 'password', '-gu',
'user', '-gp', 'password', 'runProgramInGuest', '"[datastore1]"',
'datastore1/datastore1.vmx','-interactive' ,'notepad.exe']
p.communicate()