# 作業手順書 ## VagrantでCentOS7環境構築 *** ### 目次 1. [更新履歴](#更新履歴) 1. [備考](#備考) 1. [事前準備](#事前準備) 1. [手順](#手順) *** ### 更新履歴 |ver|更新日|更新内容| |:---|:---|:---| |1.0|2019-04-12|新規作成| *** ### 備考 1. 参考 * [VagrantでCentOS7の環境構築](https://qiita.com/192_60_33_2/items/73df25e2dd64217165ae) *** ### 事前準備 1. Oracle VM VirtualBoxインストール http://www.oracle.com/technetwork/server-storage/virtualbox/downloads/index.html?ssSourceSiteId=otnjp 1. Vagrantインストール https://www.vagrantup.com/downloads.html 1. ルードディレクトリ作成 cmd > ```mkdir c:\vagrant\centos7``` *** ### 手順 1. ルートディレクトリへ移動する cmd > ```cd c:\vagrant\centos7``` 1. VagrantでCentOS 7をインストール cmd > ```vagrant box add centos/7``` 1. Vagrant 初期化(Vagrantfileの作成) cmd > ```vagrant init centos/7``` 1. インストール確認 cmd > ```vagrant up``` ※ここでエラーが発生せずに、VirtualBoxのCentOS6.7が起動できればインストール成功 1. ログイン cmd > ```vagrant ssh``` 1. root権限に変更 [vagrant@rocalhost ~]$ ```su root``` password : ```vagrant``` 1. システムアップデート [root@rocalhost vagrant]$ ```yum update```