support/hyperv.ps1 in kitchen-hyperv-0.5.2 vs support/hyperv.ps1 in kitchen-hyperv-0.5.3
- old
+ new
@@ -114,9 +114,12 @@
}
}
if ($DisableSecureBoot -and ($Generation -eq 2) -and (Get-command Set-VMFirmware -ErrorAction SilentlyContinue)) {
Set-VMFirmware -VM $vm -EnableSecureBoot Off
}
+ if ((Get-Command -Name Set-Vm).Parameters["AutomaticCheckpointsEnabled"]) {
+ Set-VM -Name $vm.VMName -AutomaticCheckpointsEnabled $false
+ }
$vm | Start-Vm -passthru |
foreach {
$vm = $_
do {
start-sleep -seconds 2