summaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/doc/source/install/index.rst
blob: 62f57e66f32ae2a8ee7fde570d35b0b2f417e2ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
==================
Installation Guide
==================

This project collects instructions related to the automatic creation
of a development environment. However, this requires only two
components previous to its execution.  These are an automation
building tool (Vagrant) and a provider platform (VirtualBox, Libvirt
and OpenStack). This section explains how to install the most common
set of configuration(Vagrant/VirtualBox) in different Operating
Systems.

Ubuntu 14.04 ("Trusty")
-----------------------

.. code-block:: console

    $ wget -q https://releases.hashicorp.com/vagrant/2.0.1/vagrant_2.0.1_x86_64.deb
    $ sudo dpkg -i vagrant_2.0.1_x86_64.deb

    $ echo "deb http://download.virtualbox.org/virtualbox/debian trusty contrib" >> /etc/apt/sources.list
    $ wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
    $ wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
    $ sudo apt-get update -y
    $ sudo apt-get install -y virtualbox-5.1 dkms

    $ sudo apt install -y nfs-kernel-server

.. end

CentOS
------

.. code-block:: console

    $ wget -q https://releases.hashicorp.com/vagrant/2.0.1/vagrant_2.0.1_x86_64.rpm
    $ sudo yum install vagrant_2.0.1_x86_64.rpm

    $ wget -q http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo -P /etc/yum.repos.d
    $ sudo yum --enablerepo=epel install dkms
    $ wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | rpm --import -
    $ sudo yum install -y VirtualBox-5.1

    $ sudo yum install -y nfs-utils nfs-utils-lib

.. end

Mac OS
------

.. code-block:: console

    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    $ brew cask install vagrant
    $ brew cask install virtualbox

.. end

Windows 7+ (PowerShell v2+)
---------------------------

.. code-block:: console

    PS C:\> Set-ExecutionPolicy AllSigned
    PS C:\> iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
    PS C:\> choco install vagrant
    PS C:\> choco install virtualbox

.. end

.. note::

    Some corporations use Proxy Servers to protect their assets
    from security threats. This project uses the Proxy Environment
    variables to connect to those servers in order to download the
    content required during the setup. The methods to setup these
    variables depends on the Operating system that is used.

    * Linux or Mac OS

    .. code-block:: console

        $ export http_proxy=<proxy>
        $ export https_proxy=<proxy>
        $ export no_proxy=<no_proxy_urls>

    .. end

    * Windows

    .. code-block:: console

        C:\> setx http_proxy <proxy>
        C:\> setx https_proxy <proxy>
        C:\> setx no_proxy <no_proxy_urls>

    .. end

.. note::

    Vagrant can be configured to use a different default provider
    through the environment variable **VAGRANT_DEFAULT_PROVIDER**.