<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Ynt: Virtual Image Lifecycle in HPE Morpheus Enterprise Software</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/virtual-image-lifecycle/m-p/7267698#M5259</link>
    <description>&lt;P&gt;The following link may be helpful for you; I kindly request that you review it.&lt;/P&gt;&lt;P&gt;&lt;A href="https://hpevm-docs.morpheusdata.com/en/8.0.6-vme/provisioning/requirements.html" target="_blank"&gt;https://hpevm-docs.morpheusdata.com/en/8.0.6-vme/provisioning/requirements.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 23 May 2026 20:17:58 GMT</pubDate>
    <dc:creator>duru19</dc:creator>
    <dc:date>2026-05-23T20:17:58Z</dc:date>
    <item>
      <title>Virtual Image Lifecycle</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/virtual-image-lifecycle/m-p/7267678#M5257</link>
      <description>&lt;P&gt;I'm creating custom windows virtual images.&amp;nbsp; But unsure on how to handle the lifecycle of the windows template image.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI all this would be done via the API as i intend to automate this process.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i was to create a new windows template, i'd create the virtual image and then upload the the template as an image file&lt;/P&gt;&lt;P&gt;POST:&amp;nbsp;https://{serverURL}/api/virtual-images&lt;BR /&gt;POST:&amp;nbsp;https://{serverURL}/api/virtual-images/{virtualImageId}/upload?filename=NEWFILE&lt;/P&gt;&lt;P&gt;After the image is mapped to the node, this works perfect.&amp;nbsp; I'm able to provision instances of the virtual image.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The question i have is , if i want to update the windows template.&amp;nbsp; How should I approach this in morpheus ?&amp;nbsp; It doesn't seem like you should recreate the virtual image as there can be instances associated with the original virtual image.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought since there is an image file, i could just replace it with new template.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DELETE:&amp;nbsp;https://{serverURL}/api/virtual-images/{virtualImageId}/files?filename=OLDFILE&lt;/P&gt;&lt;P&gt;POST:&amp;nbsp;https://{serverURL}/api/virtual-images/{virtualImageId}/upload?filename=NEWFILE&lt;/P&gt;&lt;P&gt;However, when i then attempt to provision an instance i get the following error&lt;BR /&gt;Error: Failed to create server volumes: Failed to clone volume: qemu-img: Could not open '/mnt/6a611573-f3ea-46e6-aeee-7081a1eb3700/WindowServer2019_199-disk-0-e9540bf': Could not open '/mnt/6a611573-f3ea-46e6-aeee-7081a1eb3700/WindowServer2019_199-disk-0-e9540bf': No such file or directory&lt;BR /&gt;&lt;BR /&gt;One thing i did notice is that when getting the virtual image to get the filename. I get this&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; response.json()["virtualImage"]["config"]["diskIds"]&lt;BR /&gt;[{'name': 'windows_server_2019.qcow2', 'path': 'morpheus-virtual-images/305/output/windows_server_2019.qcow2', 'uniqueId': 'a861967b-a831-412b-800b-5d70ece11275'}]&lt;/P&gt;&lt;P&gt;I then use the path as the filename of the delete request.&amp;nbsp; Which returns success.&amp;nbsp; If i run again, it then returns 'file not found', which would suggest it deleted.&amp;nbsp; However if i then get the virutal image, the filepath is still there. So not sure if that's a bug.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Any guidance would be appreciated.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2026 15:40:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/virtual-image-lifecycle/m-p/7267678#M5257</guid>
      <dc:creator>seanobrien</dc:creator>
      <dc:date>2026-05-22T15:40:10Z</dc:date>
    </item>
    <item>
      <title>Ynt: Virtual Image Lifecycle</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/virtual-image-lifecycle/m-p/7267697#M5258</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Based on the behavior you are seeing, I would avoid treating the Virtual Image file as something that can be safely replaced in-place under the same Virtual Image ID.&lt;/P&gt;&lt;P&gt;A Virtual Image in Morpheus is not only the uploaded file. It also has metadata such as disk IDs, paths, unique IDs, and image location/cache references on the target cloud or HVM cluster. For uploaded/local images, Morpheus may copy the image to the target during the first provision, and subsequent provisions can continue to use the target-side copy if it is still present.&lt;/P&gt;&lt;P&gt;In this case, deleting the old file appears to remove the backing file, but the Virtual Image metadata still references the previous disk/path. That would explain why qemu-img is later trying to clone from a path that no longer exists.&lt;/P&gt;&lt;P&gt;For image lifecycle management, I would recommend using an immutable/versioned image model instead:&lt;/P&gt;&lt;P&gt;Create a new Virtual Image for each updated Windows template.&lt;BR /&gt;Upload the new QCOW2/VMDK file to the new Virtual Image.&lt;BR /&gt;Validate provisioning from the new image.&lt;BR /&gt;Update the Node Type / Layout / Catalog Item / automation to reference the new Virtual Image ID.&lt;BR /&gt;Keep the old Virtual Image until no active workflows depend on it, then remove it cleanly, including the target image locations if required.&lt;/P&gt;&lt;P&gt;If the old Virtual Image still shows the deleted disk path in config.diskIds after the file removal, I would treat that as stale metadata or an unsupported update path and open a support case with HPE/Morpheus to confirm whether the file replacement workflow is expected to be supported.&lt;/P&gt;</description>
      <pubDate>Sat, 23 May 2026 20:15:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/virtual-image-lifecycle/m-p/7267697#M5258</guid>
      <dc:creator>duru19</dc:creator>
      <dc:date>2026-05-23T20:15:44Z</dc:date>
    </item>
    <item>
      <title>Ynt: Virtual Image Lifecycle</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/virtual-image-lifecycle/m-p/7267698#M5259</link>
      <description>&lt;P&gt;The following link may be helpful for you; I kindly request that you review it.&lt;/P&gt;&lt;P&gt;&lt;A href="https://hpevm-docs.morpheusdata.com/en/8.0.6-vme/provisioning/requirements.html" target="_blank"&gt;https://hpevm-docs.morpheusdata.com/en/8.0.6-vme/provisioning/requirements.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 23 May 2026 20:17:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/virtual-image-lifecycle/m-p/7267698#M5259</guid>
      <dc:creator>duru19</dc:creator>
      <dc:date>2026-05-23T20:17:58Z</dc:date>
    </item>
    <item>
      <title>Ynt: Virtual Image Lifecycle</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/virtual-image-lifecycle/m-p/7267702#M5261</link>
      <description>&lt;P&gt;Thank you for the information.&amp;nbsp; Yes this seems to be the case, i just wasn't sure if this was expected behaviour when working with the image file as there is an API to both add and remove the image files.&amp;nbsp; And it offered the easier workflow as you don't have to recreate, delete and remap the virtual image to the nodes etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will follow your suggested workflow.&amp;nbsp; I had concerns as there did appear to be an instance association with the virtual image.&amp;nbsp; But i tested deleting the virtual image which had a running instance and it's fine.&amp;nbsp; It appears to be just cosmetic.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 May 2026 21:57:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/virtual-image-lifecycle/m-p/7267702#M5261</guid>
      <dc:creator>seanobrien</dc:creator>
      <dc:date>2026-05-23T21:57:58Z</dc:date>
    </item>
    <item>
      <title>Ynt: Virtual Image Lifecycle</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/virtual-image-lifecycle/m-p/7267782#M5265</link>
      <description>&lt;P&gt;Hello Seanobrien,&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;I am glad to hear that your issue has been resolved. Please keep us informed of any further updates.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;If you are satisfied with the responses, please click the “Accept as Solution” button on the most helpful answer so that it can benefit all community members.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please also consider giving a “Kudo” by clicking the “Thumbs Up/Kudo” icon.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2026 20:01:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/virtual-image-lifecycle/m-p/7267782#M5265</guid>
      <dc:creator>duru19</dc:creator>
      <dc:date>2026-05-26T20:01:44Z</dc:date>
    </item>
  </channel>
</rss>

