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