fixed bridge in start-vm
@@ -157,9 +157,9 @@ fi
# network
macaddr="$(printf '02:%02X:%02X:%02X:%02X:%02X' $((RANDOM%256)) $((RANDOM%256)) $((RANDOM%256)) $((RANDOM%256)) $((RANDOM%256)))"
if [ $bridge ]; then
- tmp="$(echo -e "$(cat /etc/qemu/bridge.conf)\nallow mgmt" | sort -u | sed '/^$/d')"
+ tmp="$(echo -e "$(cat /etc/qemu/bridge.conf)\nallow $bridge" | sort -u | sed '/^$/d')"
echo "$tmp" > /etc/qemu/bridge.conf
- virtOpts+=( -netdev bridge,id=net0,br=mgmt"$pxeConfig" )
+ virtOpts+=( -netdev bridge,id=net0,br=$bridge"$pxeConfig" )
else
virtOpts+=( -netdev user,id=net0,hostfwd=tcp::$port-:22,hostname=garden"$pxeConfig" )
fi
