This patch is used to update the documents of D-release.
[kvmfornfv.git] / docs / installationprocedure / kvm4nfv-cicd.installation.instruction.rst
1 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
2
3 .. http://creativecommons.org/licenses/by/4.0
4
5 =====================================
6 KVM4NFV CICD Installation Instruction
7 =====================================
8
9 Preparing the installation
10 --------------------------
11
12 The OPNFV project- KVM4NFV (https://gerrit.opnfv.org/gerrit/kvmfornfv.git) is
13 cloned first, to make the build scripts for Qemu & Kernel, Rpms and Debians
14 available.
15
16 HW requirements
17 ---------------
18
19 These build scripts are triggered on the Jenkins-Slave build server. Currently
20 Intel POD1 is used as test environment for kvmfornfv to execute cyclictest. As
21 part of this test environment Intel pod1-jump is configured as jenkins slave
22 and all the latest build artifacts are downloaded on to it. Intel pod1-node1
23 is the host on which a guest vm will be launched as a part of running cylictest
24 through yardstick.
25
26 Build instructions
27 ------------------
28
29 Builds are possible for the following packages-
30
31 **kvmfornfv source code**- The ./ci/build.sh is the main script used to trigger
32 the Rpms (on 'centos') and Debians (on 'ubuntu') builds in this case.
33
34 * How to build Kernel/Qemu Rpms- To build rpm packages, build.sh script is run
35   with -p and -o option (i.e. if -p package option is  passed as "centos" or in
36   default case). Example:
37
38 .. code:: bash
39
40    cd kvmfornfv/
41
42    For Kernel/Qemu RPMs,
43    sh ./ci/build.sh -p centos -o build_output
44
45 * How to build Kernel/Qemu Debians- To build debian packages, build.sh script
46   is run with -p and -o option (i.e. if -p package option is  passed as
47   "ubuntu"). Example:
48
49 .. code:: bash
50
51    cd kvmfornfv/
52
53    For Kernel/Qemu Debians,
54    sh ./ci/build.sh -p ubuntu -o build_output
55
56
57 * How to build all Kernel & Qemu, Rpms & Debians- To build both debian and rpm
58   packages, build.sh script is run with -p and -o option (i.e. if -p package
59   option is passed as "both"). Example:
60
61 .. code:: bash
62
63    cd kvmfornfv/
64
65    For Kernel/Qemu RPMs and Debians,
66    sh ./ci/build.sh -p both -o build_output
67
68 Installation instructions
69 -------------------------
70
71 Installation can be done in the following ways-
72
73 **1. From kvmfornfv source code**-
74 The build packages that are prepared in the above section, are installed
75 differently depending on the platform.
76
77 Please visit the links for each-
78
79 * Centos : https://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-rpm-using.html
80 * Ubuntu : https://help.ubuntu.com/community/InstallingSoftware
81
82 **2. Using Fuel installer**-
83
84 * Please refer to the document present at /fuel-plugin/README.md
85
86 Post-installation activities
87 ----------------------------
88
89 After the packages are built, test these packages by executing the scripts
90 present in ci/envs for configuring the host and guest respectively.