[one-users] Cannot stop VM (OpenNebula 1.2)

Ruben S. Montero rubensm at dacya.ucm.es
Tue Oct 13 08:32:26 PDT 2009


Hi,

This turned to be a bit tricky, the final solution seems to be:

* Always use qemu://system, this is needed to bind a tap interfaces to
the bridge

* In order to have the right permissions a work-around is needed. This
is simple "touch" the checkpoint file before saving the VM. Take a
look at [1]

The revision [1] can be safely applied to the OpenNebula 1.4beta. If
your linux distro is connecting to qemu:///system. Just apply line 124
of /src/vmm_mad/kvm/one_vmm_kvm.rb

[1] http://dev.opennebula.org/projects/opennebula/repository/revisions/809/diff/trunk/src/vmm_mad/kvm/one_vmm_kvm.rb


Cheers

Ruben

On Mon, Oct 12, 2009 at 5:59 PM, Didier DUMET <didier.dumet at gmail.com> wrote:
> Hi,
>
> Running OpenNebula 1.2 on Ubuntu Jaunty, I've the same problem as the one
> described in this thread
> http://lists.opennebula.org/htdig.cgi/users-opennebula.org/2009-August/00062
> 7.html when stopping a VM. However, when applying the patch (i.e. changing
> virsh occurrence by virsh -c qemu:///session), the onevm create command
> fails with the following error (found in oned.log):
>
> Mon Oct 12 16:54:26 2009 [TM][D]: Message received: LOG - 121 tm_clone.sh:
> cloud-server2:/var/lib/one/images/ubuntu.img
> cloud-server1:/var/lib/one//121/images/disk.0
>
> Mon Oct 12 16:54:26 2009 [TM][D]: Message received: LOG - 121 tm_clone.sh:
> DST: /var/lib/one//121/images/disk.0
>
> Mon Oct 12 16:54:26 2009 [TM][D]: Message received: LOG - 121 tm_clone.sh:
> Creating directory /var/lib/one//121/images
>
> Mon Oct 12 16:54:26 2009 [TM][D]: Message received: LOG - 121 tm_clone.sh:
> Executed "ssh cloud-server1 mkdir -p /var/lib/one//121/images".
>
> Mon Oct 12 16:54:26 2009 [TM][D]: Message received: LOG - 121 tm_clone.sh:
> Cloning cloud-server2:/var/lib/one/images/ubuntu.img
>
> Mon Oct 12 16:54:37 2009 [InM][D]: Host 0 successfully monitored.
> Mon Oct 12 16:54:55 2009 [InM][I]: Monitoring host cloud-server1 (0)
> Mon Oct 12 16:55:13 2009 [InM][D]: Host 0 successfully monitored.
> Mon Oct 12 16:55:20 2009 [TM][D]: Message received: LOG - 121 tm_clone.sh:
> Executed "scp cloud-server2:/var/lib/one/images/ubuntu.img
> cloud-server1:/var/lib/one//121/i
> mages/disk.0".
>
> Mon Oct 12 16:55:20 2009 [TM][D]: Message received: LOG - 121 tm_clone.sh:
> Executed "ssh cloud-server1 chmod a+w /var/lib/one//121/images/disk.0".
>
> Mon Oct 12 16:55:20 2009 [TM][D]: Message received: TRANSFER SUCCESS 121 -
>
> Mon Oct 12 16:55:20 2009 [VMM][D]: Message received: LOG - 121 Command: scp
> /var/lib/one/121/deployment.0
> cloud-server1:/var/lib/one//121/images/deployment.0
>
> Mon Oct 12 16:55:21 2009 [VMM][D]: Message received: LOG - 121 Copy success
>
> Mon Oct 12 16:55:25 2009 [InM][I]: Monitoring host cloud-server1 (0)
> Mon Oct 12 16:55:31 2009 [InM][D]: Host 0 successfully monitored.
> Mon Oct 12 16:55:51 2009 [VMM][D]: Message received: LOG - 121 Connecting to
> uri: qemu:///system
>
> Mon Oct 12 16:55:51 2009 [VMM][D]: Message received: LOG - 121 16:55:31.824:
> warning : Cannot set group when not running as root
>
> Mon Oct 12 16:55:51 2009 [VMM][D]: Message received: LOG - 121 16:55:32.008:
> error : internal error Failed to add tap interface 'vnet%d' to bridge 'br0'
> : Operation no
> t permitted
>
> Mon Oct 12 16:55:51 2009 [VMM][D]: Message received: LOG - 121 libvir: QEMU
> error : internal error Failed to add tap interface 'vnet%d' to bridge 'br0'
> : Operation not
>  permitted
>
> Mon Oct 12 16:55:51 2009 [VMM][D]: Message received: LOG - 121 error: Failed
> to create domain from /var/lib/one//121/images/deployment.0
>
> Mon Oct 12 16:55:51 2009 [VMM][D]: Message received: LOG - 121 error:
> internal error Failed to add tap interface 'vnet%d' to bridge 'br0' :
> Operation not permitted
>
> Mon Oct 12 16:55:51 2009 [VMM][D]: Message received: LOG - 121 ExitCode: 1
>
> Mon Oct 12 16:55:51 2009 [VMM][D]: Message received: DEPLOY FAILURE 121
> Failed to create domain from /var/lib/one//121/images/deployment.0
>
>
> Any idea on how to resolve this ?
> Thanks,
> Regards.
>
> Didier
>
>
>
> _______________________________________________
> 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