Hi Amit,<div><br></div><div>take a look at this [1] post, it might help you out with running Ubuntu 10.10. Although I have described the process for Ubuntu 10.04 it should work with Ubuntu 10.10.</div><div><br></div><div>[1] <a href="http://lists.opennebula.org/pipermail/users-opennebula.org/2011-April/004893.html">http://lists.opennebula.org/pipermail/users-opennebula.org/2011-April/004893.html</a></div>

<div><br></div><div>Cheers,</div><div>Jaime<br><br><div class="gmail_quote">On Fri, Apr 15, 2011 at 12:52 PM, Amit Soni <span dir="ltr"><<a href="mailto:get.amitsoni@gmail.com">get.amitsoni@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello,<br>
<br>
I made this img file using the following commands:<br>
<div class="im"><br>
qemu-img create -f qcow2 vdisk.img 10G<br>
qemu-system-x86_64 -hda vdisk.img -cdrom /path/to/ubuntu-server.iso<br>
-boot d  -m 384<br>
</div>mv vdisk.img ubuntu-1010-server-network-init.img<br>
<br>
So, I am pretty sure it's qcow2 format.<br>
<br>
Also, I tried to convert the img file to the raw format using the<br>
following command but still I got the same blank screen:<br>
<br>
qemu-img convert -O raw ubuntu-1010-server-network-init.img<br>
ubuntu-1010-server-network-init.raw<br>
<br>
So I am still not able to run ubuntu VM in opennebula. I would be<br>
great if there are some sort of standard contextualized images of<br>
standard linux distros available for usage.<br>
<font color="#888888"><br>
Amit<br>
</font><div><div></div><div class="h5"><br>
On Fri, Apr 15, 2011 at 1:26 PM, Olivier Sallou <<a href="mailto:olivier.sallou@irisa.fr">olivier.sallou@irisa.fr</a>> wrote:<br>
> your source file is<br>
><br>
> ubuntu-1010-server-network-init.img<br>
><br>
> with img extension are you sure it is a qcow2?<br>
><br>
> Olivier<br>
> Le 4/15/11 12:13 PM, Amit Soni a écrit :<br>
>> Hello,<br>
>><br>
>> There is some interesting progress. I was able to connect to the vnc<br>
>> session of the machine. I found the following output:<br>
>><br>
>> Booting from Hard Disk ...<br>
>> Boot failed: not a bootable disk<br>
>><br>
>> No bootable device.<br>
>><br>
>> Apparently, the format of the IMG file is qcow2 and I didn't mentioned<br>
>> that format in the VM template. Hence, I did the following changes in<br>
>> the VM template as mentioned in the link<br>
>> <a href="https://support.opennebula.pro/entries/348847-using-qcow-images" target="_blank">https://support.opennebula.pro/entries/348847-using-qcow-images</a>:<br>
>><br>
>> DISK   = [<br>
>>   source   = "/srv/cloud/images/ubuntu/ubuntu-1010-server-network-init.img",<br>
>>   target   = "hda",<br>
>>   readonly = "no",<br>
>>   DRIVER=qcow2<br>
>> ]<br>
>><br>
>> However, now when I access the VM from the vnc session I see blank<br>
>> screen (not a single character on the screen). The VM is still in the<br>
>> "runn" state.<br>
>> Now I am really confused what could have went wrong.<br>
>><br>
>> --Amit<br>
>><br>
>><br>
>> 2011/4/14 Amit Soni <<a href="mailto:get.amitsoni@gmail.com">get.amitsoni@gmail.com</a>>:<br>
>>> Hello,<br>
>>><br>
>>> I was trying the same thing using following parameters in the template file:<br>
>>><br>
>>> RAW = [ type = "kvm",<br>
>>>              data = "<devices><serial type=\"pty\"><source<br>
>>> path=\"/dev/pts/5\"/><target port=\"0\"/></serial><console type=\"pty\"<br>
>>> tty=\"/dev/pts/5\"><source path=\"/dev/pts/5\"/><target<br>
>>> port=\"0\"/></console></devices>" ]<br>
>>><br>
>>> However, when I accessed the machine using the virsh console I got the<br>
>>> following output after which it just froze. I hit "enter" many time<br>
>>> but no response. Although I was able to get out of the console:<br>
>>><br>
>>> virsh # console one-13<br>
>>> Connected to domain one-13<br>
>>> Escape character is ^]<br>
>>><br>
>>> I read somewhere that this can be because I have not enabled the VM to<br>
>>> be accessed from serial console so then I followed the following guide<br>
>>> to make some modification in the VM:<br>
>>><br>
>>> <a href="https://help.ubuntu.com/community/SerialConsoleHowto" target="_blank">https://help.ubuntu.com/community/SerialConsoleHowto</a><br>
>>><br>
>>> However, after making the changes when I boot the VM using the "qemu"<br>
>>> command I just  see the some output like follows:<br>
>>><br>
>>> fsck from util-linux-ng 2.17.2<br>
>>> /dev/sda1: clean ... files, ... blocks<br>
>>>  * Starting AppArmor profiles<br>
>>><br>
>>> And that's it. After this there is no response from the VM. However, I<br>
>>> am able to ssh into the VM (since I have started it from qemu<br>
>>> command).<br>
>>><br>
>>> But the important thing is, even after these changes for enabling<br>
>>> serial console in the VM and starting the VM from the opennebula with<br>
>>> the above mentioned RAW parameters, I get the same result. It get the<br>
>>> same output upon accessing the console and after that it just freezes.<br>
>>><br>
>>> Could see any mistake that I might be making.<br>
>>><br>
>>> Thanks & Regards,<br>
>>> Amit<br>
>>><br>
>>><br>
>>> 2011/4/14 Idafen Santana Pérez <<a href="mailto:idafensp@gmail.com">idafensp@gmail.com</a>>:<br>
>>>> Hi Zeeshan,<br>
>>>><br>
>>>> how do you access a running VM?<br>
>>>><br>
>>>> Regards<br>
>>>> Idafen<br>
>>>><br>
>>>> On Thu, Apr 14, 2011 at 6:13 PM, Zeeshan Ali Shah <<a href="mailto:zashah@pdc.kth.se">zashah@pdc.kth.se</a>> wrote:<br>
>>>>> Manually Console to the running VM to see what went wrong ..<br>
>>>>><br>
>>>>> /Zeeshan<br>
>>>>><br>
>>>>> On Thu, Apr 14, 2011 at 5:40 PM, Amit Soni <<a href="mailto:get.amitsoni@gmail.com">get.amitsoni@gmail.com</a>> wrote:<br>
>>>>>> Hello,<br>
>>>>>><br>
>>>>>> I manually created a Ubuntu IMG by installing the Ubuntu 10.10 server<br>
>>>>>> ISO using qemu command as follows:<br>
>>>>>><br>
>>>>>> qemu-img create -f qcow2 vdisk.img 10G<br>
>>>>>> qemu-system-x86_64 -hda vdisk.img -cdrom /path/to/ubuntu-server.iso<br>
>>>>>> -boot d  -m 384<br>
>>>>>><br>
>>>>>> Then I added the network contextualisation scripts as mentioned in the<br>
>>>>>> first section of the article:<br>
>>>>>> <a href="http://opennebula.org/documentation:archives:rel2.0:cong" target="_blank">http://opennebula.org/documentation:archives:rel2.0:cong</a><br>
>>>>>> But I did one change; I added the execution of the "vmcontext" script<br>
>>>>>> in the "/etc/init.d/networking" script since adding the "vmcontext"<br>
>>>>>> script in the runlevel 2 didn't helped.<br>
>>>>>><br>
>>>>>> Now when I start the installed Ubuntu IMG using the following command,<br>
>>>>>> I get the desired IP in the machine. I am also able to SSH to the<br>
>>>>>> machine:<br>
>>>>>><br>
>>>>>> qemu-system-x86_64 -hda ubuntu-server.img  -net<br>
>>>>>> nic,macaddr=02:00:c0:a8:02:08 -net tap<br>
>>>>>><br>
>>>>>> However, when I use this IMG in the opennebula template file the<br>
>>>>>> machine goes in the "runn" state but I am not able to access the<br>
>>>>>> machine. My template file is as follows:<br>
>>>>>><br>
>>>>>> NAME   = ubuntu<br>
>>>>>> CPU    = 1<br>
>>>>>> MEMORY = 400<br>
>>>>>><br>
>>>>>> DISK   = [<br>
>>>>>>  source   = "/srv/cloud/images/ubuntu/ubuntu-server.img",<br>
>>>>>>  target   = "hda",<br>
>>>>>>  readonly = "no" ]<br>
>>>>>><br>
>>>>>> NIC    = [ NETWORK = "VM_LAN" ]<br>
>>>>>><br>
>>>>>> FEATURES=[ acpi="no" ]<br>
>>>>>><br>
>>>>>> Moreover, when I start the standard ttylinux IMG in am easily able to<br>
>>>>>> SSH to the machine.<br>
>>>>>> Can anyone guide me to some standard documentation of how to create a<br>
>>>>>> IMG for opennebula starting from an ISO.<br>
>>>>>><br>
>>>>>> Thanks & Regards,<br>
>>>>>> Amit Soni<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>
>>>>><br>
>>>>> --<br>
>>>>><br>
>>>>> --<br>
>>>>> Regards<br>
>>>>><br>
>>>>> Zeeshan Ali Shah<br>
>>>>> System Administrator<br>
>>>>> PDC-Center for High Performance Computing<br>
>>>>> KTH-Royal Institute of Technology , Sweden<br>
>>>>><br>
>>>>> <a href="tel:%2B46%208%20790%209115" value="+4687909115">+46 8 790 9115</a><br>
>>>>><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>
>>>>><br>
>>><br>
>>><br>
>>> --<br>
>>> Amit Soni<br>
>>> Email-id: <a href="mailto:get.amitsoni@gmail.com">get.amitsoni@gmail.com</a>, <a href="mailto:get.amitsoni@hotmail.com">get.amitsoni@hotmail.com</a><br>
>>><br>
>><br>
>><br>
><br>
> --<br>
> gpg key id: 4096R/326D8438  (<a href="http://pgp.mit.edu" target="_blank">pgp.mit.edu</a>)<br>
> Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438<br>
><br>
><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>
<br>
<br>
<br>
</div></div>--<br>
<div class="im">Amit Soni<br>
Email-id: <a href="mailto:get.amitsoni@gmail.com">get.amitsoni@gmail.com</a>, <a href="mailto:get.amitsoni@hotmail.com">get.amitsoni@hotmail.com</a><br>
</div><div><div></div><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br></div>