Hello everyone! I have been having an interesting issue with LXC and the new VM functionality when installing a FreeBSD based (pfsense) guest.
The below series of commands are being used to setup a LXC VM and connect an ISO inside QEMU.
sudo lxc init pfsense --empty --vm -c limits.cpu=4 -c limits.memory=4GB -c security.secureboot=false -n lxcbr0 sudo lxc config device override pfsense root size=32GB sudo echo -n '-device virtio-vga -vnc :2 -drive file=/home/wyatt/pfSense-CE-2.4.5-RELEASE-p1-amd64.iso,index=0,media=cdrom,if=ide' | sudo lxc config set pfsense raw.qemu - sudo lxc start pfsense && sudo lxc console pfsense
Booting from the ISO and beginning the installation runs as expected, until the installer indicates that no hard drives are present. Going into the install ISO’s shell, I was able to confirm that the device does not exist.
Using the same set of instructions have worked for CentOS so far, and Windows 10 (when adding the appropriate windows drivers).
Is there drivers for FreeBSD I seem to be missing, or is there something I’m doing wrong here?
Here is the VM YAML for reference:
architecture: x86_64 config: limits.cpu: "4" limits.memory: 4GB raw.qemu: -device virtio-vga -vnc :2 -drive file=/home/wyatt/pfSense-CE-2.4.5-RELEASE-p1-amd64.iso,index=0,media=cdrom,if=ide security.secureboot: "false" volatile.last_state.power: STOPPED volatile.lxcbr0.hwaddr: 00:16:3e:ec:17:c0 volatile.vm.uuid: b2139fb5-3345-44a1-9cf5-ed9325f3e851 devices: lxcbr0: nictype: bridged parent: lxcbr0 type: nic root: path: / pool: local size: 32GB type: disk ephemeral: false profiles: - default stateful: false description: ""