[one-users] vm and SUSE 10.3 HA

2013-10-10 Thread Sam Song
Hi forks,

Is there anyone configure a SUSE 10.3 HA cluster on two vms started
by ONE 4.0. The ds mad is fs, tm mad is shared, vm mad is kvm.
I am not good at SUSE HA configuration, but in my opinion, the
biggest challenge is how to share states between two vm which can only
attach local disk(one disk can't be attached to to vms at the same time).
Any suggestions?
Thanks in advance.

Sam

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] VMware stay in error when added

2013-10-10 Thread George Varnfield
Hi ,

 

I'm new to opennebula and I installed ver 4.2  on a Centos 6.4 Machine
following the VMware-based OpenNebula Cloud quickstart guide but using mysql
as the database backend.

 

Net result is that I got oned sunstone up and running fine however when I
add the esxi host via the command line it stays  in error: see below

 

 

 

-bash-4.1$ onehost list

  ID  NAME   CLUSTER  RVM
ALLOCATED_CPU ALLOCATED_MEM   STAT

   5   10.254.254.139  -  0
-  -
err

 

Oned log output

 

Fri Oct 11 14:21:11 2013 [InM][I]: Command execution fail:
/var/lib/one/remotes/im/run_probes vmware 5 10.254.254.139

Fri Oct 11 14:21:11 2013 [InM][I]:
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require': no such file to load -- builder (LoadError)

Fri Oct 11 14:21:11 2013 [InM][I]: from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'

Fri Oct 11 14:21:11 2013 [InM][I]: from
/usr/lib/one/ruby/vendors/rbvmomi/lib/rbvmomi/trivial_soap.rb:3

Fri Oct 11 14:21:11 2013 [InM][I]: from
/usr/lib/one/ruby/vendors/rbvmomi/lib/rbvmomi/connection.rb:4:in `require'

Fri Oct 11 14:21:11 2013 [InM][I]: from
/usr/lib/one/ruby/vendors/rbvmomi/lib/rbvmomi/connection.rb:4

Fri Oct 11 14:21:11 2013 [InM][I]: from
/usr/lib/one/ruby/vendors/rbvmomi/lib/rbvmomi.rb:11:in `require'

Fri Oct 11 14:21:11 2013 [InM][I]: from
/usr/lib/one/ruby/vendors/rbvmomi/lib/rbvmomi.rb:11

Fri Oct 11 14:21:11 2013 [InM][I]: from ../../vmm/vmware/vi_driver.rb:40:in
`require'

Fri Oct 11 14:21:11 2013 [InM][I]: from ../../vmm/vmware/vi_driver.rb:40

Fri Oct 11 14:21:11 2013 [InM][I]: from ./vmware.rb:29:in `require'

Fri Oct 11 14:21:11 2013 [InM][I]: from ./vmware.rb:29

Fri Oct 11 14:21:11 2013 [InM][E]: Error executing vmware.rb

Fri Oct 11 14:21:11 2013 [InM][I]: ExitCode: 1

Fri Oct 11 14:21:11 2013 [ONE][E]: Error monitoring Host 10.254.254.139 (5):
Error executing vmware.rb

Fri Oct 11 14:21:21 2013 [InM][I]: Monitoring datastore default (1)

Fri Oct 11 14:21:21 2013 [InM][I]: Monitoring datastore files (2)

Fri Oct 11 14:21:21 2013 [InM][I]: Monitoring datastore VMwareImages (100)

Fri Oct 11 14:21:21 2013 [ImM][E]: Error monitoring datastore 100: 

Fri Oct 11 14:21:21 2013 [ImM][I]: Datastore default (1) successfully
monitored.

Fri Oct 11 14:21:21 2013 [ImM][I]: Datastore files (2) successfully
monitored.

 

All the files are there and oneadmin is the owner of all the folders . can
someone just point me in a direction please ?

 

I also get a second error when I try to import an image from the market
place

Error

[ImageAllocate] Cannot determine Image SIZE. Either PATH or SOURCE are
required for OS

 

One again I configured all the datastores as per instruction  and allowed
ssh access to the vmware host  so if someone can point me to where to start
trouble shooting I will really appreciate that

 

Regards

 

George

 

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] migrate vm live error

2013-10-10 Thread hansz
hi,
live migrate error


Fri Oct 11 09:28:20 2013 [VMM][I]: Command execution fail: 
/var/lib/one/remotes/vmm/vmware/migrate 'one-203' '10.24.101.73' '10.24.101.35' 
203 10.24.101.35
Fri Oct 11 09:28:20 2013 [VMM][E]: migrate: Error executing: -r virsh -c 
vpx://10.24.101.71/123/10.24.101.35/?no_verify=1 migrate one-203 
vpx://10.24.101.71/123/10.24.101.73/?no_verify=1 err: ExitCode: 1
Fri Oct 11 09:28:20 2013 [VMM][I]: out: failed to connect to the hypervisor
Fri Oct 11 09:28:20 2013 [VMM][I]: ExitCode: 1
Fri Oct 11 09:28:20 2013 [VMM][I]: Failed to execute virtualization driver 
operation: migrate.
Fri Oct 11 09:28:20 2013 [VMM][E]: Error live migrating VM
Fri Oct 11 09:28:20 2013 [LCM][I]: Fail to live migrate VM. Assuming that the 
VM is still RUNNING (will poll VM).


my front-end /etc/one/vmware
# Libvirt congfiguration
:libvirt_uri: "'esx://@HOST@/?no_verify=1&auto_answer=1'"


# Username and password of the VMware hypervisor
:username: "oneadmin"
:password: "cloud1234!"


# VMotion configuration attributes
:datacenter: "123"
:vcenter: "10.24.101.71"






i have i try if i change :datacenter:"ha-datacenter"


Fri Oct 11 09:42:51 2013 [VMM][E]: migrate: Error executing: -r virsh -c 
vpx://10.24.101.71/ha-datacenter/10.24.101.35/?no_verify=1 migrate one-203 
vpx://10.24.101.71/ha-datacenter/10.24.101.73/?no_verify=1 err: ExitCode: 1
Fri Oct 11 09:42:51 2013 [VMM][I]: out: internal error curl_easy_perform() 
returned an error: Couldn't connect to server (7) : couldn't connect to host
Fri Oct 11 09:42:51 2013 [VMM][I]: error: failed to connect to the hypervisor
Fri Oct 11 09:42:51 2013 [VMM][I]: ExitCode: 1
Fri Oct 11 09:42:51 2013 [VMM][I]: Failed to execute virtualization driver 
operation: migrate.


[root@manager one]# virsh -c 
vpx://10.24.101.71/ha-datacenter/10.24.101.35/?no_verify=1 migrate one-203 
vpx://10.24.101.71/ha-datacenter/10.24.101.73/?no_verify=1
Enter username for 10.24.101.71 [administrator]: administrator   
Enter administrator's password for 10.24.101.71: 
error: internal error Could not find datacenter specified in 
'/ha-datacenter/10.24.101.35/'
error: failed to connect to the hypervisor




[root@manager one]# virsh -c 
vpx://10.24.101.71/ha-datacenter/10.24.101.35/?no_verify=1 migrate one-203 
vpx://10.24.101.71/ha-datacenter/10.24.101.73/?no_verify=1
Enter username for 10.24.101.71 [administrator]: oneadmin
Enter oneadmin's password for 10.24.101.71: 
error: internal error Could not find datacenter specified in 
'/ha-datacenter/10.24.101.35/'
error: failed to connect to the hypervisor

the Attachment is my vcenter's Architecture 






在 2013-10-10 17:15:08,"Tino Vazquez"  写道:
>Hi,
>
>Ok, perfect. Can you give us the output of:
>
>virsh -c vpx://10.24.101.71/123/qianyi/?no_verify=1migrate one-187
>vpx://10.24.101.71/123/vmware/?no_verify=1
>
>Regards,
>
>-Tino
>
>
>
>--
>OpenNebula - Flexible Enterprise Cloud Made Simple
>
>--
>Constantino Vázquez Blanco, PhD, MSc
>Senior Infrastructure Architect at C12G Labs
>www.c12g.com | @C12G | es.linkedin.com/in/tinova
>
>--
>Confidentiality Warning: The information contained in this e-mail and
>any accompanying documents, unless otherwise expressly indicated, is
>confidential and privileged, and is intended solely for the person
>and/or entity to whom it is addressed (i.e. those identified in the
>"To" and "cc" box). They are the property of C12G Labs S.L..
>Unauthorized distribution, review, use, disclosure, or copying of this
>communication, or any part thereof, is strictly prohibited and may be
>unlawful. If you have received this e-mail in error, please notify us
>immediately by e-mail at ab...@c12g.com and delete the e-mail and
>attachments and any copy from your system. C12G thanks you for your
>cooperation.


Architecture.docx
Description: application/vnd.openxmlformats-officedocument.wordprocessingml.document
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Shutting down a VM from within the VM

2013-10-10 Thread Nistor Andrei
Hi Ruben,

Do we really care if the VM was shut down from the inside or not? I was
thinking of a hook script like the following:

#!/bin/bash

VMID=$(echo $1 | cut -d- -f2)

if [ $2 == "stopped" ]; then
  onevm shutdown $VMID
fi

It's obviously just a big fat (untested) hack, which will probably backfire
when you use onevm poweroff or onevm stop.

Anyway, the point is that we can use those hooks to notify oned that the VM
is shut down. Then oned can decide if the shut down was initiated by the
user via onevm {shutdown,poweroff,stop}, in which case it would take the
appropriate action. If it wasn't initiated via onevm* commands, but was
initiated by the guest itself, we can take some configurable action -- shut
it down for batch jobs, or power it off for say... hosting customers.

Cheers,

Andrei

On Thu, Oct 10, 2013 at 12:38 PM, Ruben S. Montero  wrote:

