Hi -<div>BTW - It shows run in onevm list output</div><div><div>onevm list</div><div>  ID     NAME STAT CPU     MEM        HOSTNAME        TIME</div><div>  10 vm-examp runn   0  261932 vikhnode4.netma 00 00:46:18</div><div>
<br></div><div>Thanks,</div><div>Himanshu</div><br><div class="gmail_quote">On Wed, Nov 26, 2008 at 5:19 PM, Himanshu Khona <span dir="ltr"><<a href="mailto:himanshukhona@gmail.com">himanshukhona@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">All -<div>Just so that it benefits everyone. I managed to resolve the issue.</div><div>There is a new tty restriction which prevents from remote execution of the commands in /tmp.</div>
<div>Comment the default required tty in /etc/sudoers.</div>
<div>Then it should start working.</div><div>I had one more question, On the physical host when I run xm list, the vm status shows b stat instead of run even when I am logged in. Is there any reason for the same? Why is it in the blocked state? If so, how to unblock the same?</div>

<div>Thanks,</div><div>Himanshu</div><div><div></div><div class="Wj3C7c"><div><br><div class="gmail_quote">On Wed, Nov 26, 2008 at 1:45 PM, Himanshu Khona <span dir="ltr"><<a href="mailto:himanshukhona@gmail.com" target="_blank">himanshukhona@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">All -<div>I am able to use the image using xen commands directly.</div><div>I also tested the same commands as fired by opennebula to xen. It is able to create the image.</div>

<div>Here is the detailed log -</div><div><div>
Wed Nov 26 08:01:55 2008 [VMM][I]: Copy success</div><div>Wed Nov 26 08:01:55 2008 [VMM][I]: Setting credits for the VM</div><div>Wed Nov 26 08:01:55 2008 [VMM][I]: Command: sudo /usr/sbin/xm create /opt/opennebula-server//var/8/images/deployment.0 \&\& sudo /usr/sbin/xm sched-cred -d one-8 -w 256</div>


<div>Wed Nov 26 08:01:55 2008 [VMM][E]: Error deploying virtual machine: Unknown error</div><div>Wed Nov 26 08:01:55 2008 [LCM][I]: Fail to boot VM.</div><div>Wed Nov 26 08:01:55 2008 [DiM][I]: New VM state is FAILED</div>


<div><br></div><div>When I try to execute the command above at one go, it gives following error -<br></div><div><br></div><div>sudo /usr/sbin/xm create /opt/opennebula-server//var/8/images/deployment.0 \&\& sudo /usr/sbin/xm sched-cred -d one-8 -w 256</div>


<div>Error: option -d not recognized</div><div>Usage: xm create <ConfigFile> [options] [vars]</div><div><br></div><div>If I execute the first command alone, xen does start up an image and puts in blocked mode.</div>


<div>I am able to login to the image using its IP and run commands as well although status shows b.</div><div>Please help!!</div><div>Thanks,</div><div>Himanshu</div><div><div></div><div><div><br></div><div class="gmail_quote">

On Wed, Nov 26, 2008 at 10:04 AM, Himanshu Khona <span dir="ltr"><<a href="mailto:himanshukhona@gmail.com" target="_blank">himanshukhona@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi -<div>I have downloaded image from the internet. </div><div>When I use the image, I get the following error in vm.log</div>


<div><div>Wed Nov 26 04:03:39 2008 [VMM][E]: Error deploying virtual machine: Unknown error</div>
<div>Wed Nov 26 04:03:39 2008 [LCM][I]: Fail to boot VM.</div><div>Wed Nov 26 04:03:39 2008 [DiM][I]: New VM state is FAILED.</div><div><br></div><div>Does anyone know of a working image that I can use? OR any other logs which may be more informational?</div>



<div>Thanks,</div><div>Himanshu</div></div><div><div></div><div><div><div class="gmail_quote">On Tue, Nov 25, 2008 at 11:38 PM, Javier Fontan <span dir="ltr"><<a href="mailto:jfontan@fdi.ucm.es" target="_blank">jfontan@fdi.ucm.es</a>></span> wrote:<br>




<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hello,<div><br>
<br>
On Nov 25, 2008, at 1:35 PM, Himanshu Khona wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi -<br>
I have opennebula configured and running with 2 nodes and 1 ONE server.<br>
I am unable to deploy any VM on it.<br>
I have the following questions -<br>
a) In the vm template, the disk image file is blank disk image created using dd or the linux image file to be made using xm commands.<br>
</blockquote>
<br></div>
The disk image needs to have a linux installed inside. You can do that using xen-tools commands, creating a new image and populating it with some working linux installation or downloading an already prepared image from internet. OpenNebula does not install the operating system into images.<div>




<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
b) How do I give IP address to a VM?<br>
</blockquote>
<br></div>
You can preconfigure the OS image with a fixed IP or you can use a DHCP server. For DHCP you can follow instructions described at:<br>
<br>
<a href="http://opennebula.org/doku.php?id=documentation:howto_net" target="_blank">http://opennebula.org/doku.php?id=documentation:howto_net</a><br>
<br>
Bye<br><font color="#888888">
<br>
-- <br>
Javier Fontan, Grid & Virtualization Technology Engineer/Researcher<br>
DSA Research Group: <a href="http://dsa-research.org" target="_blank">http://dsa-research.org</a><br>
Globus GridWay Metascheduler: <a href="http://www.GridWay.org" target="_blank">http://www.GridWay.org</a><br>
OpenNebula Virtual Infrastructure Engine: <a href="http://www.OpenNebula.org" target="_blank">http://www.OpenNebula.org</a><br>
<br>
</font></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>