summaryrefslogtreecommitdiff
path: root/scripts/check-qemu-install
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2025-01-01 20:06:42 +0100
committerChristian Breunig <christian@breunig.cc>2025-01-01 20:10:52 +0100
commitbf01c00d0446564ce8433ad1e916c366d7f8f32d (patch)
tree40460f698e9fb23d9fd81c8ba6d43b0e207df266 /scripts/check-qemu-install
parent72c2a011d7cd53a082a8f5a31c187d12925a6be8 (diff)
downloadvyos-build-bf01c00d0446564ce8433ad1e916c366d7f8f32d.tar.gz
vyos-build-bf01c00d0446564ce8433ad1e916c366d7f8f32d.zip
Testsuite: T861: use proper base MAC address from RFC7042
Commit 085df7615a ("Testsuite: T861: always use 2 VCPUs") also altered the base MAC address used by QEMU to a locally administered one. Something that looked "right" in the beginning turned out to break the smoketest platform. The reason is the locally administered bit is evaluated in [1] and if set and not on the exclusion list (as it was a Realtek base MAC address before), the interface in question is not considered persistent and thus not added to the configuration file upon system startup. 1: https://github.com/vyos/vyos-1x/blob/825743b6bcdf8fa2c263dabaa3fee40ba7a98525/src/helpers/vyos-interface-rescan.py#L73-L74
Diffstat (limited to 'scripts/check-qemu-install')
-rwxr-xr-xscripts/check-qemu-install3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/check-qemu-install b/scripts/check-qemu-install
index 755a8307..dc4bdd31 100755
--- a/scripts/check-qemu-install
+++ b/scripts/check-qemu-install
@@ -155,7 +155,8 @@ def get_qemu_cmd(name, enable_uefi, disk_img, raid=None, iso_img=None, tpm=False
f' -device ahci,id=achi0' \
f' -device ide-cd,bus=achi0.0,drive=drive-cd1,id=cd1,bootindex=10'
- macbase = '02:00:00:00:00'
+ # RFC7042 section 2.1.2 MAC addresses used for documentation
+ macbase = '00:00:5E:00:53'
cmd = f'qemu-system-x86_64 \
-name "{name}" \
-smp 2,sockets=1,cores=2,threads=1 \