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

  1. Download the virtual machine image for the latest SDK release from:
  2. https://images.apertis.org/

  3. Make a note of release version e.g v2020dev0
  4. Create a virtual machine, and name it old-sdk or old-basesdk
  5. Create a Full Clone of the virtual machine and name the clone new-sdk or new-basesdk:
  6. https://www.virtualbox.org/manual/ch01.html#clone

  7. Instructions on how to use the SDK persistent workspace on VirtualBox:
  8. https://developer.apertis.org/latest/sdk-usage.html#persistent-workspace


Execution Steps

  1. The following steps are for the SDK virtual machine named with old:
  2. Power on the virtual machine, and open a terminal
  3. Create a file called 90proxy under /etc/apt/apt.conf.d and enter the IP of your OSD in the file
  4. Acquire::http::Proxy "http://10.168.128.45:3128"; Acquire::https::Proxy "http://10.168.128.45:3128";
  5. Power off the virtual machine
  6. On VirtualBox add the persistent disk to the SDK virtual machine:
  7. https://developer.apertis.org/latest/sdk-usage.html#virtualbox-adding-the-persistent-disk-to-the-old-sdk

  8. Power on the virtual machine
  9. Use psdk to initialize the empty disk and to configure the SDK to use it:
  10. https://developer.apertis.org/latest/sdk-usage.html#preparing-the-persistent-disk-on-the-old-sdk

  11. 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
  12. The psdk needs to include the configuration file on the persistent disk, to do that enter the following command on the terminal
  13. $ psdk -e /etc/apt/apt.conf.d/90proxy

  14. Power off the virtual machine
  15. The following steps are for the SDK virtual machine named with new
  16. On VirtualBox add the same persistent disk used on previous steps to the SDK virtual machine:
  17. https://developer.apertis.org/latest/sdk-usage.html#virtualbox-adding-the-persistent-disk-to-the-new-sdk

  18. Power on the virtual machine
  19. Use psdk to configure the SDK to use the persistent disk:
  20. https://developer.apertis.org/latest/sdk-usage.html#using-the-persistent-disk-on-the-new-sdk

  21. 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
  22. Check that the 90proxy file is present under /etc/apt/apt.conf.d folder in the NEW SDK
  23. Power off the virtual machine

Expected

Changes made in the etc folder should get reflected in the new sdk