Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Vagrantがインストールされていることを前提
# ~/CentOS7にVagrant box imageを作成しビルドします。
cd ~
mkdir CentOS7
cd CentOS7
# centos7 のboxイメージをcentos7という名称で取得
vagrant box add centos7 https://f0fff3908f081cb6461b407be80daf97f07ac418.googledrive.com/host/0BwtuV7VyVTSkUG1PM3pCeDJ4dVE/centos7.box
# centos7 box初期化
vagrant init centos7
# Vagrantfileが作成されていることを確認
ls -ltr Vagrantfile
-rw-r--r-- 1 kenzo staff 4815 4 8 18:27 Vagrantfile
# VMのIP設定
vim Vagrantfile
--- Vagrantfile 編集内容 start ---
コメントアウト削除
# config.vm.network "private_network", ip: "192.168.33.10"
config.vm.network "private_network", ip: "192.168.33.10"
--- Vagrantfile 編集内容 end ---
# centos7 VM起動
vagrant up
# ssh接続
vagrant ssh
Last login: Wed Apr 8 05:35:50 2015 from 10.0.2.2
[vagrant@localhost ~]$
# ↑ログイン成功
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.