`vagrant up` and `vagrant -v` fails

56 views
Skip to first unread message

Joe Miyamoto Philips

unread,
Jun 26, 2015, 4:35:26 AM6/26/15
to vagra...@googlegroups.com
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...
#the URL is the one second from the top in http://www.vagrantbox.es/
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!

Alvaro Miranda Aguilera

unread,
Jun 29, 2015, 1:20:51 AM6/29/15
to vagra...@googlegroups.com
Hello,

Can you share

vagrant box list
vagrant plugin list

and share the Vagrantfile you are using

you should use

vagrant up --provider=lxc if you want to use that provider
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in violation
> of those guidelines may result in your removal from this mailing list.
>
> GitHub Issues: https://github.com/mitchellh/vagrant/issues
> IRC: #vagrant on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vagrant-up+...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/vagrant-up/02ea3c46-310a-4a14-8687-195810bd4868%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages