2
1

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 3 years have passed since last update.

Vagrant CentOS8 v1905.1 で失敗する人

Posted at

忙しい人向け

config.vbguest.installer_options というオプションを付けるとちゃんとvagrant upする

Vagrantfile
Vagrant.configure("2") do |config|
  config.vm.box = "centos/8"
  config.vbguest.installer_options = { allow_kernel_upgrade: true }
end

vagrantのバージョン: 2.2.9で確認

別解

Vagrantfile
Vagrant.configure("2") do |config|
  config.vm.box = "centos/8"
  config.vm.box_url = "http://cloud.centos.org/centos/8/x86_64/images/CentOS-8-Vagrant-8.1.1911-20200113.3.x86_64.vagrant-virtualbox.box"

この場合、一旦centos/8のイメージを削除する必要があるのでひと手間かかる。
ローカルイメージとしてcentos/8が出来るのかな。
boxの名前を変えれば(centos/8_localとか)イメージ削除しなくてもできるかもしれない(未検証)

参照記事

VagrantでCentOS8を起動すると「Error: Unknown repo: 'C*-base'」のエラーが出る

2
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?