イヌツムリのメモ

学習したことのメモである。しかし、他の人が読んでもわかるように書こう。

centos6上にvirtualboxでcentos8環境を作りたい

はじめに

centos6上にvirtualboxでcentos8環境を作りたい。
正攻法でうまく行かなかったので、vagrantのちからを借りようとしたら
うまくできなかったので、邪道な方法で解決した。

  1. vagrantをインストール (curlを添えて)
  2. boxを追加 (curlを添えて)
  3. vagrant up
$ curl -ksSLO https://releases.hashicorp.com/vagrant/2.2.14/

# rpm -Uvh ./vagrant_2.2.14_x86_64.rpm


$ vagrant box add https://app.vagrantup.com/centos/boxes/8

An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to proxy.co.jp:8080

$ vagrant plugin install vagrant-proxyconf

An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to proxy.co.jp:8080

$ curl -ksSLO  https://app.vagrantup.com/centos/boxes/8/versions/2011.0/providers/virtualbox.box

$ vagrant box add centos8 ./virtualbox.box

$ vagrant init

$ vi Vagrantfile

$ vagrant up

おわりに

終始、curlしてどうにかする方法で解決した。
(時間ないときはとりあえず解決する)
proxy環境困る。。。

参考

Proxy環境下でのVagrant設定 - Qiita

Downloads | Vagrant by HashiCorp

Vagrant box centos/8 - Vagrant Cloud