summaryrefslogtreecommitdiffstats
path: root/doc/book-enea-nfv-access-guide/doc/getting_started.xml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/book-enea-nfv-access-guide/doc/getting_started.xml')
-rw-r--r--doc/book-enea-nfv-access-guide/doc/getting_started.xml340
1 files changed, 340 insertions, 0 deletions
diff --git a/doc/book-enea-nfv-access-guide/doc/getting_started.xml b/doc/book-enea-nfv-access-guide/doc/getting_started.xml
new file mode 100644
index 0000000..524741a
--- /dev/null
+++ b/doc/book-enea-nfv-access-guide/doc/getting_started.xml
@@ -0,0 +1,340 @@
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="plat-release-content">
5 <title>Getting Started with ENFV Access</title>
6
7 <section id="release-content">
8 <title>NFV Access Release content</title>
9
10 <para>The NFV Access 1.0 Release contains along with other items,
11 documentation, pre-built kernels and images, a bootloader and a
12 SDK.</para>
13
14 <para>The directories structure is detailed below:</para>
15
16 <programlisting>-- documentation/
17 /* NFV Access documentation */
18-- inteld1521/
19 /* artifacts for the host side */
20 -- deb/
21 /* deb packages */
22 -- images/
23 -- enea-image-virtualization-host
24 /* precompiled artifacts for the Host release image */
25 -- various artifacts
26 -- enea-image-virtualization-host-sdk
27 /* precompiled artifacts for the Host SDK image.
28 The SDK image contains userspace tools and kernel
29 configurations necessary for developing, debugging
30 and profiling applications and kernel modules */
31 -- various artifacts
32 -- sdk
33 /* NFV Access SDK for the host */
34 -- enea-glibc-x86_64-enea-image-virtualization-host-sdk /
35 -corei7-64-toolchain-7.0.sh
36 /* self-extracting archive installing
37 cross-compilation toolchain for the host */
38-- qemux86-64
39 /* artifacts for the guest side */
40 -- deb/
41 /* deb packages */
42 -- images/
43 -- enea-image-virtualization-guest
44 /* precompiled artifacts for the Guest image */
45 -- various artifacts
46 -- sdk
47 /* NFV Access SDK for the guest */
48 -- enea-glibc-x86_64-enea-image-virtualization-guest-sdk /
49 -core2-64-toolchain-7.0.sh
50 /* self-extracting archive installing cross-compilation
51 toolchain for the guest (QEMU x86-64) */
52</programlisting>
53
54 <para>For each combination of image and target, the following set of
55 artifacts is available:</para>
56
57 <programlisting>-- bzImage
58 /* kernel image */
59-- bzImage-&lt;target&gt;.bin
60 /* kernel image, same as above */
61-- config-&lt;target&gt;.config
62 /* kernel configuration file */
63-- core-image-minimal-initramfs-&lt;target&gt;.cpio.gz
64 /* cpio archive of the initramfs */
65-- core-image-minimal-initramfs-&lt;target&gt;.qemuboot.conf
66 /* qemu config file for the initramfs image */
67-- &lt;image-name&gt;-&lt;target&gt;.ext4
68 /* EXT4 image of the rootfs */
69-- &lt;image-name&gt;-&lt;target&gt;.hddimg
70 /* msdos filesystem containing syslinux, kernel, initrd and rootfs image */
71-- &lt;image-name&gt;-&lt;target&gt;.iso
72 /* CD .iso image */
73-- &lt;image-name&gt;-&lt;target&gt;.qemuboot.conf
74 /* qemu config file for the image */
75-- &lt;image-name&gt;-&lt;target&gt;.tar.gz
76 /* tar archive of the image */
77-- &lt;image-name&gt;-&lt;target&gt;.wic
78 /* Wic image */
79-- microcode.cpio
80 /* kernel microcode data */
81-- modules-&lt;target&gt;.tgz
82 /* external kernel modules */
83-- ovmf.*.qcow2
84 /* ovmf firmware for uefi support in qemu */
85-- rmc.db
86 /* Central RMC Database */
87-- systemd-bootx64.efi
88 /* systemd-boot EFI file */
89-- grub-efi-bootx64.efi
90 /* GRUB EFI file */</programlisting>
91 </section>
92
93 <section id="docs">
94 <title>Included Documention</title>
95
96 <para>Enea NFV Access is provided with the following set of
97 documents:</para>
98
99 <itemizedlist>
100 <listitem>
101 <para>Enea NFV Access Guide &ndash; A document describing the Enea NFV
102 Access release content and how to use it, as well as benchmark
103 results.</para>
104 </listitem>
105
106 <listitem>
107 <para>Enea NFV Access Open Source Report &ndash; A document containing
108 the open source and license information pertaining to packages
109 provided with Enea NFV Access 1.0.</para>
110 </listitem>
111
112 <listitem>
113 <para>Enea NFV Access Test Report &ndash; The document that summarizes
114 the test results for the Enea NFV Access release.</para>
115 </listitem>
116
117 <listitem>
118 <para>Enea NFV Access Security Report &ndash; The document that lists
119 all security fixes included in the Enea NFV Access 1.0 release.</para>
120 </listitem>
121 </itemizedlist>
122 </section>
123
124 <section id="prebuilt-artifacts">
125 <title>How to use the Prebuilt Artifacts</title>
126
127 <section id="boot-ramdisk">
128 <title>Booting Enea NFV Access using RAMDISK</title>
129
130 <para>There may be use cases, especially at first target ramp-up, where
131 the HDD/SDD has no partitions and you need to prepare the disks for
132 boot. Booting from ramdisk can help with this task.</para>
133
134 <para>The prerequisites needed to proceed:</para>
135
136 <itemizedlist>
137 <listitem>
138 <para>Enea Linux ext4 rootfs image -
139 enea-image-virtualization-host-inteld1521.ext4</para>
140 </listitem>
141
142 <listitem>
143 <para>Enea Linux kernel image - bzImage</para>
144 </listitem>
145
146 <listitem>
147 <para>BIOS has PXE boot enabled</para>
148 </listitem>
149
150 <listitem>
151 <para>PXE/tftp server configured and connected (ethernet) to
152 target.</para>
153 </listitem>
154 </itemizedlist>
155
156 <para>Copy bzImage and enea-image-virtualization-host-inteld1521.ext4.gz
157 images to the tftpserver configured for PXE boot.</para>
158
159 <para>Use the following as an example for the PXE configuration
160 file:</para>
161
162 <programlisting>default vesamenu.c32
163prompt 1
164timeout 0
165
166label el_ramfs
167 menu label ^EneaLinux_RAMfs
168 kernel bzImage
169 append root=/dev/ram0 initrd=enea-image-virtualization-host-inteld1521.ext4 /
170 ramdisk_size=1200000 console=ttyS0,115200 eralyprintk=ttyS0,115200</programlisting>
171
172 <para>Restart the target. Then enter (F11) in the Boot Menu and select
173 the Ethernet interface used for PXE boot. From the PXE Boot Menu select
174 <emphasis role="bold">Enea Linux_RAMfs</emphasis>. Once the Enea NFV
175 Access is started you can partition the HDD/SDD and install
176 GRUB as described in in the following section.</para>
177 </section>
178
179 <section id="install-grub">
180 <title>Partitioning a new harddisk and installing GRUB</title>
181
182 <para>The prerequisites needed:</para>
183
184 <itemizedlist>
185 <listitem>
186 <para>grub (<literal>grub-efi-bootx64.efi</literal>) - availalble as
187 a pre-built artifact under
188 <literal>inteld1521/images/enea-image-virtualization-host</literal>.</para>
189 </listitem>
190
191 <listitem>
192 <para><literal>e2fsprogs-mke2fs_1.43.4-r0.0_amd64.deb,/</literal></para>
193
194 <para><literal>dosfstools_4.1-r0.0_amd64.deb</literal> - available
195 under <literal>inteld1521/deb</literal>.</para>
196 </listitem>
197 </itemizedlist>
198
199 <para>Proceed using the following steps:</para>
200
201 <orderedlist>
202 <listitem>
203 <para>Boot target with Enea NFV Access from RAMDISK</para>
204 </listitem>
205
206 <listitem>
207 <para>Install prerequisite packages:</para>
208
209 <programlisting>&gt; dpkg -i e2fsprogs-mke2fs_1.43.4-r0.0_amd64.deb
210&gt; dpkg -i dosfstools_4.1-r0.0_amd64.deb</programlisting>
211 </listitem>
212
213 <listitem>
214 <para>Partition the disk:</para>
215
216 <programlisting>&gt; fdisk /dev/sda
217fdisk&gt; g {GPT partition type}
218fdisk&gt; n
219fdisk&gt; 1
220fdisk&gt; {default start part}
221fdisk&gt; +512M
222fdisk&gt; t
223fdisk&gt; 1 {ESP/EFI partition}
224fdisk&gt; n
225fdisk&gt; 2
226fdisk&gt; {default start part}
227fdisk&gt; +18G
228fdisk&gt; 3
229fdisk&gt; {default start part}
230fdisk&gt; +20G
231...
232fdisk&gt; 7
233fdisk&gt; {default start part}
234fdisk&gt; {default end end part}
235
236fdisk&gt; p {print partion table}
237fdisk&gt; w {write to disk}
238fdisk&gt; q</programlisting>
239 </listitem>
240
241 <listitem>
242 <para>Format the partitions:</para>
243
244 <programlisting>&gt; mkfs.fat -F32 -nEFI /dev/sda1
245&gt; mkfs.ext4 -LROOT /dev/sda2
246&gt; mkfs.ext4 -LROOT /dev/sda3
247&gt; mkfs.ext4 -LROOT /dev/sda4
248&gt; mkfs.ext4 -LROOT /dev/sda5
249&gt; mkfs.ext4 -LROOT /dev/sda6
250&gt; mkfs.ext4 -LROOT /dev/sda7</programlisting>
251 </listitem>
252
253 <listitem>
254 <para>Create a GRUB partition:</para>
255
256 <programlisting>&gt; mkdir /mnt/boot
257&gt; mount /dev/sda1 /mnt/boot
258&gt; mkdir -p /mnt/boot/EFI/boot
259
260&gt; cp grub-efi-bootx64.efi /mnt/boot/EFI/boot/bootx64.efi
261&gt; vi /mnt/boot/EFI/boot/grub.cfg
262default=1
263
264menuentry "Linux Reference Image" {
265 linux (hd0,gpt2)/boot/bzImage root=/dev/sda2 ip=dhcp
266}
267
268menuentry "Linux sda3" {
269 linux (hd0,gpt3)/boot/bzImage root=/dev/sda3 ip=dhcp
270}
271
272menuentry "Linux sda4" {
273 linux (hd0,gpt4)/boot/bzImage root=/dev/sda4 ip=dhcp
274}
275
276menuentry "Linux sda5" {
277 linux (hd0,gpt5)/boot/bzImage root=/dev/sda5 ip=dhcp
278}
279
280menuentry "Linux sda6" {
281 linux (hd0,gpt6)/boot/bzImage root=/dev/sda6 ip=dhcp
282}
283
284menuentry "Linux sda7" {
285 linux (hd0,gpt7)/boot/bzImage root=/dev/sda7 ip=dhcp
286}</programlisting>
287 </listitem>
288 </orderedlist>
289 </section>
290
291 <section id="boot-hdd">
292 <title>Installing and booting Enea NFV Access on the
293 harddisk</title>
294
295 <para>After partitioning the harddisk, boot Enea NFV Access
296 from RAMFS or from a reference image installed on one of the
297 partitions.</para>
298
299 <para>To install Enea NFV Access image on a partition follow these
300 steps:</para>
301
302 <orderedlist>
303 <listitem>
304 <para>Copy your image on target:</para>
305
306 <programlisting>server&gt; scp ./enea-image-virtualization-host-inteld1521.tar.gz /
307root@&lt;target_ip&gt;:/home/root/</programlisting>
308 </listitem>
309
310 <listitem>
311 <para>Extract image onto the desired partition:</para>
312
313 <programlisting>target&gt; mount /dev/sda3 /mnt/sda
314target&gt; tar -pzxf /home/root/enea-image-virtualization-host-inteld1521.tar.gz /
315-C /mnt/sda</programlisting>
316
317 <para>Alternately, you can do both steps in one command from the
318 server:</para>
319
320 <programlisting>server&gt; cat ./enea-image-virtualization-host-inteld1521.tar.gz | /
321ssh root@&lt;target_ip&gt; "cd /mnt/sda6; tar -zxf -"</programlisting>
322 </listitem>
323
324 <listitem>
325 <para>Reboot</para>
326 </listitem>
327
328 <listitem>
329 <para>From the GRUB menu select your partition</para>
330 </listitem>
331 </orderedlist>
332
333 <note>
334 <para>In order to change kernel boot parameters you need to mount the
335 GRUB partition (i.e. <literal>/dev/sda1</literal>) and change the
336 <literal>EFI/boot/grub.cfg</literal> file.</para>
337 </note>
338 </section>
339 </section>
340</chapter> \ No newline at end of file