制作vmware可用的 macOS Mojave 镜像

最便捷在苹果系统制作vmware可用的安装镜像

创建8G虚拟磁盘

$ hdiutil create -o /tmp/Mojave.cdr -size 8192m -layout SPUD -fs HFS+J
created: /tmp/Mojave.cdr.dmg

挂接虚拟磁盘到目录

$ hdiutil attach /tmp/Mojave.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/mojave
/dev/disk3              Apple_partition_scheme         
/dev/disk3s1            Apple_partition_map            
/dev/disk3s2            Apple_HFS                       /Volumes/mojave

使用安装盘自带的创建安装镜像工具创建镜像到虚拟磁盘

$ /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia 
Usage: createinstallmedia --volume <path to volume to convert>

Arguments
--volume, A path to a volume that can be unmounted and erased to create the install media.
--nointeraction, Erase the disk pointed to by volume without prompting for confirmation.
--downloadassets, Download on-demand assets that may be required for installation.

Example: createinstallmedia --volume /Volumes/Untitled

This tool must be run as root.

$ sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia  --volume /Volumes/mojave/ --nointeraction --downloadassets
Password:
Erasing disk: 0%... 10%... 20%... 30%... 100%
Finding assets to download...
Downloading assets: 0%... 10%... 20%... 30%... 40%... 50%... 60%... 70%... 80%... 90%...
Copying to disk: 0%... 10%... 20%... 30%... 40%... 50%... 60%... 70%... 80%... 90%... 100%
Making disk bootable...
Copying boot files...
Install media now available at "/Volumes/Install macOS Mojave"

卸载虚拟磁盘

$ hdiutil detach /Volumes/Install\ macOS\ Mojave/
"disk3" ejected.

转换dmg格式虚拟磁盘为cdr格式

$ hdiutil convert /tmp/Mojave.cdr.dmg -format UDTO -o /tmp/Mojave.iso
正在读取Driver Descriptor Map(DDM:0)…
正在读取Apple(Apple_partition_map:1)…
正在读取(Apple_Free:2)…
正在读取disk image(Apple_HFS:3)…
...............................................................................................................
已耗时: 3m 26.501s
速度:39.7M 字节/秒
节省:0.0%
created: /tmp/Mojave.iso.cdr

 

付原版macOS Mojave 10.14.2创建的cdr镜像

链接: https://pan.baidu.com/s/1gopabZ5fPlebONvE2JaBzQ

提取码: mkmf 

配套VMware Tools:点击下载 VMWare Tools 8.5.8

 

 

 

 

展开阅读全文

没有更多推荐了,返回首页