Hi,
Because I have to use a docker which requires newer kernel version than the debian server which I'm using right now,(and I can't update the kernel because of political reason,) I'm trying to install the vagrant to the server but I got stuck in very first place.
I first run following code.
cd ~/try-docker/
apt-get install vagrant vagrant-lxc
#seems installed successfully...
vagrant init
#looks woking fine and Vagrantfile has been created.
vagrant up
The last command will cause following error.
Bringing machine 'default' up with 'lxc' provider...
==> default: Box 'CENTOS7' could not be found. Attempting to find and install...
default: Box Provider: lxc
default: Box Version: >= 0
==> default: Adding box 'CENTOS7' (v0) for provider: lxc
default: Downloading: CENTOS7
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.
Couldn't open file /root/try-docker/CENTOS7
Looks like vagrant can't find a box image. but actually, I can find it in
~/.vagrant.d/boxes/
and when I type the following command,
ls ~/.vagrant.d/boxes/CENTOS7/0/virtualbox/
I get
Vagrantfile box-disk1.vmdk box.ovf metadata.json
And I eventually find out that even the simple command like
vagrant -v
puts following error
/usr/bin/vagrant:18:in `require_relative': cannot load such file -- /usr/lib/vagrant/version (LoadError)
from /usr/bin/vagrant:18:in `<main>'
So my question is. What am I missing here? How can I successfully run `vagrant up` command?
I really appreciate your help. Thanks in advance!