Dear Blue Hatters,
I have problems with providing ignite configuration to my CoreOS instance running on KVM/qemu.
I’m simply using official docs as provided here: Provisioning Fedora CoreOS on libvirt
My Fedora 41 is running with @virtualization
group installed, I can create and play around with VMs through virt-manager
without any issues.
I’m able to boot CoreOS using the script from “Provisioning Fedora CoreOS on libvirt” up to the point where I get login prompt and this unfortunate message:
Ignition: no config provided by user
No SSH authorized keys provided by Ignition or Afterburn
So, simply speaking, I’m unable to access my CoreOS through SSH.
Reproduced steps of how I’m doing all this stuff:
fcos.bu
(butane config) file:
variant: fcos
version: 1.5.0
passwd:
users:
- name: core
ssh_authorized_keys:
- ssh-ed25519 MY_SSH_PUBKEY[...]
fcos.ign
(transformed butane config butane -p -s fcos.bu > fcos.ign
) file:
{
"ignition": {
"version": "3.4.0"
},
"passwd": {
"users": [
{
"name": "core",
"sshAuthorizedKeys": [
"ssh-ed25519 MY_SSH_PUBKEY[...]"
]
}
]
}
}
My exact script for initializing fcos VM:
#!/bin/bash
IGNITION_CONFIG="/var/lib/libvirt/ignite/fcos.ign"
IMAGE="/var/lib/libvirt/images/fedora-coreos-41.20241215.3.0-qemu.x86_64.qcow2"
VM_NAME="fcos"
VCPUS="8"
RAM_MB="24576"
STREAM="stable"
DISK_GB="10"
IGNITION_DEVICE_ARG=(--qemu-commandline="-fw_cfg name=opt/com.coreos/config,file=${IGNITION_CONFIG}")
# Setup the correct SELinux label to allow access to the config
#chcon --verbose --type svirt_home_t ${IGNITION_CONFIG}
virt-install --connect="qemu:///system" --name="${VM_NAME}" --vcpus="${VCPUS}" --memory="${RAM_MB}" \
--os-variant="fedora-coreos-$STREAM" --import --graphics=none \
--disk="size=${DISK_GB},backing_store=${IMAGE}" \
--network bridge=virbr0 "${IGNITION_DEVICE_ARG[@]}"
Permissions for /var/lib/libvirt/ignite
directory:
/var/lib/libvirt $ ls -l
[...]
drwxr-xr-x. 1 root root 24 Jan 25 12:52 ignite
SELinux context for /var/lib/libvirt/ignite
directory:
/var/lib/libvirt $ ls -Z
[...]
unconfined_u:object_r:virt_var_lib_t:s0 ignite
SELinux context for /var/lib/libvirt/ignite/fcos.ign
file:
/var/lib/libvirt/ignite $ ls -Z fcos.ign
unconfined_u:object_r:virt_var_lib_t:s0 fcos.ign
I’d appreciate all help with tracking down where is the problem…
Thank you in advance!