Skip to content

How to update SR template image

mkutouski edited this page Apr 19, 2024 · 17 revisions

It's recommended to keep SR images which users' SR instantiated from up to date. There are two possible ways to do that in case of non-persistent images: either keep the same SR template (Solution 1) or create a new one (Solution 2).

Solution 1: Updating SR template image keeping the same SR template

That solution is valid only if there are no SRs using the image, i.e. the image status is "READY".

Step 1: Check image ID which SR template based on and what needs to be updated.

For that purpose one needs to open FireEdge Sunstone menu and go to "Templates" -> "VM templates" as shown on the picture below (test-sr-image-update template is used in that article as an example):

Screenshot_20240415_160129

Click on required template within the list:

Screenshot_20240419_044749

Press "Template" tab:

Screenshot_20240419_045239

and scroll down to the DISK attribute and noticed IMAGE_ID value (it's "58" in our example).

Step 2. Make image persistent

Go to "Storage" -> "Images

Screenshot_20240418_161601

and click on the image with corresponding ID value (it's "58" in our example):

Screenshot_20240419_050347

Scroll down the page and check the image persistence in the "Info" tab:

Screenshot_20240419_050607

To make image persistent one needs to click on the blue button with 3 vertical dots and select "Persistent" item in the drop-down menu:

Screenshot_20240419_050816

Press "Accept" button on popped up message asking for your confirmation if you want proceed.

Step 3. Instantiate new SR

Now one needs to instantiate new SR from the corresponding VM template as shown on the picture below:

Screenshot_20240419_051159

Set values for instantiating SR according to your needs and press "Next" button:

Screenshot_20240419_062334

As soon as you are done with SR settings press "Finish" button:

Screenshot_20240419_051754

After that you will be redirected to SRs menu automatically.

Step 4. Make required changes on SR disk and save them

As soon as SR booted one needs to log into it and perform required step on SR OS image (e.g. update installed packages).

To save changes made on persistent SR disk it's enough to shutdown the SR gracefully:

Screenshot_20240419_061321

Press "Accept" button on popped up message asking for your confirmation if you want proceed.

Wait till the SR reaches the status "DONE" and the image the status "READY".

Step 5. Make the image non-persistent

Go to "Storage" -> "Images" menu as during Step 2, select corresponding image just updated and click on "Non-persistent" item in the drop-down menu:

Screenshot_20240419_053601

Press "Accept" button on popped up message asking for your confirmation if you want proceed.

Now the SR template is based on updated image and can be used by users.

Solution 2: Updating SR template image by creating the new SR template and image

That solution applies for scenario when one needs to update the SR template image which is already in use, i.e. the image has status "USED".

Step 1: Create new SR template and corresponding image from the SR template whose image needs to be updated

For that purpose one needs to open FireEdge Sunstone menu and go to "Templates" -> "SR templates" as shown on the picture below (test-sr-image-update template is used in that article as an example):

Screenshot_20240415_160129

Click on required template within the list:

Screenshot_20240419_044749

Instantiate new SR from the corresponding SR template as shown on the picture below:

Screenshot_20240419_051159

Set values for instantiating SR according to your needs, switch on "Instantiate as persistent" option and press "Next" button:

Screenshot_20240419_055511

As soon as you are done with SR settings press "Finish" button:

Screenshot_20240419_060006

After that you will be redirected to SRs menu automatically.

Step 2. Make required changes on SR disk and save them

As soon as SR booted one needs to log into it and perform required step on SR OS image (e.g. update installed packages).

To save changes made on persistent SR disk it's enough to shutdown the SR gracefully:

Screenshot_20240419_061321

Press "Accept" button on popped up message asking for your confirmation if you want proceed.

Wait till the SR reaches the status "DONE" and the image the status "READY".

Step 3. Make the image non-persistent

Go to "Storage" -> "Images" menu as during Step 2, select corresponding image just updated and click on "Non persistent" item in the drop-down menu:

Screenshot_20240419_053601

Press "Accept" button on popped up message asking for your confirmation if you want proceed.

One can go to "Templates" -> "VM Templates" menu and check if the new SR template was created.

Now users should use new SR template with updated OS image.