2023-03-27 01:26:37 +07:00
|
|
|
# virtual-dsm
|
2019-03-14 12:25:01 +07:00
|
|
|
|
2023-03-27 01:44:23 +07:00
|
|
|
[![Test](https://github.com/kroese/virtual-dsm/actions/workflows/test.yaml/badge.svg)](https://github.com/kroese/virtual-dsm/actions/workflows/test.yaml)
|
2019-03-18 04:44:21 +07:00
|
|
|
|
2023-03-27 01:44:23 +07:00
|
|
|
A docker container for running Synology's Virtual DSM.
|
2019-03-14 12:25:01 +07:00
|
|
|
|
2023-03-27 01:44:23 +07:00
|
|
|
Docker Hub: [kroese/virtual-dsm](https://hub.docker.com/r/kroese/virtual-dsm/)
|
2019-03-14 12:25:01 +07:00
|
|
|
|
|
|
|
## Using the container
|
|
|
|
|
|
|
|
Via `docker run`:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ docker run --rm -it \
|
2023-03-27 01:37:18 +07:00
|
|
|
--device=/dev/kvm:/dev/kvm \
|
|
|
|
--device=/dev/net/tun:/dev/net/tun \
|
|
|
|
--cap-add NET_ADMIN \
|
|
|
|
-p 5000:5000 -p 5001:5001 \
|
|
|
|
-v /home/user/images:/image \
|
|
|
|
kroese/virtual-dsm:latest
|
2019-03-14 12:25:01 +07:00
|
|
|
```
|
|
|
|
|
|
|
|
Via `docker-compose.yml`:
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
vm:
|
2023-03-27 01:37:18 +07:00
|
|
|
image: kroese/virtual-dsm:latest
|
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:
|
|
|
|
- 5000:5000
|
|
|
|
- 5001:5001
|
2019-03-14 12:25:01 +07:00
|
|
|
volumes:
|
2023-03-27 01:37:18 +07:00
|
|
|
- /home/user/images:/image
|
2019-03-14 12:25:01 +07:00
|
|
|
restart: always
|
|
|
|
```
|
|
|
|
|
2023-03-27 01:45:50 +07:00
|
|
|
## Prerequisites
|
2019-03-14 12:25:01 +07:00
|
|
|
|
2023-03-27 02:04:33 +07:00
|
|
|
In order to use the container, you need two images called `boot.img` and `sys.img` from Synology containing the Virtual DSM OS.
|
|
|
|
|
2023-03-27 01:44:23 +07:00
|
|
|
* a
|
|
|
|
* b
|