acrn-hypervisor/misc/sample_application/image_builder
Jiaqing Zhao 16c4bf1c4d misc: sample_application: fix setup_hmi_vm.sh for Ubuntu 22.04
In chroot environment, the running kernel is the host kernel, so uname
command cannot get the kernel verison in image. Since hmi-vm uses
GVT-d, and kernel 5.15 does not support newer iGPUs in 13th Gen
processors, this patch installs the linux-generic-hwe kernel (5.19)
instead of linux-modules-extra package.

In Ubuntu 22.04, package needrestart is installed by default to
interactively prompt user there is a pending kernel upgrade or serivces
need to be restarted in apt. This patch removes it.

Also, this patch expands hmi-vm image by 2GB to hold the new kernel and
runs 'apt autoremove' after everything is installed.

Tracked-On: #8448
Signed-off-by: Jiaqing Zhao <jiaqing.zhao@linux.intel.com>
2023-07-10 15:40:28 +08:00
..
README.rst
configRTcores.sh
create_image.sh misc: sample_application: fix setup_hmi_vm.sh for Ubuntu 22.04 2023-07-10 15:40:28 +08:00
logger.sh
setup_hmi_vm.sh misc: sample_application: fix setup_hmi_vm.sh for Ubuntu 22.04 2023-07-10 15:40:28 +08:00
setup_rt_vm.sh Update sample app scripts for Ubuntu 22.04 2022-12-01 17:00:11 +08:00

README.rst

:orphan:

ACRN Sample Application Image Builder
#####################################

This directory contains the scripts to create VM images for ACRN sample
application.

Prerequisites
*************

Make sure you have Ubuntu installed with network access on your development
computer. Then execute the following command to install the prerequisites.

   .. code-block:: bash

      sudo apt install -y kpartx \
           schroot \
           mount \
	   wget \
	   qemu-utils

Also you'll need the Debian packages of Linux RT kernels built from
https://github.com/projectacrn/acrn-kernel when (and only when) building a
real-time VM image. After the kernel is built, copy those Debian packages (whose
names looks like ``linux-libc-*``, ``linux-headers-*`` and ``linux-image-*``) to
this directory (i.e. misc/sample_application/image_builder/).

Build images
************

To build the VM image for graphical HMI, run the following command under this
directory:

   .. code-block:: bash

      ./create_image.sh hmi-vm

This will generate an image named ``hmi_vm.img`` under the this directory, which
can be used as the file of a virtio-blk device of a post-launched VM. Installing
the GNOME desktop system will take some time depending on your network and
storage speed.

To build the VM image for running real-time applications, run the following
command under this directory:

   .. code-block:: bash

      ./create_image.sh rt-vm

This will generate an image named ``rt_vm.img`` under the this directory.