前回、VirtualBoxにゲストOSとしてMavericksを入れたので、それを使ってVagrant Boxを作ってみました。 Understanding the borderline mother download.
Vagrant for Mac Free HashiCorp Mac Version 2.2.9 Full Specs Download.com has chosen not to provide a direct-download link for this product and offers this page for informational purposes only. Installing Vagrant in MAC OS X is pretty simple. This is because, both the virtualization component and the vagrant itself can be installed by using standard installers officially provided. The virtualization platform best suited for vagrant is VirtualBox. Its freely available for mac operating system. Vagrant can work with any virtualization. Dec 18, 2016. Simple and Powerful. HashiCorp Vagrant provides the same, easy workflow regardless of your role as a developer, operator, or designer. It leverages a declarative configuration file which describes all your software requirements, packages, operating system configuration, users, and more.
もっとも、現在のところVirtualBoxにはMac OS向けのGuest Addonがないので中途半端なBoxしか作れませんでしたが、他のBoxを作るときの参考になるかもしれないので作業過程を示しておきます。
ゲストOS上での設定
Vagrantの公式ドキュメントにVagrantのBoxには最低限これだけはやっておけというものが書かれています。それを参考に次のようなことを行いました。
パッケージマネジャの導入
今回パッケージマネジャはhomebrew + homebrew-caskを入れました。場合によってはmacportsも入れればよいかも。なお、Homebrewを入れるとついでに、Command Line Toolsも入ります。
VagrantでSSHするためのユーザ作成
ユーザvagrantをUsers & Groupsから追加しました。もちろんパスワードは
vagrant です。
SSHサーバ
SharingからRemote Loginをオンにし、ユーザvagrantでアクセスできるようにします。
ポートフォワーディングの設定はVagrantが自動で行うので不要です。
Vagrant向けのSSH鍵
ユーザvagrantで鍵を追加しておきます。
パスワード不要のsudo
Vagrantがネットワーク設定とかするときに必要となりますので、
visudo https://yellowmetal640.weebly.com/free-download-apache-openoffice-for-mac.html. で設定ファイルを開いたら、ファイル末尾に次の設定を追加しておきます。 Simplified chinese keyboard download mac.
プロバイダ向けに必要なものVagrant Download Mac
プロバイダとは、ここではVirtualBoxのことを差し、Guest Addonを入れておくことなど (詳細は公式ドキュメントのVirtualBoxプロバイダ向けBoxの作成を参考のこと) が必要なものに当たります。
しかし、Mac OS X向けのGuest Addonがないので省略しました。
(必要なら) Chef, Puppetとか
Ansibleを使うつもりなので省略。
ディスク使用量を減らす
Monolingualで英語と日本語以外の不要な言語ファイルを消すだけで1.5GBくらい減らせます。
ちなみに、Monolingual最新版(1.5.10)はゲスト環境では動作しなかったので、1.4.5を使いました。
VirtualBoxでの設定の変更
Hancom office free download mac. FloppyやCD-ROMドライブはもはや不要なので切りましょう。また、Vagrant向けに特化するなら、USBやオーディオなど要らないものは切っておくとよいです。
Mavericks Boxの作成
先ほど設定したVMをベースに次のコマンドでVagrantのboxを作成します。
--base にはVirtualBoxのVM名を指定します。なお、15分くらいかかります。
完成したらboxをリストに追加しましょう。 Zip drive reader for mac.
ちゃんと追加されました。
Vagrant Download Boxmavericks.boxの起動Download Vagrant Windows
あとは普通に
vagrant で起動するだけですが、vagrant up では (Guest Addonを入れていないので) 共有フォルダを作れないというエラーが出てしまいました。
Install Vagrant On Mac
ただし、
vagrant ssh は利用できました。
おわりに
Virtualboxプロバイダ向けのMac OS X (10.9)のVagrant Boxを作ってみました。
Vagrant Osx
Parallelsだとアドオン付きのBoxをすんなりと作れるのかもしれませんが、トライアル版の期限が過ぎたので試してません。
関連リンクComments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2020
Categories |