hdiutil bug generation OEMDRV iso => kickstart failed to autoload #12241
Open
Description
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Overview of the Issue
Iso image generated by hdiutil with OEMDRV label are not loaded automatically by kickstart
Reproduction Steps
on a mac without any iso tools installed (using default hdiutil) create a packer config to boot a rocky linux with a kickstart file in a CDROM
kickstart will never autoload
if you install xorriso problem is fixed
Packer version
Packer v1.8.5
Simplified Packer Template
vm_disks {
image_type = "ISO_IMAGE"
source_image_name = var.rocky_iso_image_name
}
vm_disks {
image_type = "DISK"
disk_size_gb = 64
}
vm_nics {
subnet_uuid = var.nutanix_subnet_uuid
}
cd_files = ["ks.cfg"]
cd_label = "OEMDRV"
image_name = "rocky-{{isotime 02-Jan-06_3:04PM}}"
force_deregister = true
shutdown_command = "echo 'packer' | sudo -S shutdown -P now"
shutdown_timeout = "2m"
ssh_password = "builder"
ssh_username = "builder"
cpu = 2
memory_mb = "4096"
}
.....
Operating system and Environment details
MacOS 13.2
Log Fragments and crash.log files
==> linux-rhel-server.nutanix.linux-rhel-server: Creating CD disk...
2023/02/03 08:21:50 packer-plugin-nutanix_v0.4.0_x5.0_darwin_arm64 plugin: 2023/02/03 08:21:50 CD label is set to OEMDRV
2023/02/03 08:21:50 packer-plugin-nutanix_v0.4.0_x5.0_darwin_arm64 plugin: 2023/02/03 08:21:50 CD path: /var/folders/dq/y4w54k297qlcp5xwt_vss2kc0000gn/T/packer1085552623.iso
2023/02/03 08:21:50 packer-plugin-nutanix_v0.4.0_x5.0_darwin_arm64 plugin: 2023/02/03 08:21:50 Wrote 1818 bytes to ks.cfg
2023/02/03 08:21:50 packer-plugin-nutanix_v0.4.0_x5.0_darwin_arm64 plugin: 2023/02/03 08:21:50 Executing: /opt/homebrew/bin/xorriso [-as genisoimage -rock -joliet -volid OEMDRV -output /var/folders/dq/y4w54k297qlcp5xwt_vss2kc0000gn/T/packer1085552623.iso /var/folders/dq/y4w54k297qlcp5xwt_vss2kc0000gn/T/packer_to_cdrom3190276589]
linux-rhel-server.nutanix.linux-rhel-server: GNU xorriso 1.5.4 : RockRidge filesystem manipulator, libburnia project.
linux-rhel-server.nutanix.linux-rhel-server: Drive current: -outdev 'stdio:/var/folders/dq/y4w54k297qlcp5xwt_vss2kc0000gn/T/packer1085552623.iso'
linux-rhel-server.nutanix.linux-rhel-server: Media current: stdio file, overwriteable
linux-rhel-server.nutanix.linux-rhel-server: Media status : is blank
linux-rhel-server.nutanix.linux-rhel-server: Media summary: 0 sessions, 0 data blocks, 0 data, 152g free
linux-rhel-server.nutanix.linux-rhel-server: Added to ISO image: directory '/'='/var/folders/dq/y4w54k297qlcp5xwt_vss2kc0000gn/T/packer_to_cdrom3190276589'
linux-rhel-server.nutanix.linux-rhel-server: xorriso : UPDATE : 1 files added in 1 seconds
linux-rhel-server.nutanix.linux-rhel-server: xorriso : UPDATE : 1 files added in 1 seconds
linux-rhel-server.nutanix.linux-rhel-server: ISO image produced: 184 sectors
linux-rhel-server.nutanix.linux-rhel-server: Written to medium : 184 sectors at LBA 0
linux-rhel-server.nutanix.linux-rhel-server: Writing to 'stdio:/var/folders/dq/y4w54k297qlcp5xwt_vss2kc0000gn/T/packer1085552623.iso' completed successfully.
linux-rhel-server.nutanix.linux-rhel-server: Done copying paths from CD_dirs
==> linux-rhel-server.nutanix.linux-rhel-server: Creating Packer Builder VM on Nutanix Cluster.