sdk-persistent-disk-etc 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
- Download the virtual machine image for the latest SDK release from:
- Make a note of release version e.g v2020dev0
- Create a virtual machine, and name it old-sdk or old-basesdk
- Create a Full Clone of the virtual machine and name the clone new-sdk or new-basesdk:
- Instructions on how to use the SDK persistent workspace on VirtualBox:
https://www.virtualbox.org/manual/ch01.html#clone
https://developer.apertis.org/latest/sdk-usage.html#persistent-workspace
Execution Steps
- The following steps are for the SDK virtual machine named with old:
- Power on the virtual machine, and open a terminal
- Create a file called 90proxy under /etc/apt/apt.conf.d and enter the IP of your OSD in the file
- Acquire::http::Proxy "http://10.168.128.45:3128"; Acquire::https::Proxy "http://10.168.128.45:3128";
- Power off the virtual machine
- On VirtualBox add the persistent disk to the SDK virtual machine:
- Power on the virtual machine
- Use psdk to initialize the empty disk and to configure the SDK to use it:
- The SDK will reboot when the configuration is completed. After the reboot click on psdk icon again to confirm that the persistent disk is in use
- The psdk needs to include the configuration file on the persistent disk, to do that enter the following command on the terminal
- Power off the virtual machine
- The following steps are for the SDK virtual machine named with new
- On VirtualBox add the same persistent disk used on previous steps to the SDK virtual machine:
- Power on the virtual machine
- Use psdk to configure the SDK to use the persistent disk:
- The SDK will reboot when the configuration is completed. After the reboot click on psdk icon again to confirm that the persistent disk is in use
- Check that the 90proxy file is present under /etc/apt/apt.conf.d folder in the NEW SDK
- Power off the virtual machine
https://developer.apertis.org/latest/sdk-usage.html#preparing-the-persistent-disk-on-the-old-sdk
$ psdk -e /etc/apt/apt.conf.d/90proxy
https://developer.apertis.org/latest/sdk-usage.html#using-the-persistent-disk-on-the-new-sdk
Expected
Changes made in the etc folder should get reflected in the new sdk