简体   繁体   中英

How to create new VMs in Horizon View PowerCLI?

I'm trying to create new virtual machines inside an existing pool using the Horizon View PowerCLI. Although, after looking at all the cmdlets from that module, there doesn't seem to be a way to create a new machine (Like a 'new-HVmachine' command or something like that). I have the VMware.HV.Helper module and did a "get-command *HV*" to see all the cmdlets.

Does anybody know how I would create these new VMs? Any help/input would be appreciated!

You mean creating a VM with Powercli? First you have to connect to your datacenter

Connect-VIServer -Server "" -Protocol https -User "" -Password ""

Then run the command New-VM

New-VM -Name 'VMName' –VMHost 'VMHost' -Datastore 'Datastore' -DiskGB 40 -MemoryGB 8 -NumCpu 2 -NetworkName 'Virtual Machine Network'

for more information on New-VM command : NEW-VM by VMware

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM