Collection of cookbooks for Podman Quadlets
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Nicolas Massé 1e06ebfae9 split the base cookbook into base and coreos 2 weeks ago
..
tmpfiles.d split the base cookbook into base and coreos 2 weeks ago
Makefile split the base cookbook into base and coreos 2 weeks ago
README.md split the base cookbook into base and coreos 2 weeks ago
discover-virtiofs-tags.service split the base cookbook into base and coreos 2 weeks ago
overlay.bu split the base cookbook into base and coreos 2 weeks ago
rpm-ostree-install-qemu-guest-agent.service split the base cookbook into base and coreos 2 weeks ago
var-lib-virtiofs-data.mount split the base cookbook into base and coreos 2 weeks ago

README.md

Podman Quadlet: CoreOS

Overview

The coreos cookbook provides the configuration specific to Fedora CoreOS systems. It includes:

  • virtiofs data mount: the discover-virtiofs-tags.service lists the virtiofs tags exposed by the hypervisor. When a data tag is present, var-lib-virtiofs-data.mount mounts it on /var/lib/virtiofs/data with the container_file_t SELinux context, so containers can use it.
  • tmpfiles configuration: creates the /var/lib/virtiofs directory.
  • QEMU guest agent: when running on KVM, rpm-ostree-install-qemu-guest-agent.service layers qemu-guest-agent with rpm-ostree, applies it live and starts it.
  • SSH key persistence (Butane spec only): backs up the SSH host keys in /var/lib/private/sshd and restores them on reinstall, so the host keeps its identity.
  • DNS configuration (Butane spec only): masks systemd-resolved and lets NetworkManager write /etc/resolv.conf directly (rc-manager=file).

This cookbook is an implicit dependency of every other cookbook, including base. It has no dependencies itself.

Usage

This cookbook requires rpm-ostree, so it can only be installed on Fedora CoreOS.

In a separate terminal, follow the logs.

sudo make tail-logs

Install the CoreOS configuration.

sudo make clean install

On a KVM virtual machine, you should see the rpm-ostree-install-qemu-guest-agent.service installing the QEMU guest agent.

To verify the installation:

systemctl status qemu-guest-agent.service
findmnt /var/lib/virtiofs/data

Finally, remove the configuration and its data.

sudo make uninstall clean