<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Does the ISO you prepared contain the XenServer tools? I wonder
    whether ejecting the CD from your kickstart tool would do the job.<br>
    <br>
    --> no. The ISO is just a netinstall.iso from fedora 16 that I
    bundled myself, and which includes a kickstart file.<br>
    <br>
    I'll see if kickstart can manage to eject the CD.<br>
    <br>
    Thanks,<br>
    <br>
    michaël<br>
    <br>
    <pre class="moz-signature" cols="72">Michaël Van de Borne
R&D Engineer, SOA team, CETIC
Phone: +32 (0)71 49 07 45 Mobile: +32 (0)472 69 57 16, Skype: mikemowgli
<a class="moz-txt-link-abbreviated" href="http://www.cetic.be">www.cetic.be</a>, rue des Frères Wright, 29/3, B-6041 Charleroi
</pre>
    <br>
    Le 30/03/12 18:27, Armando Migliaccio a écrit :
    <blockquote
cite="mid:CAFRtK99kOrkFwh_jhnq_fn_OSjq+N7gBdOzv6C252VoMM45tgA@mail.gmail.com"
      type="cite"> On Thu, Mar 29, 2012 at 3:30 PM, Michaël Van de Borne
      <span dir="ltr"><<a moz-do-not-send="true"
          href="mailto:michael.vandeborne@cetic.be" target="_blank">michael.vandeborne@cetic.be</a>></span>
      wrote:<br>
      <div class="gmail_quote">
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div bgcolor="#FFFFFF" text="#000000"> Hi Donal,<br>
            <br>
            Still about this good old 'Boot From ISO' feature inside the
            XenAPI: I packaged a custom netinstall.iso image which boots
            and installs the OS with kickstart. So that everything is
            custom and in 5minutes, I've got a complete running brand
            new machine freshly installed that has booted from the
            CDROM. But then at the end of install process, I ask
            kickstart to reboot the machine so that I can enjoy the new
            install.<br>
            <br>
            But the ISO image remains attached and the VM reboots again
            on the ISO.<br>
            <br>
            So, my question: Is it possible to automatically (using the
            API) empty CD drive every time a VM that's been booted from
            ISO reboots? If not, is it possible to change boot order
            when rebooting?<br>
            <br>
          </div>
        </blockquote>
        <div> </div>
        <div>To the best of my knowledge OSAPI does not have a
          'eject-media-from-mv' call.</div>
        <div> </div>
        <div>Does the ISO you prepared contain the XenServer tools? I
          wonder whether ejecting the CD from your kickstart tool would
          do the job.</div>
        <div> </div>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div bgcolor="#FFFFFF" text="#000000"> thanks<br>
            <br>
            <br>
            <br>
            Le 02/12/11 11:44, Donal Lafferty a écrit :
            <blockquote type="cite">
              <div>
                <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">The

                    background is that having provided a sample
                    implementation, developers targeting libvirt would
                    offer the same functionality.</span></p>
                <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p>
                <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">DL</span></p>
                <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p>
                <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">
                  </span></p>
                <div style="border:none;border-left:solid blue
                  1.5pt;padding:0cm 0cm 0cm 4.0pt">
                  <div>
                    <div style="border:none;border-top:solid #b5c4df
                      1.0pt;padding:3.0pt 0cm 0cm 0cm">
                      <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">
                          Michaël Van de Borne [<a
                            moz-do-not-send="true"
                            href="mailto:michael.vandeborne@cetic.be"
                            target="_blank">mailto:michael.vandeborne@cetic.be</a>]
                          <br>
                          <b>Sent:</b> 01 December 2011 16:34<br>
                          <b>To:</b> Anne Gentle<br>
                          <b>Cc:</b> Donal Lafferty; <a
                            moz-do-not-send="true"
                            href="mailto:openstack@lists.launchpad.net"
                            target="_blank">openstack@lists.launchpad.net</a><br>
                          <b>Subject:</b> Re: [Openstack] boot from ISO</span></p>
                    </div>
                  </div>
                  <p class="MsoNormal"> </p>
                  <p class="MsoNormal">That's right, it's a Xen<b>Server</b>
                    only feature. I insist on XenServer because it's
                    been implemented only inside the xenapi.<br>
                    If you wish to manage VMs using KVM or Xen
                    hypervisor (the community hypervisor packaged in
                    Linux distributions), this will utilize the libvirt
                    API, and not XenAPI.<br>
                    <br>
                    So, one needs to use XenServer (btw, openstack works
                    great with XenServer 6.0 even if <a
                      moz-do-not-send="true"
href="http://docs.openstack.org/diablo/openstack-compute/admin/content/hypervisors.html"
                      target="_blank">documentation claims that the
                      supported release is 5.5</a>) in order for the
                    XenAPI to be used.<br>
                    <br>
                    I made use of this <a moz-do-not-send="true"
                      href="http://wiki.openstack.org/XenServerDevelopment"
                      target="_blank">documentation</a> in order to set
                    up the environement. What is missing is that, in
                    order to activate the "<a moz-do-not-send="true"
                      href="http://wiki.openstack.org/bootFromISO"
                      target="_blank">Boot From ISO</a>" feature, the SR
                    elements on XenServer host must be configured that
                    way:<br>
                    <br>
                    1. create an ISO-typed SR, such as an NFS ISO
                    library, for instance. For this, using XenCenter is
                    pretty easy. You need to export an NFS volume from a
                    remote NFS server. Make sure it is exported in RW
                    mode.<br>
                    2. on the host, find the uuid of this ISO SR:<br>
                    # xe host-list<br>
                    write the uuid down<br>
                    3. # xe sr-list content-type=iso<br>
                    locate the uuid of the NFS ISO library<br>
                    4. # xe sr-param-set uuid=<iso sr uuid>
                    other-config:i18n-key=local-storage-iso<br>
                    Even if an NFS mount point isn't local storage, you
                    must specify "local-storage-iso".<br>
                    5. # xe pbd-list sr-uuid=<iso sr uuid><br>
                    make sure the host-uuid from "xe pbd-list" equals
                    the uuid of the host you found at step 2<br>
                    <br>
                    then apply the <a moz-do-not-send="true"
