fix(vm/opnsense): increase startup wait from 90 to 180 seconds (#18086)

* fix(vm/opnsense): increase startup wait from 90 to 180 seconds

* Remove error redirection from bridge interface setup

Should fix : 
  ⠴   Bridge interfaces are being added.update VM 101: -net0 virtio,bridge=vmbr1,macaddr=XX:XX:XX:XX:XX:XX,firewall=0,queues=4
  ⠙   Bridge interfaces are being added.update VM 101: -net1 virtio,bridge=vmbr0,macaddr=XX:XX:XX:XX:XX:XX,firewall=0,queues=4
  ✔️   Bridge interfaces have been successfully added.
This commit is contained in:
Tlyx
2026-10-28 13:49:40 +01:00
committed by GitHub
parent f18eac6a4f
commit 7ee5bf33bf
+3 -3
View File
@@ -432,17 +432,17 @@ set_description
msg_info "Bridge interfaces are being added."
qm set $VMID \
-net0 virtio,bridge=${BRG},macaddr=${MAC},firewall=0,queues=${CORE_COUNT}${VLAN}${MTU} 2>/dev/null
-net0 virtio,bridge=${BRG},macaddr=${MAC},firewall=0,queues=${CORE_COUNT}${VLAN}${MTU} >/dev/null
if [ -n "$WAN_BRG" ]; then
qm set $VMID \
-net1 virtio,bridge=${WAN_BRG},macaddr=${WAN_MAC},firewall=0,queues=${CORE_COUNT} 2>/dev/null
-net1 virtio,bridge=${WAN_BRG},macaddr=${WAN_MAC},firewall=0,queues=${CORE_COUNT} >/dev/null
fi
msg_ok "Bridge interfaces have been successfully added."
msg_ok "Created a OPNsense VM ${CL}${BL}(${HN})"
msg_ok "Starting OPNsense VM (the bootstrap takes 10-30 minutes)"
$STD qm start $VMID
sleep 90
sleep 180
send_line_to_vm "root"
sleep 2
send_line_to_vm ""