diff options
author | Sona Sarmadi <sona.sarmadi@enea.com> | 2019-06-03 13:54:17 +0200 |
---|---|---|
committer | Adrian Dudau <Adrian.Dudau@enea.com> | 2019-07-01 15:40:42 +0200 |
commit | 5421fa28adf9a340043e3efcaa3bc828d040f956 (patch) | |
tree | 6849ab6012a0f955b8ff1a998e90f88bed94f378 /doc | |
parent | 8c550cb0712d01dab2af909a1fedc3a72544fbea (diff) | |
download | el_releases-nfv-access-5421fa28adf9a340043e3efcaa3bc828d040f956.tar.gz |
GettingStarted: Add Bare Metal Provisioning chapter
Change-Id: I86b67a965cf86bad653947766a3698cbe62da091
Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com>
Signed-off-by: Martin Borg <martin.borg@enea.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/book-enea-nfv-access-getting-started/doc/bare_metal_provisioning.xml | 147 | ||||
-rw-r--r-- | doc/book-enea-nfv-access-getting-started/doc/book.xml | 3 |
2 files changed, 150 insertions, 0 deletions
diff --git a/doc/book-enea-nfv-access-getting-started/doc/bare_metal_provisioning.xml b/doc/book-enea-nfv-access-getting-started/doc/bare_metal_provisioning.xml new file mode 100644 index 0000000..3e6869f --- /dev/null +++ b/doc/book-enea-nfv-access-getting-started/doc/bare_metal_provisioning.xml | |||
@@ -0,0 +1,147 @@ | |||
1 | <?xml version="1.0" encoding="ISO-8859-1"?> | ||
2 | <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" | ||
3 | "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> | ||
4 | <chapter id="bare_meta_prov"> | ||
5 | <title>Bare Metal Provisioning</title> | ||
6 | |||
7 | <para>This chapter contains information needed in order to use Bare Metal | ||
8 | Provisioning. Bare Metal Provisioning is an optional feature in the Enea NFV | ||
9 | Access Run Time Platform. If you do not intend to use this feature, skip to | ||
10 | the next chapter.</para> | ||
11 | |||
12 | <section id="bare_meta_prov_intro"> | ||
13 | <title>Introduction</title> | ||
14 | |||
15 | <para>Bare Metal Provisioning can be used for automated deployment of the Enea | ||
16 | NFV Access Run Time Platform on a large number of uCPE devices. The uCPE | ||
17 | devices may have no previous operating system installed, or are reinstalled | ||
18 | without preserving any existing data. Enea NFV Access Bare | ||
19 | Metal Provisioning is based on standardized Pre-Boot Execution environment (PXE) booting.</para> | ||
20 | |||
21 | <para>The Bare Metal Provisioning process begins by PXE booting an Enea | ||
22 | NFV Access installer <literal>initramfs</literal> image. The installer downloads a | ||
23 | configuration file, as well as the Enea NFV Access Run Time Platform image and | ||
24 | then proceeds to install the system by dividing the disk into 2 partitions. A GPT | ||
25 | partition containing the GRUB boot loader and a second partition | ||
26 | containing the Enea NFV Access Run Time Platform root filesystem. When the | ||
27 | installation is complete, the uCPE device is automatically rebooted into | ||
28 | Enea NFV Access Run Time Platform.</para> | ||
29 | </section> | ||
30 | |||
31 | <section id="bare_meta_prov_prereq"> | ||
32 | <title>Prerequisites</title> | ||
33 | |||
34 | <itemizedlist> | ||
35 | <listitem> | ||
36 | <para>The uCPE devices to be installed are connected in a working PXE | ||
37 | network boot environment. The PXE server can be set up using any Linux | ||
38 | distribution that includes TFTP and DHCP software packages. Refer to | ||
39 | the documentation for your distribution for setup instructions.</para> | ||
40 | </listitem> | ||
41 | |||
42 | <listitem> | ||
43 | <para>An HTTP server must be available in the provisioning | ||
44 | network.</para> | ||
45 | </listitem> | ||
46 | |||
47 | <listitem> | ||
48 | <para>The uCPE devices are preconfigured in BIOS to boot from the | ||
49 | hard drive where the Enea NFV Access Run Time Platform will be | ||
50 | installed.</para> | ||
51 | </listitem> | ||
52 | |||
53 | <listitem> | ||
54 | <para>A remote management tool is available that can be used to set | ||
55 | the next boot option to PXE and reboot the uCPE devices in order to | ||
56 | begin the installation.</para> | ||
57 | </listitem> | ||
58 | </itemizedlist> | ||
59 | </section> | ||
60 | |||
61 | <section id="bare_meta_prov_conf"> | ||
62 | <title>Installation Configuration File</title> | ||
63 | |||
64 | <para>An installation configuration file needs to be available on an HTTP | ||
65 | server in the provisioning network.</para> | ||
66 | |||
67 | <note><para>The installer will use the same interface that the uCPE device | ||
68 | was PXE-booted from, to obtain an IP address (using DHCP) and access the HTTP server.</para></note> | ||
69 | |||
70 | <para>The configuration parameters are described below. The configuration | ||
71 | file format is a list of <literal>"name = value"</literal> pairs.</para> | ||
72 | |||
73 | <itemizedlist> | ||
74 | <listitem> | ||
75 | <para><literal>image_url</literal>. The HTTP URL used for downloading | ||
76 | the Enea NFV Access Run Time Platform image (in gzip compressed hddimg | ||
77 | format) to be installed on the uCPE device(s). This image is provided | ||
78 | with your Enea NFV Access release. This parameter is mandatory.</para> | ||
79 | </listitem> | ||
80 | |||
81 | <listitem> | ||
82 | <para><literal>install_drive</literal>. The name of the drive where | ||
83 | the Enea NFV Access Run Time Platform will be installed (e.g /dev/sda). | ||
84 | This parameter is optional. If no value is set, the installer will use | ||
85 | the largest detected (non-USB) drive on the uCPE device.</para> | ||
86 | </listitem> | ||
87 | |||
88 | <listitem> | ||
89 | <para><literal>prompt_user</literal>. If the parameter is set to | ||
90 | "yes", the installer will prompt the user before formatting and | ||
91 | partitioning the drive. This parameter is optional. The default | ||
92 | behaviour is to not prompt the user (unattended installation).</para> | ||
93 | </listitem> | ||
94 | </itemizedlist> | ||
95 | |||
96 | <para>Installation Configuration File Example:</para> | ||
97 | |||
98 | <programlisting> | ||
99 | image_url = http://192.168.1.100/enea-nfv-access-xeon-d.hddimg.gz | ||
100 | install_drive = /dev/sda | ||
101 | </programlisting> | ||
102 | </section> | ||
103 | |||
104 | <section id="bare_meta_prov_pxe"> | ||
105 | <title>PXE Configuration</title> | ||
106 | |||
107 | <para>Copy the Enea NFV Access installer <literal>initramfs</literal> image and kernel | ||
108 | to the <literal>tftpboot</literal> directory on the PXE server (e.g | ||
109 | <literal>/var/lib/tftpboot</literal>). These files are provided with your | ||
110 | Enea NFV Access release.</para> | ||
111 | |||
112 | <para>A PXE entry for the Enea NFV Access installation needs to be added as | ||
113 | the default boot selection in the pxelinux configuration file (e.g | ||
114 | <literal>/var/lib/tftpboot/pxelinux.cfg/default</literal>). The PXE entry | ||
115 | should have the following settings:</para> | ||
116 | |||
117 | <programlisting> | ||
118 | default nfv_access | ||
119 | label nfv_access | ||
120 | menu label ^NFV_ACCESS_INSTALLER | ||
121 | kernel <Path to kernel> | ||
122 | append root=/dev/ram0 initrd=<Path to initramfs> LABEL=pxe-installer \ | ||
123 | INSTALL_CFG=http://<Server IP>/<Path to configuration file> | ||
124 | ipappend 2 | ||
125 | </programlisting> | ||
126 | </section> | ||
127 | |||
128 | <section id="bare_meta_prov_inst"> | ||
129 | <title>Starting the Installation</title> | ||
130 | |||
131 | <para>To initiate the installation, set the boot device (for next boot | ||
132 | only) to PXE and reboot the uCPE devices. How to do this depends on the | ||
133 | remote management capabilities of the uCPE devices and may be | ||
134 | vendor-specific.</para> | ||
135 | |||
136 | <para>Example initiation using <literal>ipmitool</literal>:</para> | ||
137 | |||
138 | <programlisting> | ||
139 | ipmitool -U <user> -P <password> -H <uCPE device IPMI IP address> chassis bootdev pxe | ||
140 | ipmitool -U <user> -P <password> -H <uCPE device IPMI IP address> power reset | ||
141 | </programlisting> | ||
142 | |||
143 | <para>The uCPE devices should be configured in BIOS to boot from the | ||
144 | installation drive first in order to automatically start the Enea NFV Access | ||
145 | Run Time Platform when the installation is finished.</para> | ||
146 | </section> | ||
147 | </chapter> \ No newline at end of file | ||
diff --git a/doc/book-enea-nfv-access-getting-started/doc/book.xml b/doc/book-enea-nfv-access-getting-started/doc/book.xml index 534b7f9..abce2c2 100644 --- a/doc/book-enea-nfv-access-getting-started/doc/book.xml +++ b/doc/book-enea-nfv-access-getting-started/doc/book.xml | |||
@@ -27,6 +27,9 @@ | |||
27 | <xi:include href="secure_boot.xml" | 27 | <xi:include href="secure_boot.xml" |
28 | xmlns:xi="http://www.w3.org/2001/XInclude" /> | 28 | xmlns:xi="http://www.w3.org/2001/XInclude" /> |
29 | 29 | ||
30 | <xi:include href="bare_metal_provisioning.xml" | ||
31 | xmlns:xi="http://www.w3.org/2001/XInclude" /> | ||
32 | |||
30 | <xi:include href="getting_started_ucpe_manager.xml" | 33 | <xi:include href="getting_started_ucpe_manager.xml" |
31 | xmlns:xi="http://www.w3.org/2001/XInclude" /> | 34 | xmlns:xi="http://www.w3.org/2001/XInclude" /> |
32 | 35 | ||