为什么 New-SCVirtualNetworkAdapter 对于名称长度超过 64 个字符的虚拟机会失败?

为什么 New-SCVirtualNetworkAdapter 对于名称长度超过 64 个字符的虚拟机会失败?

我有 2 个相同的虚拟机,第一个虚拟机的名称相对较短,而第二个虚拟机的名称有 65 个字符。为什么 New-SCVirtualNetworkAdapter 对第一个虚拟机成功,而对第二个虚拟机失败?

New-SCVirtualNetworkAdapter -vm "TestVM_ced7319a-1159-4e8f-bc88-f1487491ef2b"


SlotId                                     : 1
VirtualNetwork                             :
VMwarePortGroup                            :
MACAddressType                             : Dynamic
EthernetAddressType                        : Dynamic
PhysicalAddressType                        : Dynamic
MACAddress                                 :
EthernetAddress                            :
PhysicalAddress                            :
RequiredBandwidth                          : 0
VirtualNetworkAdapterType                  : Emulated
VmwAdapterIndex                            :
LogicalNetwork                             :
VMNetwork                                  :
VMNetworkServiceSetting                    :
VMSubnet                                   :
PortClassification                         :
VirtualNetworkAdapterPortProfileSet        :
LogicalSwitch                              :
GuestIPNetworkVirtualizationUpdatesEnabled : False
MACAddressSpoofingEnabled                  : False
MACAddressesSpoofingEnabled                : False
VMNetworkOptimizationEnabled               : False
VLanEnabled                                : False
VLanID                                     : 0
UsesSriov                                  : False
IsUsedForHostManagement                    : False
VirtualNetworkAdapterComplianceStatus      : Compliant
TemplateNicName                            :
VirtualNetworkAdapterComplianceErrors      : {}
PerfNetworkKBytesRead                      : 0
PerfNetworkKBytesWrite                     : 0
DeviceID                                   : Microsoft:440E7589-D1F4-4C0A-8A9C-B2BCA6305A64\718032DA-6EFB-4EF4-8152-9A2FBDA945BF\1
IPv4AddressType                            : Dynamic
IPv6AddressType                            : Dynamic
IPv4Addresses                              : {}
IPv6Addresses                              : {}
PortACL                                    :
ObjectType                                 : VirtualNetworkAdapter
Accessibility                              : Public
Name                                       : TestVM_ced7319a-1159-4e8f-bc88-f1487491ef2b
IsViewOnly                                 : False
Description                                :
AddedTime                                  : 11/26/2015 4:10:45 PM
ModifiedTime                               : 11/26/2015 4:10:48 PM
Enabled                                    : True
MostRecentTask                             : Create network adapter
ServerConnection                           : Microsoft.SystemCenter.VirtualMachineManager.Remoting.ServerConnection
ID                                         : 14f04617-249c-41ab-9d46-3abb9d972238
MarkedForDeletion                          : False
IsFullyCached                              : True
MostRecentTaskIfLocal                      : Create network adapter

New-SCVirtualNetworkAdapter -vm "TestVM_718cdf7b-e4c3-461a-93a8-07f20258c093AAAAAAAAAAAAAAAAAAAAAA"
New-SCVirtualNetworkAdapter : VMM is unable to process one or more of the provided cmdlet parameters. (Error ID: 1600)

Type Get-Help New-SCVirtualNetworkAdapter -full to view a list of defined parameters and complete descriptions. Then
try the operation again.
At line:1 char:1
+ New-SCVirtualNetworkAdapter -vm "TestVM_718cdf7b-e4c3-461a-93a8-07f20258c093AAAA ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ReadError: (:) [New-SCVirtualNetworkAdapter], CarmineException
    + FullyQualifiedErrorId : 1600,Microsoft.SystemCenter.VirtualMachineManager.Cmdlets.NewNICCmdlet

答案1

Microsoft 将 System Center Virtual Machine Manager (SCVMM) 控制台中的 VM 名称长度限制为 64 个字符。因此,VMM PowerShell 命令行将按照您所体验的方式运行。

相关内容