Building azure images with mkosi
nix w/ flakes support (https://nixos.org/nix/)
nix developmkosi genkeymkosi -C ./initrd build
mkosi buildUse root for KVM acceleration
sudo $(which mkosi) qemuopenssl x509 -in mkosi.crt -out additionalsignature.der -outform DER
base64 -w0 additionalsignature.derPopulate the uplosi.conf values according to the image gallery and image definition. Put the base64 encoded certificate string into the additionalSignatures list.
Note: The image definition has to support trusted launch.
uplosi upload image.rawcd launch-vm
go mod tidy
go build
./launch-vm -h