OPNSense installation does not complete successfully #1328

Closed
opened 2026-02-05 00:22:50 +03:00 by OVERLORD · 7 comments
Owner

Originally created by @markoceri on GitHub (Jul 23, 2025).

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

opnsense-vm

📂 What was the exact command used to execute the script?

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/vm/opnsense-vm.sh)"

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

📝 Provide a clear and concise description of the issue.

I've tried installing OPNSense several times using the advanced settings, with a static LAN IP and DHCP WAN IP, but at the end of the installation process, I get only a FreeBSD installation, without OPNSense.

🔄 Steps to reproduce the issue.

  1. Execute the installation script
  2. Select advanced
  3. Leave empty for WAN IP address
  4. Wait until it finish
  5. Login into the vm

Paste the full error output (if available).

This is the output when I login into OPNSense VM:

starting serial terminal on interface serial0


FreeBSD/amd64 (freebsd) (ttyu0)

login: root
Jul 23 18:06:18 freebsd login[903]: ROOT LOGIN (root) ON ttyu0
FreeBSD 14.2-RELEASE (GENERIC) releng/14.2-n269506-c8918d6c7412

Welcome to FreeBSD!

Release Notes, Errata: https://www.FreeBSD.org/releases/
Security Advisories:   https://www.FreeBSD.org/security/
FreeBSD Handbook:      https://www.FreeBSD.org/handbook/
FreeBSD FAQ:           https://www.FreeBSD.org/faq/
Questions List:        https://www.FreeBSD.org/lists/questions/
FreeBSD Forums:        https://forums.FreeBSD.org/

Documents installed with the system are in the /usr/local/share/doc/freebsd/
directory, or can be installed later with:  pkg install en-freebsd-doc
For other languages, replace "en" with a language code like de or fr.

Show the version of FreeBSD installed:  freebsd-version ; uname -a
Please include that output and any error messages when posting questions.
Introduction to manual pages:  man man
FreeBSD directory layout:      man hier

To change this login announcement, see motd(5).
root@freebsd:~ # 

🖼️ Additional context (optional).

Looking at the installation script, it seems like It can't run this script:

fetch https://raw.githubusercontent.com/opnsense/update/master/src/bootstrap/opnsense-bootstrap.sh.in
sh ./opnsense-bootstrap.sh.in -y -f -r 25.1

I suppose because I haven't set a static IP address, DHCP assigns it an IP address, but it does so too late, after the fetch has already been performed, but I don't see any errors for server unreachable or network errors.

