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] [-s [STORAGE_DIR]] [-b [PXE_BRIDGE]]
59 [iso_file] dea_file dha_file
62 iso_file ISO File [default: OPNFV.iso]
63 dea_file Deployment Environment Adapter: dea.yaml
64 dha_file Deployment Hardware Adapter: dha.yaml
67 -h, --help show this help message and exit
68 -nf Do not install Fuel Master (and Node VMs when using
70 -s [STORAGE_DIR] Storage Directory [default: images]
71 -b [PXE_BRIDGE] Linux Bridge for booting up the Fuel Master VM [default:
77 If optional argument -s <storage_dir> is not specified, Autodeployment will use
78 "<current_working_dir>/images" as default, and it will create it, if it hasn't been created before
80 If optional argument -b <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 optional argument <iso_file> 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 -s /mnt/images -b 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 -s /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