siderolabs / talos

Talos Linux is a modern Linux distribution built for Kubernetes.
https://www.talos.dev
Mozilla Public License 2.0
6.84k stars 550 forks source link

talosctl: cannot find the required flash image for qemu on Fedora 35 #5517

Closed sauterp closed 2 years ago

sauterp commented 2 years ago

Bug Report

As I'm following this guide for provisioning a local development cluster in qemu on Fedora, I get the error the required flash image was not found in any of the expected paths for (["/usr/share/ovmf/OVMF.fd" "/usr/share/OVMF/OVMF.fd"]), please install it with the package manager or specify --extra-uefi-search-paths, when I try run:

sudo -E _out/talosctl-linux-amd64 cluster create \
--provisioner=qemu \
--cidr=172.20.0.0/24 \
--registry-mirror docker.io=http://172.20.0.1:5000 \
--registry-mirror k8s.gcr.io=http://172.20.0.1:5001 \
--registry-mirror quay.io=http://172.20.0.1:5002 \
--registry-mirror gcr.io=http://172.20.0.1:5003 \
--registry-mirror ghcr.io=http://172.20.0.1:5004 \
--registry-mirror 127.0.0.1:5005=http://172.20.0.1:5005 \
--install-image=127.0.0.1:5005/siderolabs/installer:v0.15.0-alpha.2-235-gb189e8426 \
--masters 3 \
--workers 2 \
--with-bootloader=false \
--wait

Environment

$ cat /etc/fedora-release
Fedora release 35 (Thirty Five)
$ ls /usr/share/OVMF/OVMF*
/usr/share/OVMF/OVMF_CODE.fd  /usr/share/OVMF/OVMF_CODE.secboot.fd  /usr/share/OVMF/OVMF_VARS.fd  /usr/share/OVMF/OVMF_VARS.secboot.fd
$ _out/talosctl-linux-amd64 version
Client:
    Tag:         v0.15.0-alpha.2-235-gb189e8426-dirty
    SHA:         b189e842-dirty
    Built:
    Go version:  go1.18.1
    OS/Arch:     linux/amd64
frezbo commented 2 years ago

linking #5466

frezbo commented 2 years ago

@sauterp this would be a nice thing to fix

Davincible commented 2 years ago

I'm also running into this, can't seem to get it working;

❯ fd OVMF /usr
/usr/share/OVMF
/usr/share/OVMF/OVMF_VARS.secboot.fd
/usr/share/OVMF/OVMF_VARS.fd
/usr/share/OVMF/OVMF_CODE.secboot.fd
/usr/share/edk2/ovmf/OVMF_CODE.cc.fd
/usr/share/edk2/ovmf/OVMF_VARS.secboot.fd
/usr/share/edk2/ovmf/OVMF_VARS.fd
/usr/share/edk2/ovmf/OVMF_CODE.secboot.fd
❯ cat /etc/os-release
NAME="AlmaLinux"
VERSION="8.6 (Sky Tiger)"
ID="almalinux"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.6"
PLATFORM_ID="platform:el8"
PRETTY_NAME="AlmaLinux 8.6 (Sky Tiger)"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:almalinux:almalinux:8::baseos"
HOME_URL="https://almalinux.org/"
DOCUMENTATION_URL="https://wiki.almalinux.org/"
BUG_REPORT_URL="https://bugs.almalinux.org/"

ALMALINUX_MANTISBT_PROJECT="AlmaLinux-8"
ALMALINUX_MANTISBT_PROJECT_VERSION="8.6"

Edit: Fixed with ln -sf /usr/share/OVMF/OVMF_CODE.secboot.fd /usr/share/OVMF/OVMF_CODE.fd from here