About ゲストOSからホストOSで構築したpostgresqlに接続する方法を調べたのでメモ。 接続方法 10.0.2.2で接続する VM上では2つの仮想NICがあり、10から始まるIPと192から始まるIPを持っています。ホスト上では192から始まるIPしかないため、ホストから10から始まるIPに接続できません。しかしゲストOSからはホストOSが見えているようで、10.0.2.2にホストOSが割り当てられています。(virtualboxの仕様らしいです。)
Posted: 2013.11.13 / Category: 開発環境 / Tag: Laravel Vagrantとかいうのを使うと仮想サーバーが簡単に構築できるらしいのでやってみました。 VirtualBoxのダウンロード Vagrantを使うにはVirtualBoxが必要なので最初にインストールしておきます。 下記からWindowsやMac版などありますので、それぞれの環境にあったものをダウンロードします。 ここでは「VirtualBox 4.2.18 for OS X hosts」を使用します。 Downloads – Oracle VM VirtualBox Vagrantのダウンロード Vagrantをインストールします。 下記からダウンロードしましょう。ここでは「v1.3.4」を使用します。 Vagrant Downloads インストールが完了したらターミナルなどで下記コマ
Vagrantとは? ちょっとした確認やテストのため、いつ壊れてもいいような環境が必要なことがあります。 そういった際にはEC2を使えばすぐに環境が用意できますが、多少お金がかかりますし、プロジェクト毎にIAMアカウントを発行したりする場合は管理も面倒です。 そんなときには仮想化ソフトウェアをつかってローカルに仮想OSをインストールしましょう。 Oracle VM VirtualBoxを使用すれば、簡単に仮想OSを使用することができます。 じゃあVirtualBox使えばOKかといいたいところですが、自分でOSイメージをとってきてVirtualBoxにインストールしたり、 インストールした仮想マシンの設定をしたりと、けっこう面倒です。 そこで登場するのが、今回紹介するVagrantです。 VagantはVirtualBoxのフロントエンドとして使用することができるruby製のツールで、コマ
先日 Vagrant を触ってみたら便利すぎて鼻血が出ました。しばらく見ないうちに色々進んでるもんですねえ、いやはや参っちゃいました。 Vagrant は仮想マシンの VirtualBox のフロントエンドに相当する、ruby で書かれたツールです。vagrant コマンドなどを使ってコマンドラインから簡単に新しい VM を作れる。 % gem install vagrant % vagrant box add centos http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.3-x86_64-v20130101.box % vagrant init centos % vagrant upこれだけで CentOS の Linux box をローカルマシン内に立ち上げることができる。*1 *2 なにこれすごい。 % vagra
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く