<?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 Re: VM creation on hyper-v using golden image fails in HPE Morpheus Enterprise</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/vm-creation-on-hyper-v-using-golden-image-fails/m-p/7249928#M3102</link>
    <description>&lt;P&gt;This is probably related to the fact you are trying to create a gen 2 VM with the hyper-v integration. From testing it looks like for the hyper-v integration we only send the request as gen 1 regardless of the selection. It does look like our SCVMM integration supports both gen 1 and  gen 2 so that may be an option. The other option would be to create a gen 1 image and use that.&lt;/P&gt;
&lt;P&gt;I would recommend creating an idea to add support for gen 2 with the hyper-v integration.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Sep 2023 21:28:34 GMT</pubDate>
    <dc:creator>rbmorph</dc:creator>
    <dc:date>2023-09-14T21:28:34Z</dc:date>
    <item>
      <title>VM creation on hyper-v using golden image fails</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/vm-creation-on-hyper-v-using-golden-image-fails/m-p/7249925#M3099</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;We’ve a hyper-v node added as hyper-v cloud in the Morpheus, Able to deploy VM into it using images from Morpheus marketplace.&lt;/P&gt;
&lt;P&gt;We created a golden image for windows server 2022 in the same hyper-v node, Created 1 2022 VM and followed steps provided in Morpheus documentation for golden image creation. Imported VHDx of that VM to Morpheus and created node type,instance types and layout. When we try provision the VM using that golden image to hyper-v node, Provisioning fails with generic message “Your Instance Test-006 had a failure occur during provisioning”.&lt;/P&gt;
&lt;P&gt;On Hyper-v node I do see a VM getting created which is unable to find a boot media/source&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149870i5AF1E8CD7DDECA0A/image-size/large?v=v2&amp;amp;px=2000" role="button" title="e07d1284544d7c7a8f523e7686bc19ca3a893367.png" alt="e07d1284544d7c7a8f523e7686bc19ca3a893367.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/150342iF5E0C121E2603B1A/image-size/large?v=v2&amp;amp;px=2000" role="button" title="eba2fee2a3f6ba6f6ab42aa9dff16b4e2013826f.png" alt="eba2fee2a3f6ba6f6ab42aa9dff16b4e2013826f.png" /&gt;&lt;/span&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Any input is greatly appreciated !&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;
Suresh Thakur&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 10:59:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/vm-creation-on-hyper-v-using-golden-image-fails/m-p/7249925#M3099</guid>
      <dc:creator />
      <dc:date>2023-08-07T10:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: VM creation on hyper-v using golden image fails</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/vm-creation-on-hyper-v-using-golden-image-fails/m-p/7249926#M3100</link>
      <description>&lt;P&gt;Yes, I imported it manually by uploading it to local storage bucket from library &amp;gt; virtual images.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 14:48:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/vm-creation-on-hyper-v-using-golden-image-fails/m-p/7249926#M3100</guid>
      <dc:creator />
      <dc:date>2023-08-07T14:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: VM creation on hyper-v using golden image fails</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/vm-creation-on-hyper-v-using-golden-image-fails/m-p/7249927#M3101</link>
      <description>&lt;P&gt;Did you figure anything out on this? I’ve ran into the same issue.&lt;/P&gt;
&lt;P&gt;What I’ve found in my case is that if I “manually” put the .vhd or .vhdx into the “working path” on the hyper-v server itself then it will actually finish provisioning.&lt;/P&gt;
&lt;P&gt;For example:&lt;BR /&gt;
My working path is G:\Morpheus&lt;BR /&gt;
If I download the .vhd of the image I called Windows_Server_2022 from the library on the morpheus app and upload it to the hyper-v server under G:\Morpheus\images\Windows_Server_2022 the provisioning will complete fine.&lt;/P&gt;
&lt;P&gt;This goes for any image I try to provision to hyper-v, be it one I uploaded or one of the default Ubuntu ones, ect.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 20:49:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/vm-creation-on-hyper-v-using-golden-image-fails/m-p/7249927#M3101</guid>
      <dc:creator />
      <dc:date>2023-09-12T20:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: VM creation on hyper-v using golden image fails</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/vm-creation-on-hyper-v-using-golden-image-fails/m-p/7249928#M3102</link>
      <description>&lt;P&gt;This is probably related to the fact you are trying to create a gen 2 VM with the hyper-v integration. From testing it looks like for the hyper-v integration we only send the request as gen 1 regardless of the selection. It does look like our SCVMM integration supports both gen 1 and  gen 2 so that may be an option. The other option would be to create a gen 1 image and use that.&lt;/P&gt;
&lt;P&gt;I would recommend creating an idea to add support for gen 2 with the hyper-v integration.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 21:28:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/vm-creation-on-hyper-v-using-golden-image-fails/m-p/7249928#M3102</guid>
      <dc:creator>rbmorph</dc:creator>
      <dc:date>2023-09-14T21:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: VM creation on hyper-v using golden image fails</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/vm-creation-on-hyper-v-using-golden-image-fails/m-p/7249929#M3103</link>
      <description>&lt;P&gt;Our process is to use packer, with &lt;CODE style="background : #f0f1f2;"&gt;use_fixed_vhd_format = "true"&lt;/CODE&gt; and &lt;CODE style="background : #f0f1f2;"&gt;skip_compaction = "true"&lt;/CODE&gt; with a Gen1 vhd file.  That’s what I know works.&lt;/P&gt;
