2 ======== How to prepare and run the OPNFV Autodeployment =======
4 in fuel/build/deploy run these:
8 --- Step.1 Install prerequisites
10 sudo ./install-ubuntu-packages.sh
17 --- Step.2-A If wou want to deploy OPNFV cloud environment on top of KVM/Libvirt virtualization
18 run the following environment setup script
20 sudo python setup_environment.py <storage_directory> <path_to_dha_file>
23 sudo python setup_environment.py /mnt/images dha.yaml
30 --- Step.2-B If you want to deploy OPNFV cloud environment on baremetal run the
31 following environment setup script
33 sudo python setup_vfuel.py <storage_directory> <path_to_dha_file>
36 sudo python setup_vfuel.py /mnt/images dha.yaml
40 setup_vfuel.py adds the following snippet into /etc/network/interfaces
41 making sure to replace in setup_vfuel.py interfafe 'p1p1.20' with your actual outbound
42 interface in order to provide network access to the Fuel master for DNS and NTP.
44 iface vfuelnet inet static
48 pre-down iptables -t nat -D POSTROUTING --out-interface p1p1.20 -j MASQUERADE -m comment --comment "vfuelnet"
49 pre-down iptables -D FORWARD --in-interface vfuelnet --out-interface p1p1.20 -m comment --comment "vfuelnet"
50 post-up iptables -t nat -A POSTROUTING --out-interface p1p1.20 -j MASQUERADE -m comment --comment "vfuelnet"
51 post-up iptables -A FORWARD --in-interface vfuelnet --out-interface p1p1.20 -m comment --comment "vfuelnet"
58 --- Step.3 Start Autodeployment
59 Make sure you use the right Deployment Environment Adapter and
60 Deployment Hardware Adaper configuration files:
62 - for baremetal: baremetal/dea.yaml baremetal/dha.yaml
64 - for libvirt: libvirt/dea.yaml libvirt/dha.yaml
67 sudo python deploy.py [-nf] <isofile> <deafile> <dhafile>
70 sudo python deploy.py ~/ISO/opnfv.iso baremetal/dea.yaml baremetal/dha.yaml