Failed adding NIC device: failed to find romfile "compat-256k-efi-virtio.rom"

Hi, on Ubuntu 24.10 and LXD 6.1 I’am trying to create pfSense CE VM, but it fail at start with error:

Error: Failed setting up device via monitor: Failed setting up device "eth0": Failed adding NIC device: failed to find romfile "compat-256k-efi-virtio.rom"

Steps:

lxc init pfsense --empty --vm -c limits.cpu=1 -c limits.memory=2GB -c security.secureboot=false -n lxdbr0
lxc config device override pfsense root size=32GB
echo -n '-machine pc-q35-2.6' | sudo lxc config set pfsense raw.qemu -
lxc config device add pfsense install disk source=/home/indiana/Downloads/pfSense-CE-memstick-2.7.2-RELEASE-amd64.img boot.priority=10
lxc start pfsense && lxc console pfsense --type=vga
# error

compat-256k-efi-virtio.rom is pressent in /usr/lib/ipxe/qemu/compat-256k-efi-virtio.rom (Added by sudo apt install ipxe-qemu-256k-compat-efi-roms)

Any help appreciated.

Is that strictly required to use this machine type (that is very very old BTW)?

1 Like

Not sure, it was requested as workaround due to FreeBSD incompatibility.

It was not necessary, I removed ‘-machine pc-q35-2.6’ from configuration and it just works, thanks for tip.

2 Likes