[英]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. 我正在尝试使用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).
尽管在查看了该模块中的所有cmdlet之后,似乎没有办法创建新计算机(如“ new-HVmachine”命令之类)。 I have the VMware.HV.Helper module and did a "get-command *HV*" to see all the cmdlets.
我具有VMware.HV.Helper模块,并执行了“ get-command * HV *”来查看所有cmdlet。
Does anybody know how I would create these new VMs? 有人知道我将如何创建这些新的虚拟机吗? Any help/input would be appreciated!
任何帮助/输入将不胜感激!
You mean creating a VM with Powercli? 您的意思是使用Powercli创建VM? First you have to connect to your datacenter
首先,您必须连接到数据中心
Connect-VIServer -Server "" -Protocol https -User "" -Password ""
Then run the command New-VM 然后运行命令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 有关New-VM命令的更多信息: VMware的NEW-VM
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.