Hello Fedora CoreOS developers,
When I try to run Fedora CoreOS on Fedora Silverblue I get the error below.
Command
sudo virt-install --connect qemu:///system \
-n fcos -r 2048 --os-variant=fedora34 --import \
--graphics=none \
--disk size=10,backing_store=/var/home/verhoeckx/.local/share/libvirt/images/fedora-coreos-34.20210611.3.0-qemu.x86_64.qcow2.xz \
--qemu-commandline="-fw_cfg name=opt/com.coreos/config,file=/var/home/verhoeckx/.local/share/libvirt/images/coreos-ignition.ign"
Error
Starting install...
Allocating 'fcos.qcow2' | 10 GB 00:00:00
Removing disk 'fcos.qcow2' | 0 B 00:00:00
ERROR Cannot access backing file '/var/home/verhoeckx/.local/share/libvirt/images/fedora-coreos-34.20210611.3.0-qemu.x86_64.qcow2.xz' of storage file '/var/lib/libvirt/images/fcos.qcow2' (as uid:107, gid:107): Permission denied
Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
virsh --connect qemu:///system start fcos
otherwise, please restart your installation.
FCC file
variant: fcos
version: 1.3.0
passwd:
users:
- name: core
password_hash: $y$j9T$fmMO5PESuMYUq26bxLRFp.$pHmyawqQXA2tUfftzzNdUnvrxfHpFuuFW5ZQaykqTI9
Ignition file
{"ignition":{"version":"3.2.0"},"passwd":{"users":[{"name":"core","passwordHash":"$y$j9T$fmMO5PESuMYUq26bxLRFp.$pHmyawqQXA2tUfftzzNdUnvrxfHpFuuFW5ZQaykqTI9"}]}}
Does it have to due to the fact that I use a password instead of a SSH public key?
Or is SELinux still not allowed to access the relevant files?
I used the following commands to give SELinux access:
chcon -t svirt_home_t [absolute path to fedora coreos image]
chcon -t svirt_home_t [absolute path to ignition file]
And moved the files to ~/.local/share/libvirt/images/
.