mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 05:20:02 +08:00
Fixes
This commit is contained in:
parent
9a56e25077
commit
c4ae5263c8
@ -48,7 +48,7 @@ VOLUME /images
|
||||
EXPOSE 5000
|
||||
EXPOSE 5001
|
||||
|
||||
ENV SPACE 16G
|
||||
ENV DISK_SIZE 16G
|
||||
ENV URL https://global.synologydownload.com/download/DSM/release/7.0.1/42218/DSM_VirtualDSM_42218.pat
|
||||
|
||||
#ENV URL https://global.synologydownload.com/download/DSM/beta/7.2/64216/DSM_VirtualDSM_64216.pat
|
||||
|
11
run.sh
11
run.sh
@ -2,6 +2,11 @@
|
||||
|
||||
set -eu
|
||||
|
||||
if [ ! -f "/run/server.sh" ]; then
|
||||
echo "Script must run inside Docker container!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
/run/server.sh 5000 "<HTML><BODY><H1><CENTER>Please wait while Synology is installing...</CENTER></H1></BODY></HTML>" > /dev/null &
|
||||
|
||||
[ ! -f "/images/boot.img" ] && rm -f /images/dsm.pat
|
||||
@ -94,7 +99,7 @@ fi
|
||||
|
||||
FILE="/images/data.img"
|
||||
if [ ! -f "$FILE" ]; then
|
||||
truncate -s $SPACE $FILE
|
||||
truncate -s $DISK_SIZE $FILE
|
||||
mkfs.ext4 -q $FILE
|
||||
fi
|
||||
|
||||
@ -148,7 +153,7 @@ ip link set dev $QEMU_BRIDGE up
|
||||
touch /var/lib/misc/udhcpd.leases
|
||||
|
||||
# Finally, start our DHCPD server
|
||||
udhcpd -I $DUMMY_DHCPD_IP -f $DHCPD_CONF_FILE &
|
||||
udhcpd -I $DUMMY_DHCPD_IP -f $DHCPD_CONF_FILE 2>&1 &
|
||||
|
||||
echo "Launching Synology Serial Emulator..."
|
||||
|
||||
@ -185,3 +190,5 @@ exec qemu-system-x86_64 -name Synology -enable-kvm -nographic -serial mon:stdio
|
||||
-device scsi-hd,bus=hw-userdata.0,channel=0,scsi-id=0,lun=0,drive=drive-userdata,id=userdata0,bootindex=3 \
|
||||
-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2
|
||||
|
||||
exit 0
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user