VirtualBox用のmacOSインストールディスクを作る¶
元データの入手¶
macOS High Sierraは、Mac App Storeから入手できる。 ダウンロードは ここ

このアプリケーションの中に、インストールディスクを作るためのリソースが全て入っている。
.
└── Contents
├── Frameworks
├── Info.plist
├── MacOS
├── PkgInfo
├── PlugIns
├── Resources
├── SharedSupport
│ ├── AppleDiagnostics.chunklist
│ ├── AppleDiagnostics.dmg
│ ├── BaseSystem.chunklist
│ ├── BaseSystem.dmg
│ ├── InstallESD.dmg
│ └── InstallInfo.plist
├── _CodeSignature
└── version.plist
isoデータの作成¶
ダウンロードしたインストーラから、以下のコマンドでDesktopにisoファイルを作れる。
$ hdiutil create -o /tmp/HighSierra -size 8G -layout SPUD -fs HFS+J -type SPARSE
created: /tmp/HighSierra.sparseimage
$ hdiutil attach /tmp/HighSierra.sparseimage -noverify -mountpoint /Volumes/install_build
/dev/disk9 Apple_partition_scheme
/dev/disk9s1 Apple_partition_map
/dev/disk9s2 Apple_HFS /Volumes/install_build
$ sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build
Password:
Ready to start.
To continue we need to erase the volume at /Volumes/install_build.
If you wish to continue type (Y) then press return: Y
Erasing Disk: 0%... 10%... 20%... 30%...100%...
Copying installer files to disk...
Copy complete.
Making disk bootable...
Copying boot files...
Copy complete.
Done.
$ hdiutil detach /Volumes/Install\ macOS\ High\ Sierra/
"disk9" unmounted.
"disk9" ejected.
$ hdiutil convert /tmp/HighSierra.sparseimage -format UDTO -o /tmp/HighSierra.iso
Driver Descriptor Map(DDM: 0)を読み込み中…
Apple(Apple_partition_map: 1)を読み込み中…
(Apple_Free: 2)を読み込み中…
disk image(Apple_HFS: 3)を読み込み中…
..........................................................................................................................................
経過時間: 17.273s
速度: 474.3Mバイト/秒
節約率: 0.0%
created: /tmp/HighSierra.iso.cdr
$ mv /tmp/HighSierra.iso.cdr ~/Desktop/HighSierra.iso
$ rm /tmp/HighSierra.sparseimage
デスクトップに以下のようなアイコンが出来る。ファイル名は、"HighSierra.iso"

Comments
comments powered by Disqus