Update openwrt-vm.sh

tweak
This commit is contained in:
tteckster 2023-05-22 07:36:05 -04:00 committed by GitHub
parent 7e5206239a
commit c5ee4993c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -387,6 +387,7 @@ qm set $VMID \
### https://github.com/tteck/Proxmox ### https://github.com/tteck/Proxmox
[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/D1D7EP4GF)" >/dev/null [![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/D1D7EP4GF)" >/dev/null
msg_ok "OpenWRT VM ${CL}${BL}(${HN})" msg_ok "OpenWRT VM ${CL}${BL}(${HN})"
msg_info "Pre-configuring network interfaces"
qm start $VMID qm start $VMID
sleep 15 sleep 15
send_line_to_vm "" send_line_to_vm ""
@ -409,6 +410,7 @@ until qm status $VMID | grep -q "stopped"
do do
sleep 2 sleep 2
done done
msg_info "Adding bridge interface"
qm set $VMID \ qm set $VMID \
-net0 virtio,bridge=$BRG,macaddr=$MAC$VLAN$MTU \ -net0 virtio,bridge=$BRG,macaddr=$MAC$VLAN$MTU \
-net1 virtio,bridge=${LAN_BRG},macaddr=${LAN_MAC}${LAN_VLAN}$MTU >/dev/null 2>/dev/null -net1 virtio,bridge=${LAN_BRG},macaddr=${LAN_MAC}${LAN_VLAN}$MTU >/dev/null 2>/dev/null