href="http://wiki.openstack.org/XenServerDevelopment#Configure_SR_storage"
                      target="_blank">rest of the tutorial</a> and
                    publish an ISO image this way:<br>
                    glance add name=fedora_iso disk_format=iso
                    container_format=bare  <
                    Fedora-16-x86_64-netinst.iso<br>
                    nova boot test_iso --flavor <flavor ID>
                    --image <image ID><br>
                    <br>
                    I've posted this in the bug you filed, Anne.<br>
                    <br>
                    By the way, I'm going to work on porting this
                    feature on libvirt API and VMWare API (if nobody
                    works on it yet).<br>
                    <br>
                    Is the config drive yet available for Diablo??<br>
                    <br>
                    cheers,<br>
                    <br>
                    michaël<br>
                    <br>
                    <br>
                  </p>
                  <pre>Michaël Van de Borne</pre>
                  <pre>R&D Engineer, SOA team, CETIC</pre>
                  <pre>Phone: <a moz-do-not-send="true" href="tel:%2B32%20%280%2971%2049%2007%2045" value="+3271490745" target="_blank">+32 (0)71 49 07 45</a> Mobile: <a moz-do-not-send="true" href="tel:%2B32%20%280%29472%2069%2057%2016" value="+32472695716" target="_blank">+32 (0)472 69 57 16</a>, Skype: mikemowgli</pre>
                  <pre><a moz-do-not-send="true" href="http://www.cetic.be" target="_blank">www.cetic.be</a>, rue des Frères Wright, 29/3, B-6041 Charleroi</pre>
                  <p class="MsoNormal"><br>
                    Le 01/12/11 16:29, Anne Gentle a écrit : </p>
                  <pre>Thanks for the info! I've logged bug 898682 [1] to ensure it gets</pre>
                  <pre>added to the documentation. Based on this note, is this a solution for</pre>
                  <pre>Xen only?</pre>
                  <pre> </pre>
                  <pre>Is this the same as using a config drive? I had heard a config drive</pre>
                  <pre>works on KVM but not Xen.</pre>
                  <pre> </pre>
                  <pre> If someone who's familiar with this area could work on the docs that</pre>
                  <pre>would be great.</pre>
                  <pre> </pre>
                  <pre>Thanks,</pre>
                  <pre>Anne</pre>
                  <pre> </pre>
                  <pre>[1] <a moz-do-not-send="true" href="https://bugs.launchpad.net/openstack-manuals/+bug/898682" target="_blank">https://bugs.launchpad.net/openstack-manuals/+bug/898682</a></pre>
                  <pre> </pre>
                  <pre>On Thu, Dec 1, 2011 at 9:14 AM, Michaël Van de Borne</pre>
                  <pre><a moz-do-not-send="true" href="mailto:michael.vandeborne@cetic.be" target="_blank"><michael.vandeborne@cetic.be></a> wrote:</pre>
                  <blockquote
                    style="margin-top:5.0pt;margin-bottom:5.0pt">
                    <pre>It finally works. The problem was the flag checks while looking for the ISO</pre>
                    <pre>SR.</pre>
                    <pre> </pre>
                    <pre>inside the find_iso_sr method (in nova/virt/xenapi/vm_utils.py), I found</pre>
                    <pre>that the ISO SR must have these settings:</pre>
                    <pre>content type: iso</pre>
                    <pre>other-config:i18n-key=local-storage-iso</pre>
                    <pre> </pre>
                    <pre>As far as I know, this wasn't documented anywhere. Hope this can be useful</pre>
                    <pre>for people from the future.</pre>
                    <pre> </pre>
                    <pre>cheers,</pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre>michaël</pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre>Michaël Van de Borne</pre>
                    <pre>R&D Engineer, SOA team, CETIC</pre>
                    <pre>Phone: <a moz-do-not-send="true" href="tel:%2B32%20%280%2971%2049%2007%2045" value="+3271490745" target="_blank">+32 (0)71 49 07 45</a> Mobile: <a moz-do-not-send="true" href="tel:%2B32%20%280%29472%2069%2057%2016" value="+32472695716" target="_blank">+32 (0)472 69 57 16</a>, Skype: mikemowgli</pre>
                    <pre><a moz-do-not-send="true" href="http://www.cetic.be" target="_blank">www.cetic.be</a>, rue des Frères Wright, 29/3, B-6041 Charleroi</pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre>Le 29/11/11 23:10, Donal Lafferty a écrit :</pre>
                    <pre> </pre>
                    <pre>Off the top of my head, I’d look to see if the compute node can see that ISO</pre>
                    <pre>SR.</pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre>DL</pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre>From: Michaël Van de Borne [<a moz-do-not-send="true" href="mailto:michael.vandeborne@cetic.be" target="_blank">mailto:michael.vandeborne@cetic.be</a>]</pre>
                    <pre>Sent: 29 November 2011 18:15</pre>
                    <pre>To: Donal Lafferty; <a moz-do-not-send="true" href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a></pre>
                    <pre>Subject: Re: [Openstack] boot from ISO</pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre>Hi Donal, hi all,</pre>
                    <pre> </pre>
                    <pre>I'm trying to test the Boot From ISO feature. So I've set a XenServer host</pre>
                    <pre>and installed a Ubuntu 11.10 PV DomU in it.</pre>
                    <pre> </pre>
                    <pre>Then I used the following commands but, as you can see in the attached</pre>
                    <pre>nova-compute log excerpt, there was a problem.</pre>
                    <pre> </pre>
                    <pre>glance add name=fedora_iso disk_format=iso <</pre>
                    <pre>../Fedora-16-x86_64-Live-LXDE.iso</pre>
                    <pre>ID: 4</pre>
                    <pre>nova boot test_iso --flavor 2 --image 4</pre>
                    <pre> </pre>
                    <pre>I can see the ISO images using "nova list" but not using "glance index".</pre>
                    <pre> </pre>
                    <pre>The error seems to be: 'Cannot find SR of content-type ISO'. However, I've</pre>
                    <pre>set a NFS ISO Library using XenCenter, so that there is an actual ISO</pre>
                    <pre>content-typed SR. How to tell OpenStack to use this SR for the ISO images I</pre>
                    <pre>post using glance?</pre>
                    <pre> </pre>
                    <pre>Any clue? I feel I'm rather close to make it work.</pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre>thanks,</pre>
                    <pre> </pre>
                    <pre>michaël</pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre>Michaël Van de Borne</pre>
                    <pre> </pre>
                    <pre>R&D Engineer, SOA team, CETIC</pre>
                    <pre> </pre>
                    <pre>Phone: <a moz-do-not-send="true" href="tel:%2B32%20%280%2971%2049%2007%2045" value="+3271490745" target="_blank">+32 (0)71 49 07 45</a> Mobile: <a moz-do-not-send="true" href="tel:%2B32%20%280%29472%2069%2057%2016" value="+32472695716" target="_blank">+32 (0)472 69 57 16</a>, Skype: mikemowgli</pre>
                    <pre> </pre>
                    <pre><a moz-do-not-send="true" href="http://www.cetic.be" target="_blank">www.cetic.be</a>, rue des Frères Wright, 29/3, B-6041 Charleroi</pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre>Le 22/11/11 00:18, Donal Lafferty a écrit :</pre>
                    <pre> </pre>
                    <pre>Hi Michaël,</pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre>“Boot from ISO” should be ISO image agnostic.  The feature overcomes</pre>
                    <pre>restrictions placed on the  distribution of modified Windows’ images.</pre>
                    <pre>People can use their ISO instead, but they may still need to use dedicated</pre>
                    <pre>hardware.</pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre>You should have no problem with a Linux distribution.</pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre>However, I wrote it for XenAPI, so we need someone to duplicate the work for</pre>
                    <pre>KVM and VMWare.</pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre>DL</pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre>From: <a moz-do-not-send="true" href="mailto:openstack-bounces+donal.lafferty=citrix.com@lists.launchpad.net" target="_blank">openstack-bounces+donal.lafferty=citrix.com@lists.launchpad.net</a></pre>
                    <pre>[<a moz-do-not-send="true" href="mailto:openstack-bounces+donal.lafferty=citrix.com@lists.launchpad.net" target="_blank">mailto:openstack-bounces+donal.lafferty=citrix.com@lists.launchpad.net</a>] On</pre>
                    <pre>Behalf Of Michaël Van de Borne</pre>
                    <pre>Sent: 21 November 2011 17:28</pre>
                    <pre>To: <a moz-do-not-send="true" href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a></pre>
                    <pre>Subject: Re: [Openstack] boot from ISO</pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre>up? anybody?</pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre>Le 14/11/11 14:44, Michaël Van de Borne a écrit :</pre>
                    <pre> </pre>
                    <pre>Hi all,</pre>
                    <pre> </pre>
                    <pre>I'm very interested in the "Boot From ISO" feature described here:</pre>
                    <pre><a moz-do-not-send="true" href="http://wiki.openstack.org/bootFromISO" target="_blank">http://wiki.openstack.org/bootFromISO</a></pre>
                    <pre> </pre>
                    <pre>In a few words, it's about the ability to boot a VM from the CDROM with an</pre>
                    <pre>ISO image attached. A blank hard disk being attached to install the OS files</pre>
                    <pre>in it.</pre>
                    <pre> </pre>
                    <pre>I've got some questions about this:</pre>
                    <pre>1. Is the feature available today using a standard Diablo install? I've seen</pre>
                    <pre>the code about this feature is stored under nova/tests and glance/tests.</pre>
                    <pre>Does this mean it isn't finished yet and could only be tested under specific</pre>
                    <pre>conditions? Which ones?</pre>
                    <pre>2. the spec tells about a Windows use case. Why just Windows? What should I</pre>
                    <pre>do to test with a Linux distribution?</pre>
                    <pre>3. I can see here that the Xen hypervisor only has been impacted by the</pre>
                    <pre>source code changes. Are KVM and VMWare planned to be supported in the</pre>
                    <pre>future? May I help/be helped to develop KVM and VMWare support for this</pre>
                    <pre>'Boot From Iso' feature?</pre>
                    <pre> </pre>
                    <pre>Any help appreaciated</pre>
                    <pre> </pre>
                    <pre>thank you,</pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre>michaël</pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre>--</pre>
                    <pre> </pre>
                    <pre>Michaël Van de Borne</pre>
                    <pre> </pre>
                    <pre>R&D Engineer, SOA team, CETIC</pre>
                    <pre> </pre>
                    <pre>Phone: <a moz-do-not-send="true" href="tel:%2B32%20%280%2971%2049%2007%2045" value="+3271490745" target="_blank">+32 (0)71 49 07 45</a> Mobile: <a moz-do-not-send="true" href="tel:%2B32%20%280%29472%2069%2057%2016" value="+32472695716" target="_blank">+32 (0)472 69 57 16</a>, Skype: mikemowgli</pre>
                    <pre> </pre>
                    <pre><a moz-do-not-send="true" href="http://www.cetic.be" target="_blank">www.cetic.be</a>, rue des Frères Wright, 29/3, B-6041 Charleroi</pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre>_______________________________________________</pre>
                    <pre> </pre>
                    <pre>Mailing list: <a moz-do-not-send="true" href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a></pre>
                    <pre> </pre>
                    <pre>Post to     : <a moz-do-not-send="true" href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a></pre>
                    <pre> </pre>
                    <pre>Unsubscribe : <a moz-do-not-send="true" href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a></pre>
                    <pre> </pre>
                    <pre>More help   : <a moz-do-not-send="true" href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a></pre>
                    <pre> </pre>
                    <pre> </pre>
                    <pre>_______________________________________________</pre>
                    <pre>Mailing list: <a moz-do-not-send="true" href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a></pre>
                    <pre>Post to     : <a moz-do-not-send="true" href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a></pre>
                    <pre>Unsubscribe : <a moz-do-not-send="true" href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a></pre>
                    <pre>More help   : <a moz-do-not-send="true" href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a></pre>
                    <pre> </pre>
                  </blockquote>
                  <pre> </pre>
                </div>
              </div>
            </blockquote>
          </div>
          <br>
          _______________________________________________<br>
          Mailing list: <a moz-do-not-send="true"
            href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>
          Post to     : <a moz-do-not-send="true"
            href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
          Unsubscribe : <a moz-do-not-send="true"
            href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>
          More help   : <a moz-do-not-send="true"
            href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
          <br>
        </blockquote>
      </div>
      <br>
    </blockquote>
  </body>
</html>