ESXi

 View Only
  • 1.  Script to create virtual machine

    Posted Nov 05, 2009 08:18 PM

    Hi can any body have the script to create, delete and etc scrippt for virtual machine on esx server.



  • 2.  RE: Script to create virtual machine

    Posted Nov 05, 2009 08:22 PM

    Check the scripts that come with the vMA






    --Matt

    VCP, vExpert, Unix Geek



  • 3.  RE: Script to create virtual machine

    Posted Nov 05, 2009 08:32 PM

    vMA ??

    Please dont mind. or better to give link



  • 4.  RE: Script to create virtual machine

    Posted Nov 05, 2009 08:33 PM

    http://www.vmware.com/support/developer/vima/






    --Matt

    VCP, vExpert, Unix Geek



  • 5.  RE: Script to create virtual machine
    Best Answer

    Posted Nov 05, 2009 08:57 PM

    see this document, it may be a good starting point

    http://communities.vmware.com/docs/DOC-4210

    Q: How do I create a VM?

    A: New virtual machine can be created using New-VM cmdlet. Before, executing this cmdlet first you need to connect to server. Below script would create a new virtual machine in the same host.

    New-VM -Name "Target-VM" -Host (Get-VMHost)

    Also, there is some great stuff in the vSphere™ PowerCLI Forums