<div>Hello,</div><div><br></div><div>Indeed the classic approach of installing manually an Ubuntu 10.04 VM under KVM and launching it with OpenNebula is a bit tricky since it has problems booting up. We have used and alternative method to prepare VMs which works perfectly with Ubuntu 10.04:</div>
<div><br></div><div>- Create an OpenNebula template with 2 DISKs:</div><div><<<<</div><div><div>DISK = [</div><div> source = "/path/to/ubuntu-10.04.2-server-amd64.iso",</div><div> type = "cdrom",</div>
<div> target = "hdc"</div><div>]</div><div><br></div><div>DISK = [ TYPE = fs,</div><div> SIZE = 10240,</div><div> FORMAT = ext3,</div><div> SAVE = yes,</div><div> TARGET = sda ]</div>
<div>>>>></div><div>- Define the VNC attribute, and OS = [BOOT = "cdrom" ]</div><div>- Launch the VM with OpenNebula</div><div>- Connect to the running VM with VNC and install Ubuntu. (It comes in really handy here to have a DHCP server for the installation).</div>
<div>- Manually partition: a single partition mounted on / without swap.</div><div>- Install OpenSSH server during installation</div><div>- Before shutting down the VM, execute "onevm saveas <VM_ID> <DISK_ID> <new_image_name>" DISK_ID should be '0'.</div>
<div><br></div><div>The saved image should now boot without further trouble.</div><div><br></div><div>Regarding Contextualization:</div><div>- for net-contexutalization: a very easy and straight-forward way to contextualize is to disable automatic configuration of eth0 in /etc/network/interfaces and adding this [1] script to /etc/rc.local</div>
<div>- don't forget to install acpid package</div><div>- follow OpenNebula's guide on contextualization for full contextualization [2]</div><div><br></div><div>We are preparing a blog post explaining this more thoroughly and we will link to a contextualized Ubuntu 10.04 prepared by us. It should be ready by next week.</div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br></div><div>[1] <a href="http://pastebin.com/hL3Z23kH">http://pastebin.com/hL3Z23kH</a></div><div>[2] <a href="http://opennebula.org/documentation:rel2.2:cong">http://opennebula.org/documentation:rel2.2:cong</a></div>
<div><br></div><div>Regards,<br>Jaime</div><div><br></div><div class="gmail_quote">2011/4/18 Idafen Santana Pérez <span dir="ltr"><<a href="mailto:idafensp@gmail.com">idafensp@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Jeff, did you solve your problem? I'm stuck at the same point.<div><br></div><div>Regards</div><div>Idafen<br><br><div class="gmail_quote"><div><div></div><div class="h5">On Mon, Apr 4, 2011 at 4:52 AM, Jeff <span dir="ltr"><<a href="mailto:jafelee@gmail.com" target="_blank">jafelee@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
<div bgcolor="#ffffff" text="#000000">
Thanks you very much ,Carsten. You guys are so kind! I will give it
a try.<br>
Best Regards,<br><font color="#888888">
Jeff</font><div><div></div><div><br>
<br>
On 4/4/2011 10:43 AM, <a href="mailto:Carsten.Friedrich@csiro.au" target="_blank">Carsten.Friedrich@csiro.au</a> wrote:
<blockquote type="cite">
<div>
<p class="MsoNormal"><span style="font-size:11pt;color:rgb(31, 73, 125)">Try enabling the VNC option. This might give you
some indication about what went wrong. Ssh or ping will only
work if the VM successfully booted and successfully
configured the network. VNC is available from the very start
of the boot process.</span></p>
<p class="MsoNormal"><span style="font-size:11pt;color:rgb(31, 73, 125)"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;color:rgb(31, 73, 125)">If this fails, I can give you a Ubuntu 10.4 image
and template that works here. It requires KVM as hypervisor
and an existing DHCP server to obtain an IP address.</span></p>
<p class="MsoNormal"><span style="font-size:11pt;color:rgb(31, 73, 125)"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;color:rgb(31, 73, 125)">Carsten</span></p>
<p class="MsoNormal"><span style="font-size:11pt;color:rgb(31, 73, 125)"> </span></p>
<table style="margin-left:0.5pt;border-collapse:collapse" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="width:58.9pt;padding:0cm 0.5pt" valign="top" width="79">
<p class="MsoNormal" style="margin-right:0cm;margin-bottom:5pt;margin-left:0cm"><a href="http://www.csiro.au/" target="_blank"><span style="font-size:11pt;color:red;text-decoration:none"><img alt="cid:387141907@30042010-37FB" border="0" height="89" width="69"></span></a><span style="font-size:10pt;color:red"></span></p>
</td>
<td style="width:236.55pt;padding:0cm 0.5pt" width="315">
<p class="MsoNormal"><span style="font-size:10pt;color:rgb(84, 141, 212)">Carsten Friedrich</span><span style="font-size:10pt;color:rgb(84, 141, 212)"></span></p>
<p class="MsoNormal"><span style="font-size:10pt;color:rgb(84, 141, 212)">Research Team leader</span></p>
<p class="MsoNormal"><span style="font-size:10pt;color:rgb(84, 141, 212)">ICT Centre, GPO Box
664,Canberra, ACT 2601</span></p>
<p class="MsoNormal"><span style="font-size:10pt;color:rgb(84, 141, 212)" lang="FR">Phone: <a href="tel:%2B61%202%206216%207019" value="+61262167019" target="_blank">+61 2 6216 7019</a>
</span></p>
<p class="MsoNormal"><span style="font-size:10pt;color:rgb(84, 141, 212)" lang="FR">Email: <a href="mailto:Carsten.Friedrich@csiro.au" target="_blank"><span style="font-family:"Times New Roman","serif";color:blue">Carsten.Friedrich@csiro.au</span></a></span></p>
<p class="MsoNormal"><span style="font-size:10pt;color:rgb(84, 141, 212)">Web: <a href="http://www.csiro.au/org/ICT.html" target="_blank"><span style="font-family:"Times New Roman","serif";color:blue">http://www.csiro.au/org/ICT.html</span></a></span><span style="font-size:10pt;color:blue" lang="FR"></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="font-size:11pt;color:rgb(31, 73, 125)"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;color:rgb(31, 73, 125)"> </span></p>
<div style="border-right:medium none;border-width:1pt medium medium;border-style:solid none none;border-color:rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color;padding:3pt 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10pt" lang="EN-US">From:</span></b><span style="font-size:10pt" lang="EN-US">
<a href="mailto:users-bounces@lists.opennebula.org" target="_blank">users-bounces@lists.opennebula.org</a>
[<a href="mailto:users-bounces@lists.opennebula.org" target="_blank">mailto:users-bounces@lists.opennebula.org</a>] <b>On Behalf
Of </b>Jeff Lee<br>
<b>Sent:</b> Monday, 4 April 2011 12:11<br>
<b>To:</b> <a href="mailto:users@lists.opennebula.org" target="_blank">users@lists.opennebula.org</a><br>
<b>Subject:</b> [one-users] Does anyone have run ubuntu
instance in opennebula successfully ?</span></p>
</div>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Hi, all.I am stuck in this problem for
several days.I can get the instance running, however, I just
can't ssh or even ping to it. I try to fix this issues by
Google.However, I have failed to find any tutorial about how
to create a ubuntu image from scratch for opennebula. Ubuntu
website provides images for Eucalyptus and EC2. So I am
wondering ,is there any website providing such kind of images
?<br>
Best Regards, <br>
Jeff</p>
</div>
</blockquote>
<br>
</div></div></div>
<br></div></div>_______________________________________________<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></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">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></div><br clear="all"><br>-- <br>Jaime Melis, Cloud Technology Engineer/Researcher<br>Major Contributor<br>OpenNebula - The Open Source Toolkit for Cloud Computing<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a><br>