仮想インストールエラー:イグニッションファイルを読み込めませんでした。

仮想インストールエラー:イグニッションファイルを読み込めませんでした。

以下の説明に従って、virt-installを使用してFedora CoreOSをインストールしようとしています。 https://docs.fedoraproject.org/en-US/fedora-coreos/getting-started/

私が実行している正確なコマンドは次のとおりです。virt-install --connect qemu:///system -n fcos -r 2048 --os-variant=fedora31 --import --graphics=none --disk size=10,backing_store=fedora-coreos-31.20200310.3.0-qemu.x86_64.qcow2 --qemu-commandline="-fw_cfg name=opt/com.coreos/config,file=/home/test/Downloads/example.ign"

次のエラーが返されます。

Allocating 'fcos.qcow2'                                                                                              |  10 GB  00:00:00     
ERROR    internal error: qemu unexpectedly closed the monitor: 2020-04-05T14:52:47.919380Z qemu-system-x86_64: -fw_cfg name=opt/com.coreos/config,file=/home/test/Downloads/example.ign: can't load /home/test/Downloads/example.ign
Removing disk 'fcos.qcow2'                                                                                           |    0 B  00:00:00     
Domain installation does not appear to have been successful.

このコマンドをrootとして実行しています。 isoファイルからこの仮想マシンを展開するために正常に使用されたため、イグニッションファイルは機能しています。

ベストアンサー1

私も同じ問題があり、始めるためのヒントによれば、chconコマンドを実行する必要があるかもしれません。

SELinuxが有効になっている場合は、アクセスを許可するためにIgnitionファイルのラベルを変更する必要があるかもしれません:chcon -t svirt_home_t path/to/example.ign

おすすめ記事