-
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
Proper configuration using a nocloud iso image #25
Comments
FYI, this gave me an idea, so using cloud-init nocloud, I cobbled together a project to make using Virtualization.Framework easier. This is it if you want to give it a go: https://github.com/dmarkey/macos-virt Thanks so much to @gyf304 for the starting point and the POC. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The provided "vmbuilders/ubuntu.sh" is a good start but it didn't work for me to configure the ubuntu cloud image: The openssh-server failed to initialize, my user was not created, no network connection. Instead of using the initramfs we can just provide an iso image with the necessary 'user-data' and 'meta-data' files to initialize the image at the first boot.
Plenty of examples here. Then to create the iso file:
touch iso_folder/meta-data
hdiutil makehybrid -iso -joliet -iso-volume-name cidata -joliet-volume-name cidata -o seed.iso iso_folder
Then add the seed.iso file to the vm.conf
There's no need to launch the initramfs anymore to edit the image. The openssh initialization, user creation and networking do work for me now. Full example: https://gist.github.com/alexsarmiento/c52874738c3bdb96424c57b297b2678d
The text was updated successfully, but these errors were encountered: