[one-users] How to create a new template using Ruby OCA API

2012-01-18 Thread Tommy Aditya Lawanto
Hi All, I read guide about adding a new template on http://opennebula.org/documentation:rel3.2:vm_guide, which need a file containing the vm definition. However, when i get to the Ruby OCA API on http://opennebula.org/doc/3.0/oca/ruby/. I cannot find any method for creating a new template

Re: [one-users] Problem in starting sunstone server

2012-01-18 Thread Hector Sanjuan
Hello, to install all necessary gems for opennebula it is useful to run the install_gems script, which can be found in /usr/share/one. There is more info here http://opennebula.org/documentation:rel3.2:compile#ruby_dependencies. Hector En Wed, 18 Jan 2012 08:56:44 +0100, Manuel Padrón

Re: [one-users] How to create a new template using Ruby OCA API

2012-01-18 Thread Hector Sanjuan
Hi, it could be something like require 'OpenNebula' include 'OpenNebula' (...) template = Template.new(Template.build_xml(),@client) template.allocate(template_str) where template_str is the contents of the template file containing the vm definition. You can read them from file

Re: [one-users] onehost create Error

2012-01-18 Thread Mohit Dhingra
Well I have installed newer version, OpenNebula3.2, and everything is working fine. Thanks for your support!! * Thanks Regards Mohit Dhingra +919611190435* On 17 January 2012 21:54, Mohit Dhingra mohitdhing...@gmail.com wrote: Yes, file is present there. When I

Re: [one-users] Problem in starting sunstone server

2012-01-18 Thread Susmita Horrow
I ran install_gems. But it still gives the same error. Regards Susmita Horrow ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Re: [one-users] Problem in starting sunstone server

2012-01-18 Thread Hector Sanjuan
That's strange, because the missing gem is tilt, and it since it is a sinatra dependency, i believe it should have been installed along with it. Anycase, try installing it manually sudo gem install tilt. Hector En Wed, 18 Jan 2012 10:48:51 +0100, Susmita Horrow hsusmi...@gmail.com

Re: [one-users] Problem in starting sunstone server

2012-01-18 Thread Susmita Horrow
The same error persists. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

[one-users] Error in monitoring host

2012-01-18 Thread Susmita Horrow
Hello, The front end is able to ssh cluster passwordlessly. But while monitoring cluster, it is prompting for password The log file contains the following error. Wed Jan 18 15:55:40 2012 [InM][I]: Command execution fail: 'if [ -x /var/tmp/one/im/run_probes ]; then /var/tmp/one/im/run_probes vbox

Re: [one-users] users, groups and permissions

2012-01-18 Thread Carlos Martín Sánchez
Hi, The scenario you describe was indeed a limitation of OpenNebula 3.0. The permissions have been greatly improved in the recently released OpenNebula 3.2, so I advise you to upgrade [1], and take a look at the new user, group, other permissions [2]. Your VMs will be now private by default, or

[one-users] heterogeneous (KVM + Xen) nodes and scheduler

2012-01-18 Thread Rolandas Naujikas
Hi, We just did upgrade to opennebula 3.2 (from 3.0) and it works !!! But we have problem with heterogeneous nodes support. We have some nodes as KVM and some as Xen (mostly old hardware, not supporting KVM). When we submit template (created with wizard in sunstone) for KVM or Xen, it could be

Re: [one-users] Removing old VMs

2012-01-18 Thread Carlos Martín Sánchez
Hi, I think the best way to solve it is to add some configuration option to purge all VMs that reach the DONE state, deleting them from the DB and the filesystem. This would break the accounting, however. We will consider this for next versions, thanks for your feedback. -- Carlos Martín, MSc

[one-users] secure noVNC installation

