Line 10,11,12: Instead of using fedora-coreos-32.20200601.3.0-qemu.x86_64.qcow2 directly, create a snapshot coreos01.qcow2 as boot disk.
Line 13: Pass ignition file coreos01.ign into VM.
Output:
1
2
3
4
5
6
7
8
9
10
Fedora CoreOS 32.20200601.3.0
Kernel 5.6.14-300.fc32.x86_64 on an x86_64 (ttyS0)
SSH host key: SHA256:9n71CVOWFOVVruFq/D0SAqK+OUVTE0S6BIJ+bBZJvEc (ECDSA)
SSH host key: SHA256:b5v+MA59l5eHCOVWF3+J/4770HGw7Fj2TVQmHMrBscU (ED25519)
SSH host key: SHA256:iD7+fhdMeDN9aSguGNjBpjtEtVVjWLLCBxoWpjizwW0 (RSA)
eth0: 10.10.10.177 fe80::5054:ff:fe96:f532
Ignition: user provided config was applied
Ignition: wrote ssh authorized keys file for user: core
coreos01 login:
Login as core. To exit console mode, press ctrl+].
If you see permission error about coreos01.ign, add following lines to /etc/apparmor.d/local/abstractions/libvirt-qemu:
1
/var/lib/libvirt/images/*.ign r,
Modifying FCC File
Ignition file is only use on first boot. It has not effect on subsequent boot. Each time the fcc file is modified, the corresponding VM need to be recreated.