<div dir="ltr"><div><div><div>Dear All,<br><br></div>Finally we(with your guidance) made it!!!!!!!!! Windows did boot. <br><br></div>***Tons of Kudos to all of you & a 10days lesson for me****<br><br></div><div>Thank you so much. Today I can have a good sleep & a tension-free weekend. <br>

<br>:-)<br></div><div><br></div>Regards,<br>Sudeep<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jul 18, 2014 at 6:47 PM, Lorenzo Faleschini <span dir="ltr"><<a href="mailto:lorenzo.faleschini@nordestsystems.com" target="_blank">lorenzo.faleschini@nordestsystems.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>
      Il 18/07/2014 14:47, Sudeep Narayan Banerjee ha scritto:<br>
    </div><div class="">
    <blockquote type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>
                  <div>Hello All,<br>
                    <br>
                  </div>
                </div>
                I followed your advice & now I installed the RedHat
                Virtio drivers and it detected the HDD from virt-install
                command.<br>
                <br>
              </div>
              Finally it created & instantiated the image, template
              & VM. <br>
              <br>
            </div>
            For past 20mins the VM is in Prolog mode. <br>
            <br>
            Whereas,            virt-viewer -c qemu:///system Win7 is
            still running & viewable.<br>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    <br></div>
    do you mean you manually ran the kvm machine (outside ONE) then when
    still running tried to instantiate it from the onetemplate on the
    same server using the same image?<br>
    <br>
    if so shutdown that vm first then instantiate it.<br>
    <br>
    BUT <br>
    I usually prefer doing everything in ONE rather than creating
    otherwise and then importing.<br>
    my suggestion is to start from scratch:<br>
    <br>
    - create an empty datablock image (raw or qcow2) we'll call
    WINDRIVEC<br>
    - change type to from DATABLOCK to OS for WINDRIVEC<br>
    - mark it as persistent for convenience while you install reboot and
    eventually change the template to your needs<br>
    - create a template for the windows machine defining 2 cdrom images
    (virtiodrivers and win7installdvd) and a virtio (DEV_PREFIX=vd)
    entry for WINDRIVEC<br>
    - boot the template<br>
    - attach console and when prompted where to install Windows you will
    have to choose "load driver" here a screenshot to help you
    <a href="http://minus.com/l7EqEC9VvJOWG" target="_blank">http://minus.com/l7EqEC9VvJOWG</a><br>
    - then you will just install it as a common vm<br>
    <br>
    hope this will help you to solve your WINightmare<br>
    just my 2cents<div><div class="h5"><br>
    <br>
    <br>
    <blockquote type="cite">
      <div dir="ltr">
        <div>
          <div><br>
          </div>
          What could be the reason?<br>
          <br>
          <br>
          [oneadmin@front ~]$ onevm list<br>
              ID USER     GROUP    NAME            STAT UCPU    UMEM
          HOST             TIME<br>
              51 oneadmin oneadmin myvm14          prol    0      0K
          nc1          0d 00h17<br>
          <br>
          [oneadmin@front ~]$ tail -f /var/log/one/51.log <br>
          Fri Jul 18 17:51:33 2014 [DiM][I]: New VM state is ACTIVE.<br>
          Fri Jul 18 17:51:33 2014 [LCM][I]: New VM state is PROLOG.<br>
          <br>
          <br>
        </div>
        <div><i>I APOLOGIZE THAT IT IS TAKING 15 EMAIL CHAINS TO
            UNDERSTAND & SOLVE <u><b>FOR ME</b></u></i>. :-(<br>
        </div>
        <div><br>
        </div>
        Regards,<br>
        Sudeep<br>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Wed, Jul 16, 2014 at 7:56 PM,
          Lorenzo Faleschini <span dir="ltr"><<a href="mailto:lorenzo.faleschini@nordestsystems.com" target="_blank">lorenzo.faleschini@nordestsystems.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <div><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" target="_blank">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 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 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 type="cite">
                <div>
                  <div>
                    <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 href="http://wiki.ieeta.pt/wiki/index.php/OpenNebula#SetupComplete.cmd" target="_blank">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 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><br>
                                <br>
                                <div class="gmail_quote">On Wed, Jul 16,
                                  2014 at 1:57 PM, Mateusz Skała <span dir="ltr"><<a 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>-- <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></fieldset>
                    <br>
                  </div>
                </div>
                <div>
                  <pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a>
</pre>
                </div>
              </blockquote>
              <br>
            </div>
            <br>
            _______________________________________________<br>
            Users mailing list<br>
            <a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
            <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
            <br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <br>
        -- <br>
        <div dir="ltr">Thanks & Regards,
          <div>Sudeep Narayan Banerjee</div>
        </div>
      </div>
    </blockquote>
    <br>
    <pre cols="72">Lorenzo Faleschini
IT Manager @ Nord Est Systems srl
----------------------------------------
m: +39 335 6055225 | skype: falegalizeit
</pre>
  </div></div></div>

</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Thanks & Regards,<div>Sudeep Narayan Banerjee</div></div>
</div>