[one-users] VM can not start, STATE is always PEND, NO error info output( system locale cause it!!!)

shamaya shamaya at 126.com
Mon Feb 21 17:39:21 PST 2011


Hi,
  
Problem:
I had installed openNebula in ubuntu 10.04. but can not start any vm. the output of "onevm list" shows that the STAT is always PEND. and I couldn't find any error in log files. 

$ onehost list
  ID NAME              CLUSTER  RVM   TCPU   FCPU   ACPU    TMEM    FMEM STAT
   5 work-node1        default    0      0      0    100      0K  366.6M   on

$ onevm list
   ID     USER     NAME STAT CPU     MEM        HOSTNAME        TIME
    9 oneadmin ttylinux pend   0      0K                 00 00:00:33

Cause:
finally I found what cause this problem: It is locale that cause this!
In my ubuntu:
$ cat /etc/default/locale 
     LANG="zh_CN.UTF-8"
     LANGUAGE="zh_CN:zh"
This would cause IM scripts (e.g. /var/tmp/one/im/kvm.d/kvm.rb) not able to get correct node info. Because in OpenNebula node info gathered by running shell command like "virsh -c qemu:///system nodeinfo". 
Locale besides English  will cause problem!

Solution:
modify /etc/default/locale and add the following to it
LANG=en_US.UTF-8
LANGUAGE=en_US.en
  2.  echo “export LANGUAGE=en_US:en” >> ~/.bashrc 
2011-02-22



shamaya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110222/fcfea5b3/attachment-0002.htm>


More information about the Users mailing list