PDA

View Full Version : [ubuntu] VM Start from command line


ant2ne
October 24th, 2009, 10:47 AM
I used to run the following script as a cron job.
#!/bin/sh
vmware-cmd "/data/vm/Ubuntu9.04/Ubuntu64-bit/Ubuntu64-bit.vmx" start
vmware-cmd "/data/vm/Server03/Windows Server 2003 Enterprise Edition 2.vmx" start
vmware-cmd "/data/vm/XP Pro x64/XP Pro x64/XP Pro x64.vmx" start
With the new version, the command vmware-cmd seems to be broken. What would the new command look like?

cilynx
October 25th, 2009, 12:41 AM
Can you give us the error(s) from running these commands manually?

ant2ne
October 25th, 2009, 07:23 PM
Can you give us the error(s) from running these commands manually?
ant2ne@2ne-buntu:~$ sudo vmware-cmd --help
sudo: vmware-cmd: command not found
ant2ne@2ne-buntu:~$

ant2ne
November 1st, 2009, 09:01 PM
Notta?

ant2ne
November 6th, 2009, 01:24 AM
http://unixfoo.blogspot.com/2008/11/vmware-20-cli-management-utility.html

Power off a virtual machine :

[root@foo-vm12 bin]# /usr/vmware/bin/vmware-vim-cmd vmsvc/power.off 128
Powered off
[root@foo-vm12 bin]#

Power on a virtual machine :

[root@foo-vm12 bin]# /usr/vmware/bin/vmware-vim-cmd vmsvc/power.on 128
Powered on
[root@foo-vm12 bin]#

Also

You have to make sure that root has an "Administrator" role under permissions in the
web interface.

http://ubuntuforums.org/showthread.php?t=998271