まず
「仮想マシンをとても簡単シンプルに構築・操作するソフトウェア」Vagrantです。前回の記事よりもっと簡単に設定し、Vagrantで仮想環境構築します。
vagrantのインストール
・Windows I686 Version: 2.4.1
centos8
vagrant init centos/8
出力
AVagrantfile
has been placed in this directory. You are now
ready tovagrant up
your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
vagrantup.com
for more information on using Vagrant.
環境の複製
Vagrantfileにコマンドを書き、書き終わったら都度以下を実行する
vagrant up
vagrant ssh
エラー①
vagrant initをしたがエラー
-> 解決した : vagrant の作成ディレクトリが異なっていた
https://qiita.com/Ryohei_U/items/8d8ea718b6d265c81bd7
③vagrantがうまく動かない
->再起動して解決(vagrant reload)
https://qiita.com/nakamurashun0621/items/980890ed14645da5aee6
完了
簡単にCentOS8の環境が構築できました!
次は環境構築した仮想マシンにいろいろしていきます!