OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Documentation and Translation (Moderator: fabian) »
  • Seeking help with installing OPNSense using PXE
« previous next »
  • Print
Pages: [1]

Author Topic: Seeking help with installing OPNSense using PXE  (Read 12350 times)

awnpbmdhmmfkbwlu

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Seeking help with installing OPNSense using PXE
« 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?
Logged

awnpbmdhmmfkbwlu

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: Seeking help with installing OPNSense using PXE
« Reply #1 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.
Logged

KoS

  • Newbie
  • *
  • Posts: 34
  • Karma: 2
    • View Profile
Re: Seeking help with installing OPNSense using PXE
« Reply #2 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 :-)
Logged

astuckey

  • Newbie
  • *
  • Posts: 31
  • Karma: 1
    • View Profile
Re: Seeking help with installing OPNSense using PXE
« Reply #3 on: February 08, 2024, 10:09:17 am »
Sorry for the necro, just wondering if anyone has been successful booting OPNsense via iPXE?
Logged

Patrick M. Hausen

  • Hero Member
  • *****
  • Posts: 6923
  • Karma: 583
    • View Profile
Re: Seeking help with installing OPNSense using PXE
« Reply #4 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
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Documentation and Translation (Moderator: fabian) »
  • Seeking help with installing OPNSense using PXE
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2