[one-users] VM unknown state. failed to get domain 'virsh'

Javier Fontan jfontan at opennebula.org
Tue May 15 11:23:05 PDT 2012


The problem you are facing is most probably caused by the system
language being Spanish. You can notice the error message in the log:

Wed May  9 20:27:40 2012 [VMM][I]: error: No se encontró dominio: no
existe un dominio coincidente con el nombre 'virsh'

This leads to an incorrect parsing of the virsh command output. To
solve this you can change the file
/var/lib/one/remotes/scripts_common.sh and add this line:

export LANG=C

After this you need to issue the command:

onehost sync

This will actualize the file in your nodes in the next monitoring
cycle. After they are actualized the next VMs create should be OK.

You can also modify that file in the nodes
(/var/tmp/one/scripts_common.sh) if you don't want to wait for the
monitoring cycle.

On Wed, May 9, 2012 at 8:42 PM, Antonio Jurado Serrano <ajurado at us.es> wrote:
> Hi all,
>
> I'm getting "failed to get domain 'virsh'" error in vm.log after 10 min the
> VM was deployed. If I run in the host  'virsh list' I can see the VM running
> and I can ping it.
>
> I think it's about the "DEPLOY ID" but I can't solve the problem. I would
> appreciate some help with this.
>
> Some info:
>
> $cat vm.log
>
> Wed May  9 20:17:34 2012 [LCM][I]: New VM state is BOOT
> Wed May  9 20:17:34 2012 [VMM][I]: Generating deployment file:
> /srv/cloud/one/var/40/deployment.0
> Wed May  9 20:17:35 2012 [VMM][I]: ExitCode: 0
> Wed May  9 20:17:35 2012 [VMM][I]: Successfully execute network driver
> operation: pre.
> Wed May  9 20:17:36 2012 [VMM][I]: ExitCode: 0
> Wed May  9 20:17:36 2012 [VMM][I]: Successfully execute virtualization
> driver operation: deploy.
> Wed May  9 20:17:36 2012 [VMM][I]: ExitCode: 0
> Wed May  9 20:17:36 2012 [VMM][I]: Successfully execute network driver
> operation: post.
> Wed May  9 20:17:36 2012 [LCM][I]: New VM state is RUNNING
> Wed May  9 20:27:40 2012 [VMM][I]: error: failed to get domain 'virsh'
> Wed May  9 20:27:40 2012 [VMM][I]: error: No se encontró dominio: no existe
> un dominio coincidente con el nombre 'virsh'
> Wed May  9 20:27:40 2012 [VMM][I]: ExitCode: 0
> Wed May  9 20:27:40 2012 [VMM][I]: VM running but it was not found. Restart
> and delete actions available or try to recover it manually
> Wed May  9 20:27:40 2012 [LCM][I]: New VM state is UNKNOWN
>
> $onevm show 40
>
> VIRTUAL MACHINE 40
> INFORMATION
> ID                  : 40
> NAME                : one-40
> USER                : oneadmin
> GROUP               : oneadmin
> STATE               : ACTIVE
> LCM_STATE           : UNKNOWN
> HOSTNAME            : 10.1.13.11
> START TIME          : 05/09 20:15:03
> END TIME            : -
> DEPLOY ID           : virsh
>
> Regards,
> Antonio
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



-- 
Javier Fontán Muiños
Project Engineer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | jfontan at opennebula.org | @OpenNebula



More information about the Users mailing list