[one-users] Fwd: OpenNebula 3.3 and VMware ESXi 5

Jaime Melis jmelis at opennebula.org
Tue Mar 20 08:08:21 PDT 2012


Hello Alexandre,

Mon Mar 19 10:19:13 2012 [VMM][D]: Message received: LOG E 10 pre: Error
executing: /usr/bin/vicfg-vswitch --username=oneadmin --password=***
--server=esxi102 --check-pg one-pg-0 VM Network err: sh:
/usr/bin/vicfg-vswitch: not found

You're getting this error because the vSphere CLI is not installed in the
frontend, and it's required for the VMware network drivers:
http://communities.vmware.com/community/vmtn/server/vsphere/automationtools/vsphere_cli

However, there are two possibilities when using VMware when it comes to
network drivers:
- vmware driver: It will create portgroups in the ESXi servers thus
providing VLANs. Needs the vSphere CLI to be installed in the frontend
- dummy driver: flat network structure (no VLANs). Does *not* need the
vSphere CLI to be installed in the frontend

You may want to use the dummy driver unless you need to try out the VLANs.
In case you want to do so, simply do onehost delete <host_id>, onehost
create ... dummy

Please let us know if you run into further trouble.

Regards,
Jaime

On Tue, Mar 20, 2012 at 3:26 PM, Carlos Martín Sánchez <
cmartin at opennebula.org> wrote:

