<?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 Cannot clone previously imported Windows VMs as Group drop-down is empty in HPE Morpheus Enterprise Software</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/cannot-clone-previously-imported-windows-vms-as-group-drop-down/m-p/7248652#M1826</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Some previously imported Windows VMs from vCenter to Morpheus (imported on Morpheus versions older than 6.0.2) cannot be cloned, because the GROUP drop-down is empty and cannot proceed without selecting group.&lt;/P&gt;
&lt;P&gt;Newly imported machines or machines that are created on Morpheus version 6.0.2+ do not have this problem.&lt;/P&gt;
&lt;P&gt;The issue is that in old Morpheus versions, the &lt;CODE style="background : #f0f1f2;"&gt;windows&lt;/CODE&gt; instance type was available in the &lt;EM&gt;Instance Type&lt;/EM&gt; dropdown on the &lt;EM&gt;Convert to Manage&lt;/EM&gt; form however, this was removed in version 6.0.2. So in versions older than 6.0.2, when convert to manage was performed, users selected the &lt;CODE style="background : #f0f1f2;"&gt;windows&lt;/CODE&gt; instance type for all their discovered Windows servers. Now for those existing instances, when performing clone from instance actions in versions 6.0.2+, it doesn’t find the instance type hence the groups dropdown is empty. Clone uses the instance type assigned to the instance and finds groups which are available for the layouts and provision type of the VM. In this case, no layouts for VMware and, therefore no groups.&lt;/P&gt;
&lt;P&gt;This issue can be resolved by updating the &lt;EM&gt;instance_type&lt;/EM&gt; &lt;CODE style="background : #f0f1f2;"&gt;windows&lt;/CODE&gt; to &lt;CODE style="background : #f0f1f2;"&gt;vmware&lt;/CODE&gt; for all the problematic instances. Below are the SQL queries used to resolve it.&lt;/P&gt;
&lt;P&gt;&lt;CODE style="background : #f0f1f2;"&gt;# query to get the windows instance type id&lt;/CODE&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;SELECT id FROM instance_type WHERE CODE = “windows”;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;CODE style="background : #f0f1f2;"&gt;# query to get the vmware instance type id&lt;/CODE&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;SELECT id FROM instance_type WHERE CODE = “vmware”;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;CODE style="background : #f0f1f2;"&gt;# query to get the list of instances with windows instance type&lt;/CODE&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;SELECT i.id, i.name FROM instance i JOIN instance_type it ON i.instance_type_id = it.id WHERE it.code = ‘windows’;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;CODE style="background : #f0f1f2;"&gt;# query to update the above returned instances to vmware instance type&lt;/CODE&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;UPDATE instance SET instance_type_id = &amp;lt;id from 2nd query&amp;gt; WHERE instance_type_id = &amp;lt;id from 1st query&amp;gt;;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Note: We strongly recommend taking a backup of your database before making any modifications.&lt;/P&gt;
&lt;P&gt;Thanks&lt;BR /&gt;
Deepti&lt;/P&gt;</description>
    <pubDate>Fri, 05 Apr 2024 20:21:24 GMT</pubDate>
    <dc:creator>dgaharwar</dc:creator>
    <dc:date>2024-04-05T20:21:24Z</dc:date>
    <item>
      <title>Cannot clone previously imported Windows VMs as Group drop-down is empty</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/cannot-clone-previously-imported-windows-vms-as-group-drop-down/m-p/7248652#M1826</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Some previously imported Windows VMs from vCenter to Morpheus (imported on Morpheus versions older than 6.0.2) cannot be cloned, because the GROUP drop-down is empty and cannot proceed without selecting group.&lt;/P&gt;
&lt;P&gt;Newly imported machines or machines that are created on Morpheus version 6.0.2+ do not have this problem.&lt;/P&gt;
&lt;P&gt;The issue is that in old Morpheus versions, the &lt;CODE style="background : #f0f1f2;"&gt;windows&lt;/CODE&gt; instance type was available in the &lt;EM&gt;Instance Type&lt;/EM&gt; dropdown on the &lt;EM&gt;Convert to Manage&lt;/EM&gt; form however, this was removed in version 6.0.2. So in versions older than 6.0.2, when convert to manage was performed, users selected the &lt;CODE style="background : #f0f1f2;"&gt;windows&lt;/CODE&gt; instance type for all their discovered Windows servers. Now for those existing instances, when performing clone from instance actions in versions 6.0.2+, it doesn’t find the instance type hence the groups dropdown is empty. Clone uses the instance type assigned to the instance and finds groups which are available for the layouts and provision type of the VM. In this case, no layouts for VMware and, therefore no groups.&lt;/P&gt;
&lt;P&gt;This issue can be resolved by updating the &lt;EM&gt;instance_type&lt;/EM&gt; &lt;CODE style="background : #f0f1f2;"&gt;windows&lt;/CODE&gt; to &lt;CODE style="background : #f0f1f2;"&gt;vmware&lt;/CODE&gt; for all the problematic instances. Below are the SQL queries used to resolve it.&lt;/P&gt;
&lt;P&gt;&lt;CODE style="background : #f0f1f2;"&gt;# query to get the windows instance type id&lt;/CODE&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;SELECT id FROM instance_type WHERE CODE = “windows”;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;CODE style="background : #f0f1f2;"&gt;# query to get the vmware instance type id&lt;/CODE&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;SELECT id FROM instance_type WHERE CODE = “vmware”;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;CODE style="background : #f0f1f2;"&gt;# query to get the list of instances with windows instance type&lt;/CODE&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;SELECT i.id, i.name FROM instance i JOIN instance_type it ON i.instance_type_id = it.id WHERE it.code = ‘windows’;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;CODE style="background : #f0f1f2;"&gt;# query to update the above returned instances to vmware instance type&lt;/CODE&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;UPDATE instance SET instance_type_id = &amp;lt;id from 2nd query&amp;gt; WHERE instance_type_id = &amp;lt;id from 1st query&amp;gt;;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Note: We strongly recommend taking a backup of your database before making any modifications.&lt;/P&gt;
&lt;P&gt;Thanks&lt;BR /&gt;
Deepti&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 20:21:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/cannot-clone-previously-imported-windows-vms-as-group-drop-down/m-p/7248652#M1826</guid>
      <dc:creator>dgaharwar</dc:creator>
      <dc:date>2024-04-05T20:21:24Z</dc:date>
    </item>
  </channel>
</rss>

