[one-users] [Question] How to set my oned.conf ?

張德勤 cinmex91047 at gmail.com
Sun Mar 4 08:50:58 PST 2012


Dear all£º

Thank for Hector's suggestion.
I kill all process, and restart one....
But, it doesn't work.  :(
And I modify my oned.conf as following

IM_MAD = [
    name       = "im_xen",
    executable = "one_im_ssh",
    arguments  = "xen" ]
VM_MAD = [
    name       = "vmm_xen",
    executable = "one_vmm_exec",
    arguments  = "xen",
    default    = "vmm_exec/vmm_exec_xen.conf",
    type       = "xen" ]
TM_MAD = [
    name       = "tm_shared",
    executable = "one_tm",
    arguments  = "tm_shared/tm_shared.conf" ]

[oneadmin at server etc]$ onehost create client1 im_xen vmm_xen tm_ssh

[oneadmin at server etc]$ onehost list
  ID NAME               RVM   TCPU   FCPU   ACPU   TMEM   FMEM   AMEM   STAT
   6 client1              0      0      0    100     0K     0K     0K    err

[oneadmin at server etc]$ onehost show 6
HOST 6 INFORMATION
ID                    : 6
NAME                  : client1
STATE                 : ERROR
IM_MAD                : im_xen
VM_MAD                : vmm_xen
TM_MAD                : tm_ssh

HOST SHARES
MAX MEM               : 0
USED MEM (REAL)       : 0
USED MEM (ALLOCATED)  : 0
MAX CPU               : 0
USED CPU (REAL)       : 0
USED CPU (ALLOCATED)  : 0
RUNNING VMS           : 0

MONITORING INFORMATION

[oneadmin at server etc]$ cat ../var/oned.log
Sat Mar  3 14:04:15 2012 [ONE][I]: Starting OpenNebula 3.3.0
----------------------------------------
     OpenNebula Configuration File
----------------------------------------
AUTH_MAD=ARGUMENTS=--authn
ssh,x509,ldap,server_cipher,server_x509,EXECUTABLE=one_auth_mad
DB=BACKEND=sqlite
DEBUG_LEVEL=3
DEFAULT_DEVICE_PREFIX=hd
DEFAULT_IMAGE_TYPE=OS
ENABLE_OTHER_PERMISSIONS=YES
HM_MAD=EXECUTABLE=one_hm
HOST_MONITORING_INTERVAL=600
HOST_PER_INTERVAL=15
IMAGE_MAD=ARGUMENTS=fs -t 15,EXECUTABLE=one_image
IMAGE_RESTRICTED_ATTR=SOURCE
IM_MAD=ARGUMENTS=xen,EXECUTABLE=one_im_ssh,NAME=im_xen
MAC_PREFIX=02:00
MANAGER_TIMER=15
NETWORK_SIZE=254
PORT=2633
SCRIPTS_REMOTE_DIR=/var/tmp/one
SESSION_EXPIRATION_TIME=900
TM_MAD=ARGUMENTS=tm_shared/tm_shared.conf,EXECUTABLE=one_tm,NAME=tm_shared
VM_DIR=/srv/cloud/one/var/
VM_MAD=ARGUMENTS=-t 15 -r 0
xen,DEFAULT=vmm_exec/vmm_exec_xen.conf,EXECUTABLE=one_vmm_exec,NAME=vmm_xen,TYPE=xen
VM_PER_INTERVAL=5
VM_POLLING_INTERVAL=600
VM_RESTRICTED_ATTR=CONTEXT/FILES
VM_RESTRICTED_ATTR=DISK/SOURCE
VM_RESTRICTED_ATTR=NIC/MAC
VM_RESTRICTED_ATTR=NIC/VLAN_ID
VM_RESTRICTED_ATTR=RANK
VNC_BASE_PORT=5900
----------------------------------------
Sat Mar  3 14:04:15 2012 [ONE][I]: Log level:3
[0=ERROR,1=WARNING,2=INFO,3=DEBUG]
Sat Mar  3 14:04:15 2012 [ONE][I]: Checking database version.
Sat Mar  3 14:04:15 2012 [VMM][I]: Starting Virtual Machine Manager...
Sat Mar  3 14:04:15 2012 [LCM][I]: Starting Life-cycle Manager...
Sat Mar  3 14:04:15 2012 [VMM][I]: Virtual Machine Manager started.
Sat Mar  3 14:04:15 2012 [LCM][I]: Life-cycle Manager started.
Sat Mar  3 14:04:15 2012 [InM][I]: Starting Information Manager...
Sat Mar  3 14:04:15 2012 [InM][I]: Information Manager started.
Sat Mar  3 14:04:15 2012 [TrM][I]: Starting Transfer Manager...
Sat Mar  3 14:04:15 2012 [DiM][I]: Starting Dispatch Manager...
Sat Mar  3 14:04:15 2012 [TrM][I]: Transfer Manager started.
Sat Mar  3 14:04:15 2012 [DiM][I]: Dispatch Manager started.
Sat Mar  3 14:04:15 2012 [HKM][I]: Starting Hook Manager...
Sat Mar  3 14:04:15 2012 [HKM][I]: Hook Manager started.
Sat Mar  3 14:04:15 2012 [AuM][I]: Starting Auth Manager...
Sat Mar  3 14:04:15 2012 [AuM][I]: Authorization Manager started.
Sat Mar  3 14:04:15 2012 [ImM][I]: Starting Image Manager...
Sat Mar  3 14:04:15 2012 [ImM][I]: Image Manager started.
Sat Mar  3 14:04:15 2012 [ReM][I]: Starting Request Manager...
Sat Mar  3 14:04:15 2012 [ReM][E]: Can not bind to port 2633 : Address
already in use



