vctl-docs icon indicating copy to clipboard operation
vctl-docs copied to clipboard

USB passthrough?

Open ItalyPaleAle opened this issue 5 years ago • 2 comments

One of the limitations of Docker for Mac is that it's not possible to pass-through a USB device. Is this something that can be solved with nautilus, given it's based on VMWare Fusion? That would make me switch over in a second :)

ItalyPaleAle avatar Nov 13 '20 06:11 ItalyPaleAle

let me have a try in house firstly... would you mind sharing your use case, sounds to be very interesting, guess you would like to control your USB device through a container, for testing?

jeffwubj avatar Nov 18 '20 05:11 jeffwubj

In my specific use case.. I have a disk that is formatted for Linux and encrypted, so it cannot be read on MacOS. What I'd like to do is to pass it to the VM and then mount it inside a Docker container.

The other tricky part is mounting the file system:

  1. The disk is connected to the container appliance, and then I can mount it with execvm (would likely need to set it up only once and then it could be auto-mounted)
  2. I could create a container with FUSE enabled (https://stackoverflow.com/a/49021109) and then mount the disk inside the container itself, in user-space

In either case, the first step would be being able to pass-through the disk.

Right now, I am managing my own Docker VM appliance inside VMWare Fusion, so I could pass-through the USB drive.

ItalyPaleAle avatar Nov 18 '20 05:11 ItalyPaleAle