vdsm / virtual-dsm

Virtual DSM in a Docker container.
MIT License
2.53k stars 339 forks source link

windows docker—can't create pass-through a disk #776

Closed Nanamishirone closed 1 month ago

Nanamishirone commented 3 months ago

Operating system

window11

Description

in windows11 docker desktop,I can't create pass-through a disk

Docker compose

    devices:   
        - /dev/kvm
        - /dev/vhost-net
        - /dev/disk/id/F857E23B-B321-45EE-9C71-2541D1103104:/disk0

Docker log

Error response from daemon: error gathering device information while adding custom device "/dev/disk/id/F857E23B-B321-45EE-9C71-2541D1103104": no such file or directory

Screenshots (optional)

No response

kroese commented 3 months ago

This is an error from the Docker daemon, not really related to the code in this container. Your Docker daemon just says that the device file ( /dev/disk/id/F857E23B-B321-45EE-9C71-2541D1103104 ) does not exist. And if you think it is mistaken, then you should file a bug to the Docker project, not here. Also the mount point /disk0 is not used by this container, so even of the device existed it would not work. Only /disk1 and higher are used.

Long story short: there is nothing I can do about that if Docker says the device does not exist. And I would not advice you to use this container on Windows in any case, let alone with advanced features.