From 8433218c328a9d1a00c71e48e7abe21da22ba9a1 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Thu, 16 Dec 2021 20:30:16 +0100 Subject: Testsuite: add 8th NIC and disable PXE boot (cherry picked from commit e836f7245837618c00f563af4ae0836ab81b5686) --- scripts/check-qemu-install | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'scripts') diff --git a/scripts/check-qemu-install b/scripts/check-qemu-install index e1d956f5..54fcd6d8 100755 --- a/scripts/check-qemu-install +++ b/scripts/check-qemu-install @@ -52,15 +52,13 @@ now = datetime.now() parser = argparse.ArgumentParser(description='Install and start a test VyOS vm.') parser.add_argument('iso', help='ISO file to install') -parser.add_argument('disk', help='name of disk image file', - nargs='?', +parser.add_argument('disk', help='name of disk image file', nargs='?', default='testinstall-{}-{}.img'.format(now.strftime('%Y%m%d-%H%M%S'), "%04x" % random.randint(0,65535))) parser.add_argument('--keep', help='Do not remove disk-image after installation', action='store_true', default=False) parser.add_argument('--silent', help='Do not show output on stdout unless an error has occured', - action='store_true', - default=False) + action='store_true', default=False) parser.add_argument('--debug', help='Send all debug output to stdout', action='store_true', default=False) parser.add_argument('--logfile', help='Log to file') @@ -129,14 +127,19 @@ def get_qemu_cmd(name, enable_kvm, enable_uefi, disk_img, raid=None, iso_img=Non macbase = '52:54:00:00:00' cmd = f'qemu-system-x86_64 \ -name "{name}" \ - -smp {cpucount} \ + -smp sockets=1,cpus={cpucount},cores=1 \ + -cpu host \ {uefi} \ -m 1G \ -vga none \ - -netdev user,id=n1 -device virtio-net-pci,netdev=n1,mac={macbase}:01 \ - -netdev user,id=n2 -device virtio-net-pci,netdev=n2,mac={macbase}:02 \ - -netdev user,id=n3 -device virtio-net-pci,netdev=n3,mac={macbase}:03 \ - -netdev user,id=n4 -device virtio-net-pci,netdev=n4,mac={macbase}:04 \ + -netdev user,id=n0 -device virtio-net-pci,netdev=n0,mac={macbase}:00,romfile="" \ + -netdev user,id=n1 -device virtio-net-pci,netdev=n1,mac={macbase}:01,romfile="" \ + -netdev user,id=n2 -device virtio-net-pci,netdev=n2,mac={macbase}:02,romfile="" \ + -netdev user,id=n3 -device virtio-net-pci,netdev=n3,mac={macbase}:03,romfile="" \ + -netdev user,id=n4 -device virtio-net-pci,netdev=n4,mac={macbase}:04,romfile="" \ + -netdev user,id=n5 -device virtio-net-pci,netdev=n5,mac={macbase}:05,romfile="" \ + -netdev user,id=n6 -device virtio-net-pci,netdev=n6,mac={macbase}:06,romfile="" \ + -netdev user,id=n7 -device virtio-net-pci,netdev=n7,mac={macbase}:07,romfile="" \ -machine accel=kvm \ -uuid {uuid} \ -nographic {cpu} {cdrom} {kvm} \ -- cgit v1.2.3