mirror of
				https://github.com/kholia/OSX-KVM.git
				synced 2025-11-04 05:32:43 +00:00 
			
		
		
		
	128gb is a bit low and very hard to grow APFS inside a qcow after creation (convert to raw 128GB, grow disk, expand partition in apple recovery, etc. convert back)
		
			
				
	
	
		
			17 lines
		
	
	
		
			348 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			348 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
# export SHORTNAME=monterey
 | 
						|
DISK_SIZE := 256G
 | 
						|
 | 
						|
all: BaseSystem.img mac_hdd_ng.img
 | 
						|
 | 
						|
BaseSystem.img: BaseSystem.dmg
 | 
						|
	qemu-img convert BaseSystem.dmg -O raw BaseSystem.img
 | 
						|
 | 
						|
BaseSystem.dmg:
 | 
						|
	./fetch-macOS-v2.py --short=$(SHORTNAME)
 | 
						|
 | 
						|
mac_hdd_ng.img:
 | 
						|
	qemu-img create -f qcow2 mac_hdd_ng.img ${DISK_SIZE}
 | 
						|
 | 
						|
clean:
 | 
						|
	rm -rf BaseSystem{.dmg,.img,.chunklist}
 |