[one-users] VM can not start, STATE is always PEND, NO error info output( system locale cause it!!!)
Carsten.Friedrich at csiro.au
Carsten.Friedrich at csiro.au
Mon Feb 21 18:11:38 PST 2011
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.
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.
Carsten
From: users-bounces at lists.opennebula.org [mailto:users-bounces at lists.opennebula.org] On Behalf Of shamaya
Sent: Tuesday, 22 February 2011 12:39
To: users
Subject: [one-users] VM can not start, STATE is always PEND, NO error info output( system locale cause it!!!)
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:
1. 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/fe4d041b/attachment-0003.htm>
More information about the Users
mailing list