Skip to content

Beginner's Guide to Fedora CoreOS (with Bitwarden SSH Keys)

Learn how to generate SSH keys with Bitwarden, convert Butane YAML to Ignition JSON, install Fedora CoreOS, and deploy AdGuard Home via Podman Quadlets.

On this page
  1. Prerequisites
  2. 1. Generate an SSH Key with Bitwarden
  3. 2. Create the Butane YAML Config File
  4. 3. Convert Butane YAML to CoreOS Ignition
  5. 4. Locally Share Your Ignition File
  6. 5. Install Fedora CoreOS
  7. Post-Install Firewall Cleanup (Host PC)
  8. 6. SSH into CoreOS via Bitwarden
  9. Troubleshooting Bitwarden Flatpak SSH Agent
  10. 7. Set Up AdGuard Home
  11. Sources & References

In this guide, you’ll learn how to:

  • Generate SSH keys using the Bitwarden SSH key vault
  • Generate a YAML Butane file
  • Convert the YAML Butane file into an Ignition file needed for CoreOS installation
  • Locally share your Ignition file with the CoreOS install
  • Install Fedora CoreOS
  • Set up AdGuard Home for network-level ad blocking (via Podman)

Resources & Links:


Fedora CoreOS is great for turning a VM or an old laptop into an appliance dedicated to a single task. In this example, we’ll take a VM and turn it into an AdGuard Home DNS server running on top of CoreOS, but you could easily swap AdGuard for whatever use case you have in mind.

Prerequisites

  • Host PC: Any Linux distro with a Flatpak-capable desktop (or adjust to your distro)
  • Bitwarden Desktop App: Flatpak or native (free tier is fine)
  • Target: A VM or old laptop
  • Installer: Fedora CoreOS Bare Metal ISO

1. Generate an SSH Key with Bitwarden

Instead of generating your key with ssh-keygen, we’ll use Bitwarden’s built-in SSH key vault. Your private key stays encrypted in your vault instead of sitting in plaintext under ~/.ssh.

  1. Open the Bitwarden desktop app.
  2. Click New → SSH Key.
  3. Name it something like coreos.
  4. Bitwarden generates a private/public key pair for you. Click Save.
  5. Click the copy button next to the public key (not the private key).

That’s it! Keep this public key copied; you’ll paste it into your Butane file next.


2. Create the Butane YAML Config File

Now let’s create the Butane YAML file. We’re keeping it simple: AdGuard Home as a Quadlet container unit and enough config to get SSH working once CoreOS is installed.

  1. Under your Downloads folder, create a coreos folder (~/Downloads/coreos).
  2. Inside it, create a new empty file named coreos.bu (the .bu extension matters).
  3. Check the Butane Specification for the latest variant version (this guide uses 1.7.0).
  4. Paste in the following configuration, replacing ssh-ed25519 XXX with the public key you copied from Bitwarden:
variant: fcos
version: 1.7.0
passwd:
users:
- name: core
ssh_authorized_keys:
- ssh-ed25519 XXX
storage:
directories:
- path: /var/adguardhome/work
mode: 0755
- path: /var/adguardhome/conf
mode: 0755
files:
# 1. Disable systemd-resolved's local port 53 stub listener
- path: /etc/systemd/resolved.conf.d/adguard.conf
mode: 0644
contents:
inline: |
[Resolve]
DNSStubListener=no
# 2. Quadlet container unit
- path: /etc/containers/systemd/adguardhome.container
mode: 0644
contents:
inline: |
[Unit]
Description=AdGuard Home Container Service
After=network-online.target
Wants=network-online.target
[Container]
Image=docker.io/adguard/adguardhome:latest
ContainerName=adguardhome
Network=host
Volume=/var/adguardhome/conf:/opt/adguardhome/conf:Z
Volume=/var/adguardhome/work:/opt/adguardhome/work:Z
[Install]
WantedBy=multi-user.target
links:
# 3. Point resolv.conf away from stub resolver to the real upstream network DNS
- path: /etc/resolv.conf
target: /run/systemd/resolve/resolv.conf
overwrite: true

Save and close coreos.bu.


3. Convert Butane YAML to CoreOS Ignition

Next, convert the YAML into the JSON Ignition file CoreOS reads. We’ll run Butane inside a Podman container.

Change directory into ~/Downloads/coreos, then run:

Terminal window
podman run -i --rm quay.io/coreos/butane:release --strict < coreos.bu > coreos.ign

Note: The < coreos.bu > coreos.ign redirection syntax is required. Copy/paste this exact command if your file is named coreos.bu.

You now have your coreos.ign file ready.


4. Locally Share Your Ignition File

The CoreOS installer needs an HTTP URL for your Ignition file. We’ll host it temporarily on your local network with Python’s built-in web server.

  1. Find your Host PC’s IP address:

    Terminal window
    ip addr

    Make note of your local IP (e.g., 192.168.1.8).

  2. Temporarily disable your local firewall so the target machine can reach the file:

    Terminal window
    sudo systemctl stop firewalld
  3. Start a temporary web server inside ~/Downloads/coreos:

    Terminal window
    python3 -m http.server

5. Install Fedora CoreOS

Now switch over to your VM or physical hardware:

  1. Boot into the Fedora CoreOS Bare Metal ISO.

  2. Identify your target disk:

    Terminal window
    lsblk

    (VMs typically show /dev/vda; physical machines usually show /dev/sda or /dev/nvme0n1).

  3. Execute the installer (adjust the drive path and Host PC IP address as needed):

    Terminal window
    sudo coreos-installer install /dev/sdX --ignition-url http://192.168.1.8:8000/coreos.ign --insecure-ignition
  4. Once installation completes, shut down the machine:

    Terminal window
    shutdown now

Post-Install Firewall Cleanup (Host PC)

Return to your Host PC:

  1. Stop the Python web server with CTRL + C.
  2. Re-enable the firewall:
    Terminal window
    sudo systemctl start firewalld
    sudo systemctl status firewalld

6. SSH into CoreOS via Bitwarden

Boot up your target machine/VM, then connect from your Host PC:

Terminal window
ssh core@<your-coreos-ip>

When prompted, accept the host fingerprint. Bitwarden will prompt you to authorize the connection using its encrypted SSH agent.

Troubleshooting Bitwarden Flatpak SSH Agent

If you run into a Permission denied (publickey) error while using the Bitwarden Flatpak, create a symlink to align the socket path:

Terminal window
mkdir -p ~/.bitwarden
ln -s ~/.var/app/com.bitwarden.desktop/data/.bitwarden/ssh-agent.sock ~/.bitwarden/ssh-agent.sock
export SSH_AUTH_SOCK=~/.bitwarden/ssh-agent.sock

Verify your SSH key is loaded into Bitwarden’s active agent:

Terminal window
ssh-add -L

Once logged in, confirm your OS release:

Terminal window
cat /etc/os-release

7. Set Up AdGuard Home

  1. Open your browser on the Host PC and visit:
    http://<your-coreos-ip>:3000
  2. Follow the AdGuard Home wizard to set up your administrator login and upstream DNS servers.

Congrats! You now have Fedora CoreOS running as a headless appliance with Bitwarden-backed SSH and AdGuard Home handling your network DNS.


Sources & References