> Hi Simon + Nistor,
>
> We've done some tests in the stock drivers when the VM is shutdown (from
> inside) the VM disappears from the list, show we cannot get the state (not
> even with --all). How do you get the paused state?
>
> On the other hand, the libvirt hook seems a good approach, since we could
> create a file in the VM directory (e.g. .shutdown-inside) and report the
> state accordingly. However we made some tests and there is no difference
> between the two.
>
> This hook:
>
> #!/bin/bash
>
> echo "`date`: $*" >> /tmp/hook
>
> Gives the same in both cases:
>
>  Thu Oct 10 11:27:56 CEST 2013: one-17 stopped end -  < shutdown
> inside
> Thu Oct 10 11:27:56 CEST 2013: one-17 release end -
> Thu Oct 10 11:33:07 CEST 2013: one-17 prepare begin -
> Thu Oct 10 11:33:07 CEST 2013: one-17 start begin - < boot
> Thu Oct 10 11:33:07 CEST 2013: one-17 started begin -
> Thu Oct 10 11:34:02 CEST 2013: one-17 stopped end - < shutdown via
> libvirt
> Thu Oct 10 11:34:02 CEST 2013: one-17 release end -
>
> So, the real problem is how to determine if the VM has been shutdown from
> inside or not
>
> Cheers
>
> Ruben
>
>
>
>
> On Mon, Oct 7, 2013 at 12:37 PM, Nistor Andrei wrote:
>
>> Hi,
>>
>> Maybe you can use libvirt hooks[1] to notify oned via the xmlrpc that the
>> VMs have shut down?
>>
>> [1] http://libvirt.org/hooks.html
>>
>> Andrei
>>
>>
>> On Fri, Oct 4, 2013 at 6:45 PM, Simon Boulet wrote:
>>
>>> Hi,
>>>
>>> Here our driver reports the state as returned by Libvirt [1], which
>>> reports VM terminated from the inside (shutdown) as Paused. When the
>>> OpenNebula driver sees a VM as being reported as paused [2], it
>>> switches the VM to SUSPENDED state in OpenNebula. Then you can restart
>>> the VM by issuing the resume action [3].
>>>
>>> So, I think OpenNebula has the building blocks for that, but I'm just
>>> unsure how it is implemented in the different OpenNebula drivers.
>>>
>>> [1]
>>> http://wiki.libvirt.org/page/VM_lifecycle#States_that_a_guest_domain_can_be_in
>>> [2]
>>> http://opennebula.org/documentation:rel4.2:devel-vmm#poll_information
>>> [3] http://opennebula.org/documentation:rel4.2:api#onevmaction
>>>
>>> Simon
>>>
>>> On Fri, Oct 4, 2013 at 9:43 AM, Parag Mhashilkar  wrote:
>>> > Hi Sharuzzaman,
>>> >
>>> > Thanks for your response. I am aware of the fact that OpenNebula
>>> requires human intervention when shutdown is issued from inside the VM. We
>>> can write scripts to do lot of things, but when in the business of resource
>>> provisioning, the resource provider does not necessarily control what runs
>>> in the VM, application that launches them and for obvious reasons I am not
>>> giving any access to ONE's database to the users. So these alternatives
>>> seem merely hacks rather than a much cleaner solution from the service.
>>> >
>>> > Such a feature is useful from a infrastructure provider's point of
>>> view. If AWS has done it (and Openstack I think) then there be a way out.
>>> >
>>> > -Parag
>>> >
>>> >
>>> > On Oct 3, 2013, at 9:27 PM, Sharuzzaman Ahmat Raslan wrote:
>>> >
>>> >> Hi Parag,
>>> >>
>>> >> I believe OpenNebula need to have human intervention to really
>>> determine whether to remove or not the VM that it has deployed.
>>> >>
>>> >> I also think that you can write a script that signal or call
>>> OpenNebula command as soon as the task finish, to shutdown the VM. Or if
>>> direct calling command not possible, maybe your application can write some
>>> status in a database, and a script in OpenNebula read that status and make
>>> decision from it.
>>> >>
>>> >> Thanks.
>>> >>
>>> >>
>>> >> On Thu, Oct 3, 2013 at 11:38 PM, Parag Mhashilkar 
>>> wrote:
>>> >> Hi,
>>> >>
>>> >> Does OpenNebula EC2 interface support shutting down a VM from with in
>>> the VM itself and have the scheduler recognize that VM has been
>>> stopped/shutdown? How do we enable this feature? At Fermi, we have
>>> OpenNebula v3.2 and when the VM is shutdown it stays in the UNKNOWN state.
>>> Can OpenNebula get this ACPI shutdown info from virsh and handle the
>>> situation more gracefully rather than putting the VM in UKNOW

Re: [one-users] OpenNebulaConf 2013: Recordings, Presentations and Pics

2013-10-10 Thread Valentin Bud
Hello All,

Nice indeed. Thanks!


On Thu, Oct 10, 2013 at 6:07 PM, Liu, Guang Jun (Gene) <
gene@alcatel-lucent.com> wrote:

