Skip to content

mkulke/mkosi-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mkosi playground

Building azure images with mkosi

Requirements

nix w/ flakes support (https://nixos.org/nix/)

Build

Enter development environment

nix develop

Create secure boot key

mkosi genkey

Build raw image

mkosi -C ./initrd build
mkosi build

Test in qemu

Use root for KVM acceleration

sudo $(which mkosi) qemu

Publish to Azure

Convert secure boot certificate

openssl x509 -in mkosi.crt -out additionalsignature.der -outform DER
base64 -w0 additionalsignature.der

Edit uplosi.conf

Populate 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.

Publish

uplosi upload image.raw

Deploy

cd launch-vm
go mod tidy
go build
./launch-vm -h

Releases

No releases published

Packages

No packages published