[one-users] Problem in deploying a VM

Ruben S. Montero rubensm at dacya.ucm.es
Fri Apr 10 06:45:25 PDT 2009


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
+---------------------------------------------------------------+


More information about the Users mailing list