OPNsense Forum

English Forums => Documentation and Translation => Topic started by: awnpbmdhmmfkbwlu on October 27, 2021, 06:06:37 pm

Title: Seeking help with installing OPNSense using PXE
Post by: awnpbmdhmmfkbwlu on October 27, 2021, 06:06:37 pm
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;

Code: [Select]
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?
Title: Re: Seeking help with installing OPNSense using PXE
Post by: awnpbmdhmmfkbwlu on October 29, 2021, 10:09:58 pm
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.
Title: Re: Seeking help with installing OPNSense using PXE
Post by: KoS on May 10, 2022, 10:43:25 pm
@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 :-)
Title: Re: Seeking help with installing OPNSense using PXE
Post by: astuckey on February 08, 2024, 10:09:17 am
Sorry for the necro, just wondering if anyone has been successful booting OPNsense via iPXE?
Title: Re: Seeking help with installing OPNSense using PXE
Post by: Patrick M. Hausen on February 08, 2024, 10:18:34 am
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