<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body 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>
thanks<br>
<br>
<br>
<br>
Le 02/12/11 11:44, Donal Lafferty a écrit :
<blockquote
cite="mid:81A73678E76EA642801C8F2E4823AD21C4F8E89F93@LONPMAILBOX01.citrite.net"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Angsana New";
panose-1:2 2 6 3 5 4 5 2 3 4;}
@font-face
{font-family:"Cordia New";
panose-1:2 11 3 4 2 2 2 2 2 4;}
@font-face
{font-family:"Cordia New";
panose-1:2 11 3 4 2 2 2 2 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
{font-family:"\@SimSun";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
color:black;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;
color:black;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";
color:black;}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<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.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">DL<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">
<o:p></o:p></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 class="moz-txt-link-freetext" href="mailto:michael.vandeborne@cetic.be">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 class="moz-txt-link-abbreviated" href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
<b>Subject:</b> Re: [Openstack] boot from ISO<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></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">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">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">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">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>
<o:p></o:p></p>
<pre>Michaël Van de Borne<o:p></o:p></pre>
<pre>R&D Engineer, SOA team, CETIC<o:p></o:p></pre>
<pre>Phone: +32 (0)71 49 07 45 Mobile: +32 (0)472 69 57 16, Skype: mikemowgli<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://www.cetic.be">www.cetic.be</a>, rue des Frères Wright, 29/3, B-6041 Charleroi<o:p></o:p></pre>
<p class="MsoNormal"><br>
Le 01/12/11 16:29, Anne Gentle a écrit : <o:p></o:p></p>
<pre>Thanks for the info! I've logged bug 898682 [1] to ensure it gets<o:p></o:p></pre>
<pre>added to the documentation. Based on this note, is this a solution for<o:p></o:p></pre>
<pre>Xen only?<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Is this the same as using a config drive? I had heard a config drive<o:p></o:p></pre>
<pre>works on KVM but not Xen.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre> If someone who's familiar with this area could work on the docs that<o:p></o:p></pre>
<pre>would be great.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Thanks,<o:p></o:p></pre>
<pre>Anne<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>[1] <a moz-do-not-send="true" href="https://bugs.launchpad.net/openstack-manuals/+bug/898682">https://bugs.launchpad.net/openstack-manuals/+bug/898682</a><o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>On Thu, Dec 1, 2011 at 9:14 AM, Michaël Van de Borne<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="mailto:michael.vandeborne@cetic.be"><michael.vandeborne@cetic.be></a> wrote:<o:p></o:p></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<o:p></o:p></pre>
<pre>SR.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>inside the find_iso_sr method (in nova/virt/xenapi/vm_utils.py), I found<o:p></o:p></pre>
<pre>that the ISO SR must have these settings:<o:p></o:p></pre>
<pre>content type: iso<o:p></o:p></pre>
<pre>other-config:i18n-key=local-storage-iso<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>As far as I know, this wasn't documented anywhere. Hope this can be useful<o:p></o:p></pre>
<pre>for people from the future.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>cheers,<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>michaël<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Michaël Van de Borne<o:p></o:p></pre>
<pre>R&D Engineer, SOA team, CETIC<o:p></o:p></pre>
<pre>Phone: +32 (0)71 49 07 45 Mobile: +32 (0)472 69 57 16, Skype: mikemowgli<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://www.cetic.be">www.cetic.be</a>, rue des Frères Wright, 29/3, B-6041 Charleroi<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Le 29/11/11 23:10, Donal Lafferty a écrit :<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Off the top of my head, I’d look to see if the compute node can see that ISO<o:p></o:p></pre>
<pre>SR.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>DL<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>From: Michaël Van de Borne [<a moz-do-not-send="true" href="mailto:michael.vandeborne@cetic.be">mailto:michael.vandeborne@cetic.be</a>]<o:p></o:p></pre>
<pre>Sent: 29 November 2011 18:15<o:p></o:p></pre>
<pre>To: Donal Lafferty; <a moz-do-not-send="true" href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><o:p></o:p></pre>
<pre>Subject: Re: [Openstack] boot from ISO<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Hi Donal, hi all,<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>I'm trying to test the Boot From ISO feature. So I've set a XenServer host<o:p></o:p></pre>
<pre>and installed a Ubuntu 11.10 PV DomU in it.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Then I used the following commands but, as you can see in the attached<o:p></o:p></pre>
<pre>nova-compute log excerpt, there was a problem.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>glance add name=fedora_iso disk_format=iso <<o:p></o:p></pre>
<pre>../Fedora-16-x86_64-Live-LXDE.iso<o:p></o:p></pre>
<pre>ID: 4<o:p></o:p></pre>
<pre>nova boot test_iso --flavor 2 --image 4<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>I can see the ISO images using "nova list" but not using "glance index".<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>The error seems to be: 'Cannot find SR of content-type ISO'. However, I've<o:p></o:p></pre>
<pre>set a NFS ISO Library using XenCenter, so that there is an actual ISO<o:p></o:p></pre>
<pre>content-typed SR. How to tell OpenStack to use this SR for the ISO images I<o:p></o:p></pre>
<pre>post using glance?<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Any clue? I feel I'm rather close to make it work.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>thanks,<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>michaël<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Michaël Van de Borne<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>R&D Engineer, SOA team, CETIC<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Phone: +32 (0)71 49 07 45 Mobile: +32 (0)472 69 57 16, Skype: mikemowgli<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><a moz-do-not-send="true" href="http://www.cetic.be">www.cetic.be</a>, rue des Frères Wright, 29/3, B-6041 Charleroi<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Le 22/11/11 00:18, Donal Lafferty a écrit :<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Hi Michaël,<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>“Boot from ISO” should be ISO image agnostic. The feature overcomes<o:p></o:p></pre>
<pre>restrictions placed on the distribution of modified Windows’ images.<o:p></o:p></pre>
<pre>People can use their ISO instead, but they may still need to use dedicated<o:p></o:p></pre>
<pre>hardware.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>You should have no problem with a Linux distribution.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>However, I wrote it for XenAPI, so we need someone to duplicate the work for<o:p></o:p></pre>
<pre>KVM and VMWare.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>DL<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>From: <a moz-do-not-send="true" href="mailto:openstack-bounces+donal.lafferty=citrix.com@lists.launchpad.net">openstack-bounces+donal.lafferty=citrix.com@lists.launchpad.net</a><o:p></o:p></pre>
<pre>[<a moz-do-not-send="true" href="mailto:openstack-bounces+donal.lafferty=citrix.com@lists.launchpad.net">mailto:openstack-bounces+donal.lafferty=citrix.com@lists.launchpad.net</a>] On<o:p></o:p></pre>
<pre>Behalf Of Michaël Van de Borne<o:p></o:p></pre>
<pre>Sent: 21 November 2011 17:28<o:p></o:p></pre>
<pre>To: <a moz-do-not-send="true" href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><o:p></o:p></pre>
<pre>Subject: Re: [Openstack] boot from ISO<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>up? anybody?<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Le 14/11/11 14:44, Michaël Van de Borne a écrit :<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Hi all,<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>I'm very interested in the "Boot From ISO" feature described here:<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://wiki.openstack.org/bootFromISO">http://wiki.openstack.org/bootFromISO</a><o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>In a few words, it's about the ability to boot a VM from the CDROM with an<o:p></o:p></pre>
<pre>ISO image attached. A blank hard disk being attached to install the OS files<o:p></o:p></pre>
<pre>in it.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>I've got some questions about this:<o:p></o:p></pre>
<pre>1. Is the feature available today using a standard Diablo install? I've seen<o:p></o:p></pre>
<pre>the code about this feature is stored under nova/tests and glance/tests.<o:p></o:p></pre>
<pre>Does this mean it isn't finished yet and could only be tested under specific<o:p></o:p></pre>
<pre>conditions? Which ones?<o:p></o:p></pre>
<pre>2. the spec tells about a Windows use case. Why just Windows? What should I<o:p></o:p></pre>
<pre>do to test with a Linux distribution?<o:p></o:p></pre>
<pre>3. I can see here that the Xen hypervisor only has been impacted by the<o:p></o:p></pre>
<pre>source code changes. Are KVM and VMWare planned to be supported in the<o:p></o:p></pre>
<pre>future? May I help/be helped to develop KVM and VMWare support for this<o:p></o:p></pre>
<pre>'Boot From Iso' feature?<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Any help appreaciated<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>thank you,<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>michaël<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>--<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Michaël Van de Borne<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>R&D Engineer, SOA team, CETIC<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Phone: +32 (0)71 49 07 45 Mobile: +32 (0)472 69 57 16, Skype: mikemowgli<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><a moz-do-not-send="true" href="http://www.cetic.be">www.cetic.be</a>, rue des Frères Wright, 29/3, B-6041 Charleroi<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>_______________________________________________<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Mailing list: <a moz-do-not-send="true" href="https://launchpad.net/%7Eopenstack">https://launchpad.net/~openstack</a><o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Post to : <a moz-do-not-send="true" href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Unsubscribe : <a moz-do-not-send="true" href="https://launchpad.net/%7Eopenstack">https://launchpad.net/~openstack</a><o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>More help : <a moz-do-not-send="true" href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Mailing list: <a moz-do-not-send="true" href="https://launchpad.net/%7Eopenstack">https://launchpad.net/~openstack</a><o:p></o:p></pre>
<pre>Post to : <a moz-do-not-send="true" href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><o:p></o:p></pre>
<pre>Unsubscribe : <a moz-do-not-send="true" href="https://launchpad.net/%7Eopenstack">https://launchpad.net/~openstack</a><o:p></o:p></pre>
<pre>More help : <a moz-do-not-send="true" href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><o:p></o:p></pre>
<pre><o:p> </o:p></pre>
</blockquote>
<pre><o:p> </o:p></pre>
</div>
</div>
</blockquote>
</body>
</html>