Coder Social home page Coder Social logo

Passthrough USB HDD about windows HOT 4 CLOSED

Antroxin avatar Antroxin commented on July 23, 2024
Passthrough USB HDD

from windows.

Comments (4)

Wiggen94 avatar Wiggen94 commented on July 23, 2024 1

This is my configuration: windows: image: dockurr/windows container_name: windows devices: - /dev/kvm cap_add: - NET_ADMIN networks: - proxy ports: - 8006:8006 stop_grace_period: 2m restart: unless-stopped volumes: - /opt/containers/windows:/storage devices: - /dev/sdb environment: RAM_SIZE: "8G" DEVICE2: "/dev/sdb"

Looks like you removed

    devices:
      - /dev/kvm

That should be there as well.

from windows.

kroese avatar kroese commented on July 23, 2024

You can add this to your compose file:

environment:
  DEVICE2: "/dev/sdb"
devices:
  - /dev/sdb

and it should work. But only do it when you have a backup of your USB drive. Because if something goes wrong and Windows format the device for example, its better to be safe.

from windows.

Antroxin avatar Antroxin commented on July 23, 2024

Thanks Kroese for your help.

Whenever I add the device to the docker-compose config file, docker does not work. The log says:
❯ Starting Windows for Docker v1.03... ❯ For support visit https://github.com/dockur/windows ❯ ERROR: KVM acceleration not detected (device file missing), this will cause a major loss of performance. ❯ ERROR: See the FAQ on how to enable it, or continue without KVM by setting KVM=N (not recommended).

This is my configuration:
windows: image: dockurr/windows container_name: windows devices: - /dev/kvm cap_add: - NET_ADMIN networks: - proxy ports: - 8006:8006 stop_grace_period: 2m restart: unless-stopped volumes: - /opt/containers/windows:/storage devices: - /dev/sdb environment: RAM_SIZE: "8G" DEVICE2: "/dev/sdb"

from windows.

Antroxin avatar Antroxin commented on July 23, 2024

Yes, it was devined devices twice, grouping then in only one, now it is working and HDD is detected and accessed in Windows.
Thanks!

from windows.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.