On Thu, Mar 29, 2012 at 3:30 PM, Michaël Van de Borne <span dir="ltr"><<a 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.<u></u><u></u></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">DL<u></u><u></u></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">
            <u></u><u></u></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 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 href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
                  <b>Subject:</b> Re: [Openstack] boot from ISO<u></u><u></u></span></p>
            </div>
          </div>
          <p class="MsoNormal"><u></u> <u></u></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 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 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 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 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>
            <u></u><u></u></p>
          <pre>Michaël Van de Borne<u></u><u></u></pre>
          <pre>R&D Engineer, SOA team, CETIC<u></u><u></u></pre>
          <pre>Phone: <a href="tel:%2B32%20%280%2971%2049%2007%2045" value="+3271490745" target="_blank">+32 (0)71 49 07 45</a> Mobile: <a href="tel:%2B32%20%280%29472%2069%2057%2016" value="+32472695716" target="_blank">+32 (0)472 69 57 16</a>, Skype: mikemowgli<u></u><u></u></pre>




          <pre><a href="http://www.cetic.be" target="_blank">www.cetic.be</a>, rue des Frères Wright, 29/3, B-6041 Charleroi<u></u><u></u></pre>
          <p class="MsoNormal"><br>
            Le 01/12/11 16:29, Anne Gentle a écrit : <u></u><u></u></p>
          <pre>Thanks for the info! I've logged bug 898682 [1] to ensure it gets<u></u><u></u></pre>
          <pre>added to the documentation. Based on this note, is this a solution for<u></u><u></u></pre>
          <pre>Xen only?<u></u><u></u></pre>
          <pre><u></u> <u></u></pre>
          <pre>Is this the same as using a config drive? I had heard a config drive<u></u><u></u></pre>
          <pre>works on KVM but not Xen.<u></u><u></u></pre>
          <pre><u></u> <u></u></pre>
          <pre> If someone who's familiar with this area could work on the docs that<u></u><u></u></pre>
          <pre>would be great.<u></u><u></u></pre>
          <pre><u></u> <u></u></pre>
          <pre>Thanks,<u></u><u></u></pre>
          <pre>Anne<u></u><u></u></pre>
          <pre><u></u> <u></u></pre>
          <pre>[1] <a href="https://bugs.launchpad.net/openstack-manuals/+bug/898682" target="_blank">https://bugs.launchpad.net/openstack-manuals/+bug/898682</a><u></u><u></u></pre>
          <pre><u></u> <u></u></pre>
          <pre>On Thu, Dec 1, 2011 at 9:14 AM, Michaël Van de Borne<u></u><u></u></pre>
          <pre><a href="mailto:michael.vandeborne@cetic.be" target="_blank"><michael.vandeborne@cetic.be></a> wrote:<u></u><u></u></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<u></u><u></u></pre>
            <pre>SR.<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>inside the find_iso_sr method (in nova/virt/xenapi/vm_utils.py), I found<u></u><u></u></pre>
            <pre>that the ISO SR must have these settings:<u></u><u></u></pre>
            <pre>content type: iso<u></u><u></u></pre>
            <pre>other-config:i18n-key=local-storage-iso<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>As far as I know, this wasn't documented anywhere. Hope this can be useful<u></u><u></u></pre>
            <pre>for people from the future.<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>cheers,<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>michaël<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>Michaël Van de Borne<u></u><u></u></pre>
            <pre>R&D Engineer, SOA team, CETIC<u></u><u></u></pre>
            <pre>Phone: <a href="tel:%2B32%20%280%2971%2049%2007%2045" value="+3271490745" target="_blank">+32 (0)71 49 07 45</a> Mobile: <a href="tel:%2B32%20%280%29472%2069%2057%2016" value="+32472695716" target="_blank">+32 (0)472 69 57 16</a>, Skype: mikemowgli<u></u><u></u></pre>




            <pre><a href="http://www.cetic.be" target="_blank">www.cetic.be</a>, rue des Frères Wright, 29/3, B-6041 Charleroi<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>Le 29/11/11 23:10, Donal Lafferty a écrit :<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>Off the top of my head, I’d look to see if the compute node can see that ISO<u></u><u></u></pre>
            <pre>SR.<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>DL<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>From: Michaël Van de Borne [<a href="mailto:michael.vandeborne@cetic.be" target="_blank">mailto:michael.vandeborne@cetic.be</a>]<u></u><u></u></pre>
            <pre>Sent: 29 November 2011 18:15<u></u><u></u></pre>
            <pre>To: Donal Lafferty; <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><u></u><u></u></pre>
            <pre>Subject: Re: [Openstack] boot from ISO<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>Hi Donal, hi all,<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>I'm trying to test the Boot From ISO feature. So I've set a XenServer host<u></u><u></u></pre>
            <pre>and installed a Ubuntu 11.10 PV DomU in it.<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>Then I used the following commands but, as you can see in the attached<u></u><u></u></pre>
            <pre>nova-compute log excerpt, there was a problem.<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>glance add name=fedora_iso disk_format=iso <<u></u><u></u></pre>
            <pre>../Fedora-16-x86_64-Live-LXDE.iso<u></u><u></u></pre>
            <pre>ID: 4<u></u><u></u></pre>
            <pre>nova boot test_iso --flavor 2 --image 4<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>I can see the ISO images using "nova list" but not using "glance index".<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>The error seems to be: 'Cannot find SR of content-type ISO'. However, I've<u></u><u></u></pre>
            <pre>set a NFS ISO Library using XenCenter, so that there is an actual ISO<u></u><u></u></pre>
            <pre>content-typed SR. How to tell OpenStack to use this SR for the ISO images I<u></u><u></u></pre>
            <pre>post using glance?<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>Any clue? I feel I'm rather close to make it work.<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>thanks,<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>michaël<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>Michaël Van de Borne<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>R&D Engineer, SOA team, CETIC<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>Phone: <a href="tel:%2B32%20%280%2971%2049%2007%2045" value="+3271490745" target="_blank">+32 (0)71 49 07 45</a> Mobile: <a href="tel:%2B32%20%280%29472%2069%2057%2016" value="+32472695716" target="_blank">+32 (0)472 69 57 16</a>, Skype: mikemowgli<u></u><u></u></pre>




            <pre><u></u> <u></u></pre>
            <pre><a href="http://www.cetic.be" target="_blank">www.cetic.be</a>, rue des Frères Wright, 29/3, B-6041 Charleroi<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>Le 22/11/11 00:18, Donal Lafferty a écrit :<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>Hi Michaël,<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>“Boot from ISO” should be ISO image agnostic.  The feature overcomes<u></u><u></u></pre>
            <pre>restrictions placed on the  distribution of modified Windows’ images.<u></u><u></u></pre>
            <pre>People can use their ISO instead, but they may still need to use dedicated<u></u><u></u></pre>
            <pre>hardware.<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>You should have no problem with a Linux distribution.<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>However, I wrote it for XenAPI, so we need someone to duplicate the work for<u></u><u></u></pre>
            <pre>KVM and VMWare.<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>DL<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>From: <a href="mailto:openstack-bounces+donal.lafferty=citrix.com@lists.launchpad.net" target="_blank">openstack-bounces+donal.lafferty=citrix.com@lists.launchpad.net</a><u></u><u></u></pre>
            <pre>[<a 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<u></u><u></u></pre>
            <pre>Behalf Of Michaël Van de Borne<u></u><u></u></pre>
            <pre>Sent: 21 November 2011 17:28<u></u><u></u></pre>
            <pre>To: <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><u></u><u></u></pre>
            <pre>Subject: Re: [Openstack] boot from ISO<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>up? anybody?<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>Le 14/11/11 14:44, Michaël Van de Borne a écrit :<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>Hi all,<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>I'm very interested in the "Boot From ISO" feature described here:<u></u><u></u></pre>
            <pre><a href="http://wiki.openstack.org/bootFromISO" target="_blank">http://wiki.openstack.org/bootFromISO</a><u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>In a few words, it's about the ability to boot a VM from the CDROM with an<u></u><u></u></pre>
            <pre>ISO image attached. A blank hard disk being attached to install the OS files<u></u><u></u></pre>
            <pre>in it.<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>I've got some questions about this:<u></u><u></u></pre>
            <pre>1. Is the feature available today using a standard Diablo install? I've seen<u></u><u></u></pre>
            <pre>the code about this feature is stored under nova/tests and glance/tests.<u></u><u></u></pre>
            <pre>Does this mean it isn't finished yet and could only be tested under specific<u></u><u></u></pre>
            <pre>conditions? Which ones?<u></u><u></u></pre>
            <pre>2. the spec tells about a Windows use case. Why just Windows? What should I<u></u><u></u></pre>
            <pre>do to test with a Linux distribution?<u></u><u></u></pre>
            <pre>3. I can see here that the Xen hypervisor only has been impacted by the<u></u><u></u></pre>
            <pre>source code changes. Are KVM and VMWare planned to be supported in the<u></u><u></u></pre>
            <pre>future? May I help/be helped to develop KVM and VMWare support for this<u></u><u></u></pre>
            <pre>'Boot From Iso' feature?<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>Any help appreaciated<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>thank you,<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>michaël<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>--<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>Michaël Van de Borne<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>R&D Engineer, SOA team, CETIC<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>Phone: <a href="tel:%2B32%20%280%2971%2049%2007%2045" value="+3271490745" target="_blank">+32 (0)71 49 07 45</a> Mobile: <a href="tel:%2B32%20%280%29472%2069%2057%2016" value="+32472695716" target="_blank">+32 (0)472 69 57 16</a>, Skype: mikemowgli<u></u><u></u></pre>




            <pre><u></u> <u></u></pre>
            <pre><a href="http://www.cetic.be" target="_blank">www.cetic.be</a>, rue des Frères Wright, 29/3, B-6041 Charleroi<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>_______________________________________________<u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>Mailing list: <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>Unsubscribe : <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre><u></u> <u></u></pre>
            <pre>_______________________________________________<u></u><u></u></pre>
            <pre>Mailing list: <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><u></u><u></u></pre>
            <pre>Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><u></u><u></u></pre>
            <pre>Unsubscribe : <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><u></u><u></u></pre>
            <pre>More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><u></u><u></u></pre>
            <pre><u></u> <u></u></pre>
          </blockquote>
          <pre><u></u> <u></u></pre>
        </div>
      </div>
    </blockquote>
  </div>

<br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br>