taliesins / terraform-provider-hyperv

HyperV provider for Terraform
Mozilla Public License 2.0
225 stars 80 forks source link

DVD Drive in BootOrder #257

Open DocKob opened 3 months ago

DocKob commented 3 months ago

Hi !

Terraform Version

1.8.0

Affected Resource(s)

Please list the resources as a list, for example:

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