Use only one processor in qemu

This commit is contained in:
Albrecht Lohofener
2024-11-18 07:57:37 +01:00
parent 1042810eca
commit 4ebc2c4f4d
+2 -2
View File
@@ -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 \