VMware Cloud Community
Ravi1987
Contributor
Contributor
Jump to solution

Script to create virtual machine

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

Ravi
Tags (1)
0 Kudos
1 Solution

Accepted Solutions
Troy_Clavell
Immortal
Immortal
Jump to solution

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

View solution in original post

0 Kudos
4 Replies
mcowger
Immortal
Immortal
Jump to solution

Check the scripts that come with the vMA






--Matt

VCP, vExpert, Unix Geek

--Matt VCDX #52 blog.cowger.us
0 Kudos
Ravi1987
Contributor
Contributor
Jump to solution

vMA ??

Please dont mind. or better to give link

Ravi
0 Kudos
mcowger
Immortal
Immortal
Jump to solution

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






--Matt

VCP, vExpert, Unix Geek

--Matt VCDX #52 blog.cowger.us
0 Kudos
Troy_Clavell
Immortal
Immortal
Jump to solution

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

0 Kudos