Docker-OSX icon indicating copy to clipboard operation
Docker-OSX copied to clipboard

how can i attach physical disk ?

Open bluesiboy opened this issue 2 years ago • 1 comments

` 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???

bluesiboy avatar May 07 '22 13:05 bluesiboy

DISK_TWO=/fullpath/to/disk
FORMAT=qcow2
    -v "${DISK_TWO}:/disktwo" \
    -e EXTRA="-device ide-hd,bus=sata.5,drive=DISKTWO -drive id=DISKTWO,if=none,file=/disktwo,format=${FORMAT}" \

Also try sata.4 sata.5

Depending if you have other disks

Any existing EXTRA stuff, just keep adding

sickcodes avatar May 14 '22 16:05 sickcodes