-
Notifications
You must be signed in to change notification settings - Fork 22
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
Error creating ISO during build #93
Comments
Sounds like a xorriso issue and not related to nutanix packer plugin Cygwin is maybe causing trouble based on the path in the failure ? |
Is there documentation on the pre-reqs to get this working? I don't see any mention of needing something to handle ISOs. Which begs the question the need for it as with other Packer plugins the ISO mounting is handled on the hypervisor side, so what's different? |
behaviour is exactly the same for some other plugins like the vsphere one in the log we clearly see the issue is when packer call the iso tools cam you try your packer file on a linux vm ? |
In the VMware packer you specify the ISO path on the datastore and it mounts it to the VM. Never installed any ISO tools on a local station before. |
@benjamin-crill can you start sharing your packer file please, It will be easier for everyone to understand what we are talking about |
packer { variable "nutanix_username" { variable "nutanix_password" { variable "nutanix_endpoint" { variable "nutanix_port" { variable "nutanix_insecure" { variable "nutanix_subnet" { variable "nutanix_cluster" { variable "windows_2016_iso_image_name" { variable "virtio_iso_image_name" { source blocks are generated from your builders; a source can be referenced inbuild blocks. A build block runs provisioner and post-processors on asource. Read the documentation for source blocks here:https://www.packer.io/docs/templates/hcl_templates/blocks/sourcesource "nutanix" "autogenerated_1" { vm_disks {image_type = "ISO_IMAGE"source_image_name = var.windows_2016_iso_image_name}vm_disks {image_type = "ISO_IMAGE"source_image_name = var.virtio_iso_image_name}vm_disks { vm_nics { cd_files = ["scripts/gui/autounattend.xml","scripts/win-update.ps1"] image_name ="win2019pck-{{isotime a build block invokes sources and runs provisioning steps on them. Thedocumentation for build blocks can be found here:https://www.packer.io/docs/templates/hcl_templates/blocks/buildbuild { provisioner "powershell" { } This is what I'm using. Combo of a working file I have used on vSphere along with stuff from the example here. On Linux this won't even validate saying that the required plugins section is not expected. |
When we talk about ISO there is two different things:
i try to take a look on your exemple , despite difficulty based on the way you paste the content it seems i don't see specific issue for me the main error is this line
the path seems very strange and directly associated to your env i also quickly replicate your example on a linux packer machine and i had no issue |
On the ISO side of things with vSphere, traditionally have used floppy files to accomplish the same task and then it works without additional ISO management software. I got it working on Linux, however it is crashing during the build. Log is showing and unexpected EOF error. What's odd is that the packer build continues to build the artifacts and leave them on the cluster rather than deleting them. |
can you share log of the crash with there is a PR open to improve error handling and for the moment in case of error artefact stay on cluster to analysis |
Log attached |
Thanks for the log there is a lot of error management improvement in the actual master branch |
This is non-prod lab so I can test |
Hello @benjamin-crill v0.5.0 was released can you give a try and give me a |
Crash log with updated plugin to .5 |
ok i have identified where is the error, now i need to understood why and try to reproduce to fix it in a futur version can you send me an archive with the content of the packer project and also give me the following information
thanks |
PC 2022.6.0.1 |
thanks don't forgot to send me an archive with the content of the packer project |
OK so the EOF error is no longer happening. It was some syntax error I had in the packer file. The only issue I'm dealing with now is that WinRM is not connecting. Still investigating |
Is it possible to assign categories via the Packer plugin? Looks like there might be Flow policies based on category tags? |
are you able to give me the exact syntax error, I would like to track it and protect against |
I wish I could. I just started eliminating scripts to add to the CD files, then added them back in. Not sure which one it was as I'm back to what I started with and it is working now |
sorry @benjamin-crill I misread your message and I was focusing on the image, you want category on the building VM correct ?? |
Yeah, ultimately that's not my issue, it's something else in the network. However I do think it would be good to put categories onto the build VM so as to isolate it to only software repositories during build time among other possibilities. |
ok in progress here #108 |
#108 was merged and I also reproduce the above EOF error |
Very nice and thanks for all the help. I'm going to make this issue as closed as I think we have sufficiently addressed the issues. Appreciate taking the feedback and enhancing. I'm going to keep testing |
/kind bug
*Packer HCL validates fine, but errors when going to build with the following screenshot. Tried with specifying image name on the cluster and with ISO downloaded to Packer directory. This is after getting xorriso installed which an ISO handler is not documented as a requirement for the Packer config to work.
What did you expect to happen:
Environment:
packer plugins installed
): 0.3packer version
): 1.8.5/etc/os-release
): 2019The text was updated successfully, but these errors were encountered: