<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:v = "urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:x =
"urn:schemas-microsoft-com:office:excel" xmlns:p =
"urn:schemas-microsoft-com:office:powerpoint" xmlns:a =
"urn:schemas-microsoft-com:office:access" xmlns:dt =
"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s =
"uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs =
"urn:schemas-microsoft-com:rowset" xmlns:z = "#RowsetSchema" xmlns:b =
"urn:schemas-microsoft-com:office:publisher" xmlns:ss =
"urn:schemas-microsoft-com:office:spreadsheet" xmlns:c =
"urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc =
"urn:schemas-microsoft-com:office:odc" xmlns:oa =
"urn:schemas-microsoft-com:office:activation" xmlns:html =
"http://www.w3.org/TR/REC-html40" xmlns:q =
"http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc =
"http://microsoft.com/officenet/conferencing" XMLNS:D = "DAV:" XMLNS:Repl =
"http://schemas.microsoft.com/repl/" xmlns:mt =
"http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2 =
"http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda =
"http://www.passport.com/NameSpace.xsd" xmlns:ois =
"http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir =
"http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds =
"http://www.w3.org/2000/09/xmldsig#" xmlns:dsp =
"http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc =
"http://schemas.microsoft.com/data/udc" xmlns:xsd =
"http://www.w3.org/2001/XMLSchema" xmlns:sub =
"http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec =
"http://www.w3.org/2001/04/xmlenc#" xmlns:sp =
"http://schemas.microsoft.com/sharepoint/" xmlns:sps =
"http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi =
"http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs =
"http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf =
"http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p =
"http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf =
"http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss =
"http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi =
"http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi =
"http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver =
"http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m =
"http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels =
"http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp =
"http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t =
"http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m =
"http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl =
"http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl =
"http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService"
XMLNS:Z = "urn:schemas-microsoft-com:" xmlns:st = ""><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">
<META content="MSHTML 6.00.2900.6049" name=GENERATOR><BASE target=_blank><!--[if !mso]>
<STYLE>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
p{margin:0px;padding:0px;}; </STYLE>
<![endif]-->
<STYLE><!--@import url("file:///D:Program%20FilesNetease网易闪电邮/datascrollbar.css");
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"\@SimSun";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";
mso-believe-normal-left:yes;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1862550870;
mso-list-template-ids:1276686984;}
--></STYLE>
<![if mso 9]><style>p.MsoNormal
{margin-left:9.0pt;}
</style><![endif]><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--><BASE target=_blank></HEAD>
<BODY lang=EN-AU
style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; MARGIN: 9pt; BORDER-RIGHT-WIDTH: 0px"
vLink=purple link=blue topMargin=10 marginheight="0" marginwidth="0">
<DIV><FONT face=宋体 color=#000000 size=3></FONT> </DIV>
<DIV><FONT face=宋体 color=#000000 size=3>Thanks for your replay!</FONT></DIV>
<DIV><FONT face=宋体>I have resolved this problem by change the system locale to
English. Now My "onehost list" output is nice:</FONT></DIV>
<DIV><FONT face=宋体></FONT> </DIV>
<DIV><FONT face=宋体>$ onehost list<BR> ID
NAME
CLUSTER RVM TCPU FCPU
ACPU TMEM FMEM STAT<BR> 5
work-node1 default
0 100 99 100
497.3M 369.9M on<BR> 9
front-end
default 0 100
94 100 1002.4M 824.7M on<BR></FONT></DIV>
<DIV><FONT face=宋体>Yuelin</DIV></FONT>
<DIV align=left><FONT face=Verdana color=#c0c0c0
size=2>2011-02-22</FONT></DIV><FONT face=Verdana size=2>
<HR 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>
<HR>
</DIV>
<DIV>发件人: <Carsten.Friedrich@csiro.au></DIV>
<DIV>发送时间: 2011-02-22 10:11</DIV>
<DIV>主 题: RE: [one-users] VM can not start, STATE is always PEND, NO error info
output( system locale cause it!!!)</DIV>
<DIV>收件人: <shamaya@126.com>, <users@lists.opennebula.org></DIV>
<DIV><BR><BR></DIV>
<DIV class=WordSection1>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Your
output of “onehost list” does not look good. It is not reporting TCPU or FCPU
correctly and ACPU is very small. Also TMEM seems incorrect and TMEM very small.
Your VM is most likely “pending” as OpenNebula cannot find a cloud node with
enough resources to fulfil the requirements of the VM template. This is
not surprising when looking at the “onehost list” output.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">How
many cores and how much RAM does work-node1 actually have? If this number is big
enough to fulfil the requirements of the VM template you should be able to
launch the VM once you fix the “onehost list” problem.<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Carsten<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<DIV>
<DIV
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN lang=EN-US
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN
lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">
users-bounces@lists.opennebula.org [mailto:users-bounces@lists.opennebula.org]
<B>On Behalf Of </B>shamaya<BR><B>Sent:</B> Tuesday, 22 February 2011
12:39<BR><B>To:</B> users<BR><B>Subject:</B> [one-users] VM can not start, STATE
is always PEND, NO error info output( system locale cause
it!!!)<o:p></o:p></SPAN></P></DIV></DIV>
<P class=MsoNormal><o:p> </o:p></P>
<DIV>
<DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="COLOR: black; FONT-FAMILY: 'SimSun','serif'">Hi,</SPAN><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"> <o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt"><STRONG>Problem:</STRONG><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt">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.
<o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"> <o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt">$ 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<o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"> <o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt">$ onevm list<BR>
ID USER NAME STAT
CPU MEM
HOSTNAME TIME<BR> 9
oneadmin ttylinux pend 0
0K
00 00:00:33<o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"> <o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt"><STRONG>Cause:</STRONG><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt">finally I found what cause this
problem: It is locale that cause this!<o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 24pt">In my
ubuntu:<o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 24pt">$ cat
/etc/default/locale <BR>
LANG="zh_CN.UTF-8"<BR>
LANGUAGE="zh_CN:zh"<o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="COLOR: black; FONT-FAMILY: 'SimSun','serif'">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". </SPAN><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><STRONG>Locale
besides English will cause
problem!</STRONG><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"> <o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt"><STRONG>Solution:</STRONG><o:p></o:p></P></DIV>
<DIV>
<OL type=1>
<LI class=MsoNormal style="mso-list: l0 level1 lfo1">modify
/etc/default/locale and add the following to it<o:p></o:p></LI></OL></DIV>
<DIV>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 24pt">LANG=en_US.UTF-8<o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 24pt">LANGUAGE=en_US.en<o:p></o:p></P></DIV>
<P> 2. echo “export LANGUAGE=en_US:en” >>
~/.bashrc <o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; COLOR: silver; FONT-FAMILY: 'Verdana','sans-serif'">2011-02-22</SPAN><o:p></o:p></P>
<DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'">
<HR style="WIDTH: 91.5pt" align=left width=122 SIZE=2>
</SPAN></DIV>
<DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; COLOR: silver; FONT-FAMILY: 'Verdana','sans-serif'">shamaya</SPAN><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"><o:p></o:p></SPAN></P></DIV></DIV></DIV></BODY></HTML>