> Very nice. Thanks!
>
> Gene Liu
>
> On Thu 10 Oct 2013 10:59:58 AM EDT, Tino Vazquez wrote:
> > Dear OpenNebula users,
> >
> > A very good atmosphere was created and breathed by all participants at
> > the OpenNebulaConf 2013 [1] last month in Berlin. Hugely interesting,
> > techie chats were held all over the place in small groups, with people
> > taking the chance to explain how do they use OpenNebula in their
> > infrastructures to build the IaaS layer that they want, not the one
> > that the Cloud Management Platform imposes. That is the great thing
> > about OpenNebula’s modular architecture.
> >
> > So if you want to remember the great ambient of the conference, or if
> > you haven’t got a chance to attend, here is your opportunity to
> > (re)visit the knowledge shared in the conference in the form of
> > recordings [2] of the keynotes and talks. Also, you can check out the
> > presentations [3] of the speakers if you want to consult a particular
> > detail that you do not quite remember. And, to make the experience
> > even more immersing, scout through the conference pictures [4].
> >
> > All the above is great, and you will feel almost as if you were there
> > if you didn’t. And we say almost because, as CentOS project director,
> > Karanbir Singh, said [5], the real value of a conference is what
> > happened behind the scenes, between talks, during the fantastic
> > evening event.
> >
> > So, if you liked what you just saw, make sure you **save the date for
> > 2-4 December, 2014!**.
> >
> > The OpenNebula Team
> >
> > [1]http://opennebulaconf.com
> > [2] VIDEOS
> http://opennebulaconf.com/previous/2013-09/presentations-2013/
> > [3] SLIDES   http://opennebulaconf.com/previous/2013-09/slides-2013/
> > [4] PICS   http://opennebulaconf.com/previous/2013-09/pictures-2013/
> > [5]https://twitter.com/kbsingh/status/383538439808774145
> >
> > --
> > OpenNebula - Flexible Enterprise Cloud Made Simple
> >
> > --
> > Constantino Vázquez Blanco, PhD, MSc
> > Senior Infrastructure Architect at C12G Labs
> > www.c12g.com | @C12G | es.linkedin.com/in/tinova
> >
> > --
> > Confidentiality Warning: The information contained in this e-mail and
> > any accompanying documents, unless otherwise expressly indicated, is
> > confidential and privileged, and is intended solely for the person
> > and/or entity to whom it is addressed (i.e. those identified in the
> > "To" and "cc" box). They are the property of C12G Labs S.L..
> > Unauthorized distribution, review, use, disclosure, or copying of this
> > communication, or any part thereof, is strictly prohibited and may be
> > unlawful. If you have received this e-mail in error, please notify us
> > immediately by e-mail at ab...@c12g.com and delete the e-mail and
> > attachments and any copy from your system. C12G thanks you for your
> > cooperation.
> > ___
> > Users mailing list
> > Users@lists.opennebula.org
> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> >
> >
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



-- 
Valentin Bud
http://databus.pro | valen...@databus.pro
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] OpenNebulaConf 2013: Recordings, Presentations and Pics

2013-10-10 Thread Liu, Guang Jun (Gene)
Very nice. Thanks!

Gene Liu

On Thu 10 Oct 2013 10:59:58 AM EDT, Tino Vazquez wrote:
> Dear OpenNebula users,
>
> A very good atmosphere was created and breathed by all participants at
> the OpenNebulaConf 2013 [1] last month in Berlin. Hugely interesting,
> techie chats were held all over the place in small groups, with people
> taking the chance to explain how do they use OpenNebula in their
> infrastructures to build the IaaS layer that they want, not the one
> that the Cloud Management Platform imposes. That is the great thing
> about OpenNebula’s modular architecture.
>
> So if you want to remember the great ambient of the conference, or if
> you haven’t got a chance to attend, here is your opportunity to
> (re)visit the knowledge shared in the conference in the form of
> recordings [2] of the keynotes and talks. Also, you can check out the
> presentations [3] of the speakers if you want to consult a particular
> detail that you do not quite remember. And, to make the experience
> even more immersing, scout through the conference pictures [4].
>
> All the above is great, and you will feel almost as if you were there
> if you didn’t. And we say almost because, as CentOS project director,
> Karanbir Singh, said [5], the real value of a conference is what
> happened behind the scenes, between talks, during the fantastic
> evening event.
>
> So, if you liked what you just saw, make sure you **save the date for
> 2-4 December, 2014!**.
>
> The OpenNebula Team
>
> [1]http://opennebulaconf.com
> [2] VIDEOS  http://opennebulaconf.com/previous/2013-09/presentations-2013/
> [3] SLIDES   http://opennebulaconf.com/previous/2013-09/slides-2013/
> [4] PICS   http://opennebulaconf.com/previous/2013-09/pictures-2013/
> [5]https://twitter.com/kbsingh/status/383538439808774145
>
> --
> OpenNebula - Flexible Enterprise Cloud Made Simple
>
> --
> Constantino Vázquez Blanco, PhD, MSc
> Senior Infrastructure Architect at C12G Labs
> www.c12g.com | @C12G | es.linkedin.com/in/tinova
>
> --
> Confidentiality Warning: The information contained in this e-mail and
> any accompanying documents, unless otherwise expressly indicated, is
> confidential and privileged, and is intended solely for the person
> and/or entity to whom it is addressed (i.e. those identified in the
> "To" and "cc" box). They are the property of C12G Labs S.L..
> Unauthorized distribution, review, use, disclosure, or copying of this
> communication, or any part thereof, is strictly prohibited and may be
> unlawful. If you have received this e-mail in error, please notify us
> immediately by e-mail at ab...@c12g.com and delete the e-mail and
> attachments and any copy from your system. C12G thanks you for your
> cooperation.
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] OpenNebulaConf 2013: Recordings, Presentations and Pics

