virtuallyGhetto は有用な情報が満載で、よく参考にさせて貰っています。How to build custom ESXi ISO for Apple Mac Mini? という記事では Mac Mini 用 ESXi インストールイメージの超簡単な作成手順が記載されています。今回は CentOS7 上で作業しました。
mkisofs の用意
後の手順で .iso イメージを作成する際に mkisofs を使うので genisoimage をインストールしておきます。
yum -y install genisoimage
必要なファイル
以下のファイルが必要になります。ESXi のインストールイメージは VMware のサイトからダウンロードしておきます。
- ESXi のインストールイメージ
- 今回は 6.5(VMware-VMvisor-Installer-6.5.0-4564106.x86_64.iso)を使いました
- custom.tgz
- ghettotize-esxi-iso.sh
ESXi インストールイメージを用意したのと同じディレクトリで以下を実行し、必要なファイルをダウンロードしつつ、スクリプトには実行権限を付与します。
wget https://s3.amazonaws.com/virtuallyghetto-download/custom.tgz
wget https://raw.githubusercontent.com/lamw/vghetto-scripts/master/shell/ghettotize-esxi-iso.sh
chmod 775 ghettotize-esxi-iso.sh
ここまでの手順でディレクトリは以下の状態になっています。
# ls -l
total 336172
-rw-r--r-- 1 root root 10240 Sep 11 2014 custom.tgz
-rwxrwxr-x 1 root root 1994 Feb 8 23:05 ghettotize-esxi-iso.sh
-rw-r--r-- 1 root root 344223744 Feb 8 23:10 VMware-VMvisor-Installer-6.5.0-4564106.x86_64.iso
引数に ESXi インストールイメージを指定してスクリプトを実行します。
./ghettotize-esxi-iso.sh VMware-VMvisor-Installer-6.5.0-4564106.x86_64.iso
すると自動的に Mac Mini 用の ESXi インストールイメージが作成されます。下の例では「VMware-VMvisor-Installer-6.5.0-4564106.x86_64-NEW.iso」という名前で作成されました!
# ls -l
total 672688
-rw-r--r-- 1 root root 10240 Sep 11 2014 custom.tgz
-rwxrwxr-x 1 root root 1994 Feb 8 23:05 ghettotize-esxi-iso.sh
-rw-r--r-- 1 root root 344223744 Feb 8 23:10 VMware-VMvisor-Installer-6.5.0-4564106.x86_64.iso
-rw-r--r-- 1 root root 344590336 Feb 8 23:12 VMware-VMvisor-Installer-6.5.0-4564106.x86_64-NEW.iso
コメント