|
|
|
|
@ -13,6 +13,7 @@ import (
|
|
|
|
|
|
|
|
|
|
type StepMountDvdDrive struct {
|
|
|
|
|
Generation uint
|
|
|
|
|
LegacyGen1BootOrder bool
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (s *StepMountDvdDrive) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction {
|
|
|
|
|
@ -58,7 +59,7 @@ func (s *StepMountDvdDrive) Run(ctx context.Context, state multistep.StateBag) m
|
|
|
|
|
state.Put("os.dvd.properties", dvdControllerProperties)
|
|
|
|
|
|
|
|
|
|
ui.Say(fmt.Sprintf("Setting boot drive to os dvd drive %s ...", isoPath))
|
|
|
|
|
err = driver.SetBootDvdDrive(vmName, controllerNumber, controllerLocation, s.Generation)
|
|
|
|
|
err = driver.SetBootDvdDrive(vmName, controllerNumber, controllerLocation, s.Generation, s.LegacyGen1BootOrder)
|
|
|
|
|
if err != nil {
|
|
|
|
|
err := fmt.Errorf(errorMsg, err)
|
|
|
|
|
state.Put("error", err)
|
|
|
|
|
|