How to Write an Ubuntu Script to Launch VMware With a Password
- 1). Launch gedit.
- 2). Type:
#!/bin/bash
vmrun -T server -h '<local or remote host (with a fully qualified domain name>:8333/sdk' -u root -p '<password>' start "<path to virtual machine>"
in the new file. - 3). Save the file.
- 4). Launch a console session and navigate to the directory where you saved the file.
- 5). Type "chmod 755 <filename>" using the name of the file you just saved.
- 6). Type "./<your filename>" to start a virtual machine.
Source...