bento icon indicating copy to clipboard operation
bento copied to clipboard

Add Ubuntu 22.04-arm64 for parallels on apple silicon

Open phillipross opened this issue 2 years ago • 4 comments

Signed-off-by: Phillip Ross [email protected]

Description

Add Ubuntu 22.04-arm64 box

Types of changes

  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [x] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to change)
  • [ ] Chore (non-breaking change that does not add functionality or fix an issue)

Checklist:

  • [x] I have read the CONTRIBUTING document.
  • [x] I have run the pre-merge tests locally and they pass.
  • [x] I have updated the documentation accordingly.
  • [ ] I have added tests to cover my changes.
  • [ ] All new and existing tests passed.
  • [x] All commits have been signed-off for the Developer Certificate of Origin.

phillipross avatar Jul 25 '22 00:07 phillipross

I don't have an arm machine to test on @ashiqueps would you be able to verify this new box builds?

Stromweld avatar Jul 25 '22 15:07 Stromweld

@Stromweld Me too doesn't have a arm machine to test the build.

ashiqueps avatar Jul 25 '22 17:07 ashiqueps

Oops, yes... an apple silicon machine w/ parallels is required to build. I suspect maybe the ubuntu 20.04-arm64 box wasn't tested either, as that one doesn't build as is. I think I read that AWS now has provisionable apple silicon instances (basd on M1 mini hardware?) which, in theory, could be used to test.

phillipross avatar Jul 26 '22 01:07 phillipross

Once the URL & checksum are updated the box builds fine for me on a M1 2020 mac mini. macOS 12.5.1 Parallels Version 18.0.0 (53049)

Build log: https://gist.github.com/svpernova09/31b987140d4c3176e6e9f307be1b9ee5

Vagrant Box: https://app.vagrantup.com/Svpernova09/boxes/demo-bento-22.04-ARM

svpernova09 avatar Aug 26 '22 19:08 svpernova09

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

sonarqubecloud[bot] avatar Aug 27 '22 17:08 sonarqubecloud[bot]

Changes looking good here. Should be safe to merge.

┌─(~/Code/bento/packer_templates/ubuntu)(ubuntu-22.04-arm64 ??:2 S:16)
└── packer build --only=parallels-iso --on-error=abort  ubuntu-22.04-arm64.json

parallels-iso: output will be in this color.

==> parallels-iso: Retrieving ISO
==> parallels-iso: Trying http://cdimage.ubuntu.com/releases/22.04/release/ubuntu-22.04.1-live-server-arm64.iso
==> parallels-iso: Trying http://cdimage.ubuntu.com/releases/22.04/release/ubuntu-22.04.1-live-server-arm64.iso?checksum=sha256%3Abc5a8015651c6f8699ab262d333375d3930b824f03d14ae51e551d89d9bb571c
==> parallels-iso: http://cdimage.ubuntu.com/releases/22.04/release/ubuntu-22.04.1-live-server-arm64.iso?checksum=sha256%3Abc5a8015651c6f8699ab262d333375d3930b824f03d14ae51e551d89d9bb571c => /Users/halo/.cache/packer/3678bda67593f7a1fae1140298d3bcf1f2d45d0d.iso
==> parallels-iso: Starting HTTP server on port 8675
==> parallels-iso: Creating virtual machine...
==> parallels-iso: Applying default settings...
==> parallels-iso: Creating hard drive...
==> parallels-iso: Setting the boot order...
==> parallels-iso: Attaching ISO to the default CD/DVD ROM device...```

svpernova09 avatar Aug 27 '22 19:08 svpernova09