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
- To enable nested virtualization in Windows PC, the below line is to be executed from command prompt
- Start the SDK (which is mentioned in the previous step) and run
- An image (ova or vdi) or a URL from which to get it from:
$ <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
$ sudo modprobe kvm_intel
To verify, run `cat /sys/module/kvm_intel/parameters/nested` and output should be `Y`
Execution Steps
- Clone of the apertis-tests repository:
- Execute the psdk-test script from the apertis-tests repository, passing the URL or path to the Apertis SDK VDI image, for example:
- This will complete the execution of the tests, please check that the expected result is obtained.
$ 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
$ cd apertis-tests/psdk-test
$ python3 ./psdk-test <apertis_sdk_image>
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.