diff options
| author | sickcodes <[email protected]> | 2021-09-09 10:55:07 +0000 |
|---|---|---|
| committer | sickcodes <[email protected]> | 2021-09-09 10:55:07 +0000 |
| commit | 15fa5d3ef75b2df1881bf5b72f3fff6e25e6762b (patch) | |
| tree | 9c27a734fcb7c85513e76618d4c3677688219122 | |
| parent | Fix Discord link (diff) | |
| download | docker-osx-15fa5d3ef75b2df1881bf5b72f3fff6e25e6762b.tar.xz docker-osx-15fa5d3ef75b2df1881bf5b72f3fff6e25e6762b.zip | |
Add USB hot plug instructions, good for making bootable installers (Monterey).
| -rw-r--r-- | README.md | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -686,6 +686,35 @@ docker run -it \ ``` +### Share USB Drive into macOS over QEMU + +## Mount USB Drive (Hotplug/Hot Plug USB) + +Start your container. + +Pick a port, for example, `7700`. + +`lsusb` to get `vid:pid` + +On Linux: +`sudo usbredirserver -p 7700 1e3d:2096` + +Now, in the Docker window hit Enter to see the `(qemu)` console. + +You can add/remove the disk using commands like this, even once the machine is started: + +`chardev-add socket,id=usbredirchardev1,port=7700,host=172.17.0.1` + +`device_add usb-redir,chardev=usbredirchardev1,id=usbredirdev1,debug=4` + +## Mount USB Drive inside macOS at boot Docker OSX + +```bash +PORT=7700 +IP_ADDRESS=172.17.0.1 + +-e EXTRA="-chardev socket,id=usbredirchardev1,port=${PORT},host=${IP_ADDRESS} -device usb-redir,chardev=usbredirchardev1,id=usbredirdev1,debug=4" \` +``` ### Fedora: enable internet connectivity with a bridged network |