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