Hello,
I'm not sure I should post the question here or someone else.
I think using this as a docker is a really great way of using this.
I tried using the source and add it to a home assistant add-on, but ran into some troubles.
what I did was, grep the complete source from github, and add config.yml (as required by home assistant)
the config.yml looks like this
name: "virtual_dsm"
description: "virtual_dsm"
version: "0.1.5"
slug: "dsm"
init: false
arch:
- aarch64
- amd64
- armhf
- armv7
- i386
ports:
5000/tcp: 5000
options:
dsm:
container_name: dsm
image: vdsm/virtual-dsm:latest
# environment:
# DISK_SIZE: "16G"
# RAM_SIZE: "1G"
# CPU_CORES: "1"
devices:
- /dev/kvm
device_cgroup_rules:
- 'c *:* rwm'
cap_add:
- NET_ADMIN
volumes:
- /var/dsm:/storage
restart: on-failure
stop_grace_period: 2m
schema:
dsm:
container_name: str
image: str
# environment:
# DISK_SIZE: str
# RAM_SIZE: str
# CPU_CORES: str
devices:
- str
device_cgroup_rules:
- str
cap_add:
- str
volumes:
- str
restart: str
stop_grace_period: str
while starting port 5000 is accessible (blue screen with white installation text)
but then I run info some error:
❯ Starting Virtual DSM for Docker v...
❯ For support visit https://github.com/vdsm/virtual-dsm
❯ Install: Downloading installer...
❯ Install: Downloading DSM_VirtualDSM_69057.pat...
0K ........ ........ ........ ........ 9% 14.7M 21s
32768K ........ ........ ........ ........ 18% 14.0M 20s
65536K ........ ........ ........ ........ 27% 13.9M 18s
98304K ........ ........ ........ ........ 36% 15.2M 15s
131072K ........ ........ ........ ........ 46% 18.2M 12s
163840K ........ ........ ........ ........ 55% 18.3M 10s
196608K ........ ........ ........ ........ 64% 18.1M 8s
229376K ........ ........ ........ ........ 73% 18.3M 6s
262144K ........ ........ ........ ........ 83% 16.8M 4s
294912K ........ ........ ........ ........ 92% 18.1M 2s
327680K ........ ........ ........ .. 100% 18.3M=21s
❯ Install: Extracting downloaded image...
❯ Install: Preparing system partition...
❯ Install: Extracting system partition...
❯ Install: Installing system partition...
❯ Creating a preallocated disk image in raw format with a size of 16G...
RTNETLINK answers: Operation not permitted
❯ ERROR: Failed to create bridge. Please add the following setting to your container: --cap-add NET_ADMIN
I know the structure in 'docker-compose' is somewhat different, but else It won't be accepted.
the original 'docker-compos.yml' is also in the add on
can anyone help me creating a working config? or should I ask the home assistant community?
or shou