Wind River Support Network

HomeDefectsLINCD-339
Fixed

LINCD-339 : Attempting to create snapshots of OverC containers on ARM64 will fail

Created: Nov 14, 2019    Updated: Feb 5, 2020
Resolved Date: Feb 4, 2020
Found In Version: 10.20.3.0
Fix Version: 10.20.6.0
Severity: Standard
Applicable for: Wind River Linux CD
Component/s: Userspace

Description

The scripts which are used to create snapshots of OverC containers are not aware of the kernel file for ARM64 (which is an uncompressed kernel image file of the name "Image"). Although the kernel is not required for the creation of a snapshot it is part of the inventory that the scripts create while in the process of creating a snapshot and as such this currently fails.

Steps to Reproduce

  %> ./wrlinux-x/setup.sh --machines=qemuarm64 --distros=wrlinux-overc --dl-layers --no-recommend
  %> . ./environment-setup-x86_64-wrlinuxsdk-linux
  %> . ./oe-init-build-env
  %> bitbake cube-vrf cube-dom0 cube-essential cube-server cube-builder-initramfs

  %> sudo apt-get install btrfs-progs
  %> bitbake grub-native jq-native parted-native dosfstools-native
  %> bitbake build-sysroots

  %> cp ../layers/wrlinux/wrlinux-overc/bin/* .
  %> sed -i -e 's#ttyS0#ttyAMA0#' -e 's#^\(INSTALL_BSP=\).*$#\1\"qemuarm64\"#' -e "/GETTY_CONSOLE=/aFIRMWARE_INSTALL=\"\"" -e "/GETTY_CONSOLE=/aX86_ARCH=false" image-live.sh
  %> sudo PATH=$PWD/tmp/sysroots/x86_64/usr/bin:$PWD/tmp/sysroots/x86_64/usr/sbin:$PATH ../overc-installer/sbin/cubeit --disk-size 15G --force --config `pwd`/image-live.sh --artifacts `pwd`/tmp/deploy/images/qemuarm64 boot.img
  %> ROOTFS=boot.img runqemu slirp qemuparams="-nographic -vnc :1 -m 2G" bootparams="root=/dev/vda3 mem=2G"

Login cube-server and Run:

/opt/overc-system-agent/overc container snapshot containerName dom0
/opt/overc-system-agent/overc container list_snapshots cube-server dom0
Live chat
Online