From 0a7fd9369cdd61fac288139f48bb296a3cacc2b4 Mon Sep 17 00:00:00 2001 From: Raphael Dannecker Date: Wed, 4 Jun 2025 10:26:56 +0200 Subject: [PATCH 1/2] Allow multiple macvtap-VMs to use the same MAC address --- roles/lmn_vm/files/vm-run | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/lmn_vm/files/vm-run b/roles/lmn_vm/files/vm-run index a957a49..700a0ab 100755 --- a/roles/lmn_vm/files/vm-run +++ b/roles/lmn_vm/files/vm-run @@ -267,6 +267,7 @@ while true; do type="ethernet,mac=${mac},target.dev=${interface},xpath1.set=./target/@managed=no,model.type=virtio" LIBVIRTOPTS="${LIBVIRTOPTS} --network type=$type" done + LIBVIRTOPTS="${LIBVIRTOPTS} --check mac_in_use=off" shift ;; --os ) From 48ce882c16fec31ea6525ce22dac7b79754d103f Mon Sep 17 00:00:00 2001 From: Raphael Dannecker Date: Thu, 5 Jun 2025 12:43:22 +0200 Subject: [PATCH 2/2] Prevents the `--options` option in `vm-run` from interfering with other options --- roles/lmn_vm/files/vm-run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/lmn_vm/files/vm-run b/roles/lmn_vm/files/vm-run index 700a0ab..5307c68 100755 --- a/roles/lmn_vm/files/vm-run +++ b/roles/lmn_vm/files/vm-run @@ -216,7 +216,7 @@ while true; do shift ;; -o | --options ) - LIBVIRTOPTS=$2 + LIBVIRTOPTS="${LIBVIRTOPTS} $2" shift 2 ;; --no-viewer )