Files
matchbox/scripts
Dalton Hubble 1f96cd36b2 Add initrd=main karg to examples and update QEMU/KVM setup
* Add initrd=main karg directive for UEFI (ignored by BIOS)
* Update Butane config version to v1.4.0 (generates Ignition v3.3.0)
in `fedora-coreos` and `fedora-coreos-install` examples
* Update virt-install flag --os-variant
* Removed virt-install deprecated flag --os-type
* Remove virt-install QEMU/KVM event preserve since it apparently
wasn't implemented anyway and QEMU/KVM now warns about it
* Remove serial consol kernel argument from examples, but still
mention it in docs

Rel:
* https://github.com/coreos/fedora-coreos-docs/pull/282
* https://www.spinics.net/linux/fedora/libvir/msg222078.html
2022-07-29 19:01:36 -07:00
..

Scripts

get-fedora-coreos

Run the get-fedora-coreos script to download Fedora CoreOS images, verify them, and move them into examples/assets.

./scripts/get-fedora-coreos
./scripts/get-fedora-coreos stream version dest

This will create:

examples/assets/fedora-coreos/
├── fedora-coreos-36.20220618.3.1-live-initramfs.x86_64.img
├── fedora-coreos-36.20220618.3.1-live-kernel-x86_64
├── fedora-coreos-36.20220618.3.1-live-rootfs.x86_64.img

get-flatcar

Run the get-flatcar script to download Flatcar Linux images, verify them, and move them into examples/assets.

./scripts/get-flatcar
./scripts/get-flatcar channel version dest

This will create:

examples/assets/flatcar/
└── 2605.6.0
    ├── Flatcar_Image_Signing_Key.asc
    ├── flatcar_production_image.bin.bz2
    ├── flatcar_production_image.bin.bz2.sig
    ├── flatcar_production_pxe_image.cpio.gz
    ├── flatcar_production_pxe_image.cpio.gz.sig
    ├── flatcar_production_pxe.vmlinuz
    ├── flatcar_production_pxe.vmlinuz.sig
    └── version.txt

libvirt

Create QEMU/KVM VMs which are configured to boot from the network. The scripts/libvirt script will create virtual machines on the metal0 or docker0 bridge with known hardware attributes (e.g. UUID, MAC address).

$ sudo ./scripts/libvirt
USAGE: libvirt <command>
Commands:
    create      create QEMU/KVM nodes on the docker0 bridge
    start       start the QEMU/KVM nodes
    reboot      reboot the QEMU/KVM nodes
    shutdown    shutdown the QEMU/KVM nodes
    poweroff    poweroff the QEMU/KVM nodes
    destroy     destroy the QEMU/KVM nodes