Vagrant: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 16: Line 16:
'''Ubuntu'''
'''Ubuntu'''
<source lang="bash">
<source lang="bash">
wget -qO - vagrant.gpg https://apt.releases.hashicorp.com/gpg\
# wget -qO - vagrant.gpg https://apt.releases.hashicorp.com/gpg\
  | sudo gpg --dearmor -o /usr/share/keyrings/vagrant-archive-keyring.gpg
# | sudo gpg --dearmor -o /usr/share/keyrings/vagrant-archive-keyring.gpg
#
# sudo echo "deb [arch=$(dpkg --print-architecture)\
# signed-by=/usr/share/keyrings/vagrant-archive-keyring.gpg]\
# https://apt.releases.hashicorp.com $(lsb_release -cs) main" > /etc/apt/sources.list.d/vagrant.list
 
wget -qO - hashicorp.gpg https://apt.releases.hashicorp.com/gpg\
  | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg


sudo echo "deb [arch=$(dpkg --print-architecture)\
sudo echo "deb [arch=$(dpkg --print-architecture)\
  signed-by=/usr/share/keyrings/vagrant-archive-keyring.gpg]\
  signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg]\
  https://apt.releases.hashicorp.com $(lsb_release -cs) main" > /etc/apt/sources.list.d/vagrant.list
  https://apt.releases.hashicorp.com $(lsb_release -cs) main" > /etc/apt/sources.list.d/hashicorp.list
</source>
</source>



Revision as of 06:34, 12 June 2022

Info

brew cask info virtualbox
brew cask info vagrant
brew cask info vagrant-manager

Install

MacOS

brew cask install virtualbox
brew cask install vagrant
brew cask install vagrant-manager

Ubuntu

# wget -qO - vagrant.gpg https://apt.releases.hashicorp.com/gpg\
# | sudo gpg --dearmor -o /usr/share/keyrings/vagrant-archive-keyring.gpg
#
# sudo echo "deb [arch=$(dpkg --print-architecture)\
# signed-by=/usr/share/keyrings/vagrant-archive-keyring.gpg]\
# https://apt.releases.hashicorp.com $(lsb_release -cs) main" > /etc/apt/sources.list.d/vagrant.list

wget -qO - hashicorp.gpg https://apt.releases.hashicorp.com/gpg\
 | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg

sudo echo "deb [arch=$(dpkg --print-architecture)\
 signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg]\
 https://apt.releases.hashicorp.com $(lsb_release -cs) main" > /etc/apt/sources.list.d/hashicorp.list

Syntax

vagrant box add {title} {url}
vagrant init {title}

Example

vagrant box add hashicorp/precise64 https://vagrantcloud.com/hashicorp/boxes/precise64/versions/1.1.0/providers/virtualbox.box
vagrant init hashicorp/precise64
vagrant up
vagrant ssh
vagrant halt

References