<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix"><small>Hi Sudeep , <br>
        <br>
        I deal with windows machines in ONE day by day (unfortunately).<br>
        <br>
        what I can see here (a part from the raw-qcow issue) is that it
        seems you never installed virtio-drivers (and devices) and
        you're trying to boot using virtio bus.<br>
        <br>
        if you haven't installed in the OS (windows) the "Red Hat Virtio
        SCSI controller" (see VirtIO drivers) you will have no luck in
        using virtio bus.. don't use bus=virtio, use standard emulated
        IDE ( in the template a plain IMAGE=[ID="whatever"]  ) and y</small><small>ou
        eventually be able to boot it.<br>
        <br>
        then if you want to convert it (the window machine) to use
        virtio bus, you can do the following:<br>
        <br>
        1-  attach a second image as virtio device (like this: 
        IMAGE=[ID="xx",DEV_PREVIX="vd"]  being "xx" any non persistent
        image in your datastore eg: a cdrom image),<br>
        <br>
        2- boot it  (keeping your main image in IDE emulation without
        virtio, like IMAGE=[ID="yy"]   where "yy" is your vbox converted
        image of Win's C: drive<br>
        <br>
        3- install the newly found "unknown device" with the divers of 
        Red Hat Virtio SCSI controller from the binaries relative to
        your win edition in the iso here: <a
href="http://www.linux-kvm.org/page/WindowsGuestDrivers/Download_Drivers">http://www.linux-kvm.org/page/WindowsGuestDrivers/Download_Drivers</a>
        as suggested by Valentin (he's a smart guy, follow his
        suggestions ;) in this way you will tell windows that it's now
        on "virtio-steroids" that is: it will eventually boot from a
        virtio device 'cause now the controller drivers are enabled at
        boot.<br>
        <br>
        4- then you can shutdown vm, modify template removing the "xx"
        cdrom image you put to install the virtio controller and edit
        the main image (c: drive) with a string like this:<br>
            
        DISK=[AIO="native",CACHE="none",DEV_PREFIX="vd",IMAGE_ID="yy"]<br>
            if you find awkard slowliness try to enable default cache
        for virtio and see if you get it any better (windows really
        sucks anyway.. be at peace with it)<br>
           
        DISK=[AIO="native",CACHE="default",DEV_PREFIX="vd",IMAGE_ID="yy"]<br>
        i usually get best results with these 2 configs for images of
        the "best OS out there"<br style="color: rgb(0, 0, 0);
          font-family: Helvetica, Arial, 'Droid Sans', sans-serif;
          font-size: 14px; font-style: normal; font-variant: normal;
          font-weight: normal; letter-spacing: normal; line-height:
          19.9999942779541px; orphans: auto; text-align: start;
          text-indent: 0px; text-transform: none; white-space: normal;
          widows: auto; word-spacing: 0px; -webkit-text-stroke-width:
          0px;" clear="none">
        <br>
        5- instatiate it again... boom virtio storage will boot.<br>
        <br>
        <br>
        hope it helps.<br>
        <br>
        cheers</small><br>
      <br>
      <pre class="moz-signature" cols="72">Lorenzo Faleschini
IT Manager @ Nord Est Systems srl
----------------------------------------
m: +39 335 6055225 | skype: falegalizeit
</pre>
      Il 16/07/2014 13:13, Sudeep Narayan Banerjee ha scritto:<br>
    </div>
    <blockquote
cite="mid:CAO_z86sbvhbGOUF4c-VVydy0C8oMcV4AesRRXTyV__WhCJMzZw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>Dear Mateusz & All,<br>
                  <br>
                </div>
                I tried a lot but looks like I am not able to figure
                out.<br>
                <br>
              </div>
              Again the VM says "No bootable device" gpxe searching for
              bootdisk from HDD/Floppy/DVD-CD" etc.<br>
              <br>
            </div>
            But it is running fine from frontend mode "virt-viewer -c
            qemu:///system myvm3"<br>
          </div>
          <div><br>
          </div>
          <div>I tried to virtually mount the iso in the CD drive but
            that too did not help.<br>
            <br>
          </div>
          <div>
            I have also tried the interactive setup: virt-install
            --prompt  --> that too does not work when I instantiate
            in OpenNebula VM.<br>
            <br>
          </div>
          <div>I have also tried to write the template in Advanced Tab
            in OpenNebula following [1] but I am failing.<br>
            <br>
            [1] <u><a moz-do-not-send="true"
                href="http://wiki.ieeta.pt/wiki/index.php/OpenNebula#SetupComplete.cmd">http://wiki.ieeta.pt/wiki/index.php/OpenNebula#SetupComplete.cmd</a></u><br>
          </div>
          <div><br>
          </div>
          <br>
          Regards,<br>
        </div>
        Sudeep<br>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Wed, Jul 16, 2014 at 2:43 PM, Sudeep
          Narayan Banerjee <span dir="ltr"><<a
              moz-do-not-send="true"
              href="mailto:snbanerjee@iitgn.ac.in" target="_blank">snbanerjee@iitgn.ac.in</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">
              <div>
                <div>
                  <div>Hello Mateusz,<br>
                    <br>
                  </div>
                  I have given now 17G for win7 OS.<br>
                  <br>
                </div>
                On adding target=hda * hdb, it throws the below error.<br>
                <br>
                [root@front images]# virt-install --connect
                qemu:///system --name win7 --ram 1024 --vcpus 2 --disk
                path=/var/lib/libvirt/images/win7.qcow2,size=17,format=qcow2,bus=virtio,cache=none,target=hda
                --cdrom /home/Windows-7-x86.iso,target=hdb --vnc
                --os-type=windows --os-variant=win7 -noautoconsole
                --accelerate --noapic --keymap=en-us<br>
                <br>
                ERROR    Unknown options ['target']<br>
                <br>
              </div>
              Regards,<br>
              Sudeep<br>
              <div><br>
              </div>
            </div>
            <div class="gmail_extra">
              <div>
                <div class="h5"><br>
                  <br>
                  <div class="gmail_quote">On Wed, Jul 16, 2014 at 1:57
                    PM, Mateusz Skała <span dir="ltr"><<a
                        moz-do-not-send="true"
                        href="mailto:mateusz.skala@budikom.net"
                        target="_blank">mateusz.skala@budikom.net</a>></span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
                      <br>
                      W dniu 2014-07-16 08:00, Sudeep Narayan Banerjee
                      napisał(a):
                      <div><br>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">
                          Dear Mateusz,<br>
                          <br>
                          Thanks for replying. Is the below command
                          correct?<br>
                          <br>
                          [root@front ~]# virt-install --connect
                          qemu:///system --name win7<br>
                          --ram 1024 --vcpus 2 --disk<br>
                          path=/var/lib/libvirt/images/win7.qcow2,size=7,format=qcow2,bus=virtio,cache=none<br>
                          --cdrom /home/Windows-7-x86.iso --vnc
                          --os-type=windows<br>
                          --os-variant=win7 -noautoconsole --accelerate
                          --noapic --keymap=en-us<br>
                          <br>
                        </blockquote>
                        <br>
                      </div>
                      try to add target=hda, for example:<br>
                      <br>
                      virt-install --connect qemu:///system --name win7
                      --ram 1024 --vcpus 2 --disk
                      path=/var/lib/libvirt/images/win7.qcow2,size=7,format=qcow2,bus=virtio,cache=none,target=hda
                      --cdrom /home/Windows-7-x86.iso,target=hdb --vnc
                      --os-type=windows --os-variant=win7 -noautoconsole
                      --accelerate --noapic --keymap=en-us<br>
                      <br>
                      If You are using virtio then drivers for this bus
                      will be needed, so You need add floppy drive with
                      drivers.
                      <div><br>
                        <br>
                        <br>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">
                          The win7.qcow2 image is prepared under
                          /var/lib/libvirt/images folder<br>
                          <br>
                          [root@front images ~]# qemu-img create -f
                          qcow2 -o<br>
                          preallocation=metadata
                          /var/lib/libvirt/images/win7.qcow2 7G<br>
                          <br>
                        </blockquote>
                        <br>
                        <br>
                      </div>
                      Only 7G for win7 os device?
                      <div>
                        <div><br>
                          <br>
                          <blockquote class="gmail_quote"
                            style="margin:0 0 0 .8ex;border-left:1px
                            #ccc solid;padding-left:1ex">
                            Or how do I tweak it?<br>
                            <br>
                            Regards,<br>
                            Sudeep<br>
                            <br>
                          </blockquote>
                          <br>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                  <br>
                  <br clear="all">
                  <br>
                </div>
              </div>
              <div class="">-- <br>
                <div dir="ltr">Thanks & Regards,
                  <div>Sudeep Narayan Banerjee</div>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <br>
        -- <br>
        <div dir="ltr">Thanks & Regards,
          <div>Sudeep Narayan Banerjee</div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>