Originally created by @markoceri on GitHub (Jul 23, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? opnsense-vm ### 📂 What was the exact command used to execute the script? bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/vm/opnsense-vm.sh)" ### ⚙️ What settings are you using? - [x] Default Settings - [x] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 📝 Provide a clear and concise description of the issue. I've tried installing OPNSense several times using the advanced settings, with a static LAN IP and DHCP WAN IP, but at the end of the installation process, I get only a FreeBSD installation, without OPNSense. ### 🔄 Steps to reproduce the issue. 1. Execute the installation script 2. Select advanced 3. Leave empty for WAN IP address 4. Wait until it finish 5. Login into the vm ### ❌ Paste the full error output (if available). This is the output when I login into OPNSense VM: ``` starting serial terminal on interface serial0 FreeBSD/amd64 (freebsd) (ttyu0) login: root Jul 23 18:06:18 freebsd login[903]: ROOT LOGIN (root) ON ttyu0 FreeBSD 14.2-RELEASE (GENERIC) releng/14.2-n269506-c8918d6c7412 Welcome to FreeBSD! Release Notes, Errata: https://www.FreeBSD.org/releases/ Security Advisories: https://www.FreeBSD.org/security/ FreeBSD Handbook: https://www.FreeBSD.org/handbook/ FreeBSD FAQ: https://www.FreeBSD.org/faq/ Questions List: https://www.FreeBSD.org/lists/questions/ FreeBSD Forums: https://forums.FreeBSD.org/ Documents installed with the system are in the /usr/local/share/doc/freebsd/ directory, or can be installed later with: pkg install en-freebsd-doc For other languages, replace "en" with a language code like de or fr. Show the version of FreeBSD installed: freebsd-version ; uname -a Please include that output and any error messages when posting questions. Introduction to manual pages: man man FreeBSD directory layout: man hier To change this login announcement, see motd(5). root@freebsd:~ # ``` ### 🖼️ Additional context (optional). Looking at the installation script, it seems like It can't run this script: ``` fetch https://raw.githubusercontent.com/opnsense/update/master/src/bootstrap/opnsense-bootstrap.sh.in sh ./opnsense-bootstrap.sh.in -y -f -r 25.1 ``` I suppose because I haven't set a static IP address, DHCP assigns it an IP address, but it does so too late, after the fetch has already been performed, but I don't see any errors for server unreachable or network errors.
OVERLORD added the bug label 2026-02-05 00:22:50 +03:00
Author
Owner

@MickLesk commented on GitHub (Jul 24, 2025):

I have no idea whatever what your issue is. @michelroegl-brunner do you have an idea? i never use this

@MickLesk commented on GitHub (Jul 24, 2025): I have no idea whatever what your issue is. @michelroegl-brunner do you have an idea? i never use this
Author
Owner

@michelroegl-brunner commented on GitHub (Jul 24, 2025):

I guess the changed some paths around again. I will have a look, but i'm considering removing it.

@michelroegl-brunner commented on GitHub (Jul 24, 2025): I guess the changed some paths around again. I will have a look, but i'm considering removing it.
Author
Owner

@iaintnodev commented on GitHub (Jul 24, 2025):

Not sure if it's the same issue but when I try to install OPNSense it fails on this this part as well:

qm start $VMID
sleep 90
send_line_to_vm "root"
send_line_to_vm "fetch https://raw.githubusercontent.com/opnsense/update/master/src/bootstrap/opnsense-bootstrap.sh.in"

I found that the sleep delay was too short in my case and the script started sending commands before the VM was fully ready. But I was able to finish the installation by typing all the send_line_to_vm commands manually.

@iaintnodev commented on GitHub (Jul 24, 2025): Not sure if it's the same issue but when I try to install OPNSense it fails on this this part as well: ``` qm start $VMID sleep 90 send_line_to_vm "root" send_line_to_vm "fetch https://raw.githubusercontent.com/opnsense/update/master/src/bootstrap/opnsense-bootstrap.sh.in" ``` I found that the sleep delay was too short in my case and the script started sending commands before the VM was fully ready. But I was able to finish the installation by typing all the send_line_to_vm commands manually.
Author
Owner

@markoceri commented on GitHub (Jul 25, 2025):

I suppose because I haven't set a static IP address, DHCP assigns it an IP address, but it does so too late, after the fetch has already been performed, but I don't see any errors for server unreachable or network errors.

I tried with static IP also, but the issue is the same.

@markoceri commented on GitHub (Jul 25, 2025): > I suppose because I haven't set a static IP address, DHCP assigns it an IP address, but it does so too late, after the fetch has already been performed, but I don't see any errors for server unreachable or network errors. I tried with static IP also, but the issue is the same.
Author
Owner

@sgmihai commented on GitHub (Jul 26, 2025):

Same for me, left WAN IP empty (it's assigned dinamically on connection), lan ip 192.168.0.3, lan gateway 192.168.0.2. Result is like this : https://i.imgur.com/pQiftiP.png
Also, the freebsd qcow image was very slow to download, at least 15 minutes, while it downloads in <1 min on my local machine. Seems this is a proxmox/curl issue.

@sgmihai commented on GitHub (Jul 26, 2025): Same for me, left WAN IP empty (it's assigned dinamically on connection), lan ip 192.168.0.3, lan gateway 192.168.0.2. Result is like this : https://i.imgur.com/pQiftiP.png Also, the freebsd qcow image was very slow to download, at least 15 minutes, while it downloads in <1 min on my local machine. Seems this is a proxmox/curl issue.
Author
Owner

@2runX commented on GitHub (Nov 26, 2025):

OPNsense Proxmox Quick Setup

Web Interface Steps

  • Attach disk & adjust boot order
  • Start VM
  • Assign LAN/WAN in shell
  • Web GUI: Update system + install extra packages qa (qemu guest agent)
  • VM: Enable QEMU agent
  • Note: Nano image can be expanded before first boot. ( NANO Image = USB Boot Drive )

Perhaps this will help someone else or solve the problem here.

@2runX commented on GitHub (Nov 26, 2025): OPNsense Proxmox Quick Setup - wget https://pkg.opnsense.org/releases/25.7/OPNsense-25.7-nano-amd64.img.bz2 - bunzip2 OPNsense-25.7-nano-amd64.img.bz2 - qm create 900 --net0 virtio,bridge=vmbr0 --net1 virtio,bridge=vmbr0 --ostype l26 --scsihw virtio-scsi-pci --memory 1024 --tablet 0 - qm importdisk 900 OPNsense-25.7-nano-amd64.img local-lvm Web Interface Steps - Attach disk & adjust boot order - Start VM - Assign LAN/WAN in shell - Web GUI: Update system + install extra packages qa (qemu guest agent) - VM: Enable QEMU agent - Note: Nano image can be expanded before first boot. ( NANO Image = USB Boot Drive ) Perhaps this will help someone else or solve the problem here.
Author
Owner

@atloo1 commented on GitHub (Dec 19, 2025):

I found myself here, so I don't think this should be closed. I'll condense & restate the temporary fix as I arrived at it:

The sleeps are insufficient. Thus, treat them as breakpoints. Manually run the script in chunks with the VM console open to know when it is ready to receive the next chunk.

I also found I needed to reboot the VM prior to running
c1445f30bf/vm/opnsense-vm.sh (L682-L683)

@atloo1 commented on GitHub (Dec 19, 2025): I found myself here, so I don't think this should be closed. I'll condense & restate the temporary fix as I arrived at it: The `sleep`s are insufficient. Thus, treat them as breakpoints. Manually run the script in chunks with the VM console open to know when it is ready to receive the next chunk. I also found I needed to reboot the VM prior to running https://github.com/community-scripts/ProxmoxVE/blob/c1445f30bf56e2c6ec0fcd0668b3659726edc5f7/vm/opnsense-vm.sh#L682-L683
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#1328