OPNsense Forum

Archive => 24.1, 24.4 Legacy Series => Topic started by: adamfowleruk on March 20, 2024, 12:05:10 PM

Title: 24.1 on LXD on Ubuntu 23.10.1 does not boot...
Post by: adamfowleruk on March 20, 2024, 12:05:10 PM
Hello all,

I'm sure someone must have tried this but I cannot find the answer on these forums or elsewhere. I am trying to run opnsense on Ubuntu Server under LXD. I have set up two network interfaces - one which is a macvlan to give a real IP on my local home network, the other is an internal (to ubuntu server) dummy linux interface which in turn has VLAN interfaces using it as their 'link'.

When I try to boot the VM from the attached OPNsense ISO in LXD it hangs at this stage: "random: registering fast source virtio entropy adapter". I've tested 23.7 too and it has the same issue.

I'm presuming there's an issue with LXD only providing the virtio network drivers and opnsense needing a different driver, but I cannot find anyone who has a working combination on the interwebs.

I was wondering if someone has a working LXD VM configuration YAML I could please take a look at for opnsense? (Especially if they attach the LAN interface to a Linux dummy Ethernet adapter)

Thanks in advance.
Title: Re: 24.1 on LXD on Ubuntu 23.10.1 does not boot...
Post by: Patrick M. Hausen on March 20, 2024, 12:18:17 PM
OPNsense works perfectly well with VirtIO disk and network. I ran it under bhyve on TrueNAS CORE that way. So it must be something different.

Since you are running Ubuntu, can't you use KVM?
Title: Re: 24.1 on LXD on Ubuntu 23.10.1 does not boot...
Post by: bartjsmit on March 20, 2024, 12:29:10 PM
I think LXD uses the Ubuntu kernel, which won't work (Linux vs. FreeBSD)

Patrick is right - you need a VM