<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi All,<br>
<br>
I am facing the following errror while configuring the VMWare
Hypervisor using (onehost create )<br>
<br>
<br>
<br>
ONED Log: Says the following.<br>
<br>
Fri Nov 25 19:26:19 2011 [ReM][D]: HostPoolInfo method invoked<br>
<u><b>Fri Nov 25 19:26:19 2011 [InM][D]: Host 3 successfully
monitored.<br>
Fri Nov 25 19:26:19 2011 [ONE][E]: syntax error, unexpected
$end, expecting VARIABLE at line 2, columns 1:2</b></u><br>
<u><b>Fri Nov 25 19:26:19 2011 [InM][E]: Error parsing host
information:</b></u><br>
<br>
Fri Nov 25 19:26:20 2011 [ReM][D]: HostPoolInfo method invoke.<br>
<br>
The below is the config file in the <br>
<br>
-----------------<br>
DB=BACKEND=sqlite<br>
DEBUG_LEVEL=3<br>
DEFAULT_DEVICE_PREFIX=hd<br>
DEFAULT_IMAGE_TYPE=OS<br>
HM_MAD=EXECUTABLE=one_hm<br>
HOST_MONITORING_INTERVAL=600<br>
<u><b>IMAGE_REPOSITORY_PATH=/srv/cloud/one/var//images</b></u><br>
IM_MAD=ARGUMENTS=-r 0 -t 15 kvm,EXECUTABLE=one_im_ssh,NAME=im_kvm<br>
IM_MAD=ARGUMENTS=vmware,EXECUTABLE=one_im_sh,NAME=im_vmware<br>
MAC_PREFIX=02:00<br>
MANAGER_TIMER=15<br>
NETWORK_SIZE=254<br>
PORT=2633<br>
SCRIPTS_REMOTE_DIR=/var/tmp/one<br>
TM_MAD=ARGUMENTS=tm_vmware/tm_vmware.conf,EXECUTABLE=one_tm,NAME=tm_vmware<br>
TM_MAD=ARGUMENTS=tm_nfs/tm_nfs.conf,EXECUTABLE=one_tm,NAME=tm_nfs<br>
<u><b>VM_DIR=/srv/cloud/one/var/</b></u><br>
VM_HOOK=ARGUMENTS=$VMID,COMMAND=image.rb,NAME=image,ON=DONE<br>
VM_MAD=ARGUMENTS=vmware,DEFAULT=vmm_sh/vmm_sh_vmware.conf,EXECUTABLE=one_vmm_sh,NAME=vmm_vmware,TYPE=vmware<br>
VM_MAD=ARGUMENTS=-t 15 -r 0
kvm,DEFAULT=vmm_ssh/vmm_ssh_kvm.conf,EXECUTABLE=one_vmm_ssh,NAME=vmm_kvm,TYPE=kvm<br>
VM_POLLING_INTERVAL=600<br>
VNC_BASE_PORT=5900<br>
<br>
<br>
--------------------<br>
Observations: So the entire /srv/cloud/one/var/ is of 777 with
oneadmin.cloud as owners:<br>
I have shared <b> /srv/cloud/one/var//images</b> in samba I could
create folder from my windows. manually <br>
But my Vmware server says cannot access (Error:Unable to access
file. [datastore1] newtes/newtes.vmxf) while creating the vmImages<br>
<br>
<br>
<b>Below is the vmware configuration:</b> oned.conf<br>
<br>
<br>
<br>
# -------------------------- VMWARE CONFIGURATION
------------------------------<br>
<br>
#-------------------------------------------------------------------------------<br>
# VMware Driver Addon Virtualization Driver Manager Configuration<br>
#-------------------------------------------------------------------------------<br>
VM_MAD = [<br>
name = "vmm_vmware",<br>
executable = "one_vmm_sh",<br>
arguments = "vmware",<br>
default = "vmm_sh/vmm_sh_vmware.conf",<br>
type = "vmware" ]<br>
<br>
<br>
#-------------------------------------------------------------------------------<br>
# VMware Driver Addon Information Driver Manager Configuration<br>
#-------------------------------------------------------------------------------<br>
IM_MAD = [<br>
name = "im_vmware",<br>
<u><b> executable = "one_im_sh",</b></u><br>
arguments = "vmware" ]<br>
#-------------------------------------------------------------------------------<br>
<br>
#-------------------------------------------------------------------------------<br>
# VMware Driver Addon Transfer Manager Driver Configuration<br>
#-------------------------------------------------------------------------------<br>
TM_MAD = [<br>
name = "tm_vmware",<br>
executable = "one_tm",<br>
arguments = "tm_vmware/tm_vmware.conf" ]<br>
#-------------------------------------------------------------------------------<br>
<br>
<br>
I could not find any <u><b>one_im_sh </b></u>in any of my
directory structure. The following are the files/folders in
$ONE_LOCATION/etc directory <b> (auth ec2query_templates
hm im_kvm occi-server.conf oned.conf tm_lvm tm_ssh
vmm_ec2 vmm_ssh defaultrc econe.conf im_ec2 im_xen
occi_templates tm_dummy tm_nfs tm_vmware vmm_sh vmwarerc)<br>
</b><br>
<br>
I cannot find im_vmware dir in the above list (I dont not know
whether this is necessary or not)<br>
<br>
<br>
Below is my vmwarerc file<br>
<br>
# User configurable variables (Ruby syntax)<br>
<b><u>LIBVIRT_URI = "gsx://@HOST@:443/?no_verify=1"</u></b><br>
QEMU_PROTOCOL = "qemu"<br>
<br>
# Username and password of the VMware hypervisor<br>
USERNAME = "oneadmin"<br>
PASSWORD = "oneadmin"<br>
<br>
# Loading the vmware library for mads<br>
# Please leave this uncommented<br>
load ENV['ONE_LOCATION'] + "/lib/ruby/vmwarelib.rb"<br>
<br>
ENV['LANG']='C'<br>
<br>
<br>
-----------------------------------<br>
<br>
Please note port 443 as my vmware server is running on 443 port..<br>
<br>
<b>At LAST below is my smb.conf</b><br>
<br>
security = user<br>
username map = /etc/samba/smbusers<br>
<br>
<br>
hosts allow =<br>
[homes]<br>
comment = Home Directories<br>
browseable = no<br>
writable = yes<br>
[data]<br>
comment = VMWare File Server<br>
path = /srv/cloud/one/var/images<br>
browseable = yes<br>
guest ok = yes<br>
available = yes<br>
writable = yes<br>
create mask = 0755<br>
<br>
the content of /etc/samba/smbusers is (oneadmin = "oneadmin").<br>
<br>
I could not understand what is wrong.<br>
<br>
--Suser<br>
<br>
<br>
<br>
<br>
</body>
</html>