<div dir="ltr"><div dir="ltr"></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 19, 2021 at 12:30 PM Eugen Block <<a href="mailto:eblock@nde.ag">eblock@nde.ag</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
to launch windows VMs in openstack you need virtio drivers [2], see <br>
[1] for an example.<br></blockquote><div><br></div><div>Is this virtiio drivers applicable to launch new Windows virtual machines y from downloaded ISOs only ? Or as in my case I am exporting from hyperV . The file I got is vhdx file and I converted it to qcow2 format. Is the virtio drivers hack required for exported(from other hypervisors) Windows images also ? to import it to openstack.</div><div><br></div><div>if so The step mentioned here <a href="https://docs.openstack.org/image-guide/windows-image.html">https://docs.openstack.org/image-guide/windows-image.html</a></div><div><br></div><div><ol class="gmail-arabic" style="box-sizing:border-box;margin-top:0px;margin-bottom:10px;color:rgb(51,51,51);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:14px"><li style="box-sizing:border-box"><ol class="gmail-arabic" style="box-sizing:border-box;margin-top:0px;margin-bottom:0px;list-style-type:lower-alpha"><li style="box-sizing:border-box"><div class="gmail-highlight-console gmail-notranslate" style="box-sizing:border-box"><div class="gmail-highlight" style="box-sizing:border-box;background:rgb(32,32,32);color:rgb(208,208,208)"><pre style="box-sizing:border-box;line-height:16.25px;overflow:auto;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;padding:20px 30px;margin-top:0px;margin-bottom:10px;color:rgb(255,255,255);word-break:break-all;background-color:rgb(51,51,51);border:1px solid rgb(204,204,204);border-radius:4px"><span class="gmail-gp" style="box-sizing:border-box;color:rgb(170,170,170)">$ </span>qemu-img create -f qcow2 ws2012.qcow2 15G</pre></div></div></li></ol></li></ol>Is this step needed for other hypervisor exported WindowsVM image which converted by me already in qcow2 format ? what the relevance of 15G in my case of qcow2 format WIndows Single disk images which is 17G in qcow2 format ? </div><div><br></div><div><br></div><div>2. Step 2 In mycase </div><div>what need to be edited here so that it successfully can be imported to OpenStack and running . </div><div><br></div><div><pre style="box-sizing:border-box;line-height:16.25px;overflow:auto;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:13px;padding:20px 30px;margin-top:0px;margin-bottom:10px;color:rgb(255,255,255);word-break:break-all;background-color:rgb(51,51,51);border:1px solid rgb(204,204,204);border-radius:4px"><span class="gmail-gp" style="box-sizing:border-box;color:rgb(170,170,170)"># </span>virt-install --connect qemu:///system <span class="gmail-se" style="box-sizing:border-box;color:rgb(237,157,19)">\</span>
<span class="gmail-go" style="box-sizing:border-box;color:rgb(204,204,204)"> --name ws2012 --ram 2048 --vcpus 2 \</span>
<span class="gmail-go" style="box-sizing:border-box;color:rgb(204,204,204)"> --network network=default,model=virtio \</span>
<span class="gmail-go" style="box-sizing:border-box;color:rgb(204,204,204)"> --disk path=ws2012.qcow2,format=qcow2,device=disk,bus=virtio \</span>
<span class="gmail-go" style="box-sizing:border-box;color:rgb(204,204,204)"> --cdrom /path/to/en_windows_server_2012_x64_dvd.iso \</span>
<span class="gmail-go" style="box-sizing:border-box;color:rgb(204,204,204)"> --disk path=/path/to/virtio-win-0.1-XX.iso,device=cdrom \</span>
<span class="gmail-go" style="box-sizing:border-box;color:rgb(204,204,204)"> --vnc --os-type windows --os-variant win2k12 \</span>
<span class="gmail-go" style="box-sizing:border-box;color:rgb(204,204,204)"> --os-distro windows --os-version 2012</span></pre></div><div><br></div><div> </div><div><br></div><div>That file size ( 17 GB in qcow2 format, in bare KVM when I imported successfully its booted and disk space around 500 GB ) . </div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I haven't done that in quite some time, but I remember after following <br>
that guide I was able to launch a windows VM.<br>
<br>
Regards,<br>
Eugen<br>
<br>
<br>
[1] <a href="https://docs.openstack.org/image-guide/windows-image.html" rel="noreferrer" target="_blank">https://docs.openstack.org/image-guide/windows-image.html</a><br>
[2] <br>
<a href="https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/latest-virtio/virtio-win.iso" rel="noreferrer" target="_blank">https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/latest-virtio/virtio-win.iso</a><br>
<br>
Zitat von KK CHN <<a href="mailto:kkchn.in@gmail.com" target="_blank">kkchn.in@gmail.com</a>>:<br>
<br>
> Error : failed to perform requested operation on instance "WindowsVM "the<br>
> instance has error status. Please try again later [Error exceeded maximum<br>
> number of retries. Exhausted all hosts available for retrying build<br>
> failures for instance e3d5c095-7d26-4b1e-89d1-d1a6e20a45041<br>
><br>
> I am trying to import a WIndows2012 Single disk VM, to OpenStack Ussuri,<br>
> with glance and Qemu KVM.<br>
><br>
> In bare machine KVM I am able to import and boot this Windows VM which<br>
> exported from rhevm hypervisor as vhdx image.<br>
> what I have done is<br>
><br>
> 1. converted this windows image from vhdx to qcow2<br>
> 2. root@MeghCtrol1:/home/cloud/CMOBB_APP#cirt-install --name WINDOWS<br>
> --ram=1048 --vcups=1 --cpu host --hvm --dick<br>
> path=BackUP2_CMAPP_disk_1_Windows_qcow2_imagefile,device=disk,<br>
> format=qcow2,bus=virtio --graphics vnc --boot uefi<br>
><br>
> This uploaded the qcow2 image of WindowsVM to KVM hypervisor and its<br>
> working.<br>
><br>
> But when I do importing to openstack unable to launch instance from the<br>
> image .<br>
><br>
> These are the steps I performed..<br>
><br>
> 1. openstack image create "WindowsVM" --file CMAPP_disk_1.qcow2<br>
> --disk-format qcow2 --container-format bare --public<br>
><br>
> 4.openstack image set --property hw_firmware_type=uefi --property<br>
> os_secure_boot=required WindowsVM<br>
><br>
> 5.openstack image set --property hw_firmware_type=uefi --property<br>
> hw_disk_bus=ide WindowsVM<br>
><br>
> 6.openstack image show WindowsVM<br>
><br>
> 7. root@dmzcloud:/home/cloud# openstack image show WindowsVM|grep<br>
> "properties"<br>
> | properties | hw_disk_bus='ide', hw_firmware_type='uefi',<br>
> os_hash_algo='sha512',<br>
> os_hash_value='753ee596980409e1e72d6d020c8219c56a6ada8b43f634fb575c594a245725a398e45982c0a1ad72b3fc3451cde62cceb9ff22be044863b31ecdd7893b049349',<br>
> os_hidden='False', os_secure_boot='required',<br>
> owner_specified.openstack.md5='',<br>
> owner_specified.openstack.object='images/WindowsVM',<br>
> owner_specified.openstack.sha256='' |<br>
> root@dmzcloud:/home/cloud#<br>
><br>
><br>
> Then I logged into horizon dashboard, from the images selected the<br>
> imported image and try to launch the instance. With a Flavour of 550 GB<br>
> disk, 4 vcpus and 8GB Ram ..<br>
><br>
> The instance spawning ran for 30 minutes and throws the error which I<br>
> pasted first in the right top corner of horizon dashboard.<br>
><br>
> How to solve this error and boot the Windows machine successfully ..<br>
><br>
><br>
> """<br>
> Error : failed to perform requested operation on instance "WindowsVM "the<br>
> instance has error status. Please try again later [Error exceeded maximum<br>
> number of retries. Exhausted all hosts available for retrying build<br>
> failures for instance e3d5c095-7d26-4b1e-89d1-d1a6e20a45041<br>
><br>
><br>
> """<br>
><br>
> Any help highly appreciated.<br>
><br>
> Kris<br>
<br>
<br>
<br>
<br>
</blockquote></div></div>