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

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


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>
>



-- 
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/2e7ff8ab/attachment-0003.htm>


More information about the Users mailing list