2013-10-10 Thread Tino Vazquez
Dear OpenNebula users,

A very good atmosphere was created and breathed by all participants at
the OpenNebulaConf 2013 [1] last month in Berlin. Hugely interesting,
techie chats were held all over the place in small groups, with people
taking the chance to explain how do they use OpenNebula in their
infrastructures to build the IaaS layer that they want, not the one
that the Cloud Management Platform imposes. That is the great thing
about OpenNebula’s modular architecture.

So if you want to remember the great ambient of the conference, or if
you haven’t got a chance to attend, here is your opportunity to
(re)visit the knowledge shared in the conference in the form of
recordings [2] of the keynotes and talks. Also, you can check out the
presentations [3] of the speakers if you want to consult a particular
detail that you do not quite remember. And, to make the experience
even more immersing, scout through the conference pictures [4].

All the above is great, and you will feel almost as if you were there
if you didn’t. And we say almost because, as CentOS project director,
Karanbir Singh, said [5], the real value of a conference is what
happened behind the scenes, between talks, during the fantastic
evening event.

So, if you liked what you just saw, make sure you **save the date for
2-4 December, 2014!**.

The OpenNebula Team

[1]http://opennebulaconf.com
[2] VIDEOS  http://opennebulaconf.com/previous/2013-09/presentations-2013/
[3] SLIDES   http://opennebulaconf.com/previous/2013-09/slides-2013/
[4] PICS   http://opennebulaconf.com/previous/2013-09/pictures-2013/
[5]https://twitter.com/kbsingh/status/383538439808774145

--
OpenNebula - Flexible Enterprise Cloud Made Simple

--
Constantino Vázquez Blanco, PhD, MSc
Senior Infrastructure Architect at C12G Labs
www.c12g.com | @C12G | es.linkedin.com/in/tinova

--
Confidentiality Warning: The information contained in this e-mail and
any accompanying documents, unless otherwise expressly indicated, is
confidential and privileged, and is intended solely for the person
and/or entity to whom it is addressed (i.e. those identified in the
"To" and "cc" box). They are the property of C12G Labs S.L..
Unauthorized distribution, review, use, disclosure, or copying of this
communication, or any part thereof, is strictly prohibited and may be
unlawful. If you have received this e-mail in error, please notify us
immediately by e-mail at ab...@c12g.com and delete the e-mail and
attachments and any copy from your system. C12G thanks you for your
cooperation.
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Creation of templates by cloud users in Sunstone 4.2.0 views

2013-10-10 Thread Gerry O'Brien

Hi Daniel,

Thanks for your time in providing support. Looking forward to 
seeing version 4.4.


Regards,
Gerry

On 10/10/2013 09:23, Daniel Molina wrote:

Hi Gerry,


On 8 October 2013 18:04, Gerry O'Brien  wrote:


Hi Daniel,

   What we are really trying to do is emulate the OCCI self-service
GUI.  We potentially have a lot of networks (routed and non-routed) which
could be used for teaching and research so having a set of core templates
that can be modified on-the-fly is a very useful feature. Also, we could
have many different images so predefined templates for  (networks) X
(images) x (CPU/memory specs) starts to get large and requires continual
maintenance as images are updated. Having the OCCI stubs simplifies this.
If there were quotas on templates and/or if user templates were somehow
hidden then it might be feasible to let users create their own templates
and ignore them.


Ok, so I think the only functionality missing in the new cloud view is
selecting a network. In the OCCI self-service you can define CPU/MEMORY/...
in the file based templates, in the cloud view you can do the same thing
but using OpenNebula templates instead of files. This allows you to use
restricted attributes and define different base templates for different
users/groups. In the OCCI-ss, when you create a new compute (vm) you select
an instance_type, storage and network and a new vm is instantiated using
this information. In the new cloud view, when you launch a new vm you
select a template (former instance_type) and an image, the information is
merged and a new vm is created, but you don't have to create a new
template. Therefore, I think the only piece missing is selecting the
network when the vm is launched.



 There is also the question of human resources in providing support for
OpenNebual users. Switching from the OCCI GUI requires retraining of
support staff. On the other hand, the view model will clearly be more
flexible in the long run and will facilitate provisioning for more
sophisticated users who can be trusted not to create large amounts of
templates.


I agree.



 In the meantime we have pointed the 3.8 OCCI GUI at the 4.2 core and
everything looks good so far. The only change we had to make was to
explicitly specify the OS parameters (BOOT and ARCH) in the stub templates,
otherwise the VMs wouldn't boot.


The 3.8 OCCI GUI is not tested on top of one-4.2 but it should work.



 I'm not sure I follow you suggestion below as to how cloud users could
install from CD. How would they specify a different boot device?


