Hello, 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:
- Create an OpenNebula template with 2 DISKs: <<<< DISK = [ source = "/path/to/ubuntu-10.04.2-server-amd64.iso", type = "cdrom", target = "hdc" ] DISK = [ TYPE = fs, SIZE = 10240, FORMAT = ext3, SAVE = yes, TARGET = sda ] >>>> - Define the VNC attribute, and OS = [BOOT = "cdrom" ] - Launch the VM with OpenNebula - Connect to the running VM with VNC and install Ubuntu. (It comes in really handy here to have a DHCP server for the installation). - Manually partition: a single partition mounted on / without swap. - Install OpenSSH server during installation - Before shutting down the VM, execute "onevm saveas <VM_ID> <DISK_ID> <new_image_name>" DISK_ID should be '0'. The saved image should now boot without further trouble. Regarding Contextualization: - 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 - don't forget to install acpid package - follow OpenNebula's guide on contextualization for full contextualization [2] 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. [1] http://pastebin.com/hL3Z23kH [2] http://opennebula.org/documentation:rel2.2:cong Regards, Jaime 2011/4/18 Idafen Santana Pérez <idafe...@gmail.com> > Hi Jeff, did you solve your problem? I'm stuck at the same point. > > Regards > Idafen > > On Mon, Apr 4, 2011 at 4:52 AM, Jeff <jafe...@gmail.com> wrote: > >> Thanks you very much ,Carsten. You guys are so kind! I will give it a >> try. >> Best Regards, >> Jeff >> >> >> On 4/4/2011 10:43 AM, carsten.friedr...@csiro.au wrote: >> >> 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. >> >> >> >> 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. >> >> >> >> Carsten >> >> >> >> [image: cid:387141907@30042010-37FB] <http://www.csiro.au/> >> >> Carsten Friedrich >> >> Research Team leader >> >> ICT Centre, GPO Box 664,Canberra, ACT 2601 >> >> Phone: +61 2 6216 7019 >> >> Email: carsten.friedr...@csiro.au >> >> Web: http://www.csiro.au/org/ICT.html >> >> >> >> >> >> *From:* users-boun...@lists.opennebula.org [ >> mailto:users-boun...@lists.opennebula.org<users-boun...@lists.opennebula.org>] >> *On Behalf Of *Jeff Lee >> *Sent:* Monday, 4 April 2011 12:11 >> *To:* users@lists.opennebula.org >> *Subject:* [one-users] Does anyone have run ubuntu instance in opennebula >> successfully ? >> >> >> >> 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 ? >> Best Regards, >> Jeff >> >> >> >> _______________________________________________ >> Users mailing list >> Users@lists.opennebula.org >> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org >> >> > > _______________________________________________ > Users mailing list > Users@lists.opennebula.org > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org > > -- Jaime Melis, Cloud Technology Engineer/Researcher Major Contributor OpenNebula - The Open Source Toolkit for Cloud Computing www.OpenNebula.org | jme...@opennebula.org
_______________________________________________ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org