How to mount additional disks inside OSX
This commit is contained in:
		
							parent
							
								
									b57d94c2e1
								
							
						
					
					
						commit
						2295eef68f
					
				
							
								
								
									
										42
									
								
								README.md
								
								
								
								
							
							
						
						
									
										42
									
								
								README.md
								
								
								
								
							|  | @ -85,17 +85,17 @@ Create your personal image using `:latest`. And then pull your image out. And th | ||||||
| `sickcodes/docker-osx:naked` - [I need iMessage/iCloud for security research.](https://github.com/sickcodes/Docker-OSX#serial-numbers) | `sickcodes/docker-osx:naked` - [I need iMessage/iCloud for security research.](https://github.com/sickcodes/Docker-OSX#serial-numbers) | ||||||
| 
 | 
 | ||||||
| #### I need a screen. | #### I need a screen. | ||||||
| **KEEP** these two lines are in your command. Works in ANY of the machines: | **KEEP** these two lines are in your command. Works in `auto` & `naked` machines: | ||||||
| ```dockerfile | ```dockerfile | ||||||
|     -v /tmp/.X11-unix:/tmp/.X11-unix \ |     -v /tmp/.X11-unix:/tmp/.X11-unix \ | ||||||
|     -e "DISPLAY=${DISPLAY:-:0.0}" \ |     -e "DISPLAY=${DISPLAY:-:0.0}" \ | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| #### I need headless. | #### I need headless. | ||||||
| **REMOVE** these two lines from ANY of the machines: | **REMOVE** these two lines from `auto` or `naked` machines: | ||||||
| ```dockerfile | ```dockerfile | ||||||
|     -v /tmp/.X11-unix:/tmp/.X11-unix \ |     # -v /tmp/.X11-unix:/tmp/.X11-unix \ | ||||||
|     -e "DISPLAY=${DISPLAY:-:0.0}" \ |     # -e "DISPLAY=${DISPLAY:-:0.0}" \ | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| #### I have used it already, and want to copy this image. | #### I have used it already, and want to copy this image. | ||||||
|  | @ -768,7 +768,6 @@ docker run --rm -it \ | ||||||
| ```bash | ```bash | ||||||
| # run the same as above 17gb auto image, with SSH, with nopicker, and save the bootdisk for later. | # run the same as above 17gb auto image, with SSH, with nopicker, and save the bootdisk for later. | ||||||
| # you don't need to save the bootdisk IF you supply specific serial numbers! | # you don't need to save the bootdisk IF you supply specific serial numbers! | ||||||
| touch ./C02TW0WAHX87.qcow |  | ||||||
| 
 | 
 | ||||||
| docker run -it \ | docker run -it \ | ||||||
|     --device /dev/kvm \ |     --device /dev/kvm \ | ||||||
|  | @ -1005,6 +1004,39 @@ Here's a few other resolutions! If you resolution is invalid, it will default to | ||||||
|     -e HEIGHT=1600 \ |     -e HEIGHT=1600 \ | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
|  | # Mount a disk inside OSX from the host | ||||||
|  | 
 | ||||||
|  | Pass the disk into the container as a volume and then pass the disk again into QEMU command line extras with. | ||||||
|  | 
 | ||||||
|  | Use the `config-custom.plist` because you probably want to see the boot menu, otherwise omit the first line: | ||||||
|  | 
 | ||||||
|  | ```bash | ||||||
|  | DISK_TWO="${PWD}/mount_me.img" | ||||||
|  | ``` | ||||||
|  | ```dockerfile | ||||||
|  | -e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist' \ | ||||||
|  | -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' \ | ||||||
|  | ``` | ||||||
|  | 
 | ||||||
|  | Example: | ||||||
|  | 
 | ||||||
|  | ```bash | ||||||
|  | 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 | ||||||
|  | ``` | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| # Allow USB passthrough | # Allow USB passthrough | ||||||
| 
 | 
 | ||||||
| The simplest way to do this is the following: | The simplest way to do this is the following: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue