github.com/vmware/govmomi@v0.51.0/simulator/esx/host_config_info.go (about) 1 // © Broadcom. All Rights Reserved. 2 // The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries. 3 // SPDX-License-Identifier: Apache-2.0 4 5 package esx 6 7 import ( 8 "github.com/vmware/govmomi/simulator/internal" 9 "github.com/vmware/govmomi/vim25/types" 10 ) 11 12 // HostConfigInfo is the default template for the HostSystem config property. 13 // Capture method: 14 // govc object.collect -s -dump HostSystem:ha-host config 15 var HostConfigInfo = types.HostConfigInfo{ 16 Host: types.ManagedObjectReference{Type: "HostSystem", Value: "ha-host"}, 17 Product: types.AboutInfo{ 18 Name: "VMware ESXi", 19 FullName: "VMware ESXi 8.0.2 build-21997540", 20 Vendor: "VMware, Inc.", 21 Version: "8.0.2", 22 Build: "21997540", 23 LocaleVersion: "INTL", 24 LocaleBuild: "000", 25 OsType: "vmnix-x86", 26 ProductLineId: "embeddedEsx", 27 ApiType: "HostAgent", 28 ApiVersion: "8.0.2.0", 29 InstanceUuid: "", 30 LicenseProductName: "VMware ESX Server", 31 LicenseProductVersion: "8.0.2", 32 }, 33 DeploymentInfo: &types.HostDeploymentInfo{ 34 BootedFromStatelessCache: types.NewBool(false), 35 }, 36 HyperThread: &types.HostHyperThreadScheduleInfo{ 37 Available: false, 38 Active: false, 39 Config: true, 40 }, 41 ConsoleReservation: (*types.ServiceConsoleReservationInfo)(nil), 42 VirtualMachineReservation: (*types.VirtualMachineMemoryReservationInfo)(nil), 43 StorageDevice: &HostStorageDeviceInfo, 44 FileSystemVolume: &HostFileSystemVolumeInfo, 45 SystemFile: nil, 46 Network: &types.HostNetworkInfo{ 47 Vswitch: []types.HostVirtualSwitch{ 48 { 49 Name: "vSwitch0", 50 Key: "key-vim.host.VirtualSwitch-vSwitch0", 51 NumPorts: 1536, 52 NumPortsAvailable: 1530, 53 Mtu: 1500, 54 Portgroup: []string{"key-vim.host.PortGroup-VM Network", "key-vim.host.PortGroup-Management Network"}, 55 Pnic: []string{"key-vim.host.PhysicalNic-vmnic0"}, 56 Spec: types.HostVirtualSwitchSpec{ 57 NumPorts: 128, 58 Bridge: &types.HostVirtualSwitchBondBridge{ 59 HostVirtualSwitchBridge: types.HostVirtualSwitchBridge{}, 60 NicDevice: []string{"vmnic0"}, 61 Beacon: &types.HostVirtualSwitchBeaconConfig{ 62 Interval: 1, 63 }, 64 LinkDiscoveryProtocolConfig: &types.LinkDiscoveryProtocolConfig{ 65 Protocol: "cdp", 66 Operation: "listen", 67 }, 68 }, 69 Policy: &types.HostNetworkPolicy{ 70 Security: &types.HostNetworkSecurityPolicy{ 71 AllowPromiscuous: types.NewBool(false), 72 MacChanges: types.NewBool(true), 73 ForgedTransmits: types.NewBool(true), 74 }, 75 NicTeaming: &types.HostNicTeamingPolicy{ 76 Policy: "loadbalance_srcid", 77 ReversePolicy: types.NewBool(true), 78 NotifySwitches: types.NewBool(true), 79 RollingOrder: types.NewBool(false), 80 FailureCriteria: &types.HostNicFailureCriteria{ 81 CheckSpeed: "minimum", 82 Speed: 10, 83 CheckDuplex: types.NewBool(false), 84 FullDuplex: types.NewBool(false), 85 CheckErrorPercent: types.NewBool(false), 86 Percentage: 0, 87 CheckBeacon: types.NewBool(false), 88 }, 89 NicOrder: &types.HostNicOrderPolicy{ 90 ActiveNic: []string{"vmnic0"}, 91 StandbyNic: nil, 92 }, 93 }, 94 OffloadPolicy: &types.HostNetOffloadCapabilities{ 95 CsumOffload: types.NewBool(true), 96 TcpSegmentation: types.NewBool(true), 97 ZeroCopyXmit: types.NewBool(true), 98 }, 99 ShapingPolicy: &types.HostNetworkTrafficShapingPolicy{ 100 Enabled: types.NewBool(false), 101 AverageBandwidth: 0, 102 PeakBandwidth: 0, 103 BurstSize: 0, 104 }, 105 }, 106 Mtu: 0, 107 }, 108 }, 109 }, 110 ProxySwitch: nil, 111 Portgroup: []types.HostPortGroup{ 112 { 113 Key: "key-vim.host.PortGroup-VM Network", 114 Port: nil, 115 Vswitch: "key-vim.host.VirtualSwitch-vSwitch0", 116 ComputedPolicy: types.HostNetworkPolicy{ 117 Security: &types.HostNetworkSecurityPolicy{ 118 AllowPromiscuous: types.NewBool(false), 119 MacChanges: types.NewBool(true), 120 ForgedTransmits: types.NewBool(true), 121 }, 122 NicTeaming: &types.HostNicTeamingPolicy{ 123 Policy: "loadbalance_srcid", 124 ReversePolicy: types.NewBool(true), 125 NotifySwitches: types.NewBool(true), 126 RollingOrder: types.NewBool(false), 127 FailureCriteria: &types.HostNicFailureCriteria{ 128 CheckSpeed: "minimum", 129 Speed: 10, 130 CheckDuplex: types.NewBool(false), 131 FullDuplex: types.NewBool(false), 132 CheckErrorPercent: types.NewBool(false), 133 Percentage: 0, 134 CheckBeacon: types.NewBool(false), 135 }, 136 NicOrder: &types.HostNicOrderPolicy{ 137 ActiveNic: []string{"vmnic0"}, 138 StandbyNic: nil, 139 }, 140 }, 141 OffloadPolicy: &types.HostNetOffloadCapabilities{ 142 CsumOffload: types.NewBool(true), 143 TcpSegmentation: types.NewBool(true), 144 ZeroCopyXmit: types.NewBool(true), 145 }, 146 ShapingPolicy: &types.HostNetworkTrafficShapingPolicy{ 147 Enabled: types.NewBool(false), 148 AverageBandwidth: 0, 149 PeakBandwidth: 0, 150 BurstSize: 0, 151 }, 152 }, 153 Spec: types.HostPortGroupSpec{ 154 Name: "VM Network", 155 VlanId: 0, 156 VswitchName: "vSwitch0", 157 Policy: types.HostNetworkPolicy{ 158 Security: &types.HostNetworkSecurityPolicy{}, 159 NicTeaming: &types.HostNicTeamingPolicy{ 160 Policy: "", 161 ReversePolicy: (*bool)(nil), 162 NotifySwitches: (*bool)(nil), 163 RollingOrder: (*bool)(nil), 164 FailureCriteria: &types.HostNicFailureCriteria{}, 165 NicOrder: (*types.HostNicOrderPolicy)(nil), 166 }, 167 OffloadPolicy: &types.HostNetOffloadCapabilities{}, 168 ShapingPolicy: &types.HostNetworkTrafficShapingPolicy{}, 169 }, 170 }, 171 }, 172 { 173 Key: "key-vim.host.PortGroup-Management Network", 174 Port: []types.HostPortGroupPort{ 175 { 176 Key: "key-vim.host.PortGroup.Port-33554436", 177 Mac: []string{"00:0c:29:81:d8:a0"}, 178 Type: "host", 179 }, 180 }, 181 Vswitch: "key-vim.host.VirtualSwitch-vSwitch0", 182 ComputedPolicy: types.HostNetworkPolicy{ 183 Security: &types.HostNetworkSecurityPolicy{ 184 AllowPromiscuous: types.NewBool(false), 185 MacChanges: types.NewBool(true), 186 ForgedTransmits: types.NewBool(true), 187 }, 188 NicTeaming: &types.HostNicTeamingPolicy{ 189 Policy: "loadbalance_srcid", 190 ReversePolicy: types.NewBool(true), 191 NotifySwitches: types.NewBool(true), 192 RollingOrder: types.NewBool(false), 193 FailureCriteria: &types.HostNicFailureCriteria{ 194 CheckSpeed: "minimum", 195 Speed: 10, 196 CheckDuplex: types.NewBool(false), 197 FullDuplex: types.NewBool(false), 198 CheckErrorPercent: types.NewBool(false), 199 Percentage: 0, 200 CheckBeacon: types.NewBool(false), 201 }, 202 NicOrder: &types.HostNicOrderPolicy{ 203 ActiveNic: []string{"vmnic0"}, 204 StandbyNic: nil, 205 }, 206 }, 207 OffloadPolicy: &types.HostNetOffloadCapabilities{ 208 CsumOffload: types.NewBool(true), 209 TcpSegmentation: types.NewBool(true), 210 ZeroCopyXmit: types.NewBool(true), 211 }, 212 ShapingPolicy: &types.HostNetworkTrafficShapingPolicy{ 213 Enabled: types.NewBool(false), 214 AverageBandwidth: 0, 215 PeakBandwidth: 0, 216 BurstSize: 0, 217 }, 218 }, 219 Spec: types.HostPortGroupSpec{ 220 Name: "Management Network", 221 VlanId: 0, 222 VswitchName: "vSwitch0", 223 Policy: types.HostNetworkPolicy{ 224 Security: &types.HostNetworkSecurityPolicy{}, 225 NicTeaming: &types.HostNicTeamingPolicy{ 226 Policy: "loadbalance_srcid", 227 ReversePolicy: (*bool)(nil), 228 NotifySwitches: types.NewBool(true), 229 RollingOrder: types.NewBool(false), 230 FailureCriteria: &types.HostNicFailureCriteria{ 231 CheckSpeed: "", 232 Speed: 0, 233 CheckDuplex: (*bool)(nil), 234 FullDuplex: (*bool)(nil), 235 CheckErrorPercent: (*bool)(nil), 236 Percentage: 0, 237 CheckBeacon: types.NewBool(false), 238 }, 239 NicOrder: &types.HostNicOrderPolicy{ 240 ActiveNic: []string{"vmnic0"}, 241 StandbyNic: nil, 242 }, 243 }, 244 OffloadPolicy: &types.HostNetOffloadCapabilities{}, 245 ShapingPolicy: &types.HostNetworkTrafficShapingPolicy{}, 246 }, 247 }, 248 }, 249 }, 250 Pnic: []types.PhysicalNic{ 251 { 252 Key: "key-vim.host.PhysicalNic-vmnic0", 253 Device: "vmnic0", 254 Pci: "0000:0b:00.0", 255 Driver: "nvmxnet3", 256 LinkSpeed: &types.PhysicalNicLinkInfo{ 257 SpeedMb: 10000, 258 Duplex: true, 259 }, 260 ValidLinkSpecification: []types.PhysicalNicLinkInfo{ 261 { 262 SpeedMb: 10000, 263 Duplex: true, 264 }, 265 }, 266 Spec: types.PhysicalNicSpec{ 267 Ip: &types.HostIpConfig{}, 268 LinkSpeed: &types.PhysicalNicLinkInfo{ 269 SpeedMb: 10000, 270 Duplex: true, 271 }, 272 }, 273 WakeOnLanSupported: false, 274 Mac: "00:0c:29:81:d8:a0", 275 FcoeConfiguration: &types.FcoeConfig{ 276 PriorityClass: 3, 277 SourceMac: "00:0c:29:81:d8:a0", 278 VlanRange: []types.FcoeConfigVlanRange{ 279 {}, 280 }, 281 Capabilities: types.FcoeConfigFcoeCapabilities{ 282 PriorityClass: false, 283 SourceMacAddress: false, 284 VlanRange: true, 285 }, 286 FcoeActive: false, 287 }, 288 VmDirectPathGen2Supported: types.NewBool(false), 289 VmDirectPathGen2SupportedMode: "", 290 ResourcePoolSchedulerAllowed: types.NewBool(true), 291 ResourcePoolSchedulerDisallowedReason: nil, 292 AutoNegotiateSupported: types.NewBool(false), 293 }, 294 { 295 Key: "key-vim.host.PhysicalNic-vmnic1", 296 Device: "vmnic1", 297 Pci: "0000:13:00.0", 298 Driver: "nvmxnet3", 299 LinkSpeed: &types.PhysicalNicLinkInfo{ 300 SpeedMb: 10000, 301 Duplex: true, 302 }, 303 ValidLinkSpecification: []types.PhysicalNicLinkInfo{ 304 { 305 SpeedMb: 10000, 306 Duplex: true, 307 }, 308 }, 309 Spec: types.PhysicalNicSpec{ 310 Ip: &types.HostIpConfig{}, 311 LinkSpeed: &types.PhysicalNicLinkInfo{ 312 SpeedMb: 10000, 313 Duplex: true, 314 }, 315 }, 316 WakeOnLanSupported: false, 317 Mac: "00:0c:29:81:d8:aa", 318 FcoeConfiguration: &types.FcoeConfig{ 319 PriorityClass: 3, 320 SourceMac: "00:0c:29:81:d8:aa", 321 VlanRange: []types.FcoeConfigVlanRange{ 322 {}, 323 }, 324 Capabilities: types.FcoeConfigFcoeCapabilities{ 325 PriorityClass: false, 326 SourceMacAddress: false, 327 VlanRange: true, 328 }, 329 FcoeActive: false, 330 }, 331 VmDirectPathGen2Supported: types.NewBool(false), 332 VmDirectPathGen2SupportedMode: "", 333 ResourcePoolSchedulerAllowed: types.NewBool(true), 334 ResourcePoolSchedulerDisallowedReason: nil, 335 AutoNegotiateSupported: types.NewBool(false), 336 }, 337 }, 338 Vnic: []types.HostVirtualNic{ 339 { 340 Device: "vmk0", 341 Key: "key-vim.host.VirtualNic-vmk0", 342 Portgroup: "Management Network", 343 Spec: types.HostVirtualNicSpec{ 344 Ip: &types.HostIpConfig{ 345 Dhcp: true, 346 IpAddress: "127.0.0.1", 347 SubnetMask: "255.0.0.0", 348 IpV6Config: (*types.HostIpConfigIpV6AddressConfiguration)(nil), 349 }, 350 Mac: "00:0c:29:81:d8:a0", 351 DistributedVirtualPort: (*types.DistributedVirtualSwitchPortConnection)(nil), 352 Portgroup: "Management Network", 353 Mtu: 1500, 354 TsoEnabled: types.NewBool(true), 355 NetStackInstanceKey: "defaultTcpipStack", 356 OpaqueNetwork: (*types.HostVirtualNicOpaqueNetworkSpec)(nil), 357 ExternalId: "", 358 PinnedPnic: "", 359 IpRouteSpec: (*types.HostVirtualNicIpRouteSpec)(nil), 360 }, 361 Port: "key-vim.host.PortGroup.Port-33554436", 362 }, 363 }, 364 ConsoleVnic: nil, 365 DnsConfig: &types.HostDnsConfig{ 366 Dhcp: true, 367 VirtualNicDevice: "vmk0", 368 HostName: "localhost", 369 DomainName: "localdomain", 370 Address: []string{"8.8.8.8"}, 371 SearchDomain: []string{"localdomain"}, 372 }, 373 IpRouteConfig: &types.HostIpRouteConfig{ 374 DefaultGateway: "127.0.0.1", 375 GatewayDevice: "", 376 IpV6DefaultGateway: "", 377 IpV6GatewayDevice: "", 378 }, 379 ConsoleIpRouteConfig: nil, 380 RouteTableInfo: &types.HostIpRouteTableInfo{ 381 IpRoute: []types.HostIpRouteEntry{ 382 { 383 Network: "0.0.0.0", 384 PrefixLength: 0, 385 Gateway: "127.0.0.1", 386 DeviceName: "vmk0", 387 }, 388 { 389 Network: "127.0.0.0", 390 PrefixLength: 8, 391 Gateway: "0.0.0.0", 392 DeviceName: "vmk0", 393 }, 394 }, 395 Ipv6Route: nil, 396 }, 397 Dhcp: nil, 398 Nat: nil, 399 IpV6Enabled: types.NewBool(false), 400 AtBootIpV6Enabled: types.NewBool(false), 401 NetStackInstance: []types.HostNetStackInstance{ 402 { 403 Key: "vSphereProvisioning", 404 Name: "", 405 DnsConfig: &types.HostDnsConfig{}, 406 IpRouteConfig: &types.HostIpRouteConfig{}, 407 RequestedMaxNumberOfConnections: 11000, 408 CongestionControlAlgorithm: "newreno", 409 IpV6Enabled: types.NewBool(true), 410 RouteTableConfig: (*types.HostIpRouteTableConfig)(nil), 411 }, 412 { 413 Key: "vmotion", 414 Name: "", 415 DnsConfig: &types.HostDnsConfig{}, 416 IpRouteConfig: &types.HostIpRouteConfig{}, 417 RequestedMaxNumberOfConnections: 11000, 418 CongestionControlAlgorithm: "newreno", 419 IpV6Enabled: types.NewBool(true), 420 RouteTableConfig: (*types.HostIpRouteTableConfig)(nil), 421 }, 422 { 423 Key: "defaultTcpipStack", 424 Name: "defaultTcpipStack", 425 DnsConfig: &types.HostDnsConfig{ 426 Dhcp: true, 427 VirtualNicDevice: "vmk0", 428 HostName: "localhost", 429 DomainName: "localdomain", 430 Address: []string{"8.8.8.8"}, 431 SearchDomain: []string{"localdomain"}, 432 }, 433 IpRouteConfig: &types.HostIpRouteConfig{ 434 DefaultGateway: "127.0.0.1", 435 GatewayDevice: "", 436 IpV6DefaultGateway: "", 437 IpV6GatewayDevice: "", 438 }, 439 RequestedMaxNumberOfConnections: 11000, 440 CongestionControlAlgorithm: "newreno", 441 IpV6Enabled: types.NewBool(true), 442 RouteTableConfig: &types.HostIpRouteTableConfig{ 443 IpRoute: []types.HostIpRouteOp{ 444 { 445 ChangeOperation: "ignore", 446 Route: types.HostIpRouteEntry{ 447 Network: "0.0.0.0", 448 PrefixLength: 0, 449 Gateway: "127.0.0.1", 450 DeviceName: "vmk0", 451 }, 452 }, 453 { 454 ChangeOperation: "ignore", 455 Route: types.HostIpRouteEntry{ 456 Network: "127.0.0.0", 457 PrefixLength: 8, 458 Gateway: "0.0.0.0", 459 DeviceName: "vmk0", 460 }, 461 }, 462 }, 463 Ipv6Route: nil, 464 }, 465 }, 466 }, 467 OpaqueSwitch: nil, 468 OpaqueNetwork: nil, 469 }, 470 Vmotion: &types.HostVMotionInfo{ 471 NetConfig: &types.HostVMotionNetConfig{ 472 CandidateVnic: []types.HostVirtualNic{ 473 { 474 Device: "vmk0", 475 Key: "VMotionConfig.vmotion.key-vim.host.VirtualNic-vmk0", 476 Portgroup: "Management Network", 477 Spec: types.HostVirtualNicSpec{ 478 Ip: &types.HostIpConfig{ 479 Dhcp: true, 480 IpAddress: "127.0.0.1", 481 SubnetMask: "255.0.0.0", 482 IpV6Config: (*types.HostIpConfigIpV6AddressConfiguration)(nil), 483 }, 484 Mac: "00:0c:29:81:d8:a0", 485 DistributedVirtualPort: (*types.DistributedVirtualSwitchPortConnection)(nil), 486 Portgroup: "Management Network", 487 Mtu: 1500, 488 TsoEnabled: types.NewBool(true), 489 NetStackInstanceKey: "defaultTcpipStack", 490 OpaqueNetwork: (*types.HostVirtualNicOpaqueNetworkSpec)(nil), 491 ExternalId: "", 492 PinnedPnic: "", 493 IpRouteSpec: (*types.HostVirtualNicIpRouteSpec)(nil), 494 }, 495 Port: "", 496 }, 497 }, 498 SelectedVnic: "", 499 }, 500 IpConfig: (*types.HostIpConfig)(nil), 501 }, 502 VirtualNicManagerInfo: &types.HostVirtualNicManagerInfo{ 503 NetConfig: []types.VirtualNicManagerNetConfig{ 504 { 505 NicType: "faultToleranceLogging", 506 MultiSelectAllowed: true, 507 CandidateVnic: []types.HostVirtualNic{ 508 { 509 Device: "vmk0", 510 Key: "faultToleranceLogging.key-vim.host.VirtualNic-vmk0", 511 Portgroup: "Management Network", 512 Spec: types.HostVirtualNicSpec{ 513 Ip: &types.HostIpConfig{ 514 Dhcp: true, 515 IpAddress: "127.0.0.1", 516 SubnetMask: "255.0.0.0", 517 IpV6Config: (*types.HostIpConfigIpV6AddressConfiguration)(nil), 518 }, 519 Mac: "00:0c:29:81:d8:a0", 520 DistributedVirtualPort: (*types.DistributedVirtualSwitchPortConnection)(nil), 521 Portgroup: "Management Network", 522 Mtu: 1500, 523 TsoEnabled: types.NewBool(true), 524 NetStackInstanceKey: "defaultTcpipStack", 525 OpaqueNetwork: (*types.HostVirtualNicOpaqueNetworkSpec)(nil), 526 ExternalId: "", 527 PinnedPnic: "", 528 IpRouteSpec: (*types.HostVirtualNicIpRouteSpec)(nil), 529 }, 530 Port: "", 531 }, 532 }, 533 SelectedVnic: nil, 534 }, 535 { 536 NicType: "management", 537 MultiSelectAllowed: true, 538 CandidateVnic: []types.HostVirtualNic{ 539 { 540 Device: "vmk1", 541 Key: "management.key-vim.host.VirtualNic-vmk1", 542 Portgroup: "", 543 Spec: types.HostVirtualNicSpec{ 544 Ip: &types.HostIpConfig{ 545 Dhcp: true, 546 IpAddress: "192.168.0.1", 547 SubnetMask: "255.0.0.0", 548 IpV6Config: (*types.HostIpConfigIpV6AddressConfiguration)(nil), 549 }, 550 Mac: "00:0c:29:81:d8:00", 551 DistributedVirtualPort: (*types.DistributedVirtualSwitchPortConnection)(nil), 552 Portgroup: "Management Network", 553 Mtu: 1500, 554 TsoEnabled: types.NewBool(true), 555 NetStackInstanceKey: "defaultTcpipStack", 556 OpaqueNetwork: (*types.HostVirtualNicOpaqueNetworkSpec)(nil), 557 ExternalId: "", 558 PinnedPnic: "", 559 IpRouteSpec: (*types.HostVirtualNicIpRouteSpec)(nil), 560 }, 561 Port: "", 562 }, 563 { 564 Device: "vmk0", 565 Key: "management.key-vim.host.VirtualNic-vmk0", 566 Portgroup: "Management Network", 567 Spec: types.HostVirtualNicSpec{ 568 Ip: &types.HostIpConfig{ 569 Dhcp: true, 570 IpAddress: "127.0.0.1", 571 SubnetMask: "255.0.0.0", 572 IpV6Config: (*types.HostIpConfigIpV6AddressConfiguration)(nil), 573 }, 574 Mac: "00:0c:29:81:d8:a0", 575 DistributedVirtualPort: (*types.DistributedVirtualSwitchPortConnection)(nil), 576 Portgroup: "Management Network", 577 Mtu: 1500, 578 TsoEnabled: types.NewBool(true), 579 NetStackInstanceKey: "defaultTcpipStack", 580 OpaqueNetwork: (*types.HostVirtualNicOpaqueNetworkSpec)(nil), 581 ExternalId: "", 582 PinnedPnic: "", 583 IpRouteSpec: (*types.HostVirtualNicIpRouteSpec)(nil), 584 }, 585 Port: "", 586 }, 587 }, 588 SelectedVnic: []string{"management.key-vim.host.VirtualNic-vmk0"}, 589 }, 590 { 591 NicType: "vSphereProvisioning", 592 MultiSelectAllowed: true, 593 CandidateVnic: []types.HostVirtualNic{ 594 { 595 Device: "vmk0", 596 Key: "vSphereProvisioning.key-vim.host.VirtualNic-vmk0", 597 Portgroup: "Management Network", 598 Spec: types.HostVirtualNicSpec{ 599 Ip: &types.HostIpConfig{ 600 Dhcp: true, 601 IpAddress: "127.0.0.1", 602 SubnetMask: "255.0.0.0", 603 IpV6Config: (*types.HostIpConfigIpV6AddressConfiguration)(nil), 604 }, 605 Mac: "00:0c:29:81:d8:a0", 606 DistributedVirtualPort: (*types.DistributedVirtualSwitchPortConnection)(nil), 607 Portgroup: "Management Network", 608 Mtu: 1500, 609 TsoEnabled: types.NewBool(true), 610 NetStackInstanceKey: "defaultTcpipStack", 611 OpaqueNetwork: (*types.HostVirtualNicOpaqueNetworkSpec)(nil), 612 ExternalId: "", 613 PinnedPnic: "", 614 IpRouteSpec: (*types.HostVirtualNicIpRouteSpec)(nil), 615 }, 616 Port: "", 617 }, 618 }, 619 SelectedVnic: nil, 620 }, 621 { 622 NicType: "vSphereReplication", 623 MultiSelectAllowed: true, 624 CandidateVnic: []types.HostVirtualNic{ 625 { 626 Device: "vmk0", 627 Key: "vSphereReplication.key-vim.host.VirtualNic-vmk0", 628 Portgroup: "Management Network", 629 Spec: types.HostVirtualNicSpec{ 630 Ip: &types.HostIpConfig{ 631 Dhcp: true, 632 IpAddress: "127.0.0.1", 633 SubnetMask: "255.0.0.0", 634 IpV6Config: (*types.HostIpConfigIpV6AddressConfiguration)(nil), 635 }, 636 Mac: "00:0c:29:81:d8:a0", 637 DistributedVirtualPort: (*types.DistributedVirtualSwitchPortConnection)(nil), 638 Portgroup: "Management Network", 639 Mtu: 1500, 640 TsoEnabled: types.NewBool(true), 641 NetStackInstanceKey: "defaultTcpipStack", 642 OpaqueNetwork: (*types.HostVirtualNicOpaqueNetworkSpec)(nil), 643 ExternalId: "", 644 PinnedPnic: "", 645 IpRouteSpec: (*types.HostVirtualNicIpRouteSpec)(nil), 646 }, 647 Port: "", 648 }, 649 }, 650 SelectedVnic: nil, 651 }, 652 { 653 NicType: "vSphereReplicationNFC", 654 MultiSelectAllowed: true, 655 CandidateVnic: []types.HostVirtualNic{ 656 { 657 Device: "vmk0", 658 Key: "vSphereReplicationNFC.key-vim.host.VirtualNic-vmk0", 659 Portgroup: "Management Network", 660 Spec: types.HostVirtualNicSpec{ 661 Ip: &types.HostIpConfig{ 662 Dhcp: true, 663 IpAddress: "127.0.0.1", 664 SubnetMask: "255.0.0.0", 665 IpV6Config: (*types.HostIpConfigIpV6AddressConfiguration)(nil), 666 }, 667 Mac: "00:0c:29:81:d8:a0", 668 DistributedVirtualPort: (*types.DistributedVirtualSwitchPortConnection)(nil), 669 Portgroup: "Management Network", 670 Mtu: 1500, 671 TsoEnabled: types.NewBool(true), 672 NetStackInstanceKey: "defaultTcpipStack", 673 OpaqueNetwork: (*types.HostVirtualNicOpaqueNetworkSpec)(nil), 674 ExternalId: "", 675 PinnedPnic: "", 676 IpRouteSpec: (*types.HostVirtualNicIpRouteSpec)(nil), 677 }, 678 Port: "", 679 }, 680 }, 681 SelectedVnic: nil, 682 }, 683 { 684 NicType: "vmotion", 685 MultiSelectAllowed: true, 686 CandidateVnic: []types.HostVirtualNic{ 687 { 688 Device: "vmk0", 689 Key: "vmotion.key-vim.host.VirtualNic-vmk0", 690 Portgroup: "Management Network", 691 Spec: types.HostVirtualNicSpec{ 692 Ip: &types.HostIpConfig{ 693 Dhcp: true, 694 IpAddress: "127.0.0.1", 695 SubnetMask: "255.0.0.0", 696 IpV6Config: (*types.HostIpConfigIpV6AddressConfiguration)(nil), 697 }, 698 Mac: "00:0c:29:81:d8:a0", 699 DistributedVirtualPort: (*types.DistributedVirtualSwitchPortConnection)(nil), 700 Portgroup: "Management Network", 701 Mtu: 1500, 702 TsoEnabled: types.NewBool(true), 703 NetStackInstanceKey: "defaultTcpipStack", 704 OpaqueNetwork: (*types.HostVirtualNicOpaqueNetworkSpec)(nil), 705 ExternalId: "", 706 PinnedPnic: "", 707 IpRouteSpec: (*types.HostVirtualNicIpRouteSpec)(nil), 708 }, 709 Port: "", 710 }, 711 }, 712 SelectedVnic: nil, 713 }, 714 { 715 NicType: "vsan", 716 MultiSelectAllowed: true, 717 CandidateVnic: []types.HostVirtualNic{ 718 { 719 Device: "vmk0", 720 Key: "vsan.key-vim.host.VirtualNic-vmk0", 721 Portgroup: "Management Network", 722 Spec: types.HostVirtualNicSpec{ 723 Ip: &types.HostIpConfig{ 724 Dhcp: true, 725 IpAddress: "127.0.0.1", 726 SubnetMask: "255.0.0.0", 727 IpV6Config: (*types.HostIpConfigIpV6AddressConfiguration)(nil), 728 }, 729 Mac: "00:0c:29:81:d8:a0", 730 DistributedVirtualPort: (*types.DistributedVirtualSwitchPortConnection)(nil), 731 Portgroup: "Management Network", 732 Mtu: 1500, 733 TsoEnabled: types.NewBool(true), 734 NetStackInstanceKey: "defaultTcpipStack", 735 OpaqueNetwork: (*types.HostVirtualNicOpaqueNetworkSpec)(nil), 736 ExternalId: "", 737 PinnedPnic: "", 738 IpRouteSpec: (*types.HostVirtualNicIpRouteSpec)(nil), 739 }, 740 Port: "", 741 }, 742 }, 743 SelectedVnic: nil, 744 }, 745 { 746 NicType: "vsanWitness", 747 MultiSelectAllowed: true, 748 CandidateVnic: []types.HostVirtualNic{ 749 { 750 Device: "vmk0", 751 Key: "vsanWitness.key-vim.host.VirtualNic-vmk0", 752 Portgroup: "Management Network", 753 Spec: types.HostVirtualNicSpec{ 754 Ip: &types.HostIpConfig{ 755 Dhcp: true, 756 IpAddress: "127.0.0.1", 757 SubnetMask: "255.0.0.0", 758 IpV6Config: (*types.HostIpConfigIpV6AddressConfiguration)(nil), 759 }, 760 Mac: "00:0c:29:81:d8:a0", 761 DistributedVirtualPort: (*types.DistributedVirtualSwitchPortConnection)(nil), 762 Portgroup: "Management Network", 763 Mtu: 1500, 764 TsoEnabled: types.NewBool(true), 765 NetStackInstanceKey: "defaultTcpipStack", 766 OpaqueNetwork: (*types.HostVirtualNicOpaqueNetworkSpec)(nil), 767 ExternalId: "", 768 PinnedPnic: "", 769 IpRouteSpec: (*types.HostVirtualNicIpRouteSpec)(nil), 770 }, 771 Port: "", 772 }, 773 }, 774 SelectedVnic: nil, 775 }, 776 }, 777 }, 778 Capabilities: &types.HostNetCapabilities{ 779 CanSetPhysicalNicLinkSpeed: true, 780 SupportsNicTeaming: true, 781 NicTeamingPolicy: []string{"loadbalance_ip", "loadbalance_srcmac", "loadbalance_srcid", "failover_explicit"}, 782 SupportsVlan: true, 783 UsesServiceConsoleNic: false, 784 SupportsNetworkHints: true, 785 MaxPortGroupsPerVswitch: 0, 786 VswitchConfigSupported: true, 787 VnicConfigSupported: true, 788 IpRouteConfigSupported: true, 789 DnsConfigSupported: true, 790 DhcpOnVnicSupported: true, 791 IpV6Supported: types.NewBool(true), 792 }, 793 DatastoreCapabilities: &types.HostDatastoreSystemCapabilities{ 794 NfsMountCreationRequired: true, 795 NfsMountCreationSupported: true, 796 LocalDatastoreSupported: false, 797 VmfsExtentExpansionSupported: types.NewBool(true), 798 }, 799 OffloadCapabilities: &types.HostNetOffloadCapabilities{ 800 CsumOffload: types.NewBool(true), 801 TcpSegmentation: types.NewBool(true), 802 ZeroCopyXmit: types.NewBool(true), 803 }, 804 Service: &types.HostServiceInfo{ 805 Service: []types.HostService{ 806 { 807 Key: "DCUI", 808 Label: "Direct Console UI", 809 Required: false, 810 Uninstallable: false, 811 Running: true, 812 Ruleset: nil, 813 Policy: "on", 814 SourcePackage: &types.HostServiceSourcePackage{ 815 SourcePackageName: "esx-base", 816 Description: "This VIB contains all of the base functionality of vSphere ESXi.", 817 }, 818 }, 819 { 820 Key: "TSM", 821 Label: "ESXi Shell", 822 Required: false, 823 Uninstallable: false, 824 Running: false, 825 Ruleset: nil, 826 Policy: "off", 827 SourcePackage: &types.HostServiceSourcePackage{ 828 SourcePackageName: "esx-base", 829 Description: "This VIB contains all of the base functionality of vSphere ESXi.", 830 }, 831 }, 832 { 833 Key: "TSM-SSH", 834 Label: "SSH", 835 Required: false, 836 Uninstallable: false, 837 Running: false, 838 Ruleset: nil, 839 Policy: "off", 840 SourcePackage: &types.HostServiceSourcePackage{ 841 SourcePackageName: "esx-base", 842 Description: "This VIB contains all of the base functionality of vSphere ESXi.", 843 }, 844 }, 845 { 846 Key: "lbtd", 847 Label: "Load-Based Teaming Daemon", 848 Required: false, 849 Uninstallable: false, 850 Running: true, 851 Ruleset: nil, 852 Policy: "on", 853 SourcePackage: &types.HostServiceSourcePackage{ 854 SourcePackageName: "esx-base", 855 Description: "This VIB contains all of the base functionality of vSphere ESXi.", 856 }, 857 }, 858 { 859 Key: "lwsmd", 860 Label: "Active Directory Service", 861 Required: false, 862 Uninstallable: false, 863 Running: false, 864 Ruleset: nil, 865 Policy: "off", 866 SourcePackage: &types.HostServiceSourcePackage{ 867 SourcePackageName: "esx-base", 868 Description: "This VIB contains all of the base functionality of vSphere ESXi.", 869 }, 870 }, 871 { 872 Key: "ntpd", 873 Label: "NTP Daemon", 874 Required: false, 875 Uninstallable: false, 876 Running: false, 877 Ruleset: []string{"ntpClient"}, 878 Policy: "off", 879 SourcePackage: &types.HostServiceSourcePackage{ 880 SourcePackageName: "esx-base", 881 Description: "This VIB contains all of the base functionality of vSphere ESXi.", 882 }, 883 }, 884 { 885 Key: "pcscd", 886 Label: "PC/SC Smart Card Daemon", 887 Required: false, 888 Uninstallable: false, 889 Running: false, 890 Ruleset: nil, 891 Policy: "off", 892 SourcePackage: &types.HostServiceSourcePackage{ 893 SourcePackageName: "esx-base", 894 Description: "This VIB contains all of the base functionality of vSphere ESXi.", 895 }, 896 }, 897 { 898 Key: "sfcbd-watchdog", 899 Label: "CIM Server", 900 Required: false, 901 Uninstallable: false, 902 Running: false, 903 Ruleset: []string{"CIMHttpServer", "CIMHttpsServer"}, 904 Policy: "on", 905 SourcePackage: &types.HostServiceSourcePackage{ 906 SourcePackageName: "esx-base", 907 Description: "This VIB contains all of the base functionality of vSphere ESXi.", 908 }, 909 }, 910 { 911 Key: "snmpd", 912 Label: "SNMP Server", 913 Required: false, 914 Uninstallable: false, 915 Running: false, 916 Ruleset: []string{"snmp"}, 917 Policy: "on", 918 SourcePackage: &types.HostServiceSourcePackage{ 919 SourcePackageName: "esx-base", 920 Description: "This VIB contains all of the base functionality of vSphere ESXi.", 921 }, 922 }, 923 { 924 Key: "vmsyslogd", 925 Label: "Syslog Server", 926 Required: true, 927 Uninstallable: false, 928 Running: true, 929 Ruleset: nil, 930 Policy: "on", 931 SourcePackage: &types.HostServiceSourcePackage{ 932 SourcePackageName: "esx-base", 933 Description: "This VIB contains all of the base functionality of vSphere ESXi.", 934 }, 935 }, 936 { 937 Key: "vpxa", 938 Label: "VMware vCenter Agent", 939 Required: false, 940 Uninstallable: false, 941 Running: false, 942 Ruleset: []string{"vpxHeartbeats"}, 943 Policy: "on", 944 SourcePackage: &types.HostServiceSourcePackage{ 945 SourcePackageName: "esx-base", 946 Description: "This VIB contains all of the base functionality of vSphere ESXi.", 947 }, 948 }, 949 { 950 Key: "xorg", 951 Label: "X.Org Server", 952 Required: false, 953 Uninstallable: false, 954 Running: false, 955 Ruleset: nil, 956 Policy: "on", 957 SourcePackage: &types.HostServiceSourcePackage{ 958 SourcePackageName: "esx-xserver", 959 Description: "This VIB contains X Server used for virtual machine 3D hardware acceleration.", 960 }, 961 }, 962 }, 963 }, 964 Firewall: &HostFirewallInfo, 965 AutoStart: &types.HostAutoStartManagerConfig{ 966 Defaults: &types.AutoStartDefaults{ 967 Enabled: (*bool)(nil), 968 StartDelay: 120, 969 StopDelay: 120, 970 WaitForHeartbeat: types.NewBool(false), 971 StopAction: "PowerOff", 972 }, 973 PowerInfo: nil, 974 }, 975 ActiveDiagnosticPartition: &types.HostDiagnosticPartition{ 976 StorageType: "directAttached", 977 DiagnosticType: "singleHost", 978 Slots: -15, 979 Id: types.HostScsiDiskPartition{ 980 DiskName: "mpx.vmhba0:C0:T0:L0", 981 Partition: 9, 982 }, 983 }, 984 Option: nil, 985 OptionDef: nil, 986 Flags: &types.HostFlagInfo{}, 987 AdminDisabled: (*bool)(nil), 988 LockdownMode: "lockdownDisabled", 989 Ipmi: (*types.HostIpmiInfo)(nil), 990 SslThumbprintInfo: (*types.HostSslThumbprintInfo)(nil), 991 SslThumbprintData: nil, 992 Certificate: internal.LocalhostCert, 993 PciPassthruInfo: nil, 994 AuthenticationManagerInfo: &types.HostAuthenticationManagerInfo{ 995 AuthConfig: []types.BaseHostAuthenticationStoreInfo{ 996 &types.HostLocalAuthenticationInfo{ 997 HostAuthenticationStoreInfo: types.HostAuthenticationStoreInfo{ 998 Enabled: true, 999 }, 1000 }, 1001 &types.HostActiveDirectoryInfo{ 1002 HostDirectoryStoreInfo: types.HostDirectoryStoreInfo{}, 1003 JoinedDomain: "", 1004 TrustedDomain: nil, 1005 DomainMembershipStatus: "", 1006 SmartCardAuthenticationEnabled: types.NewBool(false), 1007 }, 1008 }, 1009 }, 1010 FeatureVersion: nil, 1011 PowerSystemCapability: &types.PowerSystemCapability{ 1012 AvailablePolicy: []types.HostPowerPolicy{ 1013 { 1014 Key: 1, 1015 Name: "PowerPolicy.static.name", 1016 ShortName: "static", 1017 Description: "PowerPolicy.static.description", 1018 }, 1019 { 1020 Key: 2, 1021 Name: "PowerPolicy.dynamic.name", 1022 ShortName: "dynamic", 1023 Description: "PowerPolicy.dynamic.description", 1024 }, 1025 { 1026 Key: 3, 1027 Name: "PowerPolicy.low.name", 1028 ShortName: "low", 1029 Description: "PowerPolicy.low.description", 1030 }, 1031 { 1032 Key: 4, 1033 Name: "PowerPolicy.custom.name", 1034 ShortName: "custom", 1035 Description: "PowerPolicy.custom.description", 1036 }, 1037 }, 1038 }, 1039 PowerSystemInfo: &types.PowerSystemInfo{ 1040 CurrentPolicy: types.HostPowerPolicy{ 1041 Key: 2, 1042 Name: "PowerPolicy.dynamic.name", 1043 ShortName: "dynamic", 1044 Description: "PowerPolicy.dynamic.description", 1045 }, 1046 }, 1047 CacheConfigurationInfo: []types.HostCacheConfigurationInfo{ 1048 { 1049 Key: types.ManagedObjectReference{Type: "Datastore", Value: "5980f676-21a5db76-9eef-000c2981d8a0"}, 1050 SwapSize: 0, 1051 }, 1052 }, 1053 WakeOnLanCapable: types.NewBool(false), 1054 FeatureCapability: nil, 1055 MaskedFeatureCapability: nil, 1056 VFlashConfigInfo: nil, 1057 VsanHostConfig: &types.VsanHostConfigInfo{ 1058 Enabled: types.NewBool(false), 1059 HostSystem: &types.ManagedObjectReference{Type: "HostSystem", Value: "ha-host"}, 1060 ClusterInfo: &types.VsanHostConfigInfoClusterInfo{}, 1061 StorageInfo: &types.VsanHostConfigInfoStorageInfo{ 1062 AutoClaimStorage: types.NewBool(false), 1063 DiskMapping: nil, 1064 DiskMapInfo: nil, 1065 ChecksumEnabled: (*bool)(nil), 1066 }, 1067 NetworkInfo: &types.VsanHostConfigInfoNetworkInfo{}, 1068 FaultDomainInfo: &types.VsanHostFaultDomainInfo{}, 1069 }, 1070 DomainList: nil, 1071 ScriptCheckSum: nil, 1072 HostConfigCheckSum: nil, 1073 GraphicsInfo: nil, 1074 SharedPassthruGpuTypes: nil, 1075 GraphicsConfig: &types.HostGraphicsConfig{ 1076 HostDefaultGraphicsType: "shared", 1077 SharedPassthruAssignmentPolicy: "performance", 1078 DeviceType: nil, 1079 }, 1080 IoFilterInfo: []types.HostIoFilterInfo{ 1081 { 1082 IoFilterInfo: types.IoFilterInfo{ 1083 Id: "VMW_spm_1.0.0", 1084 Name: "spm", 1085 Vendor: "VMW", 1086 Version: "1.0.230", 1087 Type: "datastoreIoControl", 1088 Summary: "VMware Storage I/O Control", 1089 ReleaseDate: "2016-07-21", 1090 }, 1091 Available: true, 1092 }, 1093 { 1094 IoFilterInfo: types.IoFilterInfo{ 1095 Id: "VMW_vmwarevmcrypt_1.0.0", 1096 Name: "vmwarevmcrypt", 1097 Vendor: "VMW", 1098 Version: "1.0.0", 1099 Type: "encryption", 1100 Summary: "VMcrypt IO Filter", 1101 ReleaseDate: "2016-07-21", 1102 }, 1103 Available: true, 1104 }, 1105 }, 1106 SriovDevicePool: nil, 1107 }