> Hi all,
>
> I'm forwarding this e-mail that, for some unknown reason, is not reaching
> the mailing list.
> Apologies if you get it twice.
> --
> Carlos Martín, MSc
> Project Engineer
> OpenNebula - The Open-source Solution for Data Center Virtualization
> www.OpenNebula.org | cmartin at opennebula.org | @OpenNebula<http://twitter.com/opennebula><cmartin at opennebula.org>
>
>
>
> ---------- Forwarded message ----------
> _____________________________________________
>  *From:* Fouchs, Alexandre (SCR US EXT)
> *Sent:* Monday, March 19, 2012 10:31 AM
> *To:* 'users at lists.opennebula.org'
> *Subject:* OpenNebula 3.3 and VMware ESXi 5
>
>
> Hi,
>
> I am currently evaluating OpenNebula and trying to configure it with a
> Debian Font End, a Ubuntu server for Image Repository and an ESXi 5
> Hypervisor.
>
> So far I think I have almost configured everything but one of the last
> steps is failing.
>
> Indeed when I try this command: onevm create templates/ubuntu-server01.vm
> onevm list indicates a ‘fail’ status for the created vm.
>
> Here is the log file:
>
> Mon Mar 19 10:17:46 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=mysql,DB_NAME=opennebula,PASSWD=***,PORT=0,SERVER=localhost,USER=oneadmin
> 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=-r 0 -t 15 kvm,EXECUTABLE=one_im_ssh,NAME=im_kvm
> IM_MAD=ARGUMENTS=-t 15 -r 0 vmware,EXECUTABLE=one_im_sh,NAME=im_vmware
> 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
> TM_MAD=ARGUMENTS=tm_vmware/tm_vmware.conf,EXECUTABLE=one_tm,NAME=tm_vmware
> VM_DIR=/srv/cloud/one/var/
> VM_MAD=ARGUMENTS=-t 15 -r 0
> kvm,DEFAULT=vmm_exec/vmm_exec_kvm.conf,EXECUTABLE=one_vmm_exec,NAME=vmm_kvm,TYPE=kvm
> VM_MAD=ARGUMENTS=-t 15 -r 0
> vmware,DEFAULT=vmm_exec/vmm_exec_vmware.conf,EXECUTABLE=one_vmm_sh,NAME=vmm_vmware,TYPE=vmware
> 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
> ----------------------------------------
> Mon Mar 19 10:17:46 2012 [ONE][I]: Log level:3
> [0=ERROR,1=WARNING,2=INFO,3=DEBUG]
> Mon Mar 19 10:17:46 2012 [ONE][I]: Checking database version.
> Mon Mar 19 10:17:46 2012 [VMM][I]: Starting Virtual Machine Manager...
> Mon Mar 19 10:17:46 2012 [LCM][I]: Starting Life-cycle Manager...
> Mon Mar 19 10:17:46 2012 [InM][I]: Starting Information Manager...
> Mon Mar 19 10:17:46 2012 [TrM][I]: Starting Transfer Manager...
> Mon Mar 19 10:17:46 2012 [DiM][I]: Starting Dispatch Manager...
> Mon Mar 19 10:17:46 2012 [HKM][I]: Starting Hook Manager...
> Mon Mar 19 10:17:46 2012 [AuM][I]: Starting Auth Manager...
> Mon Mar 19 10:17:46 2012 [LCM][I]: Life-cycle Manager started.
> Mon Mar 19 10:17:46 2012 [TrM][I]: Transfer Manager started.
> Mon Mar 19 10:17:46 2012 [VMM][I]: Virtual Machine Manager started.
> Mon Mar 19 10:17:46 2012 [DiM][I]: Dispatch Manager started.
> Mon Mar 19 10:17:46 2012 [InM][I]: Information Manager started.
> Mon Mar 19 10:17:46 2012 [HKM][I]: Hook Manager started.
> Mon Mar 19 10:17:46 2012 [ImM][I]: Starting Image Manager...
> Mon Mar 19 10:17:46 2012 [ReM][I]: Starting Request Manager...
> Mon Mar 19 10:17:46 2012 [ReM][I]: Starting XML-RPC server, port 2633 ...
> Mon Mar 19 10:17:46 2012 [ImM][I]: Image Manager started.
> Mon Mar 19 10:17:46 2012 [AuM][I]: Authorization Manager started.
> Mon Mar 19 10:17:46 2012 [ReM][I]: Request Manager started.
> Mon Mar 19 10:17:48 2012 [VMM][I]: Loading Virtual Machine Manager drivers.
> Mon Mar 19 10:17:48 2012 [VMM][I]:       Loading driver: vmm_kvm (KVM)
> Mon Mar 19 10:17:48 2012 [VMM][I]:       Driver vmm_kvm loaded.
> Mon Mar 19 10:17:48 2012 [VMM][I]:       Loading driver: vmm_vmware
> (VMWARE)
> Mon Mar 19 10:17:48 2012 [VMM][I]:       Driver vmm_vmware loaded.
> Mon Mar 19 10:17:48 2012 [InM][I]: Loading Information Manager drivers.
> Mon Mar 19 10:17:48 2012 [InM][I]:       Loading driver: im_kvm
> Mon Mar 19 10:17:48 2012 [InM][I]:       Driver im_kvm loaded
> Mon Mar 19 10:17:48 2012 [InM][I]:       Loading driver: im_vmware
> Mon Mar 19 10:17:48 2012 [InM][I]:       Driver im_vmware loaded
> Mon Mar 19 10:17:48 2012 [TM][I]: Loading Transfer Manager drivers.
> Mon Mar 19 10:17:48 2012 [VMM][I]:       Loading driver: tm_shared
> Mon Mar 19 10:17:48 2012 [TM][I]:        Driver tm_shared loaded.
> Mon Mar 19 10:17:48 2012 [VMM][I]:       Loading driver: tm_vmware
> Mon Mar 19 10:17:48 2012 [TM][I]:        Driver tm_vmware loaded.
> Mon Mar 19 10:17:48 2012 [HKM][I]: Loading Hook Manager driver.
> Mon Mar 19 10:17:48 2012 [HKM][I]:       Hook Manager loaded
> Mon Mar 19 10:17:48 2012 [ImM][I]: Loading Image Manager driver.
> Mon Mar 19 10:17:48 2012 [ImM][I]:       Image Manager loaded
> Mon Mar 19 10:17:48 2012 [AuM][I]: Loading Auth. Manager driver.
> Mon Mar 19 10:17:48 2012 [AuM][I]:       Auth Manager loaded
> Mon Mar 19 10:18:08 2012 [ReM][D]: VirtualMachineAllocate method invoked
> Mon Mar 19 10:18:16 2012 [ReM][D]: HostPoolInfo method invoked
> Mon Mar 19 10:18:16 2012 [ReM][D]: VirtualMachinePoolInfo method invoked
> Mon Mar 19 10:18:16 2012 [ReM][D]: AclInfo method invoked
> Mon Mar 19 10:18:16 2012 [ReM][D]: VirtualMachineDeploy method invoked
> Mon Mar 19 10:18:16 2012 [DiM][D]: Deploying VM 10
> Mon Mar 19 10:18:46 2012 [ReM][D]: HostPoolInfo method invoked
> Mon Mar 19 10:18:47 2012 [ReM][D]: VirtualMachinePoolInfo method invoked
> Mon Mar 19 10:18:47 2012 [ReM][D]: AclInfo method invoked
> Mon Mar 19 10:19:13 2012 [TM][D]: Message received: LOG D 10 tm_clone.sh:
> debianFrontEnd:/srv/cloud/one/var/images/a5e58005b77a0672cdec8b4438618ee5
> esxi102:/srv/cloud/one/var//10/images/disk.0
>
> Mon Mar 19 10:19:13 2012 [TM][D]: Message received: LOG D 10 tm_clone.sh:
> DST: /srv/cloud/one/var//10/images/disk.0
>
> Mon Mar 19 10:19:13 2012 [TM][D]: Message received: LOG I 10 tm_clone.sh:
> Creating directory disk.0
>
> Mon Mar 19 10:19:13 2012 [TM][D]: Message received: LOG I 10 tm_clone.sh:
> Executed "mkdir -p /srv/cloud/one/var//10/images/disk.0".
>
> Mon Mar 19 10:19:13 2012 [TM][D]: Message received: LOG I 10 tm_clone.sh:
> Executed "chmod a+rw /srv/cloud/one/var//10/images/disk.0".
>
> Mon Mar 19 10:19:13 2012 [TM][D]: Message received: LOG I 10 tm_clone.sh:
> Cloning /srv/cloud/one/var/images/a5e58005b77a0672cdec8b4438618ee5
>
> Mon Mar 19 10:19:13 2012 [TM][D]: Message received: LOG I 10 tm_clone.sh:
> Executed "cp -r
> /srv/cloud/one/var/images/a5e58005b77a0672cdec8b4438618ee5/*
> /srv/cloud/one/var//10/images/disk.0".
>
> Mon Mar 19 10:19:13 2012 [TM][D]: Message received: LOG I 10 ExitCode: 0
>
> Mon Mar 19 10:19:13 2012 [TM][D]: Message received: TRANSFER SUCCESS 10 -
>
> Mon Mar 19 10:19:13 2012 [VMM][D]: Message received: LOG I 10 Command
> execution fail: /srv/cloud/one/var/remotes/vnm/vmware/pre
> PFZNPjxJRD4xMDwvSUQ+PFVJRD4wPC9VSUQ+PEdJRD4wPC9HSUQ+PFVOQU1FPm9uZWFkbWluPC9VTkFNRT48R05BTUU+b25lYW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> executing: /usr/bin/vicfg-vswitch --username=oneadmin --password=***
> --server=esxi102 --check-pg one-pg-0 VM Network err: sh:
> /usr/bin/vicfg-vswitch: not found
>
> Mon Mar 19 10:19:13 2012 [VMM][D]: Message received: LOG I 10 ExitCode: 127
>
> Mon Mar 19 10:19:13 2012 [VMM][D]: Message received: LOG I 10 out:
>
> Mon Mar 19 10:19:13 2012 [VMM][D]: Message received: LOG I 10
> /srv/cloud/one/var/remotes/vnm/vmware/VMware.rb:97:in `check_pg': undefined
> method `strip!' for 127:Fixnum (NoMethodError)
>
> Mon Mar 19 10:19:13 2012 [VMM][D]: Message received: LOG I 10 from
> /srv/cloud/one/var/remotes/vnm/vmware/VMware.rb:79:in `activate'
>
> Mon Mar 19 10:19:13 2012 [VMM][D]: Message received: LOG I 10 from
> /srv/cloud/one/var/remotes/vnm/vmware/../OpenNebulaNetwork.rb:80:in `call'
>
> Mon Mar 19 10:19:13 2012 [VMM][D]: Message received: LOG I 10 from
> /srv/cloud/one/var/remotes/vnm/vmware/../OpenNebulaNetwork.rb:80:in
> `each_nic'
>
> Mon Mar 19 10:19:13 2012 [VMM][D]: Message received: LOG I 10 from
> /srv/cloud/one/var/remotes/vnm/vmware/../OpenNebulaNetwork.rb:79:in `each'
>
> Mon Mar 19 10:19:13 2012 [VMM][D]: Message received: LOG I 10 from
> /srv/cloud/one/var/remotes/vnm/vmware/../OpenNebulaNetwork.rb:79:in
> `each_nic'
>
> Mon Mar 19 10:19:13 2012 [VMM][D]: Message received: LOG I 10 from
> /srv/cloud/one/var/remotes/vnm/vmware/../OpenNebulaNetwork.rb:115:in
> `process'
>
> Mon Mar 19 10:19:13 2012 [VMM][D]: Message received: LOG I 10 from
> /srv/cloud/one/var/remotes/vnm/vmware/VMware.rb:64:in `activate'
>
> Mon Mar 19 10:19:13 2012 [VMM][D]: Message received: LOG I 10 from
> /srv/cloud/one/var/remotes/vnm/vmware/pre:30
>
> Mon Mar 19 10:19:13 2012 [VMM][D]: Message received: LOG I 10 ExitCode: 1
>
> Mon Mar 19 10:19:13 2012 [VMM][D]: Message received: LOG I 10 Failed to
> execute network driver operation: pre.
>
> Mon Mar 19 10:19:13 2012 [VMM][D]: Message received: DEPLOY FAILURE 10 -
>
> Mon Mar 19 10:19:18 2012 [ReM][D]: HostPoolInfo method invoked
> Mon Mar 19 10:19:18 2012 [ReM][D]: VirtualMachinePoolInfo method invoked
> Mon Mar 19 10:19:18 2012 [ReM][D]: AclInfo method invoked
> Mon Mar 19 10:19:18 2012 [ReM][D]: VirtualMachinePoolInfo method invoked
>
>
> Here is templates/ubuntu-server01.vm:
>
> NAME = "UbuntuServer02"
> CPU = 1
> MEMORY = 152
>
> DISK = [ IMAGE = "Ubuntu Server",
>         TARGET = hda ]
>
> NIC  = [ NETWORK = "ESXi Network" ]
>
>
> Here is the image:
>
> NAME = "Ubuntu Server"
> PATH = vmware:///images/ubuntu-server-10.04-amd64
> TYPE = OS
>
> (ubuntu-server-10.04-amd64 downloaded from thoughtpolice.co.uk)
>
>
> Thank you very much for your assistance.
>
>
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>


-- 
Jaime Melis
Project Engineer
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org | jmelis at opennebula.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120320/a0b1f92f/attachment-0003.htm>


More information about the Users mailing list