-
Notifications
You must be signed in to change notification settings - Fork 95
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
1.2.5 No longer builds Windows 2019 & 2022 #386
Comments
|
From what I read at the top post, it seems like the order has changed? It indeed sounds like the expected outcome of this commit (referring at PR because all commits were squashed upon merge, so they're only distinguishable there). I'm not quite clear though, why is that a problem. Unless I'm missing something, the plugin does not document any guarantees about the order in which ISO files will be mounted. The proper course of action on the user's side would be to fetch info after the VM got created about which disk has which ISO, and then work from there. Am I wrong here? |
I can try this tomorrow, time permitting. |
In Packer docs Also, there are references to VMware VM hardware drivers in the Autounattend.xml file that rely on the Vmtools ISO being in "E:" |
Oh, sorry, then it is my bad for missing the documentation. I'll look at fixing it tomorrow. |
FTR, hoping it's gonna be quick I made a preliminary fix, but for unknown reason the order is still not what I'd expect. Will look at it tomorrow. |
This fixes regression introduced by the commit "common: deduplicate AddCdrom call by appending path to ISOPaths" that was squashed into: "refactor: only add / remove minimul number of cdroms (hashicorp#355)" It assumed that the order is not guaranteed and does not matter, however the documentation says: > If the "iso_url" is defined in addition to the "iso_paths", the > "iso_url" is added to the VM first. This keeps the "iso_url" first > in the boot order by default allowing the boot iso being defined by > the iso_url and the vmware tools iso added from the datastore. So fix the regression. Fixes: hashicorp#386
Ha, jk. Created a fix: #388 |
This fixes regression introduced by the commit "common: deduplicate AddCdrom call by appending path to ISOPaths" that was squashed into: "refactor: only add / remove minimul number of cdroms (hashicorp#355)" It assumed that the order is not guaranteed and does not matter, however the documentation says: > If the "iso_url" is defined in addition to the "iso_paths", the > "iso_url" is added to the VM first. This keeps the "iso_url" first > in the boot order by default allowing the boot iso being defined by > the iso_url and the vmware tools iso added from the datastore. So fix the regression. Fixes: hashicorp#386 Signed-off-by: Konstantin Kharlamov <[email protected]>
This fixes regression introduced by the commit "common: deduplicate AddCdrom call by appending path to ISOPaths" that was squashed into: "refactor: only add / remove minimul number of cdroms (hashicorp#355)" It assumed that the order is not guaranteed and does not matter, however the documentation says: > If the "iso_url" is defined in addition to the "iso_paths", the > "iso_url" is added to the VM first. This keeps the "iso_url" first > in the boot order by default allowing the boot iso being defined by > the iso_url and the vmware tools iso added from the datastore. So fix the regression. Fixes: hashicorp#386 Signed-off-by: Konstantin Kharlamov <[email protected]>
This fixes regression introduced by the commit "common: deduplicate AddCdrom call by appending path to ISOPaths" that was squashed into: "refactor: only add / remove minimul number of cdroms (#355)" It assumed that the order is not guaranteed and does not matter, however the documentation says: > If the "iso_url" is defined in addition to the "iso_paths", the > "iso_url" is added to the VM first. This keeps the "iso_url" first > in the boot order by default allowing the boot iso being defined by > the iso_url and the vmware tools iso added from the datastore. So fix the regression. Fixes: #386 Signed-off-by: Konstantin Kharlamov <[email protected]>
Overview of the Issue
Packer build for a given Windows server build no longer works, with the OS install ISO and VMWare tools ISOs getting swapped.
Version 1.2.4 and older:
D: = Windows Install media ISO
E: = VMware Tools ISO
Version 1.2.5:
D: = VMware Tools ISO
E: = Windows Install media ISO
Reproduction Steps
Works as per previous version: KO Packer build where
Change to 1.2.5 - Build will timeout waiting for VMTools to install
Packer Version
1.8.3
Plugin Version and Builders
Please provide the plugin version.
1.2.5
Please select the builder.
vsphere-iso
VMware vSphere Version
Please provide the VMware vSphere version.
vCenter Server 7.0 Update 3o
VMware ESXi 7.0 Update 3g
Guest Operating System
Windows 2022 & 2019
Simplified Packer Buildfile
Set the env var
PACKER_LOG=1
for maximum log detail.The text was updated successfully, but these errors were encountered: