Results 1 to 5 of 5

Thread: VM Start from command line

  1. #1
    Join Date
    Mar 2007
    Beans
    807

    VM Start from command line

    I used to run the following script as a cron job.
    Code:
    #!/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?
    Registered Linux User: 450747 Registered Ubuntu User: 16269

  2. #2
    Join Date
    Jul 2005
    Location
    Milwaukee, WI
    Beans
    533

    Re: VM Start from command line

    Can you give us the error(s) from running these commands manually?
    Wolfteck.com: Motorola V400|HP ZE4200|Xilinx Native
    Because other hobbies are good: Vintage Motorcycles
    How did I become the world expert on the Jacobsen Sno-burst?

  3. #3
    Join Date
    Mar 2007
    Beans
    807

    Re: VM Start from command line

    Quote Originally Posted by cilynx View Post
    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:~$
    Registered Linux User: 450747 Registered Ubuntu User: 16269

  4. #4
    Join Date
    Mar 2007
    Beans
    807

    Re: VM Start from command line

    Notta?
    Registered Linux User: 450747 Registered Ubuntu User: 16269

  5. #5
    Join Date
    Mar 2007
    Beans
    807

    Re: VM Start from command line

    http://unixfoo.blogspot.com/2008/11/...t-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
    Last edited by ant2ne; November 6th, 2009 at 06:45 AM.
    Registered Linux User: 450747 Registered Ubuntu User: 16269

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •