mirror of
https://github.com/dockur/macos.git
synced 2026-03-11 08:34:24 +00:00
docs: Disk pass-through (#240)
This commit is contained in:
parent
08255c5a45
commit
88a476ef4c
1 changed files with 12 additions and 0 deletions
12
readme.md
12
readme.md
|
|
@ -191,6 +191,18 @@ kubectl apply -f https://raw.githubusercontent.com/dockur/macos/refs/heads/maste
|
|||
- 'c *:* rwm'
|
||||
```
|
||||
|
||||
### How do I pass-through a disk?
|
||||
|
||||
It is possible to pass-through disk devices or partitions directly by adding them to your compose file in this way:
|
||||
|
||||
```yaml
|
||||
devices:
|
||||
- /dev/sdb:/disk1
|
||||
- /dev/sdc1:/disk2
|
||||
```
|
||||
|
||||
Use `/disk1` if you want it to become your main drive, and use `/disk2` and higher to add them as secondary drives.
|
||||
|
||||
### How do I pass-through a USB device?
|
||||
|
||||
To pass-through a USB device, first lookup its vendor and product id via the `lsusb` command, then add them to your compose file like this:
|
||||
|
|
|
|||
Loading…
Reference in a new issue