sdk-persistent-disk manual

critical

Image Types:
basesdk-amd64 / sdk-amd64
Image Deployment:
APT
Type:
compatibility

Description

Tests that persistent disk can be used when upgrading the SDK.


Pre Conditions

  1. To enable nested virtualization in Windows PC, the below line is to be executed from command prompt
  2. $ <path>\VBoxManage.exe modifyvm <virtual_machine_name> --nested-hw-virt on

     Edit <path> i.e path to VBoxManage.exe and <virtual_machine_name> i.e Virtual Machine name of the SDK(in which test should be performed) accordingly, for eg:

    C:\Program Files\Oracle\VirtualBox\VBoxManage.exe modifyvm "Apertis v2023 SDK" --nested-hw-virt on

  3. Start the SDK (which is mentioned in the previous step) and run
  4. $ sudo modprobe kvm_intel

     To verify, run `cat /sys/module/kvm_intel/parameters/nested` and output should be `Y`

  5. An image (ova or vdi) or a URL from which to get it from:
  6. https://images.apertis.org/


Execution Steps

  1. Clone of the apertis-tests repository:
  2. $ git clone https://gitlab.apertis.org/pkg/apertis-tests.git
    $ cp apertis-tests/psdk-test/psdk-test.ini.in apertis-tests/psdk-test/psdk-test.ini
  3. Execute the psdk-test script from the apertis-tests repository, passing the URL or path to the Apertis SDK VDI image, for example:
  4. $ cd apertis-tests/psdk-test
    $ python3 ./psdk-test <apertis_sdk_image>
  5. This will complete the execution of the tests, please check that the expected result is obtained.

Expected

Test should end up with:

 SDK Persistent disk tests:

etc - PASS

home - PASS

opt - PASS

Notes

  • The psdk-test script starts and powers off the virtual machine several times.