From 4ebc2c4f4d86cff0b04c10582cb26017de421214 Mon Sep 17 00:00:00 2001 From: Albrecht Lohofener Date: Mon, 18 Nov 2024 07:57:37 +0100 Subject: [PATCH] Use only one processor in qemu --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 50eabdf..8f24fa7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -113,7 +113,7 @@ RUN echo "Building for platform '$TARGETPLATFORM'" \ # Boot OpenWrt in order to install additional packages and settings \ && if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \ SSH_PORT=1022; \ - qemu-system-x86_64 -M pc -smp 2 -nographic -nodefaults -m 256 \ + qemu-system-x86_64 -M pc -nographic -nodefaults -m 256 \ -blockdev driver=raw,node-name=hd0,cache.direct=on,file.driver=file,file.filename=/var/vm/squashfs-combined-${OPENWRT_VERSION}.img \ -device virtio-blk-pci,drive=hd0 \ -device virtio-net,netdev=qlan0 -netdev user,id=qlan0,net=192.168.1.0/24,hostfwd=tcp::$SSH_PORT-192.168.1.1:22 \ @@ -121,7 +121,7 @@ RUN echo "Building for platform '$TARGETPLATFORM'" \ -daemonize; \ else \ SSH_PORT=2022; \ - qemu-system-aarch64 -M virt -cpu cortex-a53 -smp 2 -nographic -nodefaults -m 256 \ + qemu-system-aarch64 -M virt -cpu cortex-a53 -nographic -nodefaults -m 256 \ -bios /usr/share/qemu/edk2-aarch64-code.fd \ -blockdev driver=raw,node-name=hd0,cache.direct=on,file.driver=file,file.filename=/var/vm/squashfs-combined-${OPENWRT_VERSION}.img \ -device virtio-blk-pci,drive=hd0 \