Reinstating Images to the Web UI
-
Hello. I’ve recently tested image transfer from FOG server to another FOG server. I deleted/overwritten the SQL(?) info of the target FOG server, so the Web UI now shows only the transferred image. That’s the bad news.
The good news is that the old images are still in the target FOG server, but they’re not listed in the Web UI.
Is there a way to reinstate these images back to Web UI? If so how? I see the import image capability but that requires a CSV that I don’t know what content is needed.
Thanks
-
@mgoh If you don’t have a DB backup, or a recent snapshot of your fog server, you’ll need to recreate the image definitions manually. You must recreate them exactly as they were before:
- The image path must be exact and is case sensitive.
- The image OS and image type must be set exactly as well.
-
@wayne-workman Thank you. Where can one recreate the image definitions?
-
Oh wait. Is it literally “Create New Image” in the Web UI and fill in all the parameters you mentioned earlier? I tried that, and the size of the image is 0 GB. Is that expected?
-
@mgoh said in Reinstating Images to the Web UI:
I tried that, and the size of the image is 0 GB. Is that expected?
This is expected if you manually create the image definition. If you were to upload an image then that field gets populated. Its only used for display and not for any imaging activity. So it can stay at 0B forever.
-
Thank you all. That works.
In short, the easiest solution is to “Create a New Image” from Web UI and make sure the OS type, image type, and image path must be exact (i.e. case sensitive). Downside is that the size will be shown as 0.
-
@mgoh You could probably update the size with a sql command if you wanted. Not really a need to do it though.