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

Hector Sanjuan hsanjuan at opennebula.org
Sun Mar 4 06:22:42 PST 2012


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



More information about the Users mailing list