diff options
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.xml | 340 |
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-<target>.bin | ||
60 | /* kernel image, same as above */ | ||
61 | -- config-<target>.config | ||
62 | /* kernel configuration file */ | ||
63 | -- core-image-minimal-initramfs-<target>.cpio.gz | ||
64 | /* cpio archive of the initramfs */ | ||
65 | -- core-image-minimal-initramfs-<target>.qemuboot.conf | ||
66 | /* qemu config file for the initramfs image */ | ||
67 | -- <image-name>-<target>.ext4 | ||
68 | /* EXT4 image of the rootfs */ | ||
69 | -- <image-name>-<target>.hddimg | ||
70 | /* msdos filesystem containing syslinux, kernel, initrd and rootfs image */ | ||
71 | -- <image-name>-<target>.iso | ||
72 | /* CD .iso image */ | ||
73 | -- <image-name>-<target>.qemuboot.conf | ||
74 | /* qemu config file for the image */ | ||
75 | -- <image-name>-<target>.tar.gz | ||
76 | /* tar archive of the image */ | ||
77 | -- <image-name>-<target>.wic | ||
78 | /* Wic image */ | ||
79 | -- microcode.cpio | ||
80 | /* kernel microcode data */ | ||
81 | -- modules-<target>.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 – 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 – 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 – 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 – 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 | ||
163 | prompt 1 | ||
164 | timeout 0 | ||
165 | |||
166 | label 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>> dpkg -i e2fsprogs-mke2fs_1.43.4-r0.0_amd64.deb | ||
210 | > dpkg -i dosfstools_4.1-r0.0_amd64.deb</programlisting> | ||
211 | </listitem> | ||
212 | |||
213 | <listitem> | ||
214 | <para>Partition the disk:</para> | ||
215 | |||
216 | <programlisting>> fdisk /dev/sda | ||
217 | fdisk> g {GPT partition type} | ||
218 | fdisk> n | ||
219 | fdisk> 1 | ||
220 | fdisk> {default start part} | ||
221 | fdisk> +512M | ||
222 | fdisk> t | ||
223 | fdisk> 1 {ESP/EFI partition} | ||
224 | fdisk> n | ||
225 | fdisk> 2 | ||
226 | fdisk> {default start part} | ||
227 | fdisk> +18G | ||
228 | fdisk> 3 | ||
229 | fdisk> {default start part} | ||
230 | fdisk> +20G | ||
231 | ... | ||
232 | fdisk> 7 | ||
233 | fdisk> {default start part} | ||
234 | fdisk> {default end end part} | ||
235 | |||
236 | fdisk> p {print partion table} | ||
237 | fdisk> w {write to disk} | ||
238 | fdisk> q</programlisting> | ||
239 | </listitem> | ||
240 | |||
241 | <listitem> | ||
242 | <para>Format the partitions:</para> | ||
243 | |||
244 | <programlisting>> mkfs.fat -F32 -nEFI /dev/sda1 | ||
245 | > mkfs.ext4 -LROOT /dev/sda2 | ||
246 | > mkfs.ext4 -LROOT /dev/sda3 | ||
247 | > mkfs.ext4 -LROOT /dev/sda4 | ||
248 | > mkfs.ext4 -LROOT /dev/sda5 | ||
249 | > mkfs.ext4 -LROOT /dev/sda6 | ||
250 | > mkfs.ext4 -LROOT /dev/sda7</programlisting> | ||
251 | </listitem> | ||
252 | |||
253 | <listitem> | ||
254 | <para>Create a GRUB partition:</para> | ||
255 | |||
256 | <programlisting>> mkdir /mnt/boot | ||
257 | > mount /dev/sda1 /mnt/boot | ||
258 | > mkdir -p /mnt/boot/EFI/boot | ||
259 | |||
260 | > cp grub-efi-bootx64.efi /mnt/boot/EFI/boot/bootx64.efi | ||
261 | > vi /mnt/boot/EFI/boot/grub.cfg | ||
262 | default=1 | ||
263 | |||
264 | menuentry "Linux Reference Image" { | ||
265 | linux (hd0,gpt2)/boot/bzImage root=/dev/sda2 ip=dhcp | ||
266 | } | ||
267 | |||
268 | menuentry "Linux sda3" { | ||
269 | linux (hd0,gpt3)/boot/bzImage root=/dev/sda3 ip=dhcp | ||
270 | } | ||
271 | |||
272 | menuentry "Linux sda4" { | ||
273 | linux (hd0,gpt4)/boot/bzImage root=/dev/sda4 ip=dhcp | ||
274 | } | ||
275 | |||
276 | menuentry "Linux sda5" { | ||
277 | linux (hd0,gpt5)/boot/bzImage root=/dev/sda5 ip=dhcp | ||
278 | } | ||
279 | |||
280 | menuentry "Linux sda6" { | ||
281 | linux (hd0,gpt6)/boot/bzImage root=/dev/sda6 ip=dhcp | ||
282 | } | ||
283 | |||
284 | menuentry "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> scp ./enea-image-virtualization-host-inteld1521.tar.gz / | ||
307 | root@<target_ip>:/home/root/</programlisting> | ||
308 | </listitem> | ||
309 | |||
310 | <listitem> | ||
311 | <para>Extract image onto the desired partition:</para> | ||
312 | |||
313 | <programlisting>target> mount /dev/sda3 /mnt/sda | ||
314 | target> 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> cat ./enea-image-virtualization-host-inteld1521.tar.gz | / | ||
321 | ssh root@<target_ip> "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 | ||