&lt;P&gt;Can you DM me a log of you trying to deploy this?  There might be a clue in there for me, but I haven’t dug into using Gen2 vhdx disk images in Hyper-V, myself.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 15:37:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/vm-creation-on-hyper-v-using-golden-image-fails/m-p/7249929#M3103</guid>
      <dc:creator />
      <dc:date>2023-08-07T15:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: VM creation on hyper-v using golden image fails</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/vm-creation-on-hyper-v-using-golden-image-fails/m-p/7249930#M3104</link>
      <description>&lt;P&gt;I’m not sure if any of this is different with Windows.&lt;/P&gt;
&lt;P&gt;I only have a process for building images with packer and the config is pretty simple:&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;source "hyperv-iso" "ubuntu" {
    iso_url = "${var.iso_url}"
    iso_checksum = "${var.iso_checksum}"
    shutdown_command = "${var.shutdown_command}"
    disk_size = "${var.disk_size}"
    use_fixed_vhd_format = "true"
    skip_compaction = "true"
    headless = "true"
    memory = "${var.memory}"
    http_directory = "${var.http_directory}"
    ssh_username = "${var.ssh_username}"
    ssh_password = "${var.ssh_password}"
    ssh_timeout = "${var.ssh_wait_timeout}"
    vm_name = "${local.vm_name}"
    boot_command = ["c&amp;lt;wait&amp;gt;linux /casper/vmlinuz --- autoinstall ds=\"nocloud-net;seedfrom=http://{{.HTTPIP}}:{{.HTTPPort}}/u22_cloudinit_hyperv/\"&amp;lt;enter&amp;gt;&amp;lt;wait&amp;gt;initrd /casper/initrd&amp;lt;enter&amp;gt;&amp;lt;wait&amp;gt;boot&amp;lt;enter&amp;gt;"]
    output_directory = "${var.output_directory}"
}

build {
    sources = [
        "source.hyperv-iso.ubuntu"
    ]
  provisioner "file" {
    source = "../supportfiles/os_detect.sh"
    destination = "/tmp/os_detect.sh"
  }
  provisioner "shell" {
    script = "../supportfiles/ubuntu_setup.sh"
  }
  provisioner "shell" {
    script = "../supportfiles/ubuntu_cleanup.sh"
  }
  post-processor "shell-local" {
    tempfile_extension = ".ps1"
    execute_command = ["powershell.exe", "{{.Vars}}  {{.Script}}"]
    env_var_format = "$env:%s=\"%s\"; "
    inline = [
        "cd '${var.output_directory}\\Virtual Hard Disks'",
        "tar cvzf ..\\${local.vm_name}.vhd.tar.gz ${local.vm_name}.vhd",
        "cd ..",
        "del -Recurse 'Virtual Hard Disks'",
        "del -Recurse 'Virtual Machines'"
    ]
  }
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Aug 2023 13:25:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/vm-creation-on-hyper-v-using-golden-image-fails/m-p/7249930#M3104</guid>
      <dc:creator />
      <dc:date>2023-08-08T13:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: VM creation on hyper-v using golden image fails</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/vm-creation-on-hyper-v-using-golden-image-fails/m-p/7249931#M3105</link>
      <description>&lt;P&gt;Are you using packer, or are you modifying the VM in hyper-v, shutting down and exporting the vhdx?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 15:22:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/vm-creation-on-hyper-v-using-golden-image-fails/m-p/7249931#M3105</guid>
      <dc:creator />
      <dc:date>2023-08-07T15:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: VM creation on hyper-v using golden image fails</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/vm-creation-on-hyper-v-using-golden-image-fails/m-p/7249932#M3106</link>
      <description>&lt;ASIDE class="quote no-group" data-username="suresh.thakur" data-post="1" data-topic="1368"&gt;
suresh.thakur:
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Imported VHDx of that VM to Morpheus&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/ASIDE&gt;
&lt;P&gt;Are you stating you imported the vhdx manually? Or are you saying on a sync, you found it under Library &amp;gt; Virtual Images?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 12:33:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/vm-creation-on-hyper-v-using-golden-image-fails/m-p/7249932#M3106</guid>
      <dc:creator>cbunge</dc:creator>
      <dc:date>2023-08-07T12:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: VM creation on hyper-v using golden image fails</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/vm-creation-on-hyper-v-using-golden-image-fails/m-p/7249933#M3107</link>
      <description>&lt;P&gt;I tried same steps with Gen1 VM’s as well but facing the same challenge, If convenient please share steps to use Packer for this process.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 12:17:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/vm-creation-on-hyper-v-using-golden-image-fails/m-p/7249933#M3107</guid>
      <dc:creator />
      <dc:date>2023-08-08T12:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: VM creation on hyper-v using golden image fails</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/vm-creation-on-hyper-v-using-golden-image-fails/m-p/7249934#M3108</link>
      <description>&lt;P&gt;After following steps in VM i’m using sysprep (  &lt;STRONG&gt;sysprep\sysprep.exe /generalize /shutdown /oobe&lt;/STRONG&gt;) to generalize and shurdown the VM, Once VM is off then i upload the VHDx file to Morpheus.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 15:30:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/vm-creation-on-hyper-v-using-golden-image-fails/m-p/7249934#M3108</guid>
      <dc:creator />
      <dc:date>2023-08-07T15:30:12Z</dc:date>
    </item>
  </channel>
</rss>