2012-01-18 Thread Rolandas Naujikas
Hi, Currently I run sunstone through web proxy with ssl (https://) support, but noVNC is not encrypted (and by default it doesn't work in recent Firefox without changing websocket configuration parameters). Is it possible to enable ssl (wss://) support in noVNC and how to do that ? Regards,

[one-users] bug? in xen support (in opennebula 3.2)

2012-01-18 Thread Rolandas Naujikas
Hi, After some usage of Xen support in opennebula I found several bash -s processes (and connections) hung in Xen nodes. In previous version (3.0) it was not here. Restart of oned cleans them up. Regards, Rolandas ___ Users mailing list

Re: [one-users] heterogeneous (KVM + Xen) nodes and scheduler

2012-01-18 Thread Carlos Martín Sánchez
Hi, You can use REQUIREMENTS [1] to request any Host attribute seen in the 'onehost show' output. For example: REQUIREMENTS = HYPERVISOR=\kvm\ Regards. [1] http://opennebula.org/documentation:rel3.2:template#placement_section -- Carlos Martín, MSc Project Engineer OpenNebula - The Open Source

Re: [one-users] Clean up OpenNebula

2012-01-18 Thread Carlos Martín Sánchez
Hi, If you update the pool_control table without a cleanup of the pool tables you will face some inconsistencies. To reset opennebula, the easiest way is to delete the DB. With sqlite, just execute 'rm /var/lib/one/one.db', or issue a 'drop database' in mysql. Regards. -- Carlos Martín, MSc

[one-users] oneacct doesn't work (bug)

2012-01-18 Thread Rolandas Naujikas
Hi, Opennebula is installed from package (in Debian 6.0.3). $ oneacct /usr/bin/oneacct:27: undefined method `+' for nil:NilClass (NoMethodError) By looking into /usr/bin/oneacct I see: ONE_LOCATION=ENV['ONE_LOCATION'] $: ONE_LOCATION+'/lib/ruby' $: ONE_LOCATION+'/lib/ruby/cli' What will

[one-users] onezone list 491 HTTP error!

2012-01-18 Thread Nasser Mooman
On the opennebula server (0Zone server) I was able to create zone and viewed on the http://192.168.149.101:6121/. But when I tri the command line I get the following error: oneadmin@opennebula-nsr:~$ onezone list Operating with zone failed with HTTP error code: 401 oneadmin@opennebula-nsr:~$

Re: [one-users] onezone list 491 HTTP error!

2012-01-18 Thread Hector Sanjuan
Hello, Please check that OZONES_AUTH env variable points to a correct username:password file. Hope it helps, Hector En Wed, 18 Jan 2012 13:56:48 +0100, Nasser Mooman nmoo...@yahoo.com escribió: On the opennebula server (0Zone server) I was able to create zone and viewed on the

Re: [one-users] Error in monitoring host

2012-01-18 Thread Raymundo Vasquez
I've reported this already, and this worked for me http://dev.opennebula.org/issues/1041 2012/1/18 Susmita Horrow hsusmi...@gmail.com Hello, The front end is able to ssh cluster passwordlessly. But while monitoring cluster, it is prompting for password The log file contains the following

[one-users] OpenNebulaV3.0 + Openvswitch

2012-01-18 Thread NEVEU Stephane
Hi all, Just some quick questions : - Do I still need to use the compatibility layer for linux bridge (cf documentation) to create my bridge with brctl or can I use ovs-vsctl add-br br0 ? - Where can I tag a vlan in sunstone virtual networks ? Many thanks, Regards,

Re: [one-users] oneacct doesn't work (bug)

2012-01-18 Thread Javier Fontan
Thanks for reporting. I've created a ticket to track this problem http://dev.opennebula.org/issues/1063 We will provide a fix for this as soon as possible. On Wed, Jan 18, 2012 at 1:31 PM, Rolandas Naujikas rolandas.nauji...@mif.vu.lt wrote: Hi, Opennebula is installed from package (in Debian

Re: [one-users] opennebula 3.0 virtual networks assign IPs out of allocated RANGE

2012-01-18 Thread Carlos Martín Sánchez
Hi, The ranged network definition in OpenNebula 3.0 can be a bit confusing, because the NETWORK_ADDRESS is not the first IP, but rather the base address to use for the range. In your case, for 96 addresses the base address is 10.206.223.0, giving you the range 10.206.223.1 to 10.206.223.96. You

Re: [one-users] OpenNebulaV3.0 + Openvswitch

2012-01-18 Thread NEVEU Stephane
Ok sorry regarding the documentation for opennebula 3.2 : http://opennebula.org/documentation:rel3.2:openvswitch Compatibility layer for bridge is still needed and the way to tag a vlan is to set : VLAN= YES VLAN_ID = 50 -- De : users-boun...@lists.opennebula.org

Re: [one-users] bug? in xen support (in opennebula 3.2)

2012-01-18 Thread Javier Fontan
Those hanging bash processes probably belong to the new virtual network scripts execution code. We changed the way we execute network isolation scripts alongside normal Virtual Manager actions so we only use one ssh connection per action. In our tests this performed well but we will check if

[one-users] User couldn't be authenticated

2012-01-18 Thread Alejandro Feijoo Fraga
Hi. We have a server, recently updated to OpenNebula 3.2 In this server, onevm with user cloudsme work fine (with ONE_AUTH file) but, we have other server that conect to the first one. In this server, with same home, the command dont work fine... well.. not work... -bash-4.1$ onevm list

Re: [one-users] Host with different TM - migration

2012-01-18 Thread Tino Vazquez
Hi Grzegorz, Starting the migration from a shared-fs host to a host using ssh staging is doomed to failure since, as you said, the shared TM won't do anything as it is assuming that the target host shares the filesystem. This is documented nowhere (apologies about that, I've just opened a ticket

Re: [one-users] OpenNebulaV3.0 + Openvswitch

2012-01-18 Thread Jaime Melis
Hello, that's correct. Cheers, Jaime On Wed, Jan 18, 2012 at 4:24 PM, NEVEU Stephane stephane.ne...@thalesgroup.com wrote: Ok sorry regarding the documentation for opennebula 3.2 : http://opennebula.org/documentation:rel3.2:openvswitch ** ** Compatibility layer for bridge is

Re: [one-users] oneacct doesn't work (bug)

2012-01-18 Thread Olivier Sallou
I faced same issue with one 3 but I faced after that another issue, after setting correctly the path to /usr/lib/one/ruby: oneadmin@genokvm4:~$ oneacct -u 0 -j

Re: [one-users] OpenNebula 3.2 VM deployment failure

2012-01-18 Thread Javier Fontan
Hello, VM_DIR is only used for nodes, OpenNebula always expect to have image files for the VMs in /var/lib/one. You can do two things in you frontend: * Mount you shared storage in /var/lib/one * Make /var/lib/one a symlink to /p00 (supposing that the shared storage is accesible in this path

Re: [one-users] Shared File System mixed with non-shared

2012-01-18 Thread Tino Vazquez
Hi Oriol, The scenario you define is entirely possible, and the approach with the templates of the public cloud interfaces is very sound. About mixing both storage methods in the same host, this is not advisable since the scheduler will be confused and will possibly overbook resources. Regards,

Re: [one-users] save a VM and shutdown it with curl comamand

2012-01-18 Thread Daniel Molina
Hi, On 17 January 2012 18:20, salma rebai rebai.sa...@gmail.com wrote: Hi all, I am using OCCI with Opennebula. I can create, delete and list VMs. But I can't save a VM before I shutdown it. Can you help me to know how to save and shutdown a VM when using curl command with occi. Is there

Re: [one-users] Error in monitoring host

2012-01-18 Thread Javier Fontan
Did you have a directory with that name (/var/tmp/one) in the nodes when the errors were happening? Usually /var/tmp is writable by everyone but maybe we've just found a distro that does not setup the tmp dir that way. On Wed, Jan 18, 2012 at 2:09 PM, Raymundo Vasquez rvasq...@b-phot.org wrote:

[one-users] How to access VMs?

2012-01-18 Thread Mohit Dhingra
*Hi All, *I have been able to create host, vnet and VM, using CLI using attached template files. But I don't know how to access VMs. I tried pinging ip address assigned to VM - 10.112.10.52. But, was not able to get any reply. Then I tried using vncviewer.

Re: [one-users] User couldn't be authenticated

2012-01-18 Thread Alejandro Feijoo Fraga
Ok... the only solution was updated... from 3.1 to 3.2 Thanks... El 18/01/12 16:52, Daniel Molina escribió: Hi, On 18 January 2012 16:39, Alejandro Feijoo Fragaalfei...@cesga.es wrote: Hi. We have a server, recently updated to OpenNebula 3.2 In this server, onevm with user cloudsme work

Re: [one-users] oneacct doesn't work (bug)

2012-01-18 Thread Javier Fontan
That is indeed a problem, inside network there should be another hash with tx and rx. Can you check that xml output (-x) has the same problem? I just want to narrow down the problem. Probably the problem is only in the oneacct tool and the data is still in the database. On Wed, Jan 18, 2012 at

[one-users] Attributes SOURCE (DISK section) and FILES (CONTEXT section) in OpenNebula 3.2

2012-01-18 Thread Ruben Diez
Hi: We just migrate to OpenNebula 3.2 and we have found that some users can't instantiate their VMs... After consult at: http://opennebula.org/documentation:rel3.2:template#disks_section and http://opennebula.org/documentation:rel3.2:template#context_section We know that the use of

Re: [one-users] oneacct doesn't work (bug)

2012-01-18 Thread Olivier Sallou
Le 1/18/12 5:40 PM, Javier Fontan a écrit : That is indeed a problem, inside network there should be another hash with tx and rx. Can you check that xml output (-x) has the same problem? I just want to narrow down the problem. Probably the problem is only in the oneacct tool and the data is

Re: [one-users] oneacct doesn't work (bug)

2012-01-18 Thread Javier Fontan
Lovely, I'll take a look into it. If you happen to have an accounting database where this happens and you don't have sensible data in it can you get in touch with me to send it? Thanks On Wed, Jan 18, 2012 at 6:15 PM, Olivier Sallou olivier.sal...@irisa.fr wrote: Le 1/18/12 5:40 PM, Javier

Re: [one-users] Network Configuration - IP assignment

2012-01-18 Thread Shantanu Pavgi
I think most hypervisors can assign MAC address dynamically on their own. I haven't used Xen so I am not sure about it, but KVM and VMware ESXi can auto-generate MAC addresses. Also, the VMware ESXi has a separate range for manually (non-ESXi) assigned MAC addresses [1] [2]. See: 1.

Re: [one-users] Network Configuration - IP assignment

2012-01-18 Thread Ruben S. Montero
Hi, The reason for using OpenNebula to assign MAC addresses mainly applies for distributed environments (more than one hypervisor). Note that you not only need the hypervisor to assign the MAC address but also guarantee that the MAC address has not been assigned by other KVM in your

Re: [one-users] Attributes SOURCE (DISK section) and FILES (CONTEXT section) in OpenNebula 3.2

2012-01-18 Thread Ruben S. Montero
Hi, First, let me briefly explain the rationale behind this. Both parameters (SOURCE, FILES in CONTEXT) lets ANY user to access ANY file that the oneadmin UNIX account can access. A simple and direct exploit is to put DISK = [ SOURCE = /var/lib/one/one.db ] (or equivalently in CONTEXT) and

Re: [one-users] Problem in starting sunstone server

2012-01-18 Thread Susmita Horrow
Thank you so much. It fixed my problem. I had to make the change in uuid-2.3.4.gemspec and tilt-1.3.3.gemspec. Regards Susmita ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Re: [one-users] Problem in starting sunstone server

2012-01-18 Thread Susmita Horrow
The server is getting started, but I cannot login. The screens remains intact telling invalid username and password. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

[one-users] Sunstone-server login error (opennebula not running)

2012-01-18 Thread Susmita Horrow
While login I am getting the error opennebula not running. oned.log shows the folowoing error. Thu Jan 19 11:34:37 2012 [AuM][D]: Message received: AUTHENTICATE FAILURE 0 Authentication protocol 'plain' not available Thu Jan 19 11:34:37 2012 [AuM][E]: Auth Error: Authentication protocol 'plain'