Vagrant -
Windows Linux
Vagrant .
, Vagrant . .
Windows
Vagrant , , . Vagrant VirtualBox .
VirtualBox , (, ) Linux, macOS, Windows . VirtualBox, Vagrant , , .
, VirtualBox 6.0 Linux
Vagrant :
$ vagrant Usage: vagrant [options] <command> [] -v, --version Print the version and exit. -h, --help Print this help. # ...
Vagrant Vagrantfile, . :
mkdir vagrant_demo && cd vagrant_demo vagrant init ubuntu/trusty64
Vagrantfile - Ruby, , .
, , "" . Vagrant "Vagrant box", Vagrant vagrant box add
, Vagrant box , . , ?
$ vagrant box add hashicorp/precise64
Vagrant box "hashicorp/precision64" Vashgrant Cloud, . , URL.
"" . Vagrant box "" . , , Vagrant box hashicorp/precision64, .
Vagrant box Vagrant, . Vagrantfile :
Vagrant.configure("2") do |config| config.vm.box = "hashicorp/precise64" end
"", config.vm.box_version
, :
Vagrant.configure("2") do |config| config.vm.box = "hashicorp/precise64" config.vm.box_version = "1.1.0" end
URL-, config.vm.box_url
:
Vagrant.configure("2") do |config| config.vm.box = "hashicorp/precise64" config.vm.box_url = "https://vagrantcloud.com/hashicorp/precise64" end
Vagrant : $ vagrant up
, Ubuntu. :

SSH : $ vagrant ssh
.
SSH-. . SSH CTRL + D.
vagrant@precise64:~$ logout Connection to 127.0.0.1 closed.
vagrant destroy
Vagrant , .
Ubuntu:
Virtualbox, , , Ubuntu: >sudo apt install virtualbox
: , Vagrant Virtualbox, Ubuntu , , .
, Vagrant: vagrant --version
: Vagrant 2.0.2
, Vagrant Ubuntu, , .
, . Vagrantfile.
:
mkdir ~/my-first-vagrant-project cd ~/my-first-vagrant-project
Vagrantfile vagrant init. CentOS 7. , Vagrantfile:
vagrant init centos/7
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.
vagrant up, Vagrantfile.
vagrant up ==> default: Configuring and enabling network interfaces... default: SSH address: 192.168.121.74:22 default: SSH username: vagrant default: SSH auth method: private key ==> default: Rsyncing folder: /home/linuxize/Vagrant/my-first-vagrant-project/ => /vagrant
, Vagrant /vagrant , -.
, :
vagrant ssh
:
vagrant halt
, , :
vagrant destroy
, Windows Ubuntu 18.04, . !