Specifying multiple boot devices is not supported in one-4.2, but it is
already implemented for 4.4
http://dev.opennebula.org/issues/538



 One new feature that we would find really useful would be if users
were allowed to CLONE to a different datastore. We tend to put our system
images and any public images in datastore 1 and user images in other
datastores. We have to run multiple versions of the OCCI to direct
different classes of users to different datastores. It would be nice if
users could clone from public images in datastore 1 into their own
datastore. I guess AppMarket is the proper way to do this, but simple
cloning is easy.


Indeed, there is already a feature request in our dev page for that
feature, maybe we can consider it for upcoming release:
http://dev.opennebula.org/issues/1696

But, as you said I think the best fit for your use case is using the
AppMarket component, you can host base images for your users and they will
be able to import them to their datastore.

Thank you for your feedback



 Regards,
 Gerry



  On 08/10/2013 13:59, Daniel Molina wrote:


On 8 October 2013 12:55, Gerry O'Brien  wrote:

  Hi Daniel,

  I have already created templates for cloud users but that does not
allow them, as far as I can see, to make persistent images. In any event,
the freedom to mix and match CPU/Memory/network settings to various
images
is lost.

  You could enable the images tab, as you did in another thread, so users

can
create their own images and in the "launch" vm button they will be able to
select those images and one of the predefined templates, which includes de
cpu, memory, network configuration.


  Also, without the ability to create templates I cannot see how they

can
create a datablock and install their own images from CD. I can enable
templates in the cloud view but as they are not controlled by quota I'm
worried about not being able to access our sysadmin templates among an
unbounded clutter of user templates. If the user templates could be
stored
somewhere else or hidden from view that might solve the problem.

  You can use the base template, instantiate a new vm and then attach a

new
disk (datablock) where users will install their own images from CD.

I don't really get what you are trying to accomplish, could you please
explain your use case, so we can see if it fits in the new cloud view

Re: [one-users] Shutting down a VM from within the VM

2013-10-10 Thread Ruben S. Montero
Hi Simon + Nistor,

We've done some tests in the stock drivers when the VM is shutdown (from
inside) the VM disappears from the list, show we cannot get the state (not
even with --all). How do you get the paused state?

On the other hand, the libvirt hook seems a good approach, since we could
create a file in the VM directory (e.g. .shutdown-inside) and report the
state accordingly. However we made some tests and there is no difference
between the two.

This hook:

#!/bin/bash

echo "`date`: $*" >> /tmp/hook

Gives the same in both cases:

Thu Oct 10 11:27:56 CEST 2013: one-17 stopped end -  < shutdown inside
Thu Oct 10 11:27:56 CEST 2013: one-17 release end -
Thu Oct 10 11:33:07 CEST 2013: one-17 prepare begin -
Thu Oct 10 11:33:07 CEST 2013: one-17 start begin - < boot
Thu Oct 10 11:33:07 CEST 2013: one-17 started begin -
Thu Oct 10 11:34:02 CEST 2013: one-17 stopped end - < shutdown via
libvirt
Thu Oct 10 11:34:02 CEST 2013: one-17 release end -

So, the real problem is how to determine if the VM has been shutdown from
inside or not

Cheers

Ruben




On Mon, Oct 7, 2013 at 12:37 PM, Nistor Andrei  wrote:

> Hi,
>
> Maybe you can use libvirt hooks[1] to notify oned via the xmlrpc that the
> VMs have shut down?
>
> [1] http://libvirt.org/hooks.html
>
> Andrei
>
>
> On Fri, Oct 4, 2013 at 6:45 PM, Simon Boulet  wrote:
>
>> Hi,
>>
>> Here our driver reports the state as returned by Libvirt [1], which
>> reports VM terminated from the inside (shutdown) as Paused. When the
>> OpenNebula driver sees a VM as being reported as paused [2], it
>> switches the VM to SUSPENDED state in OpenNebula. Then you can restart
>> the VM by issuing the resume action [3].
>>
>> So, I think OpenNebula has the building blocks for that, but I'm just
>> unsure how it is implemented in the different OpenNebula drivers.
>>
>> [1]
>> http://wiki.libvirt.org/page/VM_lifecycle#States_that_a_guest_domain_can_be_in
>> [2] http://opennebula.org/documentation:rel4.2:devel-vmm#poll_information
>> [3] http://opennebula.org/documentation:rel4.2:api#onevmaction
>>
>> Simon
>>
>> On Fri, Oct 4, 2013 at 9:43 AM, Parag Mhashilkar  wrote:
>> > Hi Sharuzzaman,
>> >
>> > Thanks for your response. I am aware of the fact that OpenNebula
>> requires human intervention when shutdown is issued from inside the VM. We
>> can write scripts to do lot of things, but when in the business of resource
>> provisioning, the resource provider does not necessarily control what runs
>> in the VM, application that launches them and for obvious reasons I am not
>> giving any access to ONE's database to the users. So these alternatives
>> seem merely hacks rather than a much cleaner solution from the service.
>> >
>> > Such a feature is useful from a infrastructure provider's point of
>> view. If AWS has done it (and Openstack I think) then there be a way out.
>> >
>> > -Parag
>> >
>> >
>> > On Oct 3, 2013, at 9:27 PM, Sharuzzaman Ahmat Raslan wrote:
>> >
>> >> Hi Parag,
>> >>
>> >> I believe OpenNebula need to have human intervention to really
>> determine whether to remove or not the VM that it has deployed.
>> >>
>> >> I also think that you can write a script that signal or call
>> OpenNebula command as soon as the task finish, to shutdown the VM. Or if
>> direct calling command not possible, maybe your application can write some
>> status in a database, and a script in OpenNebula read that status and make
>> decision from it.
>> >>
>> >> Thanks.
>> >>
>> >>
>> >> On Thu, Oct 3, 2013 at 11:38 PM, Parag Mhashilkar 
>> wrote:
>> >> Hi,
>> >>
>> >> Does OpenNebula EC2 interface support shutting down a VM from with in
>> the VM itself and have the scheduler recognize that VM has been
>> stopped/shutdown? How do we enable this feature? At Fermi, we have
>> OpenNebula v3.2 and when the VM is shutdown it stays in the UNKNOWN state.
>> Can OpenNebula get this ACPI shutdown info from virsh and handle the
>> situation more gracefully rather than putting the VM in UKNOWN state?
>> >>
>> >> Here is an example why I think something like this is useful:
>> >>
>> >> When VMs are launched to perform certain tasks (classical equivalent
>> of batch nodes), only the processes running in the VM know when the task is
>> done and can shutdown the VM freeing up the resources. Running VM past the
>> task life is wasted resources and controlling the lifetime of VM from
>> outside is not always possible.
>> >>
>> >> In case of AWS, it supports following which is very good feature to
>> have when controlling the VMs in above scenario.
>> >> ec2-run-instaces --instance-initiated-shutdown-behavior
>> 
>> >>
>> >> How do we achieve this with Opennebula?
>> >>
>> >> Thanks & Regards
>> >> +==
>> >> | Parag Mhashilkar
>> >> | Fermi National Accelerator Laboratory, MS 120
>> >> | Wilson & Kirk Road, Batavia, IL - 60510
>> >> |--
>> >> | Phone: 1 (630) 840-6530 Fax: 1 (630)

Re: [one-users] migrate vm live error

2013-10-10 Thread Tino Vazquez
Hi,

Ok, perfect. Can you give us the output of:

virsh -c vpx://10.24.101.71/123/qianyi/?no_verify=1migrate one-187
vpx://10.24.101.71/123/vmware/?no_verify=1

Regards,

-Tino



--
OpenNebula - Flexible Enterprise Cloud Made Simple

--
Constantino Vázquez Blanco, PhD, MSc
Senior Infrastructure Architect at C12G Labs
www.c12g.com | @C12G | es.linkedin.com/in/tinova

--
Confidentiality Warning: The information contained in this e-mail and
any accompanying documents, unless otherwise expressly indicated, is
confidential and privileged, and is intended solely for the person
and/or entity to whom it is addressed (i.e. those identified in the
"To" and "cc" box). They are the property of C12G Labs S.L..
Unauthorized distribution, review, use, disclosure, or copying of this
communication, or any part thereof, is strictly prohibited and may be
unlawful. If you have received this e-mail in error, please notify us
immediately by e-mail at ab...@c12g.com and delete the e-mail and
attachments and any copy from your system. C12G thanks you for your
cooperation.
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Error after changing password of erveradmin sunstone

2013-10-10 Thread amin nezarat
Dear users

 After changing password of serveradmin in opennebula 4.2.0, i cant login
on to sunstone.

Please help for recovering this error.



-- 
-
Best Regards
PhD Student of Software Engineering
Shiraz University, Shiraz, Iran
Amin Nezarat
aminneza...@shirazu.ac.ir
http://e30now.blogfa.com
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] reg opennebula marketplace

2013-10-10 Thread Carlos Martín Sánchez
Hi,

On Wed, Oct 9, 2013 at 4:04 AM, Rajendar K  wrote:

> Hi,
>   Thanks for your mail.
>   Is there any time limit for checking the status from "lock"
> to "ready"? or any number of retries to check the process
> or driver crash?. Unable to trace down from the log.
>   Kindly provide suggestions.
>
>
> with regards
> Raj,
>
> Believe Yourself...
>

Give it a try with the ttylinux images, those are the smallest ones. The
image should change the status after the SOURCE (see oneimage show) file
reaches the image's SIZE.

PS: Please reply also to the mailing list

Regards
--
Carlos Martín, MSc
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org  | cmar...@opennebula.org |
@OpenNebula 


