Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Microsoft.AVS.NFS/Microsoft.AVS.NFS.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

# Modules that must be imported into the global environment prior to importing this module
RequiredModules = @(
@{ "ModuleName" = "Microsoft.AVS.Management"; "ModuleVersion" = "7.0.175" }
@{ "ModuleName" = "Microsoft.AVS.Management"; "ModuleVersion" = "7.0.198" }
)

# Assemblies that must be loaded prior to importing this module
Expand Down
2 changes: 1 addition & 1 deletion Microsoft.AVS.VMFS/Microsoft.AVS.VMFS.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

# Modules that must be imported into the global environment prior to importing this module
RequiredModules = @(
@{ "ModuleName" = "Microsoft.AVS.Management"; "ModuleVersion" = "7.0.175" }
@{ "ModuleName" = "Microsoft.AVS.Management"; "ModuleVersion" = "7.0.198" }
)

# Assemblies that must be loaded prior to importing this module
Expand Down
42 changes: 42 additions & 0 deletions Microsoft.AVS.VMFS/Microsoft.AVS.VMFS.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,27 @@ function Set-VmfsIscsi {
}

$VMHosts = $Cluster | Get-VMHost
foreach ($VMHost in $VMHosts) {
# vmk5 and vmk6 are not provisioned for Microsoft hosts
if ($VMHost.ExtensionData.Hardware.SystemInfo.Vendor -eq "Microsoft Corporation") {
continue;
}

try {
$KernelAdapters = Get-VMHostNetworkAdapter -VMHost $VmHost.Name -VMKernel
}
catch {
throw "Failed to collect VMKernel info on host $($VmHost.Name), unable to verify whether vmk5 and vmk6 exist."
}


$vmk5 = $KernelAdapters | Where-Object { $_.Name -eq "vmk5" }
$vmk6 = $KernelAdapters | Where-Object { $_.Name -eq "vmk6" }
if ((-not $vmk5) -or (-not $vmk6)) {
throw "Kernel Adapters vmk5 and vmk6 do not exist on host $($VmHost.Name)."
}
}

foreach ($VMHost in $VMHosts) {
$Iscsi = $VMHost | Get-VMHostStorage
if ($Iscsi.SoftwareIScsiEnabled -ne $true) {
Expand Down Expand Up @@ -212,6 +233,27 @@ function Set-VmfsStaticIscsi {
}

$VMHosts = $Cluster | Get-VMHost
foreach ($VMHost in $VMHosts) {
# vmk5 and vmk6 are not provisioned for Microsoft hosts
if ($VMHost.ExtensionData.Hardware.SystemInfo.Vendor -eq "Microsoft Corporation") {
continue;
}

try {
$KernelAdapters = Get-VMHostNetworkAdapter -VMHost $VmHost.Name -VMKernel
}
catch {
throw "Failed to collect VMKernel info on host $($VmHost.Name), unable to verify whether vmk5 and vmk6 exist."
}


$vmk5 = $KernelAdapters | Where-Object { $_.Name -eq "vmk5" }
$vmk6 = $KernelAdapters | Where-Object { $_.Name -eq "vmk6" }
if ((-not $vmk5) -or (-not $vmk6)) {
throw "Kernel Adapters vmk5 and vmk6 do not exist on host $($VmHost.Name)."
}
}

foreach ($VMHost in $VMHosts) {
$Iscsi = $VMHost | Get-VMHostStorage
if ($Iscsi.SoftwareIScsiEnabled -ne $true) {
Expand Down
2 changes: 1 addition & 1 deletion Microsoft.AVS.VVOLS/Microsoft.AVS.VVOLS.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

# Modules that must be imported into the global environment prior to importing this module
RequiredModules = @(
@{ "ModuleName" = "Microsoft.AVS.Management"; "ModuleVersion" = "7.0.175" }
@{ "ModuleName" = "Microsoft.AVS.Management"; "ModuleVersion" = "7.0.198" }
)

# Assemblies that must be loaded prior to importing this module
Expand Down
Loading