-
Notifications
You must be signed in to change notification settings - Fork 0
How to update SR template image
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).
That solution is valid only if there are no SRs using the image, i.e. the image status is "READY".
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):
Click on required template within the list:
Press "Template" tab:
and scroll down to the DISK attribute and noticed IMAGE_ID value (it's "58" in our example).
Go to "Storage" -> "Images
and click on the image with corresponding ID value (it's "58" in our example):
Scroll down the page and check the image persistence in the "Info" tab:
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:
Press "Accept" button on popped up message asking for your confirmation if you want proceed.
Now one needs to instantiate new SR from the corresponding VM template as shown on the picture below:
Set values for instantiating SR according to your needs and press "Next" button:
As soon as you are done with SR settings press "Finish" button:
After that you will be redirected to SRs menu automatically.
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:
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".
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:
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.
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):
Click on required template within the list:
Instantiate new SR from the corresponding SR template as shown on the picture below:
Set values for instantiating SR according to your needs, switch on "Instantiate as persistent" option and press "Next" button:
As soon as you are done with SR settings press "Finish" button:
After that you will be redirected to SRs menu automatically.
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:
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".
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:
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.