Set CPU Cores

This commit is contained in:
R0GGER 2023-04-04 21:59:38 +02:00 committed by GitHub
parent 07ccd493e4
commit c33e212195
3 changed files with 3 additions and 1 deletions

View File

@ -63,6 +63,7 @@ EXPOSE 5001
ENV RAM_SIZE 512M
ENV DISK_SIZE 16G
ENV CPU_CORES 2
#ENV URL https://global.synologydownload.com/download/DSM/beta/7.2/64216/DSM_VirtualDSM_64216.pat
#ENV URL https://global.synologydownload.com/download/DSM/release/7.0.1/42218/DSM_VirtualDSM_42218.pat

View File

@ -6,6 +6,7 @@ services:
environment:
DISK_SIZE: "16G"
RAM_SIZE: "512M"
CPU_CORES: "2"
devices:
- /dev/kvm
cap_add:

View File

@ -20,7 +20,7 @@ if [ ! -f "$FILE" ]; then
fi
GUEST_SERIAL=$(cat "${FILE}")
./run/serial.bin -cpu=1 \
./run/serial.bin -cpu=$CPU_CORES \
-buildnumber=42962 \
-vmmts="1679863686" \
-hostsn="$HOST_SERIAL" \