d392f8f65585dfc027f1827401f3090574448c42
[genesis.git] / fuel / deploy / README.txt
1
2 ======== How to prepare and run the OPNFV Autodeployment =======
3
4 in fuel/build/deploy run these:
5
6
7
8 --- Step.1 Install prerequisites
9
10 sudo ./install-ubuntu-packages.sh
11
12
13
14
15
16
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
19
20 sudo python setup_environment.py <storage_directory> <path_to_dha_file>
21
22 Example:
23          sudo python setup_environment.py /mnt/images dha.yaml
24
25
26
27
28
29
30 --- Step.2-B If you want to deploy OPNFV cloud environment on baremetal run the
31              following environment setup script
32
33 sudo python setup_vfuel.py <storage_directory> <path_to_dha_file>
34
35 Example:
36          sudo python setup_vfuel.py /mnt/images dha.yaml
37
38
39 WARNING!:
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.
43
44 iface vfuelnet inet static
45         bridge_ports em1
46         address 10.40.0.1
47         netmask 255.255.255.0
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"
52
53
54
55
56
57
58 --- Step.3 Start Autodeployment
59 Make sure you use the right Deployment Environment Adapter and
60 Deployment Hardware Adaper configuration files:
61
62        - for baremetal:  baremetal/dea.yaml   baremetal/dha.yaml
63
64        - for libvirt:    libvirt/dea.yaml   libvirt/dha.yaml
65
66
67 sudo python deploy.py [-nf] <isofile> <deafile> <dhafile>
68
69 Example:
70          sudo python deploy.py ~/ISO/opnfv.iso baremetal/dea.yaml baremetal/dha.yaml
71