0

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!

4

1 回答 1

0

你的意思是用 Powercli 创建一个虚拟机?首先,您必须连接到您的数据中心

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

然后运行命令 New-VM

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

有关 New-VM 命令的更多信息:VMware 的 NEW-VM

于 2018-10-19T13:10:46.943 回答