Код: Выделить всё
[olej@dell viniciusfs]$ vagrant box list
vagrant-cent64 (virtualbox, 0)
vagrant-win81 (virtualbox, 0)
viniciusfs/centos7 (libvirt, 0.0.1)
Код: Выделить всё
[olej@dell vagrant-cent64]$ pwd
/home/olej/Vagrant/vagrant-cent64
[olej@dell vagrant-cent64]$ vagrant init
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.
[olej@dell vagrant-cent64]$ vagrant up --provider libvirt
Bringing machine 'default' up with 'libvirt' provider...
==> default: Box 'base' could not be found. Attempting to find and install...
default: Box Provider: libvirt
default: Box Version: >= 0
==> default: Box file was not detected as metadata. Adding it directly...
==> default: Adding box 'base' (v0) for provider: libvirt
default: Downloading: base
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 /home/olej/Vagrant/vagrant-cent64/base
2. Переименовываем имя ВМ в файле Vagrant:
Код: Выделить всё
[olej@dell vagrant-cent64]$ cat Vagrantfile | grep 'config.vm.box'
# config.vm.box = "base"
config.vm.box = "vagrant-cent64"
# config.vm.box_check_update = false
[olej@dell vagrant-cent64]$ vagrant up --provider virtualbox
The provider 'virtualbox' that was requested to back the machine
'default' is reporting that it isn't usable on this system. The
reason is shown below:
Vagrant has detected that you have a version of VirtualBox installed
that is not supported by this version of Vagrant. Please install one of
the supported versions listed below to use Vagrant:
4.0, 4.1, 4.2, 4.3, 5.0
A Vagrant update may also be available that adds support for the version
you specified. Please check www.vagrantup.com/downloads.html to download
the latest version.
3. Переустановил VirtualBox из 5.0.26...
И запускаем ВМ из .box :
Код: Выделить всё
[olej@dell vagrant-cent64]$ vagrant up --provider virtualbox
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'vagrant-cent64'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: vagrant-cent64_default_1475271978947_82358
==> default: Clearing any previously set forwarded ports...
==> default: Pruning invalid NFS exports. Administrator privileges will be required...
[sudo] пароль для olej:
...