[one-users] FW: Problem in deploying a VM

Harishbabu Nagaraj Harishbabu_Nagaraj at mindtree.com
Mon Apr 20 21:54:57 PDT 2009


Hi Ruben,
        Thanks for the quick reply. We could able to proceed further by adding "virbr0" in the configuration file.
Find a portion of oned log as below,

Mon Apr 20 15:45:18 2009 [VMM][D]: Message received: LOG - 73 Command: sudo /usr/sbin/xm create /opt/nebula/ONE/var//73/images/deployment.0 \&\& sudo /usr/sbin/xm sched-cred -d one-73 -w 128

Mon Apr 20 15:45:21 2009 [VMM][D]: Message received: DEPLOY SUCCESS 73 one-73

Mon Apr 20 15:45:30 2009 [InM][I]: Monitoring host 172.22.32.159 (11) Mon Apr 20 15:45:32 2009 [VMM][I]: --Mark-- Mon Apr 20 15:45:32 2009 [VMM][I]: Monitoring VM 73.
Mon Apr 20 15:45:35 2009 [VMM][D]: Message received: POLL SUCCESS 73 USEDCPU=93.1 NETTX=0 NETRX=0 STATE=u USEDMEMORY=524288

Though oned.log says DEPLOY SUCCESS, we are still not able to boot the Linux OS, its giving the following error.
Mounting root filesystem
Mount: could not find filesystem '/dev/root'
Setuproot: moving /dev failed: No such file or directory
No fstab.sys, mounting internal defaults
Setuproot: moving /proc failed: No such file or directory
Setuproot: moving /sys failed: No such file or directory
Switching to new root and running init.
unmounting old /dev
unmounting old /proc
unmounting old /sys
switchroot: mount failed: No such file or directory
Booting has failed.

Can somebody help in resolving this issue. Let us know if you need any more details.

Thanks in Advance.

Thanks,
Harish

P.S: Forgot to send it to the user list, so again forwarding this mail to the entire forum.


-----Original Message-----
From: rsmontero at gmail.com [mailto:rsmontero at gmail.com] On Behalf Of Ruben S. Montero
Sent: Wednesday, April 15, 2009 2:50 AM
To: Harishbabu Nagaraj
Subject: Re: [one-users] Problem in deploying a VM

Well, the problem is with Xen. We've testing OpenNebula with Xen 3.0 and it should work. Again I think we can find some clues in the xen log files (although they used to be very cryptic). Try to start the VM with the deployment.0 file and xm create in the target host...

Cheers

Ruben

