mirror of
https://github.com/AlbrechtL/openwrt-docker.git
synced 2026-10-27 08:00:58 +00:00
Use only one processor in qemu
This commit is contained in:
+2
-2
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user