Anyone can give me a help??
Thank you!!!

2012/3/5 Hector Sanjuan <hsanjuan at opennebula.org>

> it looks like some old oned is running. Kill oned and mm_sched, restart
> opennebula and retry to see what logs show...
>
> H
>
> En Sun, 04 Mar 2012 17:02:50 +0100, ˆµÂÇÚ <cinmex91047 at gmail.com> escribi¨®:
>
>  Thank for Hector Sanjuan's reply.
>> But my oned.log does not grow up since Mar 3.
>> ###########my oned.log###############
>> Sat Mar  3 14:04:15 2012 [ONE][I]: Starting OpenNebula 3.3.0
>> ------------------------------**----------
>>     OpenNebula Configuration File
>> ------------------------------**----------
>> AUTH_MAD=ARGUMENTS=--authn
>> ssh,x509,ldap,server_cipher,**server_x509,EXECUTABLE=one_**auth_mad
>> DB=BACKEND=sqlite
>> DEBUG_LEVEL=3
>> DEFAULT_DEVICE_PREFIX=hd
>> DEFAULT_IMAGE_TYPE=OS
>> ENABLE_OTHER_PERMISSIONS=YES
>> HM_MAD=EXECUTABLE=one_hm
>> HOST_MONITORING_INTERVAL=600
>> HOST_PER_INTERVAL=15
>> IMAGE_MAD=ARGUMENTS=fs -t 15,EXECUTABLE=one_image
>> IMAGE_RESTRICTED_ATTR=SOURCE
>> IM_MAD=ARGUMENTS=xen,**EXECUTABLE=one_im_ssh,NAME=im_**xen
>> MAC_PREFIX=02:00
>> MANAGER_TIMER=15
>> NETWORK_SIZE=254
>> PORT=2633
>> SCRIPTS_REMOTE_DIR=/var/tmp/**one
>> SESSION_EXPIRATION_TIME=900
>> TM_MAD=ARGUMENTS=tm_shared/tm_**shared.conf,EXECUTABLE=one_tm,**
>> NAME=tm_shared
>> VM_DIR=/srv/cloud/one/var/
>> VM_MAD=ARGUMENTS=-t 15 -r 0
>> xen,DEFAULT=vmm_exec/vmm_exec_**xen.conf,EXECUTABLE=one_vmm_**
>> exec,NAME=vmm_xen,TYPE=xen
>> VM_PER_INTERVAL=5
>> VM_POLLING_INTERVAL=600
>> VM_RESTRICTED_ATTR=CONTEXT/**FILES
>> VM_RESTRICTED_ATTR=DISK/SOURCE
>> VM_RESTRICTED_ATTR=NIC/MAC
>> VM_RESTRICTED_ATTR=NIC/VLAN_ID
>> VM_RESTRICTED_ATTR=RANK
>> VNC_BASE_PORT=5900
>> ------------------------------**----------
>> Sat Mar  3 14:04:15 2012 [ONE][I]: Log level:3
>> [0=ERROR,1=WARNING,2=INFO,3=**DEBUG]
>> Sat Mar  3 14:04:15 2012 [ONE][I]: Checking database version.
>> Sat Mar  3 14:04:15 2012 [VMM][I]: Starting Virtual Machine Manager...
>> Sat Mar  3 14:04:15 2012 [LCM][I]: Starting Life-cycle Manager...
>> Sat Mar  3 14:04:15 2012 [VMM][I]: Virtual Machine Manager started.
>> Sat Mar  3 14:04:15 2012 [LCM][I]: Life-cycle Manager started.
>> Sat Mar  3 14:04:15 2012 [InM][I]: Starting Information Manager...
>> Sat Mar  3 14:04:15 2012 [InM][I]: Information Manager started.
>> Sat Mar  3 14:04:15 2012 [TrM][I]: Starting Transfer Manager...
>> Sat Mar  3 14:04:15 2012 [DiM][I]: Starting Dispatch Manager...
>> Sat Mar  3 14:04:15 2012 [TrM][I]: Transfer Manager started.
>> Sat Mar  3 14:04:15 2012 [DiM][I]: Dispatch Manager started.
>> Sat Mar  3 14:04:15 2012 [HKM][I]: Starting Hook Manager...
>> Sat Mar  3 14:04:15 2012 [HKM][I]: Hook Manager started.
>> Sat Mar  3 14:04:15 2012 [AuM][I]: Starting Auth Manager...
>> Sat Mar  3 14:04:15 2012 [AuM][I]: Authorization Manager started.
>> Sat Mar  3 14:04:15 2012 [ImM][I]: Starting Image Manager...
>> Sat Mar  3 14:04:15 2012 [ImM][I]: Image Manager started.
>> Sat Mar  3 14:04:15 2012 [ReM][I]: Starting Request Manager...
>> Sat Mar  3 14:04:15 2012 [ReM][E]: Can not bind to port 2633 : Address
>> already in use
>> ##########################END#**##########################
>>
>> When I look for which program is using port 2633.....
>> It looks fine.
>> [root at server ~]# netstat -anp | grep 2633
>> tcp        0      0 0.0.0.0:2633                0.0.0.0:*
>> LISTEN      21350/oned
>> tcp        0      0 127.0.0.1:2633              127.0.0.1:39408
>> ESTABLISHED 21350/oned
>> tcp        0      0 127.0.0.1:39408             127.0.0.1:2633
>>  ESTABLISHED 21351/mm_sched
>>
>> Anyone has solution??
>>
>> 2012/3/4 Hector Sanjuan <hsanjuan at opennebula.org>
>>
>>  Check the oned.log file. It possibly shows the cause of the error.
>>>
>>> --
>>> Hector Sanjuan
>>> OpenNebula Developer
>>>
>>> En Sun, 04 Mar 2012 15:00:21 +0100, ˆµÂÇÚ <cinmex91047 at gmail.com>
>>> escribi¨®:
>>>
>>>
>>>  Dear all£º
>>>
>>>>
>>>> I am new in OpenNEbula.
>>>>
>>>> I have two machines, one is server, and the other one is client1.
>>>> 1. server £ºCentOS 6 + Opennebula 3.0.0
>>>> 2. client1£ºCentOS 6 + XEN-kernel(2.6.32.56-1.el6xen.****x86_64) +XEN
>>>>
>>>>
>>>> And both of the two machines I add user and group by the following 5
>>>> commands.
>>>>
>>>> 1. sudo mkdir -p /srv/cloud/
>>>> 2. sudo groupadd -g 10000 cloud
>>>> 3. sudo useradd -u 10000 -g cloud -m oneadmin -d /srv/cloud/one -s
>>>> /bin/bash
>>>> 4. sudo passwd oneadmin
>>>> 5. sudo chown -R oneadmin:cloud /srv/cloud/
>>>>
>>>> And I exchange the two machines public key by the following 2 commands.
>>>> 1. ssh-keygen -t rsa
>>>> 2. ssh-copy-id -i ~/.ssh/id_rsa.pub [hostname]
>>>>
>>>> And the client1's xen is fine because I just try create VM alone on
>>>> client1
>>>> itself by
>>>> "virt-install --prompt --network bridge=br0 --virt-type=xen".
>>>> and it looks fine.
>>>> [root at client1 images]# xm list
>>>> Name                                        ID   Mem VCPUs      State
>>>> Time(s)
>>>> Domain-0                                     0  1024     4     r-----
>>>> 1430.7
>>>> cinmex3                                      6  1024     1     -b----
>>>> 11.8
>>>>
>>>> And then, I setup the oned.conf in the following
>>>> ###############oned.conf######****#########
>>>>
>>>> HOST_MONITORING_INTERVAL = 5
>>>> VM_POLLING_INTERVAL      = 10
>>>> SCRIPTS_REMOTE_DIR=/var/tmp/****one
>>>>
>>>> PORT = 2633
>>>> DB = [ backend = "sqlite" ]
>>>> VNC_BASE_PORT = 5900
>>>> DEBUG_LEVEL = 3
>>>> NETWORK_SIZE = 254
>>>> MAC_PREFIX   = "02:00"
>>>> DEFAULT_IMAGE_TYPE    = "OS"
>>>> DEFAULT_DEVICE_PREFIX = "hd"
>>>> IM_MAD = [
>>>>   name       = "im_xen",
>>>>   executable = "one_im_ssh",
>>>>   arguments  = "-r 0 -t 15 xen" ]
>>>> VM_MAD = [
>>>>    name       = "vmm_xen",
>>>>    executable = "one_vmm_exec",
>>>>    default    = "vmm_exec/vmm_xen.conf",
>>>>    type       = "xen" ]
>>>> TM_MAD = [
>>>>   name       = "tm_shared",
>>>>   executable = "one_tm",
>>>>   arguments  = "tm_shared/tm_shared.conf" ]
>>>> IMAGE_MAD = [
>>>>   executable = "one_image",
>>>>   arguments  = "fs -t 15" ]
>>>> HM_MAD = [
>>>>   executable = "one_hm" ]
>>>> AUTH_MAD = [
>>>>   executable = "one_auth_mad",
>>>>   arguments  = "--authn ssh,x509,ldap,server_cipher,****server_x509"
>>>>
>>>> #    arguments  = "--authz quota --authn
>>>> ssh,x509,ldap,server_cipher,****server_x509"
>>>>
>>>> ]
>>>> SESSION_EXPIRATION_TIME = 900
>>>> VM_RESTRICTED_ATTR = "CONTEXT/FILES"
>>>> VM_RESTRICTED_ATTR = "DISK/SOURCE"
>>>> VM_RESTRICTED_ATTR = "NIC/MAC"
>>>> VM_RESTRICTED_ATTR = "NIC/VLAN_ID"
>>>> VM_RESTRICTED_ATTR = "RANK"
>>>>
>>>> IMAGE_RESTRICTED_ATTR = "SOURCE"
>>>> #####################END######****##############
>>>>
>>>>
>>>> But, the problem is when I create a host by the following cmmand.
>>>>
>>>> [oneadmin at server etc]$ onehost create client1 im_xen vmm_xen tm_shared
>>>> [oneadmin at server etc]$ onehost list
>>>>  ID NAME               RVM   TCPU   FCPU   ACPU   TMEM   FMEM   AMEM
>>>> STAT
>>>>  5 client1              0                    0           0       100
>>>>    0K        0K         0K      err
>>>>
>>>>
>>>> I don't know how to set my oned.conf file.
>>>> And I don't know whether my onehost create command is right or not.
>>>> Because I can not locate the im_xen file and vmm_xen file.
>>>> But I can locate tm_shared file.
>>>>
>>>> [oneadmin at server etc]$ locate im_xen
>>>> [oneadmin at server etc]$ locate vmm_xen
>>>> [oneadmin at server etc]$ locate tm_shared
>>>> /etc/one/tm_shared
>>>> /etc/one/tm_shared/tm_shared.****conf
>>>> /etc/one/tm_shared/tm_sharedrc
>>>> /srv/cloud/one/etc/tm_shared
>>>> /srv/cloud/one/etc/tm_shared/****tm_shared.conf
>>>> /srv/cloud/one/etc/tm_shared/****tm_sharedrc
>>>>
>>>>
>>>> Some one could give me a help??
>>>> Thank you!!
>>>>
>>>>  ______________________________****_________________
>>>>
>>> Users mailing list
>>> Users at lists.opennebula.org
>>> http://lists.opennebula.org/****listinfo.cgi/users-opennebula.****org<http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**org>
>>> <http://lists.opennebula.**org/listinfo.cgi/users-**opennebula.org<http://lists.opennebula.org/listinfo.cgi/users-opennebula.org>
>>> >
>>>
>>>
>>
>>
>>
>
> --
> Hector Sanjuan
> OpenNebula Developer
>



-- 
Regards,

Te - Chin, Chang (ˆµÂÇÚ), +886-3-4227151 #57968
Networklab, Computer Science & Information Engineering,
National Central University, Jhongli, Taiwan, R.O.C
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120305/44b6a9b1/attachment-0002.htm>


More information about the Users mailing list