2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CentOS7でVagrantを起動するのに躓いた話

Posted at

dockerをvagrantで起動したいなと思いたち、以前からvagrantを使って仮想環境を作っていたがcentos7にアップデートした際に軽くハマった。

解決策のひとつとして共有。

1.前提

vagrantとvirtualboxの環境構築

2.動作環境

・Windows10 64bit
・Vagrant ver.1608
・CentOS7

3.解決策~流れ

・プラグインのダウンロード vagrant-vbguest

Vagrantfileがあるディレクトリで
````$ vagrant plugin install vagrant-vbguest```
を実行

・boxのダウンロードorアップデート

$ vagrant box add centos/7```` $ vagrant box update --box centos/7````

・該当ディレクトリで

vagrant init centos/7; vagrant up --provider virtualbox
Vagrantfileの初期化
参考:https://atlas.hashicorp.com/centos/boxes/7

・Vagrantfileに以下を追記

config.vm.synced_folder ".", "/vagrant", disabled: true

・vagrant up

巡り巡りましたが、公式をよく読めばもっと早く解決できたな。
https://seven.centos.org/2016/09/updated-centos-vagrant-images-available-v1608-01/

この調子でdockerも導入しよう。

余談:

最近参加した勉強会でmac(termanal)の良さを実感した次第でした・・・
買うか・・・

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?