<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<STYLE type=text/css> <!--@import url(D:\Program Files\Netease\网易闪电邮\\data\scrollbar.css); --></STYLE>

<META http-equiv=Content-Type content="text/html; charset=utf-8">
<STYLE>BLOCKQUOTE{margin-Top: 0px; margin-Bottom: 0px; margin-Left: 2em};                                                                         OL, UL{margin-Top: 0px; margin-Bottom: 0px};                                                                    p{margin-Top:0em; margin-Bottom:0px; padding:0px;};                                                                     body{FONT-SIZE:12pt; FONT-FAMILY:宋体,serif;};                                                                        </STYLE>

<META content="MSHTML 6.00.2900.6049" name=GENERATOR><BASE target=_blank></HEAD>
<BODY 
style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; MARGIN: 12px; LINE-HEIGHT: 1.3; BORDER-RIGHT-WIDTH: 0px" 
marginheight="0" marginwidth="0"><STATIONERY>
<DIV>
<DIV><FONT face=宋体 color=#000000 size=3>Hi,</FONT></DIV>
<DIV>  </DIV>
<DIV><STRONG>Problem:</STRONG></DIV>
<DIV>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. </DIV>
<DIV> </DIV>
<DIV>$ onehost list<BR>  ID 
NAME              
CLUSTER  RVM   TCPU   FCPU   
ACPU    TMEM    FMEM STAT<BR>   5 
work-node1        default    
0      0      
0    100      0K  
366.6M   on</DIV>
<DIV> </DIV>
<DIV>$ onevm list<BR>   ID     
USER     NAME STAT CPU     
MEM        
HOSTNAME        TIME<BR>    9 
oneadmin ttylinux pend   0      
0K                 
00 00:00:33</DIV>
<DIV> </DIV>
<DIV><STRONG>Cause:</STRONG></DIV>
<DIV>finally I found what cause this problem: It is locale that cause 
this!</DIV>
<DIV style="TEXT-INDENT: 2em">In my ubuntu:</DIV>
<DIV style="TEXT-INDENT: 2em">$ cat /etc/default/locale 
<BR>     LANG="zh_CN.UTF-8"<BR>     
LANGUAGE="zh_CN:zh"</DIV>
<DIV><FONT face=宋体 color=#000000 size=3>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". </FONT></DIV>
<DIV><STRONG>Locale besides English  will cause 
problem!</STRONG></DIV>
<DIV><STRONG></STRONG> </DIV>
<DIV><STRONG>Solution:</STRONG></DIV>
<DIV>
<OL>
  <LI>modify /etc/default/locale and add the following to it</LI></OL></DIV>
<DIV style="TEXT-INDENT: 2em">LANG=en_US.UTF-8</DIV>
<DIV style="TEXT-INDENT: 2em">LANGUAGE=en_US.en</DIV>
<P>  2.  echo “export LANGUAGE=en_US:en” >> 
~/.bashrc </P>
<DIV align=left><FONT face=Verdana color=#c0c0c0 
size=2>2011-02-22</FONT></DIV><FONT face=Verdana size=2>
<HR id=SignNameHR style="WIDTH: 122px; HEIGHT: 2px" align=left SIZE=2>

<DIV><FONT face=Verdana color=#c0c0c0 size=2><SPAN 
id=_FlashSignName>shamaya</SPAN></FONT></DIV></FONT></DIV></STATIONERY></BODY></HTML>