summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Wellving <andreas.wellving@enea.com>2021-10-07 16:11:53 +0200
committerAndreas Wellving <andreas.wellving@enea.com>2021-10-18 13:35:26 +0200
commit0b14264f445d00baf25d8feaa63e1e0fad65489b (patch)
treeb1c36b2fd1803be749d2902eb5ee605f2902350e
parent7f0300cf95ac8f5592a6c43792b5b6470b69aaaf (diff)
downloadnfv-access-documentation-feature_CPDX-3552.tar.gz
LXCR-11018 - Improve PXE installfeature_CPDX-3552
- Providing parameters to generate a json configuration: - Edge Management IP/FQDN - device id autogenerated from hardware identifier script - Management interface = the PXE boot interface (configured as DHCP) - Storing files on the device file system, for example to preprovision VNF images Change-Id: Iefd14ef1946a50be74ce819acbb0b94502405ce7 Signed-off-by: Andreas Wellving <andreas.wellving@enea.com>
-rw-r--r--doc/book-enea-edge-getting-started/doc/advanced_configurations.xml45
1 files changed, 34 insertions, 11 deletions
diff --git a/doc/book-enea-edge-getting-started/doc/advanced_configurations.xml b/doc/book-enea-edge-getting-started/doc/advanced_configurations.xml
index 5f20c7f..889ab98 100644
--- a/doc/book-enea-edge-getting-started/doc/advanced_configurations.xml
+++ b/doc/book-enea-edge-getting-started/doc/advanced_configurations.xml
@@ -47,9 +47,10 @@
47 47
48 <listitem> 48 <listitem>
49 <para>An HTTP server must be available and accessible from the uCPE 49 <para>An HTTP server must be available and accessible from the uCPE
50 devices in the provisioning network. Note that the installer will 50 devices in the provisioning network if HTTP download is prefered.
51 use the same interface that the uCPE device is PXE-booted from, to 51 Note that the installer will use the same interface that the uCPE
52 obtain an IP address using DHCP and access the HTTP server.</para> 52 device is PXE-booted from, to obtain an IP address using DHCP and
53 access the HTTP server.</para>
53 </listitem> 54 </listitem>
54 55
55 <listitem> 56 <listitem>
@@ -92,7 +93,7 @@
92 <para>Compress the Enea Edge Runtime <literal>.hddimg</literal> 93 <para>Compress the Enea Edge Runtime <literal>.hddimg</literal>
93 image for the uCPE device architecture using <literal>gzip</literal> 94 image for the uCPE device architecture using <literal>gzip</literal>
94 and copy the resulting <literal>hddimg.gz</literal> file to the HTTP 95 and copy the resulting <literal>hddimg.gz</literal> file to the HTTP
95 server.</para> 96 server or to the TFTP directory on the PXE server.</para>
96 </listitem> 97 </listitem>
97 </orderedlist> 98 </orderedlist>
98 99
@@ -100,9 +101,9 @@
100 <title>Installation Configuration File</title> 101 <title>Installation Configuration File</title>
101 102
102 <para>An installation configuration file needs to be prepared on the 103 <para>An installation configuration file needs to be prepared on the
103 HTTP server. The format of the configuration file is a list of 104 HTTP server or on the TFTP directory on the PXE server. The format of
104 "<literal>name = value</literal>" pairs and the available parameters 105 the configuration file is a list of "<literal>name = value</literal>"
105 are described below:</para> 106 pairs and the available parameters are described below:</para>
106 107
107 <itemizedlist> 108 <itemizedlist>
108 <listitem> 109 <listitem>
@@ -123,13 +124,34 @@
123 formatting and partitioning the drive. The default behavior is to 124 formatting and partitioning the drive. The default behavior is to
124 proceed automatically without any user interaction.</para> 125 proceed automatically without any user interaction.</para>
125 </listitem> 126 </listitem>
127
128 <listitem>
129 <para><literal>staging_archive</literal> (optional). A tar.gz file
130 including files to be pre-staged on the device.</para>
131 </listitem>
132
133 <listitem>
134 <para><literal>edge_management_address</literal> (optional). Edge
135 Management IP/FQDN.</para>
136 </listitem>
137
138 <listitem>
139 <para><literal>deviceid_script</literal> (optional). Shell script that
140 the installer will run returning the DeviceId matching Edge Managment
141 settings. E.g. the script would return a HW identifier.</para>
142 </listitem>
126 </itemizedlist> 143 </itemizedlist>
127 144
128 <para>Installation Configuration File Example:</para> 145 <para>Installation Configuration File Examples:</para>
129 146
130 <programlisting>image_url = http://192.168.1.100/enea-edge-runtime-xeon-d.hddimg.gz 147 <programlisting>image_url = http://192.168.1.100/enea-edge-runtime-xeon-d.hddimg.gz
131install_drive = /dev/sda</programlisting> 148install_drive = /dev/sda</programlisting>
132 149
150 <programlisting>image_url = tftp://&lt;Server IP&gt;/enea_edge/enea-edge-runtime-xeon-d.hddimg.gz
151staging_archive = tftp://&lt;Server IP&gt;/enea_edge/conf_files.tar.gz
152edge_management_address = manager1.enea.com
153deviceid_script = tftp://&lt;Server IP&gt;/enea_edge/deviceId</programlisting>
154
133 <note> 155 <note>
134 <para>The installation configuration file needs to use the Linux 156 <para>The installation configuration file needs to use the Linux
135 end-of-line format (\n), not the Windows format (\r\n).</para> 157 end-of-line format (\n), not the Windows format (\r\n).</para>
@@ -142,14 +164,15 @@ install_drive = /dev/sda</programlisting>
142 <para>A PXE entry for the Enea Edge installation needs to be added as 164 <para>A PXE entry for the Enea Edge installation needs to be added as
143 the default boot selection in the pxelinux configuration file (e.g 165 the default boot selection in the pxelinux configuration file (e.g
144 <literal>/var/lib/tftpboot/pxelinux.cfg/default</literal>). The PXE 166 <literal>/var/lib/tftpboot/pxelinux.cfg/default</literal>). The PXE
145 entry should have the following settings:</para> 167 entry should have the following settings, where &lt;protocol&gt; could
168 be either of http or tftp:</para>
146 169
147 <programlisting>default enea_edge_runtime 170 <programlisting>default enea_edge_runtime
148label enea_edge_runtime 171label enea_edge_runtime
149menu label ^ENEA_EDGE_INSTALLER 172menu label ^ENEA_EDGE_INSTALLER
150kernel &lt;Path to kernel&gt; 173kernel &lt;Path to kernel&gt;
151append root=/dev/ram0 initrd=&lt;Path to initramfs&gt; LABEL=pxe-installer \ 174append root=/dev/ram0 initrd=&lt;Path to initramfs&gt; LABEL=pxe-installer \
152 INSTALL_CFG=http://&lt;Server IP&gt;/&lt;Path to install config file&gt; \ 175 INSTALL_CFG=&lt;protocol&gt;://&lt;Server IP&gt;/&lt;Path to install config file&gt; \
153 console=ttyS0,115200 earlyprintk=ttyS0,115200 176 console=ttyS0,115200 earlyprintk=ttyS0,115200
154ipappend 2</programlisting> 177ipappend 2</programlisting>
155 </section> 178 </section>
@@ -1455,4 +1478,4 @@ Configuration complete.</programlisting>
1455 </orderedlist> 1478 </orderedlist>
1456 </section> 1479 </section>
1457 </section> 1480 </section>
1458</chapter> \ No newline at end of file 1481</chapter>