2023-03-27 02:23:15 +07:00
virtual-dsm
=============
2019-03-14 12:25:01 +07:00
2023-03-28 23:54:04 +07:00
[![build_img]][build_url]
2023-03-28 23:52:01 +07:00
[![gh_last_release_svg]][dsm-docker-hub]
[![Docker Image Size]][dsm-docker-hub]
2023-03-27 02:21:13 +07:00
[![Docker Pulls Count]][dsm-docker-hub]
2023-03-28 23:54:04 +07:00
[build_url]: https://github.com/kroese/virtual-dsm/actions
2023-03-27 02:21:13 +07:00
[dsm-docker-hub]: https://hub.docker.com/r/kroese/virtual-dsm
2023-04-03 19:14:15 +07:00
[build_img]: https://github.com/kroese/virtual-dsm/actions/workflows/build.yml/badge.svg
2023-03-28 23:52:01 +07:00
[Docker Image Size]: https://img.shields.io/docker/image-size/kroese/virtual-dsm/latest
[Docker Pulls Count]: https://img.shields.io/docker/pulls/kroese/virtual-dsm.svg?style=flat
[gh_last_release_svg]: https://img.shields.io/docker/v/kroese/virtual-dsm?arch=amd64& sort=date
2019-03-18 04:44:21 +07:00
2023-04-03 05:29:32 +07:00
A docker container of Virtual DSM v7.2
## Features
- Upgrades supported
- KVM acceleration (optional)
## Platforms
- Linux x86-64
2019-03-14 12:25:01 +07:00
2023-04-03 05:40:09 +07:00
## Usage
2019-03-14 12:25:01 +07:00
Via `docker-compose.yml` :
```yaml
version: "3"
services:
vm:
2023-03-30 08:22:36 +07:00
container_name: dsm
2023-03-27 01:37:18 +07:00
image: kroese/virtual-dsm:latest
2023-03-28 10:22:02 +07:00
environment:
DISK_SIZE: "16G"
RAM_SIZE: "512M"
2019-03-14 12:25:01 +07:00
cap_add:
- NET_ADMIN
devices:
- /dev/kvm
2023-03-27 01:37:18 +07:00
- /dev/net/tun
ports:
2023-03-28 10:20:25 +07:00
- 80:5000
- 443:5001
2023-03-27 01:37:18 +07:00
- 5000:5000
2023-03-28 10:14:21 +07:00
- 5001:5001
2023-03-29 00:30:42 +07:00
restart: on-failure
2019-03-14 12:25:01 +07:00
```
2023-04-03 05:38:53 +07:00
Via `docker run` :
```bash
$ docker run --rm -it \
--name dsm \
-e DISK_SIZE=16G \
-e RAM_SIZE=512M \
-p 80:5000 \
-p 443:5001 \
-p 5000:5000 \
-p 5001:5001 \
--cap-add NET_ADMIN \
--device="/dev/kvm:/dev/kvm" \
--device="/dev/net/tun:/dev/net/tun" \
kroese/virtual-dsm:latest
```
2023-04-03 22:48:49 +07:00
## FAQ
2023-04-04 00:09:17 +07:00
* ### How do I change the size of the virtual disk? ###
2023-04-03 22:48:49 +07:00
2023-04-04 00:09:17 +07:00
By default it is 16GB, but you can modify the `DISK_SIZE` setting in your compose file:
2023-04-03 22:48:49 +07:00
2023-04-04 00:09:17 +07:00
```
environment:
DISK_SIZE: "16G"
```
2023-04-03 22:48:49 +07:00
2023-04-04 00:31:08 +07:00
To create an empty disk with a maximum capacity of 8 terabyte you would use a value of `"8T"` for example.
2023-04-03 23:36:05 +07:00
2023-04-04 00:09:17 +07:00
* ### How do I change the location of the virtual disk? ###
2023-04-03 23:36:05 +07:00
2023-04-04 00:09:17 +07:00
By default it resides inside a docker volume, but you can add these lines to your compose file:
```
volumes:
- /home/user/data:/storage
```
2023-04-04 00:31:08 +07:00
Just replace `/home/user/data` with the folder path you want to use for storage.
2023-04-04 00:09:17 +07:00
* ### How do I install a specific version of vDSM? ###
By default it installs vDSM 7.2, but if you want to use an older version you can add these lines to your compose file:
```
environment:
URL: "https://global.synologydownload.com/download/DSM/release/7.0.1/42218/DSM_VirtualDSM_42218.pat"
```
2023-04-03 23:36:05 +07:00
2023-04-04 00:09:17 +07:00
You can also switch back and forth between versions this way without loosing your file data.
2023-04-03 23:36:05 +07:00
2023-04-04 00:09:17 +07:00
* ### What are the differences compared to standard DSM? ###
2023-04-03 23:36:05 +07:00
2023-04-04 00:09:17 +07:00
There are only two minor differences: the Virtual Machine Manager package is not available and Surveillance Station does not include any free licenses.
2023-04-03 23:36:05 +07:00