Last active
August 29, 2015 14:18
-
-
Save kenzo0107/a671f5f5bf628cc4a963 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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