Fix the Hyper-V gen 1 guest boot order.
This commit is contained in:
parent
141f3b29f3
commit
e6de727c25
|
@ -135,7 +135,7 @@ func SetBootDvdDrive(vmName string, controllerNumber uint, controllerLocation ui
|
||||||
if generation < 2 {
|
if generation < 2 {
|
||||||
script := `
|
script := `
|
||||||
param([string]$vmName)
|
param([string]$vmName)
|
||||||
Hyper-V\Set-VMBios -VMName $vmName -StartupOrder @("CD", "IDE","LegacyNetworkAdapter","Floppy")
|
Hyper-V\Set-VMBios -VMName $vmName -StartupOrder @("IDE","CD","LegacyNetworkAdapter","Floppy")
|
||||||
`
|
`
|
||||||
var ps powershell.PowerShellCmd
|
var ps powershell.PowerShellCmd
|
||||||
err := ps.Run(script, vmName)
|
err := ps.Run(script, vmName)
|
||||||
|
|
Loading…
Reference in New Issue