errs=packer.MultiErrorAppend(errs,fmt.Errorf("There are only 2 ide controllers available, so we can't support guest additions and these secondary dvds: %s",strings.Join(b.config.SecondaryDvdImages,", ")))
errs=packer.MultiErrorAppend(errs,fmt.Errorf("There are only 2 ide controllers available, "+
"so we can't support guest additions and these secondary dvds: %s",
strings.Join(b.config.SecondaryDvdImages,", ")))
}else{
errs=packer.MultiErrorAppend(errs,fmt.Errorf("There are only 2 ide controllers available, so we can't support these secondary dvds: %s",strings.Join(b.config.SecondaryDvdImages,", ")))
errs=packer.MultiErrorAppend(errs,fmt.Errorf("There are only 2 ide controllers available, "+
"so we can't support these secondary dvds: %s",strings.Join(b.config.SecondaryDvdImages,", ")))
errs=packer.MultiErrorAppend(errs,fmt.Errorf("There are not enough drive letters available for scsi (limited to 16), so we can't support guest additions and these secondary dvds: %s",strings.Join(b.config.SecondaryDvdImages,", ")))
errs=packer.MultiErrorAppend(errs,fmt.Errorf("There are not enough drive letters available "+
"for scsi (limited to 16), so we can't support guest additions and these secondary dvds: %s",
strings.Join(b.config.SecondaryDvdImages,", ")))
}else{
errs=packer.MultiErrorAppend(errs,fmt.Errorf("There are not enough drive letters available for scsi (limited to 16), so we can't support these secondary dvds: %s",strings.Join(b.config.SecondaryDvdImages,", ")))
errs=packer.MultiErrorAppend(errs,fmt.Errorf("There are not enough drive letters available "+
"for scsi (limited to 16), so we can't support these secondary dvds: %s",
errs=packer.MultiErrorAppend(errs,fmt.Errorf("This version of Hyper-V does not support virtual machine virtualization extension. Please use Windows 10 or Windows Server 2016 or newer."))
errs=packer.MultiErrorAppend(errs,fmt.Errorf("This version of Hyper-V does not support "+
"virtual machine virtualization extension. Please use Windows 10 or Windows Server "+
warning=fmt.Sprintf("For nested virtualization, when virtualization extension is enabled, there should be 4GB or more memory set for the vm, otherwise Hyper-V may fail to start any nested VMs.")
warning=fmt.Sprintf("For nested virtualization, when virtualization extension is enabled, "+
"there should be 4GB or more memory set for the vm, otherwise Hyper-V may fail to start "+
"any nested VMs.")
warnings=appendWarnings(warnings,warning)
}
}
ifb.config.SwitchVlanId!=""{
ifb.config.SwitchVlanId!=b.config.VlanId{
warning=fmt.Sprintf("Switch network adaptor vlan should match virtual machine network adaptor vlan. The switch will not be able to see traffic from the VM.")
warning=fmt.Sprintf("Switch network adaptor vlan should match virtual machine network adaptor "+
"vlan. The switch will not be able to see traffic from the VM.")
t.Fatalf("bad, should have error but didn't. disk_block_size=%d outside expected valid range [%d,%d]",test_size,expected_min_block_size,expected_max_block_size)
t.Fatalf("bad, should have error. disk_block_size=%d outside expected valid range [%d,%d]",
errs=packer.MultiErrorAppend(errs,fmt.Errorf("Failed detecting if virtual machine snapshot to clone from exists: %s",err))
errs=packer.MultiErrorAppend(errs,fmt.Errorf("Failed detecting if virtual machine "+
"snapshot to clone from exists: %s",err))
}else{
if!virtualMachineSnapshotExists{
errs=packer.MultiErrorAppend(errs,fmt.Errorf("Virtual machine snapshot '%s' on virtual machine '%s' to clone from does not exist.",b.config.CloneFromSnapshotName,b.config.CloneFromVMName))
errs=packer.MultiErrorAppend(errs,fmt.Errorf("Virtual machine snapshot '%s' on "+
"virtual machine '%s' to clone from does not exist.",
errs=packer.MultiErrorAppend(errs,fmt.Errorf("There are only 2 ide controllers available, so we can't support guest additions and these secondary dvds: %s",strings.Join(b.config.SecondaryDvdImages,", ")))
errs=packer.MultiErrorAppend(errs,fmt.Errorf("There are only 2 ide controllers available, so "+
"we can't support guest additions and these secondary dvds: %s",
strings.Join(b.config.SecondaryDvdImages,", ")))
}else{
errs=packer.MultiErrorAppend(errs,fmt.Errorf("There are only 2 ide controllers available, so we can't support these secondary dvds: %s",strings.Join(b.config.SecondaryDvdImages,", ")))
errs=packer.MultiErrorAppend(errs,fmt.Errorf("There are only 2 ide controllers available, so "+
errs=packer.MultiErrorAppend(errs,fmt.Errorf("There are not enough drive letters available for scsi (limited to 16), so we can't support guest additions and these secondary dvds: %s",strings.Join(b.config.SecondaryDvdImages,", ")))
errs=packer.MultiErrorAppend(errs,fmt.Errorf("There are not enough drive letters available for "+
"scsi (limited to 16), so we can't support guest additions and these secondary dvds: %s",
strings.Join(b.config.SecondaryDvdImages,", ")))
}else{
errs=packer.MultiErrorAppend(errs,fmt.Errorf("There are not enough drive letters available for scsi (limited to 16), so we can't support these secondary dvds: %s",strings.Join(b.config.SecondaryDvdImages,", ")))
errs=packer.MultiErrorAppend(errs,fmt.Errorf("There are not enough drive letters available for "+
"scsi (limited to 16), so we can't support these secondary dvds: %s",
errs=packer.MultiErrorAppend(errs,fmt.Errorf("This version of Hyper-V does not support virtual machine virtualization extension. Please use Windows 10 or Windows Server 2016 or newer."))
errs=packer.MultiErrorAppend(errs,fmt.Errorf("This version of Hyper-V does not support "+
"virtual machine virtualization extension. Please use Windows 10 or Windows Server 2016 "+
warning=fmt.Sprintf("For nested virtualization, when virtualization extension is enabled, there should be 4GB or more memory set for the vm, otherwise Hyper-V may fail to start any nested VMs.")
warning=fmt.Sprintf("For nested virtualization, when virtualization extension is enabled, "+
"there should be 4GB or more memory set for the vm, otherwise Hyper-V may fail to start "+
"any nested VMs.")
warnings=appendWarnings(warnings,warning)
}
}
ifb.config.SwitchVlanId!=""{
ifb.config.SwitchVlanId!=b.config.VlanId{
warning=fmt.Sprintf("Switch network adaptor vlan should match virtual machine network adaptor vlan. The switch will not be able to see traffic from the VM.")
warning=fmt.Sprintf("Switch network adaptor vlan should match virtual machine network adaptor "+
"vlan. The switch will not be able to see traffic from the VM.")