mirror of
https://github.com/AuxXxilium/arv-v-dsm.git
synced 2024-11-23 23:10:58 +07:00
fix: Default RAM size
* fix: Default RAM size
This commit is contained in:
parent
01e41a4014
commit
a768fecfde
@ -45,9 +45,9 @@ EXPOSE 139
|
||||
EXPOSE 445
|
||||
EXPOSE 5000
|
||||
|
||||
ENV CPU_CORES "1"
|
||||
ENV RAM_SIZE "1G"
|
||||
ENV DISK_SIZE "16G"
|
||||
ENV RAM_SIZE "512M"
|
||||
ENV CPU_CORES "1"
|
||||
|
||||
ARG VERSION_ARG="0.0"
|
||||
RUN echo "$VERSION_ARG" > /run/version
|
||||
|
@ -4,9 +4,9 @@ services:
|
||||
container_name: dsm
|
||||
image: vdsm/virtual-dsm:latest
|
||||
environment:
|
||||
CPU_CORES: "1"
|
||||
DISK_SIZE: "16G"
|
||||
RAM_SIZE: "512M"
|
||||
RAM_SIZE: "1G"
|
||||
CPU_CORES: "1"
|
||||
devices:
|
||||
- /dev/kvm
|
||||
- /dev/net/tun
|
||||
|
10
readme.md
10
readme.md
@ -15,7 +15,7 @@ Virtual DSM in a docker container.
|
||||
|
||||
## Features
|
||||
|
||||
- Multi-platform
|
||||
- Multiple disks
|
||||
- KVM acceleration
|
||||
- GPU passthrough
|
||||
- Upgrades supported
|
||||
@ -58,7 +58,7 @@ docker run -it --rm -p 5000:5000 --device=/dev/kvm --cap-add NET_ADMIN --stop-ti
|
||||
|
||||
```yaml
|
||||
environment:
|
||||
DISK_SIZE: "256G"
|
||||
DISK_SIZE: "128G"
|
||||
```
|
||||
|
||||
This can also be used to resize the existing disk to a larger capacity without any data loss.
|
||||
@ -100,12 +100,12 @@ docker run -it --rm -p 5000:5000 --device=/dev/kvm --cap-add NET_ADMIN --stop-ti
|
||||
|
||||
* ### How do I increase the amount of CPU or RAM?
|
||||
|
||||
By default, a single core and 512 MB of RAM are allocated to the container. To increase this, add the following environment variables:
|
||||
By default, a single core and 1 GB of RAM are allocated to the container. To increase this, add the following environment variables:
|
||||
|
||||
```yaml
|
||||
environment:
|
||||
RAM_SIZE: "4G"
|
||||
CPU_CORES: "4"
|
||||
RAM_SIZE: "2048M"
|
||||
```
|
||||
|
||||
* ### How do I verify if my system supports KVM?
|
||||
@ -172,7 +172,7 @@ docker run -it --rm -p 5000:5000 --device=/dev/kvm --cap-add NET_ADMIN --stop-ti
|
||||
|
||||
Please note that even if you don't need DHCP, it's still recommended to enable this feature as it prevents NAT issues and increases performance by using a `macvtap` interface.
|
||||
|
||||
* ### How do I passthrough my GPU?
|
||||
* ### How do I passthrough the GPU?
|
||||
|
||||
To passthrough your Intel GPU, add the following lines to your compose file:
|
||||
|
||||
|
@ -16,8 +16,8 @@ trap 'error "Status $? while: ${BASH_COMMAND} (line $LINENO/$BASH_LINENO)"' ERR
|
||||
: ${ALLOCATE:='Y'} # Preallocate diskspace
|
||||
: ${ARGUMENTS:=''} # Extra QEMU parameters
|
||||
: ${CPU_CORES:='1'} # Amount of CPU cores
|
||||
: ${RAM_SIZE:='1G'} # Maximum RAM amount
|
||||
: ${DISK_SIZE:='16G'} # Initial data disk size
|
||||
: ${RAM_SIZE:='512M'} # Maximum RAM amount
|
||||
|
||||
# Helper variables
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user