-
Notifications
You must be signed in to change notification settings - Fork 44
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
CD generation for user-data fails on macos #133
Comments
Looking into this a bit deeper: cloud-localds.iso (working)
contents
hdiutil.iso (failing)
contents:
mkisofs.iso (failing)
contents:
Edit: Adding the |
Success! I tried a few flags and this was failing:
But this works:
It looks like adding I'll see if I can find the right options for |
Ping @lbajolet-hashicorp since there's at least one fix available. |
Hi @viraptor! Thanks for the report; from what I can see, Although according to the Additionally, I see that for the Linux-built ISO, there's Removing If you have other tools like xorriso or mkisofs, they should be used instead of To be frank, I won't be able to test/debug this as I don't have a macOS machine on hand, but we do have mac users on the Packer team, so I think we can manage to test and eventually fix this. Sorry for the wall of text, I'm trying to figure out what the exact problem is. As mentioned though, could you provide logs of a failing build so we can see what the exact error is, and if possible, the template that you are using to build your image, so that we can replicate this behaviour and try to figure out a fix. This issue may be an SDK one, but we'll have to figure out to understand what is the problem and the fix before we transfer this issue over, so I'll leave this in this repository in the meantime. |
Ok, good news, at least
This fails on ssh connection - the user I expect simply isn't there (cloud-init never sees the provided cidata). You should be able to replicate this on an ARM macos with:
(+ |
Overview of the Issue
The options to create the
user-data
cd don't work well on macos. The.iso
s seem to be created just fine and look reasonable, but they're not detected by cloud-init.Reproduction Steps
Try using a user-data generated on macos with either
mkisofs
orhdiutil
.The iso is in place, but gets ignored by the image from
https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-arm64.img
I did not dig into the differences too much.
On the other hand, the same user-data packed using
cloud-localds
on linux gets detected and processed just fine. To test, I replacedhdiutil
with:and used the image copied from linux.
(update: got the
cloud-utils
built on macos and that one also gets detected just fine, so it's not a mac/linux issue, but rathercloud-utils
vsmkisofs
/hdiutil
)Ok, so these are all external tools, why am I reporting it here? Mainly in case this is a general issue with
hdiutil
and it should be removed from the list. Or maybe there are some options you can use by default to make it work properly.I can't easily tell what the difference is between the different isos yet. I'll attach the a package with the 2 failing and 1 working version.
isos.tar.gz
Plugin and Packer version
1.8.4
Simplified Packer Buildfile
The
user-data
contains:Operating system and Environment details
Darwin Kernel Version 22.3.0, M2, aarch64
mkisofs - 3.02a09
cloud-utils - 0.32-22-g45fe84a5-0ubuntu1
hdiutil - whatever comes with that macos version.
Log Fragments and crash.log files
Nothing relevant beyond the user never being created.
The text was updated successfully, but these errors were encountered: