【发布时间】:2015-01-16 14:24:07
【问题描述】:
这是基于其他帖子。 clone vm change network identity
我在构建 VM 时需要设置 IPv6 地址。我找到了属性,但它不允许我设置值。
$FirstNic.Adapter.IpV6Spec = New-Object VMware.Vim.CustomizationIPSettingsIpV6AddressSpec
$FirstNic.Adapter.IpV6Spec.Ip = New-Object VMware.Vim.CustomizationFixedIpV6
$FirstNic.Adapter.IpV6Spec.Ip.IpAddress = "::1"
The property 'IpAddress' cannot be found on this object. Verify that the property exists and can be set. At line:33 char:4 + $FirstNic.Adapter.IpV6Spec.Ip.IpAddress = "::1" + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
这是成员:类型名称:VMware.Vim.CustomizationFixedIpV6
Name MemberType Definition
---- ---------- ----------
Equals Method bool Equals(System.Object obj)
GetHashCode Method int GetHashCode()
GetType Method type GetType()
ToString Method string ToString()
DynamicProperty Property VMware.Vim.DynamicProperty[] DynamicProperty {get;set;}
DynamicType Property string DynamicType {get;set;}
IpAddress Property string IpAddress {get;set;}
SubnetMask Property int SubnetMask {get;set;}
【问题讨论】:
标签: powershell vmware