summaryrefslogtreecommitdiffstats
path: root/doc/book-enea-nfv-access-platform-guide/doc/getting_started.xml
diff options
context:
space:
mode:
authorMiruna Paun <Miruna.Paun@enea.com>2017-06-30 17:35:58 +0200
committerMiruna Paun <Miruna.Paun@enea.com>2017-06-30 17:35:58 +0200
commiteeb28fcfbb693e00df2f5d1fd100dcbb548179fc (patch)
tree81c2fbdf2f6dbb5655dfa51c92919afb996de1af /doc/book-enea-nfv-access-platform-guide/doc/getting_started.xml
parent34f088b7bf0ab2d368a4c9c0d238183140c7f42b (diff)
downloadel_releases-virtualization-eeb28fcfbb693e00df2f5d1fd100dcbb548179fc.tar.gz
Updated remaing content save for benchmarks
LXCR-7844 Signed-off-by: Miruna Paun <Miruna.Paun@enea.com>
Diffstat (limited to 'doc/book-enea-nfv-access-platform-guide/doc/getting_started.xml')
-rw-r--r--doc/book-enea-nfv-access-platform-guide/doc/getting_started.xml214
1 files changed, 212 insertions, 2 deletions
diff --git a/doc/book-enea-nfv-access-platform-guide/doc/getting_started.xml b/doc/book-enea-nfv-access-platform-guide/doc/getting_started.xml
index b534e20..aa0dcb5 100644
--- a/doc/book-enea-nfv-access-platform-guide/doc/getting_started.xml
+++ b/doc/book-enea-nfv-access-platform-guide/doc/getting_started.xml
@@ -120,8 +120,218 @@
120 </section> 120 </section>
121 121
122 <section id="prebuilt-artifacts"> 122 <section id="prebuilt-artifacts">
123 <title>How to use Prebuilt Artifacts</title> 123 <title>How to use the Prebuilt Artifacts</title>
124 124
125 <para></para> 125 <section id="boot-ramdisk">
126 <title>Booting Enea NFV Access Platform using RAMDISK</title>
127
128 <para>There may be use cases, especially at first target ramp-up, where
129 the HDD/SDD has no partitions and you need to prepare the disks for
130 boot. Booting from ramdisk can help with this task.</para>
131
132 <para>The prerequisites needed to proceed:</para>
133
134 <itemizedlist>
135 <listitem>
136 <para>Enea Linux ext4 rootfs image -
137 enea-image-virtualization-host-inteld1521.ext4</para>
138 </listitem>
139
140 <listitem>
141 <para>Enea Linux kernel image - bzImage</para>
142 </listitem>
143
144 <listitem>
145 <para>BIOS has PXE boot enabled</para>
146 </listitem>
147
148 <listitem>
149 <para>PXE/tftp server configured and connected (ethernet) to
150 target.</para>
151 </listitem>
152 </itemizedlist>
153
154 <para>Copy bzImage and enea-image-virtualization-host-inteld1521.ext4.gz
155 images to the tftpserver configured for PXE boot.</para>
156
157 <para>Use the following as an example for the PXE configuration
158 file:</para>
159
160 <programlisting>default vesamenu.c32
161prompt 1
162timeout 0
163
164label el_ramfs
165 menu label ^EneaLinux_RAMfs
166 kernel bzImage
167 append root=/dev/ram0 initrd=enea-image-virtualization-host-inteld1521.ext4 /
168 ramdisk_size=1200000 console=ttyS0,115200 eralyprintk=ttyS0,115200</programlisting>
169
170 <para>Restart the target. Then enter (F11) in the Boot Menu and select
171 the Ethernet interface used for PXE boot. From the PXE Boot Menu select
172 <emphasis role="bold">Enea Linux_RAMfs</emphasis>. Once the Enea NFV
173 Access Platform is started you can partition the HDD/SDD and install
174 GRUB as described in in the following section.s</para>
175 </section>
176
177 <section id="install-grub">
178 <title>Partitioning a new harddisk and installing GRUB</title>
179
180 <para>The prerequisites needed:</para>
181
182 <itemizedlist>
183 <listitem>
184 <para>grub (<literal>grub-efi-bootx64.efi</literal>) - availalble as
185 a pre-built artifact under
186 <literal>inteld1521/images/enea-image-virtualization-host</literal>.</para>
187 </listitem>
188
189 <listitem>
190 <para><literal>e2fsprogs-mke2fs_1.43.4-r0.0_amd64.deb,
191 dosfstools_4.1-r0.0_amd64.deb</literal> - available under
192 <literal>inteld1521/deb</literal>.</para>
193 </listitem>
194 </itemizedlist>
195
196 <para>Proceed using the following steps:</para>
197
198 <orderedlist>
199 <listitem>
200 <para>Boot target with Enea NFV Access Platform from RAMDISK</para>
201 </listitem>
202
203 <listitem>
204 <para>Install prerequisite packages:</para>
205
206 <programlisting>&gt; dpkg -i e2fsprogs-mke2fs_1.43.4-r0.0_amd64.deb
207&gt; dpkg -i dosfstools_4.1-r0.0_amd64.deb</programlisting>
208 </listitem>
209
210 <listitem>
211 <para>Partition the disk:</para>
212
213 <programlisting>&gt; fdisk /dev/sda
214fdisk&gt; g {GPT partition type}
215fdisk&gt; n
216fdisk&gt; 1
217fdisk&gt; {default start part}
218fdisk&gt; +512M
219fdisk&gt; t
220fdisk&gt; 1 {ESP/EFI partition}
221fdisk&gt; n
222fdisk&gt; 2
223fdisk&gt; {default start part}
224fdisk&gt; +18G
225fdisk&gt; 3
226fdisk&gt; {default start part}
227fdisk&gt; +20G
228...
229fdisk&gt; 7
230fdisk&gt; {default start part}
231fdisk&gt; {default end end part}
232
233fdisk&gt; p {print partion table}
234fdisk&gt; w {write to disk}
235fdisk&gt; q</programlisting>
236 </listitem>
237
238 <listitem>
239 <para>Format the partitions:</para>
240
241 <programlisting>&gt; mkfs.fat -F32 -nEFI /dev/sda1
242&gt; mkfs.ext4 -LROOT /dev/sda2
243&gt; mkfs.ext4 -LROOT /dev/sda3
244&gt; mkfs.ext4 -LROOT /dev/sda4
245&gt; mkfs.ext4 -LROOT /dev/sda5
246&gt; mkfs.ext4 -LROOT /dev/sda6
247&gt; mkfs.ext4 -LROOT /dev/sda7</programlisting>
248 </listitem>
249
250 <listitem>
251 <para>Create a GRUB partition:</para>
252
253 <programlisting>&gt; mkdir /mnt/boot
254&gt; mount /dev/sda1 /mnt/boot
255&gt; mkdir -p /mnt/boot/EFI/boot
256
257&gt; cp grub-efi-bootx64.efi /mnt/boot/EFI/boot/bootx64.efi
258&gt; vi /mnt/boot/EFI/boot/grub.cfg
259default=1
260
261menuentry "Linux Reference Image" {
262 linux (hd0,gpt2)/boot/bzImage root=/dev/sda2 ip=dhcp
263}
264
265menuentry "Linux sda3" {
266 linux (hd0,gpt3)/boot/bzImage root=/dev/sda3 ip=dhcp
267}
268
269menuentry "Linux sda4" {
270 linux (hd0,gpt4)/boot/bzImage root=/dev/sda4 ip=dhcp
271}
272
273menuentry "Linux sda5" {
274 linux (hd0,gpt5)/boot/bzImage root=/dev/sda5 ip=dhcp
275}
276
277menuentry "Linux sda6" {
278 linux (hd0,gpt6)/boot/bzImage root=/dev/sda6 ip=dhcp
279}
280
281menuentry "Linux sda7" {
282 linux (hd0,gpt7)/boot/bzImage root=/dev/sda7 ip=dhcp
283}</programlisting>
284 </listitem>
285 </orderedlist>
286 </section>
287
288 <section id="boot-hdd">
289 <title>Installing and booting Enea NFV Access Platform on the
290 harddisk</title>
291
292 <para>After partitioning the harddisk, boot Enea NFV Access Platform
293 from RAMFS or from a reference image installed on one of the
294 partitions.</para>
295
296 <para>To install Enea Linux image on a partition follow these
297 steps:</para>
298
299 <orderedlist>
300 <listitem>
301 <para>Copy your platform image on target:</para>
302
303 <programlisting>server&gt; scp ./enea-image-virtualization-host-inteld1521.tar.gz /
304root@&lt;target_ip&gt;:/home/root/</programlisting>
305 </listitem>
306
307 <listitem>
308 <para>Extract image onto the desired partition:</para>
309
310 <programlisting>target&gt; mount /dev/sda3 /mnt/sda
311target&gt; tar -pzxf /home/root/enea-image-virtualization-host-inteld1521.tar.gz /
312-C /mnt/sda</programlisting>
313
314 <para>Alternately, you can do both steps in one command from the
315 server:</para>
316
317 <programlisting>server&gt; cat ./enea-image-virtualization-host-inteld1521.tar.gz | /
318ssh root@&lt;target_ip&gt; "cd /mnt/sda6; tar -zxf -"</programlisting>
319 </listitem>
320
321 <listitem>
322 <para>Reboot</para>
323 </listitem>
324
325 <listitem>
326 <para>From the GRUB menu select your partition</para>
327 </listitem>
328 </orderedlist>
329
330 <note>
331 <para>In order to change kernel boot parameters you need to mount the
332 GRUB partition (i.e. <literal>/dev/sda1</literal>) and change the
333 <literal>EFI/boot/grub.cfg</literal> file.</para>
334 </note>
335 </section>
126 </section> 336 </section>
127</chapter> \ No newline at end of file 337</chapter> \ No newline at end of file