@@ -36,13 +36,14 @@ on your platform. You'll need a network connection for your platform to
36
36
complete this setup.
37
37
38
38
.. note ::
39
- ACRN requires Clear Linux version 22140 or newer. The instructions below
40
- have been validated with version 22140 and need some adjustment to work
41
- with newer versions. You will see a note when the instruction needs to be
42
- adjusted.
39
+
40
+ ACRN v0.1 (and the current master branch) requires Clear Linux
41
+ version 23690 or newer. If you use a newer version of Clear Linux,
42
+ you'll need to adjust the instructions below to reference the version
43
+ number of Clear Linux you are using.
43
44
44
45
#. Download the compressed Clear installer image from
45
- https://download.clearlinux.org/releases/22140 /clear/clear-22140 -installer.img.xz
46
+ https://download.clearlinux.org/releases/23690 /clear/clear-23690 -installer.img.xz
46
47
and follow the `Clear Linux installation guide
47
48
<https://clearlinux.org/documentation/clear-linux/get-started/bare-metal-install> `__
48
49
as a starting point for installing Clear Linux onto your platform. Follow the recommended
@@ -61,11 +62,20 @@ complete this setup.
61
62
62
63
# swupd autoupdate --disable
63
64
65
+ #. If you have an older version of Clear Linux already installed
66
+ on your hardware, use this command to upgrade Clear Linux
67
+ to version 23690 (or newer):
68
+
69
+ .. code-block :: none
70
+
71
+ # swupd update -m 23690 # or newer version
72
+
64
73
#. Use the ``swupd bundle-add `` command and add these Clear Linux bundles:
65
74
66
75
.. code-block :: none
67
76
68
- # swupd bundle-add vim network-basic service-os kernel-pk
77
+ # swupd bundle-add vim network-basic service-os kernel-pk \
78
+ desktop openssh-server
69
79
70
80
.. table :: Clear Linux bundles
71
81
:widths: auto
@@ -84,6 +94,12 @@ complete this setup.
84
94
| kernel-pk | Run the Intel "PK" kernel(product kernel source) |
85
95
| | and enterprise-style kernel with backports |
86
96
+--------------------+---------------------------------------------------+
97
+ | desktop | Graphical desktop application, with Weston |
98
+ | | compositing window manager included |
99
+ +--------------------+---------------------------------------------------+
100
+ | openssh-server | Server-side support for secure connectivity and |
101
+ | | remote login using the SSH protocol |
102
+ +--------------------+---------------------------------------------------+
87
103
88
104
Add the ACRN hypervisor to the EFI Partition
89
105
============================================
@@ -99,9 +115,9 @@ partition. Follow these steps:
99
115
100
116
# ls -1 /mnt/EFI/org.clearlinux
101
117
bootloaderx64.efi
102
- kernel-org.clearlinux.native.4.16 .6-563
103
- kernel-org.clearlinux.pk414-sos.4.14.34-28
104
- kernel-org.clearlinux.pk414-standard.4.14.34-28
118
+ kernel-org.clearlinux.native.4.17 .6-590
119
+ kernel-org.clearlinux.pk414-sos.4.14.52-63
120
+ kernel-org.clearlinux.pk414-standard.4.14.52-63
105
121
loaderx64.efi
106
122
107
123
.. note ::
@@ -214,24 +230,31 @@ partition. Follow these steps:
214
230
# clr-boot-manager set-timeout 20
215
231
# clr-boot-manager update
216
232
217
- #. Reboot and select "The ACRN Service OS" to boot, as shown in
218
- :numref: `gsg-bootmenu `:
233
+ #. Reboot and select "The ACRN Service OS" to boot, as shown below:
219
234
220
- .. figure :: images/gsg-bootmenu.png
221
- :align: center
222
- :width: 650px
223
- :name: gsg-bootmenu
224
235
225
- ACRN Service OS Boot menu
236
+ .. code-block :: console
237
+ :emphasize-lines: 1
238
+ :caption: ACRN Service OS Boot Menu
239
+
240
+ => The ACRN Service OS
241
+ Clear Linux OS for Intel Architecture (Clear-linux-native-4.17.6.590)
242
+ Clear Linux OS for Intel Architecture (Clear-linux-pk414-sos-4.14.52.63)
243
+ Clear Linux OS for Intel Architecture (Clear-linux-pk414-standard-4.14.52.63)
244
+ EFI Default Loader
245
+ Reboot Into Firmware Interface
226
246
227
247
#. After booting up the ACRN hypervisor, the Service OS will be launched
228
- automatically by default, as shown in :numref: ` gsg-sos-console ` :
248
+ automatically by default, as shown here :
229
249
230
- .. figure :: images/gsg-sos-console.png
231
- :align: center
232
- :name: gsg-sos-console
250
+ .. code-block :: console
251
+ :caption: Service OS Console
233
252
234
- Service OS Console
253
+ clr-7259a7c5bbdd4bcaa9a59d5841b4ace login: root
254
+ You are required to change your password immediately (administrator enforced)
255
+ New password:
256
+ Retype new password:
257
+ root@clr-7259a7c5bbdd4bcaa9a59d5841b4ace ~ # _
235
258
236
259
.. note :: You may need to hit ``Enter`` to get a clean login prompt
237
260
@@ -249,13 +272,13 @@ automatically enabled after a system restart.
249
272
Set up Reference UOS
250
273
====================
251
274
252
- #. On your platform, download the pre-built reference Clear Linux UOS image into your
253
- (root) home directory:
275
+ #. On your platform, download the pre-built reference Clear Linux UOS
276
+ image version 23690 (or newer) into your (root) home directory:
254
277
255
278
.. code-block :: none
256
279
257
280
# cd ~
258
- # curl -O https://download.clearlinux.org/releases/22140 /clear/clear-22140 -kvm.img.xz
281
+ # curl -O https://download.clearlinux.org/releases/23690 /clear/clear-23690 -kvm.img.xz
259
282
260
283
.. note ::
261
284
In case you want to use or try out a newer version of Clear Linux as the UOS, you can
@@ -266,16 +289,16 @@ Set up Reference UOS
266
289
267
290
.. code-block :: none
268
291
269
- # unxz clear-22140 -kvm.img.xz
292
+ # unxz clear-23690 -kvm.img.xz
270
293
271
294
#. Deploy the UOS kernel modules to UOS virtual disk image (note: you'll need to use
272
295
the same **standard ** image version number noted in step 1 above):
273
296
274
297
.. code-block :: none
275
298
276
- # losetup -f -P --show /root/clear-22140 -kvm.img
299
+ # losetup -f -P --show /root/clear-23690 -kvm.img
277
300
# mount /dev/loop0p3 /mnt
278
- # cp -r /usr/lib/modules/4.14.34-28 .pk414-standard /mnt/lib/modules/
301
+ # cp -r /usr/lib/modules/4.14.52-63 .pk414-standard /mnt/lib/modules/
279
302
# umount /mnt
280
303
# sync
281
304
@@ -294,7 +317,7 @@ Set up Reference UOS
294
317
295
318
.. note ::
296
319
In case you have downloaded a different Clear Linux image than the one above
297
- (``clear-22140 -kvm.img.xz ``), you will need to modify the Clear Linux file name
320
+ (``clear-23690 -kvm.img.xz ``), you will need to modify the Clear Linux file name
298
321
and version number highlighted above (the ``-s 3,virtio-blk `` argument) to match
299
322
what you have downloaded above. Likewise, you may need to adjust the kernel file
300
323
name on the second line highlighted (check the exact name to be used using:
@@ -359,15 +382,15 @@ each with their own way to install development tools:
359
382
* On a Clear Linux development system, install the ``os-clr-on-clr `` bundle to get
360
383
the necessary tools:
361
384
362
- .. code-block :: console
385
+ .. code-block :: none
363
386
364
387
$ sudo swupd bundle-add os-clr-on-clr
365
388
$ sudo swupd bundle-add python3-basic
366
389
$ sudo pip3 install kconfiglib
367
390
368
391
* On a Ubuntu/Debian development system:
369
392
370
- .. code-block :: console
393
+ .. code-block :: none
371
394
372
395
$ sudo apt install gcc \
373
396
git \
@@ -390,7 +413,7 @@ each with their own way to install development tools:
390
413
391
414
* On a Fedora/Redhat development system:
392
415
393
- .. code-block :: console
416
+ .. code-block :: none
394
417
395
418
$ sudo dnf install gcc \
396
419
git \
@@ -411,7 +434,7 @@ each with their own way to install development tools:
411
434
412
435
* On a CentOS development system:
413
436
414
- .. code-block :: console
437
+ .. code-block :: none
415
438
416
439
$ sudo yum install gcc \
417
440
git \
@@ -447,7 +470,7 @@ repository has three main components in it:
447
470
448
471
You can build all these components in one go as follows:
449
472
450
- .. code-block :: console
473
+ .. code-block :: none
451
474
452
475
$ git clone https://github.com/projectacrn/acrn-hypervisor
453
476
$ cd acrn-hypervisor
@@ -466,7 +489,7 @@ and are using it as the current working directory.
466
489
467
490
#. Build the ACRN hypervisor.
468
491
469
- .. code-block :: console
492
+ .. code-block :: none
470
493
471
494
$ cd hypervisor
472
495
$ make PLATFORM=uefi
@@ -475,7 +498,7 @@ and are using it as the current working directory.
475
498
476
499
#. Build the ACRN device model (included in the acrn-hypervisor repo):
477
500
478
- .. code-block :: console
501
+ .. code-block :: none
479
502
480
503
$ cd ../devicemodel
481
504
$ make
@@ -484,7 +507,7 @@ and are using it as the current working directory.
484
507
485
508
#. Build the ACRN tools (included in the acrn-hypervisor repo):
486
509
487
- .. code-block :: console
510
+ .. code-block :: none
488
511
489
512
$ cd ../tools
490
513
$ for d in */; do make -C "$d"; done
@@ -507,7 +530,7 @@ based on the platform selected, assuming that you are under the top-level
507
530
directory of acrn-hypervisor. The configuration file, named ``.config ``, can be
508
531
found under the target folder of your build.
509
532
510
- .. code-block :: console
533
+ .. code-block :: none
511
534
512
535
$ cd hypervisor
513
536
$ make defconfig PLATFORM=uefi
@@ -526,7 +549,7 @@ are under the top-level directory of acrn-hypervisor, generate a default
526
549
configuration file for UEFI, allow you to modify some configurations and build
527
550
the hypervisor using the updated ``.config ``.
528
551
529
- .. code-block :: console
552
+ .. code-block :: none
530
553
531
554
$ cd hypervisor
532
555
$ make defconfig PLATFORM=uefi
@@ -538,7 +561,7 @@ the hypervisor using the updated ``.config``.
538
561
539
562
Refer to the help on menuconfig for a detailed guide on the interface.
540
563
541
- .. code-block :: console
564
+ .. code-block :: none
542
565
543
566
$ pydoc3 menuconfig
544
567
@@ -550,7 +573,7 @@ Currently the ACRN hypervisor looks for default configurations under
550
573
specified platform. The following steps allow you to create a defconfig for
551
574
another platform based on a current one.
552
575
553
- .. code-block :: console
576
+ .. code-block :: none
554
577
555
578
$ cd hypervisor
556
579
$ make defconfig PLATFORM=uefi
@@ -561,6 +584,6 @@ another platform based on a current one.
561
584
Then you can re-use that configuration by passing the name (``xxx `` in the
562
585
example above) to 'PLATFORM=':
563
586
564
- .. code-block :: console
587
+ .. code-block :: none
565
588
566
589
$ make defconfig PLATFORM=xxx
0 commit comments