2 ======== PREREQUISITES ========
4 the following applications and python modules are required to be installed:
6 - example for Ubuntu environment:
8 sudo apt-get install -y libvirt-bin qemu-kvm tightvncserver virt-manager
9 sshpass fuseiso genisoimage blackbox xterm python-pip
10 sudo restart libvirt-bin
11 sudo pip install pyyaml netaddr paramiko lxml scp
15 ======== PREPARE and RUN the OPNFV Autodeployment ========
18 --- Step.1 Prepare the DEA and DHA configuration files and the OPNFV ISO file
20 Make sure that you are using the right DEA - Deployment Environment Adapter and
21 DHA - Deployment Hardware Adapter configuration files, the ones provided are only templates
22 you will have to modify them according to your needs
24 - If wou wish to deploy OPNFV cloud environment on top of KVM/Libvirt
25 virtualization use as example the following configuration files:
31 => libvirt/conf/multinode
36 - If you wish to deploy OPNFV cloud environment on baremetal
37 use as example the following configuration files:
39 => baremetal/conf/ericsson_montreal_lab/ha
43 => baremetal/conf/ericsson_montreal_lab/multinode
47 => baremetal/conf/linux_foundation_lab/ha
51 => baremetal/conf/linux_foundation_lab/multinode
56 --- Step.2 Run Autodeployment:
58 usage: python deploy.py [-h] [-nf]
59 [iso_file] dea_file dha_file [storage_dir]
63 iso_file ISO File [default: OPNFV.iso]
64 dea_file Deployment Environment Adapter: dea.yaml
65 dha_file Deployment Hardware Adapter: dha.yaml
66 storage_dir Storage Directory [default: images]
67 pxe_bridge Linux Bridge for booting up the Fuel Master VM [default: pxebr]
70 -h, --help show this help message and exit
71 -nf Do not install Fuel Master (and Node VMs when using libvirt)
76 If <storage_dir> is not specified, Autodeployment will use
77 "<current_working_dir>/images" as default, and it will create it,
78 if it hasn't been created before
80 If <pxe_bridge> is not specified, Autodeployment will use "pxebr" as default,
81 if the bridge does not exist, the application will terminate with an error message
83 IF <storage_dir> is not specified, Autodeployment will use "<current_working_dir>/OPNFV.iso"
84 as default, if the iso file does not exist, the application will terminate with an error message
86 <pxe_bridge> is not required for Autodeployment in virtual environment, even if it is specified
87 it will not be used at all
92 - Install Fuel Master and deploy OPNFV Cloud from scratch on Baremetal Environment
94 sudo python deploy.py ~/ISO/opnfv.iso ~/CONF/baremetal/dea.yaml ~/CONF/baremetal/dha.yaml /mnt/images pxebr
97 - Install Fuel Master and deploy OPNFV Cloud from scratch on Virtual Environment
99 sudo python deploy.py ~/ISO/opnfv.iso ~/CONF/virtual/dea.yaml ~/CONF/virtual/dha.yaml /mnt/images
103 - Deploy OPNFV Cloud on an already active Environment where Fuel Master VM is running
104 so no need to install Fuel again
106 sudo python deploy.py -nf ~/CONF/baremetal/dea.yaml ~/CONF/baremetal/dha.yaml
108 sudo python deploy.py -nf ~/CONF/virtual/dea.yaml ~/CONF/virtual/dha.yaml