From 20380fbd50d11a66874d98dec7e4cea565a31202 Mon Sep 17 00:00:00 2001 From: primardj Date: Thu, 1 Feb 2024 03:26:14 +0000 Subject: [PATCH] correct tap by br --- vm-start.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vm-start.sh b/vm-start.sh index 5226683..4cd095b 100755 --- a/vm-start.sh +++ b/vm-start.sh @@ -38,7 +38,7 @@ OPTION available -display gtk -vga qxl create_disk= Def a create disk to boot on. Is necessary for using create, or need the variable INSTALLATION_DISK_LOCATION to be set. net=nat:id Add a nat connection to the vm. By default there is already one. - net=tap: Connect the vm to the tap interface . Please use the script set-tap.sh as root to create the tap interface. in the conf file, a mac field have to be set. for two vm to connect togethers, their mac addresses on the same network have to be differents. + net=br: Connect the vm to the bridge . Please use the script set-tap.sh as root to create the bridge. in the conf file, a mac field have to be set. for two vm to connect togethers, their mac addresses on the same network have to be differents. net=none The vm will have no network interface " @@ -203,13 +203,13 @@ set_uefi() { set_net() { case "${1%:*}" in "nat") - echo "ajout de l'interface ${1#*:}" + echo "add the interface ${1#*:}" network="${network} \ -netdev user,id=${1#*:} \ -device virtio-net,netdev=${1#*:}" ;; - "tap") - echo "ajout de l'interface tap ${1#*:}" + "br") + echo "add bridge ${1#*:}" if [ "${mac}" == "" ] then echo "error, no mac set" @@ -224,7 +224,7 @@ set_net() { network="-nic none" ;; *) - echo "type ${1%:*} not known, it should be either nat, tap or none" >&2 + echo "type ${1%:*} not known, it should be either nat, br or none" >&2 exit 1 ;; esac