> On Wed, Oct 9, 2013 at 12:09 AM, Carlos Martín Sánchez <
> cmar...@opennebula.org> wrote:
>
>> Hi,
>>
>> The images stay in the lock state while the files are downloaded/copied
>> to their destination. If you images stay in lock after the files have been
>> downloaded, that may be because the driver crashed and didn't report
>> neither success or failure.
>> You should check for error messages in the /var/log/one/oned.log file.
>>
>> Regards.
>>
>> --
>> Carlos Martín, MSc
>> Project Engineer
>> OpenNebula - Flexible Enterprise Cloud Made Simple
>> www.OpenNebula.org | cmar...@opennebula.org | 
>> @OpenNebula
>>
>>
>> On Wed, Oct 2, 2013 at 10:44 AM, Rajendar K  wrote:
>>
>>> Hi All,
>>> I have installed opennebula 4.2 and when i try to use feature
>>> "Marketplace".
>>> When i try to import image, the image state holds in "lock" state, even
>>> after downloaded.
>>>
>>> Kindly provide me solution.
>>>
>>> with regards
>>> Raj,
>>>
>>>
>>>
>>> ___
>>> Users mailing list
>>> Users@lists.opennebula.org
>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>
>>>
>>
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Creation of templates by cloud users in Sunstone 4.2.0 views

2013-10-10 Thread Daniel Molina
Hi Gerry,


On 8 October 2013 18:04, Gerry O'Brien  wrote:

> Hi Daniel,
>
>   What we are really trying to do is emulate the OCCI self-service
> GUI.  We potentially have a lot of networks (routed and non-routed) which
> could be used for teaching and research so having a set of core templates
> that can be modified on-the-fly is a very useful feature. Also, we could
> have many different images so predefined templates for  (networks) X
> (images) x (CPU/memory specs) starts to get large and requires continual
> maintenance as images are updated. Having the OCCI stubs simplifies this.
> If there were quotas on templates and/or if user templates were somehow
> hidden then it might be feasible to let users create their own templates
> and ignore them.
>

Ok, so I think the only functionality missing in the new cloud view is
selecting a network. In the OCCI self-service you can define CPU/MEMORY/...
in the file based templates, in the cloud view you can do the same thing
but using OpenNebula templates instead of files. This allows you to use
restricted attributes and define different base templates for different
users/groups. In the OCCI-ss, when you create a new compute (vm) you select
an instance_type, storage and network and a new vm is instantiated using
this information. In the new cloud view, when you launch a new vm you
select a template (former instance_type) and an image, the information is
merged and a new vm is created, but you don't have to create a new
template. Therefore, I think the only piece missing is selecting the
network when the vm is launched.


>
> There is also the question of human resources in providing support for
> OpenNebual users. Switching from the OCCI GUI requires retraining of
> support staff. On the other hand, the view model will clearly be more
> flexible in the long run and will facilitate provisioning for more
> sophisticated users who can be trusted not to create large amounts of
> templates.
>

I agree.


>
> In the meantime we have pointed the 3.8 OCCI GUI at the 4.2 core and
> everything looks good so far. The only change we had to make was to
> explicitly specify the OS parameters (BOOT and ARCH) in the stub templates,
> otherwise the VMs wouldn't boot.
>

The 3.8 OCCI GUI is not tested on top of one-4.2 but it should work.


>
> I'm not sure I follow you suggestion below as to how cloud users could
> install from CD. How would they specify a different boot device?
>

Specifying multiple boot devices is not supported in one-4.2, but it is
already implemented for 4.4
http://dev.opennebula.org/issues/538


>
> One new feature that we would find really useful would be if users
> were allowed to CLONE to a different datastore. We tend to put our system
> images and any public images in datastore 1 and user images in other
> datastores. We have to run multiple versions of the OCCI to direct
> different classes of users to different datastores. It would be nice if
> users could clone from public images in datastore 1 into their own
> datastore. I guess AppMarket is the proper way to do this, but simple
> cloning is easy.
>

Indeed, there is already a feature request in our dev page for that
feature, maybe we can consider it for upcoming release:
http://dev.opennebula.org/issues/1696

But, as you said I think the best fit for your use case is using the
AppMarket component, you can host base images for your users and they will
be able to import them to their datastore.

Thank you for your feedback


> Regards,
> Gerry
>
>
>
>  On 08/10/2013 13:59, Daniel Molina wrote:
>
>> On 8 October 2013 12:55, Gerry O'Brien  wrote:
>>
>>  Hi Daniel,
>>>
>>>  I have already created templates for cloud users but that does not
>>> allow them, as far as I can see, to make persistent images. In any event,
>>> the freedom to mix and match CPU/Memory/network settings to various
>>> images
>>> is lost.
>>>
>>>  You could enable the images tab, as you did in another thread, so users
>> can
>> create their own images and in the "launch" vm button they will be able to
>> select those images and one of the predefined templates, which includes de
>> cpu, memory, network configuration.
>>
>>
>>  Also, without the ability to create templates I cannot see how they
>>> can
>>> create a datablock and install their own images from CD. I can enable
>>> templates in the cloud view but as they are not controlled by quota I'm
>>> worried about not being able to access our sysadmin templates among an
>>> unbounded clutter of user templates. If the user templates could be
>>> stored
>>> somewhere else or hidden from view that might solve the problem.
>>>
>>>  You can use the base template, instantiate a new vm and then attach a
>> new
>> disk (datablock) where users will install their own images from CD.
>>
>> I don't really get what you are trying to accomplish, could you please
>> explain your use case, so we can see if it fits in the new cloud views.
>>
>> Che