[Question]: How to do certain stuff using this virtual-dsm in Unraid
Opened this issue · 7 comments
Is your question not already answered in the FAQ?
- I made sure the question is not listed in the FAQ.
Is this a general question and not a technical issue?
- I am sure my question is not about a technical issue.
Question
Hello @kroese. Firstly, I want to thank you for this amazing container! It's working flawlessly for me in Unraid.
However, I'm not experienced with this and followed your instructions to get this working.
I am trying to add another drive to my NAS, but I can't find a way to do so.
I managed to get my account working by following your instructions in another post and adding certain values like MAC address as a variable to the container.
In the main post you mention for example that we can add certain lines like to the composer:
To create additional disks, modify your compose file like this:
environment:
DISK2_SIZE: "32G"
DISK3_SIZE: "64G"
volumes:
- /home/example:/storage2
- /mnt/data/example:/storage3
I want to get this and some other functions like passing through a disk and acquiring an IP address from my router.
But I can't seem to figure out how to use the composer.
I downloaded docker composer manager, but I don't know how to use it and I don't want to accidentally ruin something on my server.
Can you tell me how to use the composer the way you mentioned? Or if it's not possible with Unraid, please tell me
Thanks in advance?
I am not familiar with Unraid, but with the package you have installed it should be possible to use Docker Compose.
Docker Compose is not necessarily required, you can also do it directly via Docker. Docker Compose is just much easier, at least for me.
https://docs.ibracorp.io/docker-compose/docker-compose-for-unraid
With Docker Compose you create a file docker-compose.yml
and you can then define in this file what Docker should execute. Of course, this is only a simplification. You have all the aspects that you also have directly via Docker, but you can create entire stacks
from.
You can create a stack and test whether you understand it first. If you tell me what docker command you are currently running, I can create a docker-compose file for you.
May I ask why you want to pass a disk directly if you want to use vdsm on Unraid. You can't configure a raid in vdsm. So it would make more sense to have the disk on the unraid storage.
Hello @Skyfay . Thanks for your answer.
My reply is a little late because I missed the notification of your answer.
Actually, I don't need to pass through the disk. Thinking about it, there is no benefit in doing so. I want VDSM to appear in Windows as a network drive.
I will try and create a file like you suggested.
I got no clue how to use the composer file. I followed the link you send, but I'm getting errors.
For me, it's important to add vdsm to my home network. I managed to create the yml file, but I'm not able to make it point to the vdsm docker.
Before taking that step, I'm trying to make small changes to the docker, but when I compose the file, it gives me an error.
This is how the error looks like:
I don't see vdsm in my appdata folder like other dockers and in the docker overview there is no config file like most other dockers. For example:
In the first pic, you see there is no config directory for vdsm
By the way, how do I know which docker command I currently run?
So i see there is a Container already running for virtual-dsm? You cannot run a "normal" container with the same name.
If you deploy docker-compose it creates a normal docker container with the information written in the docker-compose.yml file.
There are also a view syntax errors in your docker-compose.yml file.
I asume that your vdsm is running and the data is stored in /mnt/disk1/Thynology right?
So stop and remove all containers which are currently used for vdsm and create a docker-compose stack with the following details:
version: "3"
services:
virtual-dsm:
container_name: virtual-dsm
image: vdsm/virtual-dsm:latest
environment:
RAM_SIZE: "8G"
CPU_CORES: "8"
DISK_SIZE: "2T" # Whatever you like, 100G, 1TB etc.
devices:
- /dev/kvm
cap_add:
- NET_ADMIN
ports:
- 5000:5000
- 5001:5001
volumes:
- /mnt/disk1/Thynology:/storage
stop_grace_period: 2m
Please take sure that the syntax is correct. You can't make additional spaces between the information in the compose file.
Be aware that you are using the same IP address for the Nas as the Unraid host. If you then want to make an SMB connection from Windows to the Nas, for example, you would also have to add the SMB port in the docker-compose.yml.
ports:
- 5000:5000
- 5001:5001
- 445:445 # SMB Port
If you already need SMB for Unraid itself, this will not work because the port is already in use.
I gave up and brought synology and loving it.
it can do all that unriad can do and more with one exeption.
it cant run vms as hardware is shit.
passthrough disk guide is availbe in docs and you can setup static ip from your outer by checking the virtual dsm's mac address to a ip on your router.