mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-01-11 21:10:25 +01:00
how can i attach physical disk ? #360
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bluesiboy on GitHub (May 7, 2022).
`
OSX_IMAGE="${PWD}/mac_hdd_ng_xcode_bigsur.img"
DISK_TWO="${PWD}/mount_me.img"
docker run -it
--device /dev/kvm
-e "DISPLAY=${DISPLAY:-:0.0}"
-v /tmp/.X11-unix:/tmp/.X11-unix
-e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist'
-v "${OSX_IMAGE}":/image
-v "${DISK_TWO}":/disktwo
-e EXTRA='-device ide-hd,bus=sata.5,drive=DISK-TWO -drive id=DISK-TWO,if=none,file=/disktwo,format=qcow2'
sickcodes/docker-osx:naked
`
what is the mount_me.img?
how can i create the file, can i attach /dev/sdb1 to macos ?
i understand "EXTRA='do something ...'",
can you give me something documents on internet???
@sickcodes commented on GitHub (May 14, 2022):
Also try
sata.4
sata.5
Depending if you have other disks
Any existing EXTRA stuff, just keep adding
@rutikthakre commented on GitHub (Nov 27, 2024):
@sickcodes I am trying to open my project in mac os using dev container. But unfortunately I am able to access current project in the arch. Not in VM mac os.
@gusbemacbe commented on GitHub (Nov 17, 2025):
Good afternoon, @sickcodes!
Please peruse if this YAML code is correct or wrong. I am trying to attach a BaseImage.img (
tahoe.img) and an HDD disk file (tahoe.qcow2). Here is: