I use the ISO builder with cd_files and guest_additions_mode = "attach", creating three optical drives. Prior to 1.7 this worked, booting into the install DVD, but after a recent upgrade my Windows 10 installer stopped working. On closer inspection I noticed the Windows ISO refused to boot, because it was not the first optical drive.
Per the documentation, "...the [extra] CD is attached as the second CD device," which I have always understood to imply that the iso_url disk should be first, and the guest additions last. My inspection showed, however, in v1.7.2, the cd_files disk is installed on SATA port 13, the Guest Additions CD on port 14, and the iso_url disk on port 15. For reference, in v1.6.6, my last known good version, the iso_url disk is installed on SATA port 1, the Guest Additions CD on port 2, and the cd_files CD on port 3.
I was able to work around the immediate problem of not booting into the installer by stopping the VM, reordering the drives, rebooting, and manually entering my boot_commands. I have not yet tried using vboxmanage commands to reorder things, but I suspect that will be my interim solution.
Reproduction Steps
Create a template using the VirtualBox-ISO builder, setting both cd_files and guest_additions_mode = "attach". Start the build and inspect the VM's SATA drives.
Overview of the Issue
I use the ISO builder with
cd_files
andguest_additions_mode = "attach"
, creating three optical drives. Prior to 1.7 this worked, booting into the install DVD, but after a recent upgrade my Windows 10 installer stopped working. On closer inspection I noticed the Windows ISO refused to boot, because it was not the first optical drive.Per the documentation, "...the [extra] CD is attached as the second CD device," which I have always understood to imply that the
iso_url
disk should be first, and the guest additions last. My inspection showed, however, in v1.7.2, thecd_files
disk is installed on SATA port 13, the Guest Additions CD on port 14, and theiso_url
disk on port 15. For reference, in v1.6.6, my last known good version, theiso_url
disk is installed on SATA port 1, the Guest Additions CD on port 2, and thecd_files
CD on port 3.I was able to work around the immediate problem of not booting into the installer by stopping the VM, reordering the drives, rebooting, and manually entering my
boot_commands
. I have not yet tried using vboxmanage commands to reorder things, but I suspect that will be my interim solution.Reproduction Steps
Create a template using the VirtualBox-ISO builder, setting both
cd_files
andguest_additions_mode = "attach"
. Start the build and inspect the VM's SATA drives.Plugin and Packer version
Simplified Packer Buildfile
Operating system and Environment details
macOS Catalina 10.15.7
Log Fragments and crash.log files