Hello,
I have been trying to create a CoreOS VM with virt-install to pre-configure before deploying to a VPS.
I created a config and confirmed it to be correct with:
podman run --rm -i quay.io/coreos/ignition-validate - < CoreOS.ign
After which I ran:
virt-install --connect=“qemu:///system” --name=“fedoraCoreOS” --vcpus=“4” --memory=“4096”
–os-variant=“fedora-coreos-stable” --import --graphics=none
–disk=“size=10,backing_store=/tmp/fedora-coreos-33.20210314.3.0-qemu.x86_64.qcow2”
–console pty,target_type=serial
–noautoconsole
–qemu-commandline=“-fw_cfg name=opt/com.coreos/config,file=/tmp/CoreOS.ign”
The system boots fine but after boot it reports:
Fedora CoreOS 33.20210314.3.0
Kernel 5.10.19-200.fc33.x86_64 on an x86_64 (ttyS0)
SSH host key: SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (ECDSA)
SSH host key: SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (ED25519)
SSH host key: SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (RSA)
enp1s0: 192.168.122.55 xxxx::xxxx:xxxx:xxx:xxxx
Ignition: no config provided by user
No ssh authorized keys provided by Ignition or Afterburn
localhost login:
If the qcow or ign file are moved outside of tmp, QEMU complains of read access. Indicating QEMU at least locates the files correctly.
So far I have tried a wide range of file permissions, SELinux on/off, etc. But none make any difference to finding the Ignition on boot.
Host system details:
OS: Fedora 33 (Workstation Edition)
Kernel: 5.11.10-200.fc33.x86_64
virt-install version: 3.2.0
qemu-kvm version: 5.1.0-9.fc33
Fedora CoreOS Config Transpiler: 0.10.0
To me this looks like a bug on the image used that it cant find the config. So any help investigating would be appreciated.