On Mon, Apr 13, 2009 at 3:01 PM, Harishbabu Nagaraj <Harishbabu_Nagaraj at mindtree.com> wrote:
> Hi Ruben,
>      Thanks for the quick reply. We have modified the network configuration from eth0 to xenbr0. With this change installation is proceeding further, but this time it gives the following error and onevm status is fail.
>
> [2009-04-13 15:37:24 xend.XendDomainInfo 5457] WARNING (XendDomainInfo:965) Domain has crashed: name=one-9 id=2.
> [2009-04-13 15:37:24 xend.XendDomainInfo 5457] ERROR (XendDomainInfo:1896) VM one-9 restarting too fast (7.345183 seconds since the last restart).  Refusing to restart to avoid loops.
> [2009-04-13 15:37:24 xend.XendDomainInfo 5457] DEBUG
> (XendDomainInfo:1637) XendDomainInfo.destroy: domid=2
>
> The Xen version we are using is 3.0.3-64 on Centos 5. Is this problem something to do the xen version being old?
> Can somebody suggest any ideas to resolve this.
>
> Thanks and Regards,
> Harish
>
> -----Original Message-----
> From: users-bounces at lists.opennebula.org
> [mailto:users-bounces at lists.opennebula.org] On Behalf Of Ruben S.
> Montero
> Sent: Friday, April 10, 2009 7:15 PM
> To: users at lists.opennebula.org
> Subject: Re: [one-users] Problem in deploying a VM
>
> Hi
>
> It seems that it is a Xen related problem:
>
>> Wed Apr  8 11:48:31 2009 [VMM][D]: Message received: DEPLOY FAILURE
>> 42 Device 0 (vif) could not be connected. Hotplug scripts not working.
>
> This problem can be caused by a missing device in 172.22.32.223, wrong
> permissions...
> You can find useful information in the Xen log files...
> To track down this problem you can use the deployment.0 file in
> $ONE_LOCATION/var/42, just use the xm create command in 172.22.32.223
> to debug this.
>
> Cheers
>
> Ruben
>
>
> 2009/4/8 Harishbabu Nagaraj <Harishbabu_Nagaraj at mindtree.com>:
>> Hi,
>>
>>     After adding oneadmin into /etc/sudoers file, we are able proceed
>> with the copy of the image from opennebula server to opennebula
>> cluster node
>>
>> as mentioned in the below oned.log. But now we are getting DEPLOY FAILURE.
>>
>> The OpenNebula Cluster Node is running Xen-3.0.3 on RHEL 5.2.
>>
>> Wed Apr  8 11:42:57 2009 [ReM][D]: VirtualMachineDeploy invoked
>>
>> Wed Apr  8 11:42:57 2009 [DiM][D]: Deploying VM 42
>>
>> Wed Apr  8 11:42:57 2009 [TM][D]: Message received: LOG - 42 tm_clone.sh:
>> FEDORA.MINDTREE.COM:/opt/nebula/images/Rhel_Server_5.3.img
>> 172.22.32.223:/opt/nebula/ONE/var//42/images/disk.0
>>
>>
>>
>> Wed Apr  8 11:42:57 2009 [TM][D]: Message received: LOG - 42 tm_clone.sh:
>> DST: /opt/nebula/ONE/var//42/images/disk.0
>>
>>
>>
>> Wed Apr  8 11:42:57 2009 [TM][D]: Message received: LOG - 42 tm_clone.sh:
>> Creating directory /opt/nebula/ONE/var//42/images
>>
>>
>>
>> Wed Apr  8 11:42:57 2009 [TM][D]: Message received: LOG - 42 tm_clone.sh:
>> Executed "ssh 172.22.32.223 mkdir -p /opt/nebula/ONE/var//42/images".
>>
>>
>>
>> Wed Apr  8 11:42:57 2009 [TM][D]: Message received: LOG - 42 tm_clone.sh:
>> Cloning FEDORA.MINDTREE.COM:/opt/nebula/images/Rhel_Server_5.3.img
>>
>>
>>
>> Wed Apr  8 11:43:02 2009 [ReM][D]: VirtualMachineAction invoked
>>
>> Wed Apr  8 11:43:02 2009 [DiM][D]: Finalizing VM 41
>>
>> Wed Apr  8 11:46:47 2009 [TM][D]: Message received: LOG - 42 tm_clone.sh:
>> Executed "scp /opt/nebula/images/Rhel_Server_5.3.img
>> 172.22.32.223:/opt/nebula/ONE/var//42/images/disk.0".
>>
>>
>>
>> Wed Apr  8 11:46:48 2009 [TM][D]: Message received: LOG - 42 tm_clone.sh:
>> Executed "ssh 172.22.32.223 chmod a+w
>> /opt/nebula/ONE/var//42/images/disk.0".
>>
>>
>>
>> Wed Apr  8 11:46:48 2009 [TM][D]: Message received: LOG - 42 tm_mkswap.sh:
>> Creating 1024Mb image in /opt/nebula/ONE/var//42/images/disk.1
>>
>>
>>
>> Wed Apr  8 11:46:48 2009 [TM][D]: Message received: LOG - 42 tm_mkswap.sh:
>> Executed "ssh 172.22.32.223 mkdir -p /opt/nebula/ONE/var//42/images".
>>
>>
>>
>> Wed Apr  8 11:46:49 2009 [TM][D]: Message received: LOG - 42 tm_mkswap.sh:
>> Executed "ssh 172.22.32.223 dd if=/dev/zero
>> of=/opt/nebula/ONE/var//42/images/disk.1 bs=1 count=1 seek=1024M".
>>
>>
>>
>> Wed Apr  8 11:46:49 2009 [TM][D]: Message received: LOG - 42 tm_mkswap.sh:
>> Initializing swap space
>>
>>
>>
>> Wed Apr  8 11:46:49 2009 [TM][D]: Message received: LOG - 42 tm_mkswap.sh:
>> Executed "ssh 172.22.32.223 /sbin/mkswap
>> /opt/nebula/ONE/var//42/images/disk.1".
>>
>>
>>
>> Wed Apr  8 11:46:50 2009 [TM][D]: Message received: LOG - 42 tm_mkswap.sh:
>> Executed "ssh 172.22.32.223 chmod a+w
>> /opt/nebula/ONE/var//42/images/disk.1".
>>
>>
>>
>> Wed Apr  8 11:46:50 2009 [TM][D]: Message received: TRANSFER SUCCESS
>> 42 -
>>
>>
>>
>> Wed Apr  8 11:46:50 2009 [VMM][D]: Message received: LOG - 42
>> Command: scp /opt/nebula/ONE/var/42/deployment.0
>> 172.22.32.223:/opt/nebula/ONE/var//42/images/deployment.0
>>
>>
>>
>> Wed Apr  8 11:46:50 2009 [InM][D]: Host 9 successfully monitored.
>>
>> Wed Apr  8 11:46:50 2009 [VMM][D]: Message received: LOG - 42 Copy
>> success
>>
>>
>>
>> Wed Apr  8 11:46:50 2009 [VMM][D]: Message received: LOG - 42 Setting
>> credits for the VM
>>
>>
>>
>> Wed Apr  8 11:46:50 2009 [VMM][D]: Message received: LOG - 42
>> Command: sudo /usr/sbin/xm create
>> /opt/nebula/ONE/var//42/images/deployment.0 \&\& sudo /usr/sbin/xm
>> sched-cred -d one-42 -w 128
>>
>>
>>
>> Wed Apr  8 11:47:07 2009 [InM][I]: Monitoring host 172.22.32.223 (9)
>>
>> Wed Apr  8 11:47:12 2009 [InM][D]: Host 9 successfully monitored.
>>
>>
>>
>> Wed Apr  8 11:48:31 2009 [VMM][D]: Message received: DEPLOY FAILURE
>> 42 Device 0 (vif) could not be connected. Hotplug scripts not working.
>>
>>
>>
>> Any help would be very much appreciated
>>
>>
>>
>> Thanks & Regards,
>>
>> Harish
>>
>>
>>
>> From: Raul Sampedro [mailto:raul.sampedro at gmail.com]
>> Sent: Monday, April 06, 2009 9:19 PM
>> To: Harishbabu Nagaraj
>> Cc: users at lists.opennebula.org; Sarath Kumar Bheemaraju
>> Subject: Re: [one-users] Problem in deploying a VM
>>
>>
>>
>> Hello,
>>
>> Please try to add the user "oneadmin" to sudoers group.
>>
>> cheers!
>>
>> On Mon, Apr 6, 2009 at 4:38 PM, Harishbabu Nagaraj
>> <Harishbabu_Nagaraj at mindtree.com> wrote:
>>> Hi All,
>>>
>>> We are configuring as per the QuickStart guide given in the
>>> OpenNebula documentation web site.
>>>
>>> All the configurations are proceeding fine. We could able to SSH
>>> from the OpenNebula server to the cluster node without any password.
>>>
>>> When we deploy the VM we are getting the status from "pend" to "fail"
>>> message as shown in the below log.
>>>
>>>
>>>
>>> Any help would be very much appreciated.
>>>
>>>
>>>
>>> OpenNebula Server
>>>
>>> Hostname - FEDORA.MINDTREE.COM and OS - Fedora 8
>>>
>>>
>>>
>>> OpenNebula Cluster Node
>>>
>>> Hostname - 172.22.32.223 and OS - RHEL 5.2
>>>
>>>
>>>
>>> [oneadmin at FEDORA ONE]$ onehost list
>>>
>>>  HID NAME                      RVM   TCPU   FCPU   ACPU    TMEM
>>> FMEM STAT
>>>
>>>    2 172.22.32.223               0             0    100 on
>>>
>>>
>>>
>>> [oneadmin at FEDORA bin]$ onevm create myFirstVM.template
>>>
>>> [oneadmin at FEDORA bin]$ onevm deploy 19 2
>>>
>>> [oneadmin at FEDORA bin]$ onevm list
>>>
>>>   ID     NAME STAT CPU     MEM        HOSTNAME        TIME
>>>
>>>   19 vm-examp fail   0       0   172.22.32.223 00 00:02:10
>>>
>>>
>>>
>>> oned.log is as follows :
>>>
>>> Mon Apr  6 19:19:18 2009 [DiM][D]: Allocating a new VM
>>>
>>> Mon Apr  6 19:21:22 2009 [InM][I]: Monitoring host 172.22.32.223 (2)
>>>
>>> Mon Apr  6 19:21:24 2009 [InM][D]: Host 2 successfully monitored.
>>>
>>> Mon Apr  6 19:21:28 2009 [ReM][D]: VirtualMachineDeploy invoked
>>>
>>> Mon Apr  6 19:21:28 2009 [DiM][D]: Deploying VM 19
>>>
>>> Mon Apr  6 19:21:28 2009 [TM][D]: Message received: LOG - 19 tm_clone.sh:
>>> FEDORA.MINDTREE.COM:/opt/nebula/images/Rhel_Server_5.3.img
>>> 172.22.32.223:/opt/nebula/ONE/var//19/images/disk.0
>>>
>>>
>>>
>>> Mon Apr  6 19:21:28 2009 [TM][D]: Message received: LOG - 19 tm_clone.sh:
>>> DST: /opt/nebula/ONE/var//19/images/disk.0
>>>
>>>
>>>
>>> Mon Apr  6 19:21:28 2009 [TM][D]: Message received: LOG - 19 tm_clone.sh:
>>> Creating directory /opt/nebula/ONE/var//19/images
>>>
>>>
>>>
>>> Mon Apr  6 19:21:28 2009 [TM][D]: Message received: LOG - 19 tm_clone.sh:
>>> ERROR: Command "ssh 172.22.32.223 mkdir -p /opt/nebula/ONE/var//19/images"
>>> failed.
>>>
>>>
>>>
>>> Mon Apr  6 19:21:28 2009 [TM][D]: Message received: LOG - 19 tm_clone.sh:
>>> ERROR: mkdir: cannot create directory `/opt/nebula': Permission denied
>>>
>>>
>>>
>>> Mon Apr  6 19:21:28 2009 [TM][D]: Message received: TRANSFER FAILURE 19
>>> mkdir: cannot create directory `/opt/nebula': Permission denied
>>>
>>>
>>>
>>> Thanks and Regards,
>>>
>>> Harish
>>>
>>>
>>>
>>> ________________________________
>>> http://www.mindtree.com/email/disclaimer.html
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opennebula.org
>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>
>>>
>>
>> ________________________________
>> http://www.mindtree.com/email/disclaimer.html
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>
>
>
> --
> +---------------------------------------------------------------+
>  Dr. Ruben Santiago Montero
>  Associate Professor
>  Distributed System Architecture Group (http://dsa-research.org)
>
>  URL:    http://dsa-research.org/doku.php?id=people:ruben
>  Weblog: http://blog.dsa-research.org/?author=7
>
>  GridWay, http://www.gridway.org
>  OpenNEbula, http://www.opennebula.org
> +---------------------------------------------------------------+
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
> http://www.mindtree.com/email/disclaimer.html
>



--
+---------------------------------------------------------------+
 Dr. Ruben Santiago Montero
 Associate Professor
 Distributed System Architecture Group (http://dsa-research.org)

 URL:    http://dsa-research.org/doku.php?id=people:ruben
 Weblog: http://blog.dsa-research.org/?author=7

 GridWay, http://www.gridway.org
 OpenNEbula, http://www.opennebula.org
+---------------------------------------------------------------+

http://www.mindtree.com/email/disclaimer.html



More information about the Users mailing list