Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DVD Drive in BootOrder #257

Open
DocKob opened this issue Apr 18, 2024 · 1 comment
Open

DVD Drive in BootOrder #257

DocKob opened this issue Apr 18, 2024 · 1 comment

Comments

@DocKob
Copy link

DocKob commented Apr 18, 2024

Hi !

Terraform Version

1.8.0

Affected Resource(s)

Please list the resources as a list, for example:

  • hyperv_machine_instance
  • vm_firmware / BootOrder

Terraform Configuration Files

  vm_firmware {
    enable_secure_boot = "Off"
    secure_boot_template            = "OpenSourceShieldedVM"
    preferred_network_boot_protocol = "IPv4"
    console_mode                    = "Default"
    pause_after_boot_failure        = "Off"
    boot_order {
      boot_type           = "DvdDrive"
    }
    boot_order {
      boot_type           = "HardDiskDrive"
    }
    boot_order {
      boot_type           = "NetworkAdapter"
    }
  }

Debug Output

No debug available

Panic Output

No panic Output

Expected Behavior

I indicate the boot order to start the VM on the DVD drive, in the configuration of the vm I should have in the order: DVD, HARDDISK and NETWORK

Like this :

VMName BootType Device


SRV-01 Drive DvdDrive (Name = 'Lecteur de DVD on SCSI controller number 0 at location 1', VMName = 'SRV-01')
SRV-01 Drive HardDiskDrive (Name = 'Disque dur on SCSI controller number 0 at location 0', VMName = 'SRV-01')
SRV-01 Network VMNetworkAdapter (Name = 'ETH0', VMName = 'SRV-01')

Actual Behavior

Currently the DVD player is not taken into account, it never appears in the list of boot devices

Only hard drive and network card appear

However the DVD player is correctly added with an ISO mounted

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply
@wizzense
Copy link

wizzense commented Sep 3, 2024

This should work, although I am having an issue getting it to actually boot. When I configure it like this, it does recognize the boot order.

` # Configure firmware
vm_firmware {
enable_secure_boot = "On"
preferred_network_boot_protocol = "IPv4"
console_mode = "None"
pause_after_boot_failure = "Off"

boot_order {
  boot_type           = "DvdDrive"
  controller_number   = 0  # SCSI controller 1 for DVD Drive
  controller_location = 1  # Location on the controller
}

boot_order {
  boot_type           = "HardDiskDrive"
  controller_number   = 0  # SCSI controller 0 for Hard Disk
  controller_location = 0
}

boot_order {
  boot_type            = "NetworkAdapter"
  network_adapter_name = "wan"
}

}
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants