Hello,
I use opnnebula 4.8.
I follow informations in Managing Hosts — OpenNebula 4.8 documentation
I want to manage VM on remote host (one2) from host (one1) so what I did:
-
Add oneadmin ssh pub key to one2 host → one1: ssh oneadmin@one2 → No password asked
-
add @IP of one2 in /etc/hosts of one1
-
Uncomment in oned.conf (one1):
IM_MAD = [
name = “kvm”,
executable = “one_im_ssh”,
arguments = “-r 3 -t 15 kvm-probes” ] -
restart opennebula and sunstone (one1]
-
add one2 as host (one1)
So one2 has state: Monitored but no VM show and 1 zombie!!!
root@one1:~# onehost show 12
HOST 12 INFORMATION
ID : 12
NAME : one2
CLUSTER : -
STATE : MONITORED
IM_MAD : kvm
VM_MAD : kvm
VN_MAD : ovswitch
LAST MONITORING TIME : 09/12 11:40:31
HOST SHARES
TOTAL MEM : 62.9G
USED MEM (REAL) : 2.6G
USED MEM (ALLOCATED) : 0K
TOTAL CPU : 1200
USED CPU (REAL) : 13
USED CPU (ALLOCATED) : 0
RUNNING VMS : 0
MONITORING INFORMATION
ARCH=“x86_64”
CPUSPEED=“2201”
HOSTNAME=“one2”
HYPERVISOR=“kvm”
MODELNAME=“Intel(R) Xeon(R) CPU E5-2420 v2 @ 2.20GHz”
NETRX=“1398517”
NETTX=“469479”
RESERVED_CPU=“”
RESERVED_MEM=“”
TOTAL_ZOMBIES=“1”
VERSION=“4.8.0”
ZOMBIES=“one-4”
VIRTUAL MACHINES
ID USER GROUP NAME STAT UCPU UMEM HOST TIME
root@one1:~#
Of course, the “zombie” is my VM.
Now, when I run on one2:
root@one2:#cd /var/tmp/one/im/
root@one2:#./run_probes kvm-probes
…/…/vmm/kvm/poll:121:in get_all_vm_info': private method
split’ called for nil:NilClass (NoMethodError)
from …/…/vmm/kvm/poll:116:in each' from ../../vmm/kvm/poll:116:in
get_all_vm_info’
from …/…/vmm/kvm/poll:471:in `print_all_vm_template’
from …/…/vmm/kvm/poll:515
ERROR MESSAGE --8<------
Error executing poll.sh
ERROR MESSAGE ------>8–
…
I add in poll.sh: ENV[‘LC_ALL’]=‘C’ and now I have no error but still not see VM informations on one1 host.
Why have I not VM informations?
Have I miss something in set up?
Any help would be pleasure?
NB: I hope my english in clear