fffonion / kvm-github-actions-runner

4 stars 1 forks source link

README instructions for building not working #1

Closed stblassitude closed 3 months ago

stblassitude commented 3 months ago

I've tried to follow the instructions in the README to build the images, but:

I tried poking around in runner-images-kvm, but could not immediately see which Packer file would build an Ubuntu image on KVM.

fffonion commented 3 months ago

@stblassitude please see the tags https://github.com/fffonion/runner-images-kvm/tags instead of the kvm branch.

stblassitude commented 3 months ago

Thank you, but I'm still not sure how to start a build successfully:

~/runner-images-kvm/images/ubuntu/templates# packer build ./ubuntu-22.04.pkr.hcl 
Error: no plugin installed for github.com/hashicorp/azure 1.4.5

Did you run packer init for this project ?
fffonion commented 3 months ago

Yes, need to run packer init once

stblassitude commented 3 months ago

Ah yes, thank you! This seems to do the trick:

cd runner-images-kvm
git fetch --tags
git checkout ubuntu24/20240714.1
cd images/ubuntu/templates
packer init ubuntu-22.04.pkr.hcl
packer build ubuntu-22.04.pkr.hcl

(I probably should build ubunt 24.04 from that tag, but the 22.04 build is still progressing. I'll do that one afterwards.)

stblassitude commented 3 months ago

22.04 did not build from that tag, but 24.04 did. Thank you for your help!