Seeking help with installing OPNSense using PXE

Started by awnpbmdhmmfkbwlu, October 27, 2021, 06:06:37 PM

Previous topic - Next topic
I have a PXE server in a VM cluster and would like to use it to bring up instances of OPNSense.
I was able to accomplish this with no issues using pfSense, but OPNSense fails to launch the live environment.

FWIW;


subnet 10.10.10.0 netmask 255.255.255.0 {
  range  10.10.10.5 10.10.10.50;
  option routers 10.10.10.1;
  option domain-name "domain.local";
  option domain-name-servers 10.127.10.127;
}

host fw001 {
  hardware ethernet bc:30:d9:2a:c9:50;
  fixed-address 10.10.10.163;
  next-server 10.10.10.10;
  filename "/os/bsd/opnsense/boot/pxeboot";
  option root-path "10.10.10.10:/srv/tftp/os/bsd/opnsense/";
}


For OPNSense, the pxeboot is executed, the root-path is read, but eventually NFS connectivity is dropped (see screenshot link).

https://i.imgur.com/YyhdHFF.png

Can anyone assist, or is there a good doc out there for getting OPNSense to install over PXE?

Adding the resolution discovered by my team lead;

The screenshot shows the interface flapping because OPNSense is trying repeatedly to grab it to reconnect.
The problem is that OPNSense had already reconfigured the interface as it expected >1 interfaces to start with.

By adding 3 interfaces, OPNSense installer was able to pick 1 for each of LAN/WAN, and PXE off the 3rd successfully.

@awnpbmdhmmfkbwlu
I would like to use PXE for deploying OPNsense and I was wondering which image are using to boot OPNsense? What file is "/os/bsd/opnsense/boot/pxeboot"? Thanks for a hint :-)

Sorry for the necro, just wondering if anyone has been successful booting OPNsense via iPXE?

Is this for a remote installation, i.e. boot once via PXE and then install on local media? Or do you intend to boot the production system from the network?

If the former you could perform a standard FreeBSD 13.2 installation via PXE and then use the bootstrap method to install OPNsense.

This blog article by me might help with the PXE setup:
https://punkt.de/de/blog/2017/automatisierte-installation-von-servern-mit-freebsd-und-zfs.html

Bootstrap install of OPNsense:
https://docs.opnsense.org/manual/virtuals.html#opnsense-bootstrap
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)