Comments (2)
https://github.com/sickcodes/Docker-OSX#mount-usb-drive-hotplughot-plug-usb
- 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
from kvm-opencore.
https://github.com/sickcodes/Docker-OSX#mount-usb-drive-hotplughot-plug-usb
- Mount USB Drive (Hotplug/Hot Plug USB)
Start your container.
Pick a port, for example,
7700
.
lsusb
to getvid: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
Thanks!
Finally, I use usb-storage as the target device instead of virtio-blk/nvme.
-
add a qemu-xhci controller:
-device qemu-xhci,id=xhci,bus=pci.1,addr=0x1e
-
hot plug/unplug a usb-storage device
drive_add 0 file=vm-102-disk-hot.qcow2,if=none,id=drive-hotplug,cache=writeback,aio=io_uring,format=qcow2 device_add usb-storage,drive=drive-hotplug,id=usb1,bus=xhci.0
from kvm-opencore.
Related Issues (18)
- topology panic when using cpu generation newer than Penryn HOT 16
- Cannot skip picker & auto boot macOS system
- QEMU command line
- Does AMD ryzen have Nested virtualization sopport?
- X64 exception before boot menu with CPU host on Ryzen/QEMU/WSL2 HOT 1
- AMD host-passthrough
- RX 580 frame rate drops in Ryzen 1600 HOT 1
- ESXI HOT 1
- Boot Failing, OpenCore 0.6.1 HOT 3
- DP/HDMI audio not work when using GPU passthrough. HOT 1
- [DEBUG][HELP] Boot hangs somewhere in XNU/Kernel Handoff just before [ PCI configurations begin ]
- opencore can't find apfs disk using latest/stock OVMF. HOT 2
- Creating the qcow2 image HOT 8
- Sidecar/Apple watch unlock not work when using iMacPro1,1 HOT 15
- Unplugging USB device freezes MacOS HOT 2
- Stock OVMF is unable to start OpenCore HOT 2
- Virtio HDD Passthrough Support? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kvm-opencore.