Manually Console to the running VM to see what went wrong .. <br><br>/Zeeshan<br><br><div class="gmail_quote">On Thu, Apr 14, 2011 at 5:40 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: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">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>
<font color="#888888">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>
</font></blockquote></div><br><br clear="all"><br>-- <br><pre cols="72">-- <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>
+46 8 790 9115</pre>
<br>