chef / bento

Packer templates for building minimal Vagrant baseboxes for multiple platforms
Apache License 2.0
4.22k stars 1.12k forks source link

Some ARM64 boxes are missing on Vagrant Cloud #1545

Closed luangong closed 4 months ago

luangong commented 5 months ago

Enhancement

Some ARM64 boxes are missing on Vagrant Cloud.

The Need

Here are some ARM64 boxes (among the most popular distros) that are missing under the bento org on Vagrant Cloud.

Current Alternative

Can We Help You Implement This

Stromweld commented 5 months ago

These are still a work in progress. We don't support Arch Linux for either CPU architecture though. Any help on testing and updating the configs to get them working is greatly appreciated. Otherwise this is a side project for me and will take some time to get them all tested and working.

luangong commented 5 months ago

I have a MacBook Pro with M1 Pro and VMware Fusion installed. Please let me know what I can do to help.

Stromweld commented 5 months ago

you can clone repo and run tests with packer build -only=vmware-iso.vm -on-error=ask -var-file=./os_pkrvars/almalinux/ualmalinux-8-aarch64.pkrvars.hcl packer_templates and connect to VM to see the issue. Most likely in the vars file the boot_command may need to be updated or the boot wait might need to be adjusted. Typically if 1 provider worked then the boot_command is good, just the timing of the boot_wait needs to be adjusted.

luangong commented 5 months ago

It seems that RHEL 8 and most of its clones (AlmaLinux 8, Rocky Linux 8, etc.) don’t support Apple silicon Macs with VMware Fusion because of CPU page size difference. The only exceptions are Oracle Linux 8.7, 8.8, and 8.9.

Here are some links:

Stromweld commented 5 months ago

that makes sense then. we try to stay on the latest so we'd be focused on 8.9 versions. Thanks for the info nice find.

luangong commented 5 months ago

I think it may still be worth it to dig deeper and see if we can patch/recompile the kernel like what Oracle Linux 8.7-8.9 are doing — not only for Apple silicon Macs with VMware Fusion — but also for other ARM-based PCs/OSes with other hypervisors.

@Stromweld What do you think?

Stromweld commented 4 months ago

I think that is probably way beyond the scope of this project as it's meant more for as close to stock install as possible for testing tools like chef. The only real modifications we are doing is running patches to keep them up to date and removing unneeded things for a VM like linux-firmware to shrink the image size to make it faster and easier to download.

luangong commented 4 months ago

Agreed.

luangong commented 4 months ago

Would you please build Oracle Linux 8.7–8.9 arm64 boxes for the vmware_desktop provider and publish them to Vagrant Cloud? Thanks! That’ll be the only way we can run RHEL 8–like boxes on an Apple silicon Mac with VMware Fusion installed.

Stromweld commented 4 months ago

I just tried building them and ran into errors during the build phase that will take some time to look at and fix. My Vmware build failed to upload tools iso and the parallels build failed to compile the guest tools.