Re: [one-users] Can't access to VM through ssh

2010-06-30 Thread Carlos Martín Sánchez
Hi again,

Let's check the basics, just in case:
a) The ttylinux machine you are using is the one downloaded from our site,
so it is correctly contextualized.
b) And you are trying to access the VM 192.168.0.6 from a machine in the
same 192.168.0.X network, right?

You may want to try adding another NIC attribute to the template, attached
to your public network. This way you could access the VM from anywhere, not
just the private network.

Carlos Martín, Cloud Technology Engineer/Researcher
DSA Research Group: web http://dsa-research.org and blog
http://blog.dsa-research.org
OpenNebula Open Source Toolkit for Cloud Computing:
http://www.OpenNebula.org


El 30 de junio de 2010 16:18, Andrea Turli andrea.tu...@eng.it escribió:

  Hi Carlos,


 On 06/30/2010 04:07 PM, Carlos Martín Sánchez wrote:

 Hi Andrea,

 Did you manage to access the VM through ssh? or are you using VNC?

 Not yet, I can access through virt-manager or virsh to the VM but not
 through ssh, cause network doesn't work.


 If you can't ping anything from the VM, maybe you could try adding other
 VMs to that private network and check if they see each other.
 Or just configure the VM template to attach a network interface to the
 public network.

  Any ideas?



 Regards,

 Carlos Martín, Cloud Technology Engineer/Researcher
 DSA Research Group: web http://dsa-research.org and blog
 http://blog.dsa-research.org
 OpenNebula Open Source Toolkit for Cloud Computing:
 http://www.OpenNebula.org


 2010/6/28 Andrea Turli andrea.tu...@eng.it

 Hi all,

 unfortunately also running the fsck on the .img didn't solve the problem.
 Here my situation:

 - 1 x frontend: ubuntu 10.04 - KVM - NFS
 - 1 x cluster node: ubuntu 10.04 - KVM - NFS

 A ttylinux VM has been started correctly on the worker node. From the
 front end:
 # onevm list
   ID USER NAME STAT CPU MEMHOSTNAMETIME
   21 oneadmin ttylinux runn   0   65536  grids21.eng.it 00 00:10:22

 # onevnet list
   ID USER NAME  TYPE BRIDGE #LEASES
8 oneadmin public  Rangedbr0   0
9 oneadmin private  Fixedbr0   1


 The ttylinux VM shows this:
 # ifconfig
 eth0  . inet address 192.168.0.6 ...

 but I cannot ping anything from this VM


 To help the investigation, here the bctrl show command on the cluester
 node
 $ brctl show
 bridge namebridge idSTP enabledinterfaces
 br08000.0019b9e57ae5noeth0   vnet0
 virbr08000.yes

 Thank you again for any help,
 Andrea


 On 06/26/2010 09:50 AM, ranjith k wrote:

 hello,
 run the command qemu-syetm_x86 ttylinux.img from the ttylinux image
 directory..you can see a window and will start boot ttylinux...
 and asked password for recover from the disk failure after entering the
 password password you just run the command fsck /dev/hda1 it will remove
 the error and properly shutdown the system by typing the command halt or
 shutdown after the correct shutdown and close the window ...and try to
 run the ttylinux again and verify...is it ok then again shutdown correctly
 and copy this ttylinux image for your cloud .

 On Fri, Jun 25, 2010 at 3:51 PM, Andrea Turli andrea.tu...@eng.itwrote:

 Dear all,

 I'm trying to access through ssh to my instance of ttylinux VM created
 following this guide http://www.opennebula.org/documentation:rel1.4:vmg
 The VM is running and I've this IP address (192.168.0.5) according to the
 Small Network network definition but I cannot neither ping it not access
 it on ssh.

 I've seen also this 
 threadhttp://lists.opennebula.org/pipermail/users-opennebula.org/2010-June/002220.htmlwith
  a similar problem, but also fsck on that VM doesn't help me to solve
 the situation.

 Could it be related to the network configuration of my kvm host?

 --
 Andrea Turli
 Ricercatore
 Direzione Ricerca e innovazioneandrea.tu...@eng.it

 Engineering Ingegneria Informatica spa
 Via Riccardo Morandi, 32 00148 Roma (RM)
 Tel. +39 06 8307 4710
 Fax +39 06 8307 4200 www.eng.it


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




 --
 Andrea Turli
 Ricercatore
 Direzione Ricerca e innovazioneandrea.tu...@eng.it

 Engineering Ingegneria Informatica spa
 Via Riccardo Morandi, 32 00148 Roma (RM)
 Tel. +39 06 8307 4710
 Fax +39 06 8307 4200 www.eng.it


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




 --
 Andrea Turli
 Ricercatore
 Direzione Ricerca e innovazioneandrea.tu...@eng.it

 Engineering Ingegneria Informatica spa
 Via Riccardo Morandi, 32 00148 Roma (RM)
 Tel. +39 06 8307 4710
 Fax +39 06 8307 4200 www.eng.it


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


Re: [one-users] Can't access to VM through ssh

2010-06-30 Thread Carlos Martín Sánchez
b) And you are trying to access the VM 192.168.0.6 from a machine in the
same 192.168.0.X network, right?


Opss ... shall I? I mean, I'm trying to access to the machine from the
 opennebula cluster node which has a public IP. Is it correct?


Yes, try reaching the VM from the 192.168.0.X network, that's probably your
problem.

Good luck,

Carlos Martín, Cloud Technology Engineer/Researcher
DSA Research Group: web http://dsa-research.org and blog
http://blog.dsa-research.org
OpenNebula Open Source Toolkit for Cloud Computing:
http://www.OpenNebula.org
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] oneimage disks device mapping

2010-07-27 Thread Carlos Martín Sánchez
Hi Massimiliano,

Thank you for testing our development version, and share your feedback with
us.
This is a reasonable request, so I have opened a ticket [1] for this
feature.

The new feature will add support for overwriting the default target, either
in your image or VM template. I think that should solve your problem.

Regards,
Carlos.

[1] http://dev.opennebula.org/issues/300

Carlos Martín, Cloud Technology Engineer/Researcher
DSA Research Group: web http://dsa-research.org and blog
http://blog.dsa-research.org
OpenNebula Open Source Toolkit for Cloud Computing:
http://www.OpenNebula.org


On 26 July 2010 16:41, Massimiliano Diodati massimilian...@live.it wrote:

  Hi all,
 I installed the latest version of OpenNebula, and was interested in using
 registered images as
 disks for my virtual machines. I always used for my xen images the
 target=sda1 (or xvda1)
 sub-attribute for the DISK section, but now the target device is
 automatically set to 'sda' by
 OpenNebula for OS type images and my virtual machine fails to boot up
 because of kernel panic.
 Is there a way to change this automatic device mapping? I need 'sda1' or
 'xvda1' not just 'sda'.
 I searched through the configuration files and couldn't find a way to
 change this but I think there
 must be a way.
 Any help would be appreciated.
 Thanks.

 --
 Chiacchiera, condividi, gioca. Messenger è pieno di 
 sorprese.http://www.messenger.it/ilovemessenger/

 ___
 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] VM's are going to pending state though enough resources

2010-08-02 Thread Carlos Martín Sánchez
:31 2010 [VMM][D]: Message received: POLL SUCCESS 56
 STATE=a USEDMEMORY=131072


 Thanks  Regards,
 Nagesh.




 --- On *Fri, 7/30/10, Carlos Martín Sánchez cmart...@fdi.ucm.es* wrote:


 From: Carlos Martín Sánchez cmart...@fdi.ucm.es
 Subject: Re: [one-users] VM's are going to pending state though enough
 resources
 To: bathina nageswararao nag_bath...@yahoo.com
 Cc: users@lists.opennebula.org
 Date: Friday, July 30, 2010, 3:38 PM


 Hi Bathina,

 The only hint I can give you is that the VM may be requesting more
 resources than the ones available in your host. Or maybe you are using the
 REQUIREMENTS field making your host non-suitable to deploy the VM.

 Please provide more information, like the VM template, the logs (oned.log
 and shed.log), the extended information of your host ($ onehost show 0) if
 you need more specific help.

 Regards,
 Carlos.

 Carlos Martín, Cloud Technology Engineer/Researcher
 DSA Research Group: web http://dsa-research.org and blog
 http://blog.dsa-research.org
 OpenNebula Open Source Toolkit for Cloud Computing:
 http://www.OpenNebula.org


 On 30 July 2010 07:12, bathina nageswararao 
 nag_bath...@yahoo.comhttp://mc/compose?to=nag_bath...@yahoo.com
  wrote:

 Hi,

 VM's are going to pending state though enough resources.

 Any one please provide me the solution.

 onead...@onefrontend:~$ onehost list
   ID NAME  RVM   TCPU   FCPU   ACPUTMEMFMEM
 STAT
0 192.168.138.241 4400388388 8189640 6013732
 on

 Regards,
 Nagesh.

 ___
 Users mailing list
 Users@lists.opennebula.orghttp://mc/compose?to=us...@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] onevm saveas, ID not defined

2010-08-24 Thread Carlos Martín Sánchez
Hi Jason,

Could you send your VM template?

If I'm guessing right, disk 1 wasn't created from an image in the
repository.
The error you are getting is because the onevm command can't find the
IMAGE_ID inside your DISK attribute. The reason why it tries to find the
source image is because it wants to specify the type for the new image, and
it wasn't provided with the -t option.

I have opened a ticket [1], but meanwhile you could just add the -t OS
option.

Regards,
Carlos

[1] http://dev.opennebula.org/issues/327

Carlos Martín, Cloud Technology Engineer/Researcher
DSA Research Group: web http://dsa-research.org and blog
http://blog.dsa-research.org
OpenNebula Open Source Toolkit for Cloud Computing:
http://www.OpenNebula.org


On 22 August 2010 20:47, Jason Heiss jhe...@aput.net wrote:

 I'm trying to use the onevm saveas functionality in 2.0 beta 1, but it
 doesn't seem to like me:

 # onevm saveas 8 1 myimage
 ID not defined

 I've deleted and recreated the VM with no luck.  Still fiddling around to
 see if I can figure it out, but I thought I'd throw it out and see if anyone
 had an idea.

 The VM ID should be fine:

 # onevm list
   ID USER NAME STAT CPU MEMHOSTNAMETIME
8 oneadmin  vm1 runn   0 1048576   10.0.0.73 00 00:29:22

 The disk ID as well:

 # onevm show 8 | egrep 'DISK|DISK_ID|TYPE'
 DISK=[
  DISK_ID=0,
  TYPE=CDROM ]
 DISK=[
  DISK_ID=1,
  TYPE=DISK ]
 DISK=[
  DISK_ID=2,
  TYPE=swap ]

 ___
 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] Java API Host

2010-08-26 Thread Carlos Martín Sánchez
Hi Enrico,

The Java API was designed as a wrapper for the XML-RPC API with some basic
helper methods, but it is not too high level oriented.
You have to know the internal xml structure of the data returned, and query
it using xpath expressions. Take a look at getName() and state() in
PoolElement.java


Regards,
Carlos.

Carlos Martín, Cloud Technology Engineer/Researcher
DSA Research Group: web http://dsa-research.org and blog
http://blog.dsa-research.org
OpenNebula Open Source Toolkit for Cloud Computing:
http://www.OpenNebula.org


On 25 August 2010 22:32, Enrico Casini ecas...@ihmc.us wrote:

  Hi,

 I'm doing some experiments with OpenNebula 2.0 beta and the Java API. I
 would like to know if there is a way (an exposed method) to know the
 relevant stats about a Host (like RVM, TCPU, FCPU, FMEM etc.), because after
 a couple of tests I didn't find anything. These are the stats that are
 available after running:

 onehost list

 And it seems strange to me that are not available (exposed) inside the Java
 API. I've also checked *org.opennebula.client.host.Host*

 http://opennebula.org/doc/oca/java/

 But it doesn't seem to be anything about that

 Thanks in advance for any help!
 Enrico Casini

 ___
 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] onevm saveas, ID not defined

2010-08-26 Thread Carlos Martín Sánchez
Hi again Jason,

I've tried to replicate the error, but it works for the current git code, in
both master and one-2.0 branches, and the code in one-2.0-beta1.tar.gz
What OpenNebula version are you using?

The only thing we could use to find the bug is the complete onevm show 8
output. Maybe OpenNebula didn't write the IMAGE_ID variables for each disk.

Regards,
Carlos.

Carlos Martín, Cloud Technology Engineer/Researcher
DSA Research Group: web http://dsa-research.org and blog
http://blog.dsa-research.org
OpenNebula Open Source Toolkit for Cloud Computing:
http://www.OpenNebula.org


2010/8/26 Jason Heiss jhe...@aput.net

 The disk was an image from the repository.  Here's the VM template:

 # cat vm1.template
 NAME = vm1
 CPU = 1
 MEMORY = 1024
 DISK = [ image = CentOS-5.5-x86_64-netinstall.iso ]
 DISK = [ image = blank20G ]
 DISK = [ type = swap, size = 1024 ]
 OS = [ boot = cdrom ]
 NIC = [ bridge = br0 ]
 GRAPHICS = [ type = vnc, listen = 0.0.0.0, passwd = vncpass ]

 And here's my image list:

 # oneimage list
   ID USER NAME TYPE  REGTIME PUB STAT  #VMS
0 oneadmin CentOS-5.5-x86_64-ne   CD   Aug 09, 2010 05:28 Yes used 1
1 oneadmin blank20G   OS   Aug 09, 2010 05:29 Yes used 1
2 oneadmin  blank5G   OS   Aug 17, 2010 16:22 Yes  rdy 0


 On Aug 24, 2010, at 7:54 AM, Carlos Martín Sánchez wrote:

 Hi Jason,

 Could you send your VM template?

 If I'm guessing right, disk 1 wasn't created from an image in the
 repository.
 The error you are getting is because the onevm command can't find the
 IMAGE_ID inside your DISK attribute. The reason why it tries to find the
 source image is because it wants to specify the type for the new image, and
 it wasn't provided with the -t option.

 I have opened a ticket [1], but meanwhile you could just add the -t OS
 option.

 Regards,
 Carlos

 [1] http://dev.opennebula.org/issues/327

 Carlos Martín, Cloud Technology Engineer/Researcher
 DSA Research Group: web http://dsa-research.org and blog
 http://blog.dsa-research.org
 OpenNebula Open Source Toolkit for Cloud Computing:
 http://www.OpenNebula.org


 On 22 August 2010 20:47, Jason Heiss jhe...@aput.net wrote:

 I'm trying to use the onevm saveas functionality in 2.0 beta 1, but it
 doesn't seem to like me:

 # onevm saveas 8 1 myimage
 ID not defined

 I've deleted and recreated the VM with no luck.  Still fiddling around to
 see if I can figure it out, but I thought I'd throw it out and see if anyone
 had an idea.

 The VM ID should be fine:

 # onevm list
   ID USER NAME STAT CPU MEMHOSTNAMETIME
8 oneadmin  vm1 runn   0 1048576   10.0.0.73 00 00:29:22

 The disk ID as well:

 # onevm show 8 | egrep 'DISK|DISK_ID|TYPE'
 DISK=[
  DISK_ID=0,
  TYPE=CDROM ]
 DISK=[
  DISK_ID=1,
  TYPE=DISK ]
 DISK=[
  DISK_ID=2,
  TYPE=swap ]

 ___
 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] Sparse Images with 2.0

2010-09-24 Thread Carlos Martín Sánchez
Hi Frank,

You could modify the core to make it keep the SIZE sub-attribute in the DISK
attributes, but that seems rather complex for what you need.
It looks to me that the best approach would be #2, considering you have
already your custom transfer scripts. You could just add a new attribute,
something like

DISK = [ IMAGE = imageA ]
DISK_SIZE = [ DISK_ID = 0, SIZE = 1024 ]

DISK = [ IMAGE = imageB ]
DISK_SIZE = [ DISK_ID = 1, SIZE = 2048 ]


Or a more readable option

DISK = [ IMAGE = imageA ]
DISK_SIZE = [ IMAGE = imageA, SIZE = 1024 ]

DISK = [ IMAGE = imageB ]
DISK_SIZE = [ IMAGE = imageB, SIZE = 2048 ]


Regards,
Carlos.


Carlos Martín, Cloud Technology Engineer/Researcher
DSA Research Group: web http://dsa-research.org and blog
http://blog.dsa-research.org
OpenNebula Open Source Toolkit for Cloud Computing:
http://www.OpenNebula.org


On 13 September 2010 20:19, Frank Stutz fr...@franksplace.net wrote:

 In my configuration we have small OS images (~ 1GB) and we allow the users
 to use this image and expand the size as needed (via sparse image dd script)
 as we don't have shared storage.   I have been leveraging the DISK - SIZE
 operation in the 1.4 template code base along with custom transfer manager
 script to accomplish this today.  This has been working great and I've been
 happy with it.  My question is with the changes in the 2.0 branch and with
 the new images repo, what would be the best way to accomplish this task?
 I'm all on board with the new 2.0 image structure, but I'm trying to figure
 out how to proceed.

 Thoughts I have so far:
 1.  Modify the code to allow the SIZE option to be retained even though
 image is specified; right now any extra template parmeters are removed
 before saving to DB
 2.  Create a special new parameter for sparse imaging growth, and modify tm
 custom scripts to accommodate
 3.  Throw out the whole tm custom scripts methodology and use hooks, but
 still need method to store SIZE of final image in DB.
 4.  Use context, but modify it to work before image is booted.

 Right now I'm thinking modifying the code to allow the SIZE option to
 propagate to the DB if a IMAGE is desired would be the best way to go, but
 wanted some insight if this is best approach?


 --Frank

 ___
 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] OpenNebula 2 RC: Why do image names have to be unique?

2010-09-29 Thread Carlos Martín Sánchez
Hi Carsten,

Yes, it is necessary if you want to be able to use the image name's in the
template, like

DISK = [ IMAGE = Ubuntu Lucic ]

Otherwise, you are forcing the users to use images by their IMAGE_ID, which
is an internal ID that can change at any time, e.g., you define templates
for your IMAGE Ubuntu and a VM that uses Ubuntu, but the VM template has
be modified if you delete and register again some time later that IMAGE)

Regards,
Carlos Martín, Cloud Technology Engineer/Researcher
DSA Research Group: web http://dsa-research.org and blog
http://blog.dsa-research.org
OpenNebula Open Source Toolkit for Cloud Computing:
http://www.OpenNebula.org


On 29 September 2010 07:20, carsten.friedr...@csiro.au wrote:

  Trying to insert a second image with the same name into the image
 repository creates an error on the database layer. Since images are already
 uniquely defined by their id, and it is not unlikely that different users
 may choose the same name for an image, e g. “Ubuntu Lucid”, I’m not sure
 this restriction is doing more good than harm (by confusing users through
 hard to interpret error messages). Is it really necessary?



 Carsten



 ___
 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] Documentation for imagepool.info in http://www.opennebula.org/documentation:rel2.0:api incomplete

2010-09-30 Thread Carlos Martín Sánchez
Hi Carsten,

The documentation is now updated, thanks for the feedback!

Regards,
Carlos.

Carlos Martín, Cloud Technology Engineer/Researcher
DSA Research Group: web http://dsa-research.org and blog
http://blog.dsa-research.org
OpenNebula Open Source Toolkit for Cloud Computing:
http://www.OpenNebula.org


On 28 September 2010 08:20, carsten.friedr...@csiro.au wrote:

  The information on http://www.opennebula.org/documentation:rel2.0:apiabout 
 the
 imagepool.info call is incomplete. The call expects one more int input
 parameter.



 Carsten

 ___
 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] Accounting informations

2010-11-12 Thread Carlos Martín Sánchez
Hi Federico,

The documentation of the DB schema is on its way. I'll post the link in this
thread when it's done, hopefully later today.

Regards.

Carlos Martín, Cloud Technology Engineer/Researcher
DSA Research Group: web http://dsa-research.org and blog
http://blog.dsa-research.org
OpenNebula Open Source Toolkit for Cloud Computing:
http://www.OpenNebula.org


On 12 November 2010 15:39, Federico Paparoni federico.papar...@gmail.comwrote:



 2010/11/12 Olivier Sallou olivier.sal...@irisa.fr

  did you look at the oneacct script ?
 it does accounting, code could be relevant

 Olivier


 Yes I take a look at these scripts and if I don't find any other
 informations I'll use it to understand the meaning of accounting data.
 But I think (hope) that if there is a database, there is also some
 documentation about it :|


 --
 Federico Paparoni

 Blog -- http://fpaparoni.wordpress.com/
 Twitter --  http://twitter.com/fpaparoni





 ___
 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] putting OS images in the image repository

2010-12-01 Thread Carlos Martín Sánchez
Hi Steven,

This is an interesting use-case. When we designed the image repository, we
had to make a compromise between expectable behaviour and advanced
customization usage. I guess this falls into the advanced usage, but
OpenNebula is flexible enough to take this challenge.


To automatically save all VM disks that use a certain Image, you can use
hooks.

I would add a new flag to all the relevant images in your system, either
having them in the image template, or adding them afterwards [1]:
oneimage addattr image_id AUTO_SAVE YES

This will add the flag to the template:

$ oneimage show 1
IMAGE  INFORMATION

[...]

IMAGE TEMPLATE

*AUTO_SAVE=YES*
DEV_PREFIX=hd
NAME=test_image
PATH=/home/cmartin/trabajo/scratch/steven/disk.img
TYPE=OS

To add a new hook to the system, edit $ONE_LOCATION/etc/oned.conf [2] and
add something similar to the following:

VM_HOOK = [
name  = auto_save,
on= CREATE,
command   = auto_save.rb,
arguments = $VMID ]

This will execute a new script, placed in
$ONE_LOCATION/share/hooks/auto_save.rb, every time a new VM is created.
I suggest you to use ruby, because the ruby OCA API [3] will make it easier.

This script will have to:
1) Get the complete information for VM vm_id from OpenNebula.
2) For each disk, check if it is using an Image.
2.1) Get that image's information, and look for the AUTO_SAVE=YES attribute.
If it's present, then issue a onevm saveas operation over that vm-id and
disk-id.

To be able to identify the disks later, you could include in the new image
name the  vm-id_disk-id string.


This way, files will be all managed by OpenNebula in the repository. If you
are doing this for back-up purposes, and you won't actually instantiate a VM
using this saved images, you can always move that files away from the
repository and then delete the images.


This is the easiest and elegant way I see to do this, but any
other opinions are welcome.

I'd also like to ask the community if more people feel this should be
supported out of the box by OpenNebula. If so, we could start a discussion
to determine the specific features or requirements this would imply.


Best regards,
Carlos.

[1] http://opennebula.org/doc/2.0/cli/oneimage.html
[2] http://opennebula.org/documentation:rel2.0:oned_conf#hook_system
[3] http://opennebula.org/documentation:rel2.0:ruby

Carlos Martín, Cloud Technology Engineer/Researcher
DSA Research Group: web http://dsa-research.org and blog
http://blog.dsa-research.org
OpenNebula Open Source Toolkit for Cloud Computing:
http://www.OpenNebula.org


On 30 November 2010 21:56, Steven Timm t...@fnal.gov wrote:


 In
 http://www.opennebula.org/documentation:rel2.0:img_guide

 it says

 When images are published they are always cloned, and persistent images
 are never cloned. Therefore, an image cannot be public and persistent at the
 same time. To manage a public image that won't be cloned, unpublish it first
 and make it persistent. 

 I have stored a 10GB OS image in the repository
 and made it public

 -bash-3.2$ oneimage show 8
 IMAGE  INFORMATION
 ID : 8
 NAME   : new-2.6.18-194.26.1.img
 TYPE   : OS
 REGISTER TIME  : 11/29 14:15:13
 PUBLIC : Yes
 PERSISTENT : No
 SOURCE :
 /var/lib/one/image-repo/920301ec2fcc29f9c621c3ebe2a8f5ac6b27fca6
 STATE  : used
 RUNNING_VMS: 2

 IMAGE TEMPLATE
 DEV_PREFIX=vd
 NAME=new-2.6.18-194.26.1.img
 -bash-3.2$


 I would like to have this available as a template image for
 many users to be able to use.
 I have successfully been able to have 2 users
 use it as part of a VM with the following syntax

 DISK   = [ image = new-2.6.18-194.26.1.img ]


 However, I find that this automatically implies a
 SAVE=NO once the VM is launched, with no way to override it.
 From output of onevm show:

 DISK=[
  CLONE=YES,
  DISK_ID=0,
  IMAGE=new-2.6.18-194.26.1.img,
  IMAGE_ID=8,
  READONLY=NO,
  SAVE=NO,
  SOURCE=/var/lib/one/image-repo/920301ec2fcc29f9c621c3ebe2a8f5ac6b27fca6,
  TARGET=vda,
  TYPE=DISK ]


 -

 So is there any way to do the following:

 1) have the VM registered in the repository for all to see
 2) be launched public and cloned on launch so it can be used
   in multiple VM's at once
 3) have the result be saved in an image-specific file when
   each VM is shut down, and not back to the repository?

 ***I know that if I execute the onevm saveas command I can
 get this done on a machine-by-machine basis but would
 prefer a way to make it automatic.
 -

 The second question is closely related, namely:
 Once a public image is declared in the database, is there any way
 to actually update the content of that image, such that for instance
 Name = latest kernel template image

 could be periodically updated with the latest kernel
 and all new VM's would pick it up?


 Thanks

 Steve Timm

 

Re: [one-users] Some basic questions after a firts OpenNebula 2.0 install

2010-12-10 Thread Carlos Martín Sánchez
On 3 December 2010 17:54, jean-paul.piga...@bull.net wrote:


 Hi OpenNebula.


Hi Jean-Paul,


 This is my first mail on this list. So it contains some basic questions we
 have after making a first install of OpenNebula 2.0.

 First of all: the context:
 We have installed OpenNebula 2.0, compiled from downloaded source files.

 All the mandatory librairies are there but we have got some errors because
 OpenNebula requires a precise librairy version (ex:  libcrypto.so.6 when
 we have libcrypto.so.10 in Fedora14).

 Anyway, we have succeeded to install a front end and a clusternode, both on
 Fedora12.

 We had to do everything using command lines. The configuration of the Vms
 and the network must be done manually in text files. Is this the normal way
 ?

Yes, OpenNebula uses simple, human-readable templates to make it both user
and script friendly as possible.

  To get a graphical interface, do you suggest us to try *Management
 Console* from Sara ?

You may want to ask about it in the ecosystem mailing list [1], but as far
as I know the Management Console [2] is only compatible with OpenNebula 1.4.
The EC2 Query API tools [3] are a user-oriented alternative, you can give it
a try and check if it suits you needs.

 The creation of images (of OS) must be done through an external tool (like
 virt-manager). Is this correct ?

The actual virtualization will be performed by the hypervisor of your
choice, so you can use any available tool for it.
But it is not mandatory, you can create them using only OpenNebula (creating
blank images, where you will install the OS form a cd-rom iso).

  OpenNebula manages the Vms but not the OS images. Is this correct ?

This was true for 1.4, but in OpenNebula 2.0 the Image repository [4] was
introduced; and now you can let OpenNebula manage your image files.

 To manage IP addresses in the VMs, we need to use the contextualization
 mecanism. Is this correct ?

That's the preferred way, yes. As a reminder, the contextualization guide is
documented in [5].
There was an interesting thread some weeks ago about using DHCP instead, you
can check it in the list archives [6].

If we want to interface with a Vmware cloud, we need to use the Wmware
 drivers from C12G labs.

That's right. Links: usage guide [7] and addon download [8].

 If we want to interface with another OpenNebula Cloud, we need to use the
 Libcloud Driver or the Deltacloud Driver from cisa-research.org.

We plan to release in the mid-term a federation toolkit specifically
designed for OpenNebula, that will offer better integration than the
components you mention.
You may be also interested in the EC2 driver [9] to outsource VMs to Amazon.

  Thank you for any answer or confirmation for these basic questions.

 Jean-Paul Pigache
 Bull SAS.

 Regards,
Carlos

[1] http://opennebula.org/community:mailinglists
[2] http://opennebula.org/software:ecosystem:management_console
[3] http://opennebula.org/documentation:rel2.0:ec2qec
[4] http://opennebula.org/documentation:rel2.0:img_guide
[5]
http://opennebula.org/documentation:rel2.0:cong#using_virtual_network_leases_within_a_virtual_machine
[6]
http://lists.opennebula.org/pipermail/users-opennebula.org/2010-November/003349.html
[7] http://opennebula.org/documentation:rel2.0:evmwareg
[8] http://opennebula.org/software:addons:vmware
[9] http://opennebula.org/documentation:rel2.0:ec2g

Carlos Martín, Cloud Technology Engineer/Researcher
DSA Research Group: web http://dsa-research.org and blog
http://blog.dsa-research.org
OpenNebula Open Source Toolkit for Cloud Computing:
http://www.OpenNebula.org http://www.opennebula.org/


 ___
 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] OpenNebula 2.0.1 sets incorrect ARCH.

2010-12-14 Thread Carlos Martín Sánchez
Hi John,

The ARCH  can't be defined in the Image templates.

We are considering a new feature that will let you register VM templates in
a VM catalog, to be instantiated easily just using its name or ID. This way
you will be able to register at the same time the OS image and the VM
template that uses that image.

Would this fit your requirements?

Carlos Martín, Cloud Technology Engineer/Researcher
DSA Research Group: web http://dsa-research.org and blog
http://blog.dsa-research.org
OpenNebula Open Source Toolkit for Cloud Computing:
http://www.OpenNebula.org


On 10 December 2010 04:23, John Dewey j...@dewey.ws wrote:

 Can it also be defined on a per image basis in the image templates?

 John


 On Thu, Dec 9, 2010 at 6:21 AM, Jaime Melis j.me...@fdi.ucm.es wrote:

 Hi,
 I forgot to mention that you can define it on a per vm basis in the VM
 template:


 http://opennebula.org/documentation:rel2.0:template#os_and_boot_options_section

 cheers,
 Jaime


 On Thu, Dec 9, 2010 at 3:19 PM, Jaime Melis j.me...@fdi.ucm.es wrote:

 Hello Carsten,

 you can change it here: $ONE_LOCATION/etc/vmm_ssh/vmm_ssh_kvm.conf

 cheers,
 Jaime

 On Thu, Dec 9, 2010 at 6:38 AM, carsten.friedr...@csiro.au wrote:

  Hi,



 I just installed 2.0.1 on a machine which now seems to set the ‘arch’
 attribute in os-type. Unfortunately it sets an incorrect value: It sets
 ‘i686’, the correct value for my system is ‘x86-64’. How does OpenNebula
 determine the value it sets (I use kvm with Ubuntu 10.4 64Bit as OS and in
 the VM)?



 Carsten



 ___
 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



 ___
 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] Detecting potential failures earlier

2011-01-21 Thread Carlos Martín Sánchez
Hi Steven,

Thank you for your feedback, we will definitely take your suggestion into
account.

For future releases, we are planning to develop a VM templates repository.
The templates could be checked for frequent errors and missing mandatory
attributes before being saved into the templates pool.

Because this feature is still in the design process, ideas and comments are
more than welcome.

Regards,
Carlos.

Carlos Martín, Cloud Technology Engineer/Researcher
DSA Research Group: web http://dsa-research.org and blog
http://blog.dsa-research.org
OpenNebula Open Source Toolkit for Cloud Computing:
http://www.OpenNebula.org


On 18 January 2011 21:39, Steven Timm t...@fnal.gov wrote:


 I have had several virtual machine launches fail recently,
 some in failing to create the deployment file due to a missing
 bootloader option, others in failing to create the contextualization
 ISO because i had specified the inclusion of a file that wasn't there.
 In both cases OpenNebula does all the work of scp'ing over
 my fairly big OS image to the VM host before it checks these
 parameters.. why couldn't there be a syntax check which determines
 that the VM is doomed to fail before doing all the work of copying
 over the OS image?

 Steve Timm


 --
 --
 Steven C. Timm, Ph.D  (630) 840-8525
 t...@fnal.gov  http://home.fnal.gov/~timm/
 Fermilab Computing Division, Scientific Computing Facilities,
 Grid Facilities Department, FermiGrid Services Group, Group Leader.
 Lead of FermiCloud project.
 ___
 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] Writing one template that allows for persistent VM:

2011-02-04 Thread Carlos Martín Sánchez
Hi Steven,

On 4 February 2011 05:22, Steven Timm t...@fnal.gov wrote:

 hOn Thu, 3 Feb 2011, Steven Timm wrote:


 I am trying to come up with a prescription for users that allows the
 following sequence:

 1) Launch a VM based on a standard VM repository template

 2) Save the contents of the VM back to the VM repositor\

 3) Relaunch the VM without modifying the template.

 I've tried the following thus far:

 1) Launch the VM initially from a VM OS file outside the VM repository
 with save=yes.  this does save the VM OS but just to
 /var/lib/one/vmid/disk.0, not back to the original file.
 User must copy that file somewhere and/or change their template.

 1a) Launch the VM and then execute a onevm saveas command.
   this gets a copy of the image back to the image repository
   but again user must modify the template to relaunch the VM.

 2) Make a public VM image in the repository, launch from that.
 Problems--even if image is public, other users (even oneadmin) can't read
 it and sometimes I myself can't read it, without going into
 the image repo and chmod'ing the file by hand.  And again
 you are forced to save back to something other than the original file.

 3) Make a persistent non-public image in the repository.
 Again there are permission problems launching, and it can only
 be used once by one user.  Even so I can't get it to save back to the
 repository.

  If the user makes and saves the persistent non-public image
 in the repository, it is then necessary to go in and
 change the permissions on the file in the repository, otherwise
 the oneadmin user can't read it.  But once this is done,
 it is possible to start the VM from the repository and save it
 back to the same place in the repository when it is done.


When OpenNebula is installed, the images directory is set up with the sticky
bit. From install.sh:
chmod 3770 $DESTDIR$IMAGES_LOCATION

In [1], it says


The IMAGE_REPOSITORY_PATH can be changed to another administrator defined
folder. This folder will need to be created with special permissions to
ensure its consistency. It will need full permissions for writting new files
for any user, and:

* the sticky bit, so other users are allowed to read other user files, but
aren't allowed to erase them
* the setgid, so all the files copied to the image repository end up with
oneadmin group

This can be achieved with “chmod 3770 /path/to/image/repository/”.


If you changed the images path, or if for some reason you deleted the var
directory, you'll need to recreate the sticky bit configuration.
In order to let other users register images, you have to either let anyone
write in the images path, or add all your OpenNebula regular users to
oneadmin's group.

Could you please check your configuration? If you continue having troubles,
please send us your installation directory permissions.


 Next step--to make a public non-persistent generic image
 in the repo, and then have a clone function such that
 a user can make a non-public persistent image from it and
 fork off their VM and save it from there on.  Anyone else interested?


What's your goal? to control it somehow in the VM template, or rather create
a new command such as:
oneimage clone Original_public_image My_private_copy ?



 Steve Timm




Best regards,
Carlos.

[1] http://opennebula.org/documentation:rel2.0:oned_conf#image_repository

Carlos Martín, Cloud Technology Engineer/Researcher
DSA Research Group: web http://dsa-research.org and blog
http://blog.dsa-research.org
OpenNebula Open Source Toolkit for Cloud Computing:
http://www.OpenNebula.org http://www.opennebula.org/





  Everything that we need to do is doable, but it takes hacking around
 with the template every time to be able to launch where we
 left off.  We need a way to make things more seamless.

 Steve Timm





 --
 --
 Steven C. Timm, Ph.D  (630) 840-8525
 t...@fnal.gov  http://home.fnal.gov/~timm/
 Fermilab Computing Division, Scientific Computing Facilities,
 Grid Facilities Department, FermiGrid Services Group, Group Leader.
 Lead of FermiCloud project.
 ___
 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] Writing one template that allows for persistent VM:

2011-02-07 Thread Carlos Martín Sánchez
2011/2/4 Steven Timm t...@fnal.gov

It would be nice to have a oneimage clone feature.  that way
 the user is not forced to make one template for the first time
 to read from the public copy and save to his private copy.

 Steve Timm



We agree. Actually, that functionality is already in our roadmap for
OpenNebula 2.4 (you'll have to wait just a bit more, the current development
version will be published as 2.2)

Regards,
Carlos

Carlos Martín, Cloud Technology Engineer/Researcher
DSA Research Group: web http://dsa-research.org and blog
http://blog.dsa-research.org
OpenNebula Open Source Toolkit for Cloud Computing:
http://www.OpenNebula.org http://www.opennebula.org/
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] onevm create/deploy commands to send VMs to host of our choice (OpenNebula 2.0.1 and CentOS 5.5 with Xen)

2011-02-08 Thread Carlos Martín Sánchez
Hi Prakashan,

There are different options to control the placement of the VMs.

If you want to manually deploy them, you can hold the VMs (onevm hold id).
The scheduler won't place these machines, but you can still deploy them with
onevm deploy.
Or you could start only the OpenNebula daemon without the scheduler (take a
look at the 'one' start script, and comment the ONE_SCHEDULER part).

The other option is to use the REQUIREMENTS and RANK VM template attributes,
see [1].
The scheduler will read them, and place the VM accordingly. You can require
the VM to be deployed in a specific host or cluster; or modify the RANK
expression to set the hosts priority.

Regards,
Carlos.

[1] http://opennebula.org/documentation:rel2.0:template#placement_section

Carlos Martín, Cloud Technology Engineer/Researcher
DSA Research Group: web http://dsa-research.org and blog
http://blog.dsa-research.org
OpenNebula Open Source Toolkit for Cloud Computing:
http://www.OpenNebula.org


On 7 February 2011 21:04, Prakashan Korambath p...@ats.ucla.edu wrote:

 Hi,

 I noticed that by default the scheduler automatically pick the host when
 more than one hosts are available to deploy immediately after onevm create
 command.  The onevm deploy command only works when for some reason the
 scheduling goes into pending state for a while.

 I am looking for little more documentation on various options for deploying
 the virtual images on the host of our choice.  If someone can share the
 configuration as to how they deploy OpenNebula in a cluster environment that
 would be great.

 I am using CentOS 5.5 64 bit with OpenNebula 2.0.1 and running Xen on the
 cluster nodes.

 Thanks,

 Prakashan
 ___
 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] 'onevm saveas' via XMLRPC or OCCI???

2011-02-09 Thread Carlos Martín Sánchez
Hi Marco,

The XML-RPC call requests an image id because the image has to be created
beforehand.
You can check how it is done in the oneimage command (it's a straight
forward ruby script), and then replicate the same steps in your code.

Regards,
Carlos.
--
Carlos Martín, Engineer, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On 8 February 2011 17:03, Marco Strutz marco.str...@desy.de wrote:

 Hello.

 What is the best way to map the onevm saveas command [1] to OCCI or
 XMLRPC-Request? I need to save vm images but want to avoid using the
 command line interface.

 I cannot simply use the xmlrpc-call  one.vm.savedisk [2] since I then
 would need to know the image id where the disk will be saved. But this
 ID will be dynamically created by the onevm saveas command, right?
 Furthermore where should I place the image_name in the XMLRPC-call?
 The same problem with OCCI: Are there any attributes (perhaps for the
 CONTEXTUALISATION section) I can use for the onevm saveas?



 Thanks
 Marco


 [1]
 onevm saveas vm_id disk_id image_name


 [2]
 one.vm.savedisk
 
 Type Data Type Description
 IN String the session string associated to the connected user. * *
 IN Int the virtual machine Id (vid) of the instance.
 IN Int disk id of the disk we want to save.
 IN Int image id where the disk will be saved.
 OUT Boolean true or false whenever is successful or not
 OUT String if an error occurs this is error message, otherwise
 it does not exist.
 ___
 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] bug in image.rb HOOK? ('onevm saveas' command)

2011-02-10 Thread Carlos Martín Sánchez
/7c6f81fcb5b4dec12ab3fa63913b16b4ba1e2d12
 STATE  : disa
 RUNNING_VMS: 0

 IMAGE
 TEMPLATE
 DEV_PREFIX=hd
 NAME=318_archived



 $ ls -la
 /srv/cloud/one/var//images/7c6f81fcb5b4dec12ab3fa63913b16b4ba1e2d12

 ###
 ls: cannot access
 /srv/cloud/one/var//images/7c6f81fcb5b4dec12ab3fa63913b16b4ba1e2d12: No such
 file or directory



 $ onevm delete 318

 ###


 $ onevm list

 ###
ID USER NAME STAT CPU MEMHOSTNAMETIME


 $ oneimage show 37

 ###
 IMAGE
 INFORMATION
 ID : 37
 NAME   : 318_archived
 TYPE   : OS
 REGISTER TIME  : 02/10 12:22:50
 PUBLIC : No
 PERSISTENT : No
 SOURCE :
 /srv/cloud/one/var//images/7c6f81fcb5b4dec12ab3fa63913b16b4ba1e2d12
 STATE  : rdy
 RUNNING_VMS: 0

 IMAGE
 TEMPLATE
 DEV_PREFIX=hd
 NAME=318_archived



 $ ls -la
 /srv/cloud/one/var//images/7c6f81fcb5b4dec12ab3fa63913b16b4ba1e2d12

 ###
 ls: cannot access
 /srv/cloud/one/var//images/7c6f81fcb5b4dec12ab3fa63913b16b4ba1e2d12: No such
 file or directory



 $ cat $ONE_LOCATION/var/318/vm.log

 ###
 Thu Feb 10 12:20:36 2011 [DiM][I]: New VM state is ACTIVE.
 Thu Feb 10 12:20:36 2011 [LCM][I]: New VM state is PROLOG.
 Thu Feb 10 12:20:36 2011 [VM][I]: Virtual Machine has no context
 Thu Feb 10 12:20:36 2011 [TM][I]: tm_clone.sh:
 testbed00:/srv/cloud/one/testing/ttylinux.img
 testbed07:/srv/cloud/one/var//318/images/disk.0
 Thu Feb 10 12:20:36 2011 [TM][I]: tm_clone.sh: DST:
 /srv/cloud/one/var//318/images/disk.0
 Thu Feb 10 12:20:36 2011 [TM][I]: tm_clone.sh: Creating directory
 /srv/cloud/one/var//318/images
 Thu Feb 10 12:20:36 2011 [TM][I]: tm_clone.sh: Executed mkdir -p
 /srv/cloud/one/var//318/images.
 Thu Feb 10 12:20:36 2011 [TM][I]: tm_clone.sh: Executed chmod a+w
 /srv/cloud/one/var//318/images.
 Thu Feb 10 12:20:36 2011 [TM][I]: tm_clone.sh: Cloning
 /srv/cloud/one/testing/ttylinux.img
 Thu Feb 10 12:20:36 2011 [TM][I]: tm_clone.sh: Executed cp -r
 /srv/cloud/one/testing/ttylinux.img /srv/cloud/one/var//318/images/disk.0.
 Thu Feb 10 12:20:36 2011 [TM][I]: tm_clone.sh: Executed chmod a+rw
 /srv/cloud/one/var//318/images/disk.0.
 Thu Feb 10 12:20:36 2011 [LCM][I]: New VM state is BOOT
 Thu Feb 10 12:20:36 2011 [VMM][I]: Generating deployment file:
 /srv/cloud/one/var/318/deployment.0
 Thu Feb 10 12:20:37 2011 [LCM][I]: New VM state is RUNNING
 Thu Feb 10 12:24:31 2011 [VMM][W]: Ignored: LOG - 318 Driver command for
 318 cancelled

 Thu Feb 10 12:24:31 2011 [DiM][I]: New VM state is DONE
 Thu Feb 10 12:24:31 2011 [TM][W]: Ignored: LOG - 318 tm_delete.sh: Deleting
 /srv/cloud/one/var//318/images

 Thu Feb 10 12:24:31 2011 [TM][W]: Ignored: LOG - 318 tm_delete.sh: Executed
 rm -rf /srv/cloud/one/var//318/images.

 Thu Feb 10 12:24:31 2011 [TM][W]: Ignored: TRANSFER SUCCESS 318 -

 Thu Feb 10 12:24:31 2011 [VMM][W]: Ignored: CANCEL SUCCESS 318 Domain
 one-318 destroyed

 Thu Feb 10 12:24:31 2011 [HKM][I]: Command execution fail:
 /srv/cloud/one/share/hooks/image.rb 318
 Thu Feb 10 12:24:31 2011 [HKM][I]: STDERR follows.
 Thu Feb 10 12:24:31 2011 [HKM][I]: ExitCode: 255
 Thu Feb 10 12:24:31 2011 [HKM][E]: Error executing Hook: image.




 line 75 in $ONE_LOCATION/share/hooks/image.rb (result =
 img_repo.update_source(image, source_path) outputs

 ###
 No such file or directory - /srv/cloud/one/var/318/disk.0 or
 /srv/cloud/one/var//images/7c6f81fcb5b4dec12ab3fa63913b16b4ba1e2d12




 On 02/10/2011 10:11 AM, Marco Strutz wrote:

 Hi.

 Thanks Carlos! I have managed to reproduce the behaviour by xmlrpc calls.
 But for the long term it would be very handy to access the saveas feature
 in one single xmlrpc call too so that it won't be necessary to duplicate
 (onevm ruby) source code and validate it for each new Opennebula release.


 regards
 Marco

 On 02/09/2011 11:20 AM, Carlos Martín Sánchez wrote:

 Hi Marco,

  The XML-RPC call requests an image id because the image has to be created
 beforehand.
 You can check how it is done in the oneimage command (it's a straight
 forward ruby script), and then replicate the same steps in your code.

  Regards,
 Carlos.
 --
 Carlos Martín, Engineer, MSc
 Project Major Contributor
 OpenNebula - The Open Source Toolkit for Cloud Computing
 www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


 On 8 February 2011 17:03, Marco Strutz marco.str...@desy.de wrote:

 Hello.

 What is the best way to map the onevm saveas command [1] to OCCI or
 XMLRPC-Request? I need

Re: [one-users] bug in image.rb HOOK? ('onevm saveas' command)

2011-02-11 Thread Carlos Martín Sánchez
Hi,

If I'm understanding right, you first log into your VM, shutdown it
yourself, and then issue the onevm shutdown id.
Is this right?

onevm shutdown command assumes the VM is still running, and sends the ACPI
signal to the machine. Your virtualized OS is supposed to shutdown itself
with this shutdown signal.

If the VM Life Cycle is managed manually, OpenNebula will lose track of what
happened, that's why the VM is seen as UNKNOWN.

Regards,
Carlos
--
Carlos Martín, Engineer, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


2011/2/11 Marco Strutz marco.str...@desy.de

  Hi Carlos.

 A shutdown doesn't work for me. Even with 'acpi=yes' and a *graceful*
 shutdown inside the vm (via vnc) the VM state always remains RUNNING
 (ACTIVE) although it was already successfully removed by libvirt.

 If I then manually execute onevm shutdown 345  (see [1]) the state
 changed to UNKNOWN (ACTIVE). The onevm shutdown doesn't seem to affect
 my vm, perhaps this feature is not supported by kvm? Therefore onevm
 delete currently is my only option to trigger the image-hook.

 What do you suggest?


 [1] $ONE_LOCATION/var/345/vm.log

 ###
 Fri Feb 11 10:20:11 2011 [LCM][I]: New VM state is SHUTDOWN
 Fri Feb 11 10:20:11 2011 [VMM][I]: Command execution fail: 'if [ -x
 /var/tmp/one/vmm/kvm/shutdown ]; then /var/tmp/one/vmm/kvm/shutdown
 one-345; else  exit 42; fi'
 Fri Feb 11 10:20:11 2011 [VMM][I]: STDERR follows.
 Fri Feb 11 10:20:11 2011 [VMM][I]: error: failed to get domain 'one-345'
 Fri Feb 11 10:20:11 2011 [VMM][I]: error: Domain not found: no domain with
 matching name 'one-345'
 Fri Feb 11 10:20:11 2011 [VMM][I]: ExitCode: 1
 Fri Feb 11 10:20:11 2011 [VMM][E]: Error shuting down VM, error: failed to
 get domain 'one-345'
 Fri Feb 11 10:20:11 2011 [LCM][I]: Fail to shutdown VM. Assuming that the
 VM is still RUNNING (will poll VM).
 Fri Feb 11 10:20:12 2011 [VMM][I]: VM running but it was not found. Restart
 and delete actions available or try to recover it manually
 Fri Feb 11 10:20:12 2011 [LCM][I]: New VM state is UNKNOWN
 Fri Feb 11 10:20:58 2011 [DiM][I]: New VM state is DONE
 Fri Feb 11 10:20:58 2011 [VMM][W]: Ignored: LOG - 345 Driver command for
 345 cancelled
 Fri Feb 11 10:20:58 2011 [TM][W]: Ignored: LOG - 345 tm_delete.sh: Deleting
 /srv/cloud/one/var//345/images
 Fri Feb 11 10:20:58 2011 [TM][W]: Ignored: LOG - 345 tm_delete.sh: Executed
 rm -rf /srv/cloud/one/var//345/images.
 Fri Feb 11 10:20:58 2011 [TM][W]: Ignored: TRANSFER SUCCESS 345 -
 Fri Feb 11 10:20:58 2011 [HKM][I]: Command execution fail:
 /srv/cloud/one/share/hooks/image.rb 345
 Fri Feb 11 10:20:58 2011 [HKM][I]: STDERR follows.
 Fri Feb 11 10:20:58 2011 [HKM][I]: ExitCode: 255
 Fri Feb 11 10:20:58 2011 [HKM][E]: Error executing Hook: image.
 Fri Feb 11 10:20:58 2011 [VMM][W]: Ignored: LOG - 345 Command execution
 fail: 'if [ -x /var/tmp/one/vmm/kvm/cancel ]; then
 /var/tmp/one/vmm/kvm/cancel one-345; else  exit
 42; fi'

 Fri Feb 11 10:20:58 2011 [VMM][W]: Ignored: LOG - 345 STDERR follows.
 Fri Feb 11 10:20:58 2011 [VMM][W]: Ignored: LOG - 345 error: failed to get
 domain 'one-345'
 Fri Feb 11 10:20:58 2011 [VMM][W]: Ignored: LOG - 345 error: Domain not
 found: no domain with matching name 'one-345'
 Fri Feb 11 10:20:58 2011 [VMM][W]: Ignored: LOG - 345 ExitCode: 1
 Fri Feb 11 10:20:58 2011 [VMM][W]: Ignored: CANCEL FAILURE 345 error:
 failed to get domain 'one-345'




 Thanks
 Marco



 On 02/10/2011 04:32 PM, Carlos Martín Sánchez wrote:

 Hi Marco,

  After a *graceful* shutdown, the disk images marked to be saved
 are transferred back from var/vm_id/images/XX to  var/vm_id/disk.XX

  Try using 'onevm shutdown' instead of delete, that will probably solve
 your problem.

  Regards.
 --
 Carlos Martín, Engineer, MSc
 Project Major Contributor
 OpenNebula - The Open Source Toolkit for Cloud Computing
 www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


 2011/2/10 Marco Strutz marco.str...@desy.de

  Hi Carlos.

 Very strange: After running ttylinux and enabling the saveas-feature
 ('onevm saveas 318 0 318_archived') I get the following error message
 (vm.log) after deleting this instance:
 Thu Feb 10 12:24:31 2011 [VMM][W]: Ignored: CANCEL SUCCESS 318 Domain
 one-318 destroyed
 Thu Feb 10 12:24:31 2011 [HKM][I]: Command execution fail:
 /srv/cloud/one/share/hooks/image.rb 318
 Thu Feb 10 12:24:31 2011 [HKM][I]: STDERR follows.
 Thu Feb 10 12:24:31 2011 [HKM][I]: ExitCode: 255
 Thu Feb 10 12:24:31 2011 [HKM][E]: Error executing Hook: image.

 After debugging $ONE_LOCATION/share/hooks/image.rb there might be a
 problem with the proper image location:
 line 75 in $ONE_LOCATION/share/hooks/image.rb (result =
 img_repo.update_source(image, source_path) outputs

Re: [one-users] bug in image.rb HOOK? ('onevm saveas' command)

2011-02-11 Thread Carlos Martín Sánchez
2011/2/11 Marco Strutz marco.str...@desy.de

  Hi Carlos.

 You have saved my day. I had a look at the acpi deamon inside my vm: it
 wasn't running. As soon as I have repaired the configuration the acpi
 signals were successfully passed into the machine and the onevm shutdown
 works again.
 Thank you!


I'm glad you solved it


 Just for clarification: As soon as the vm shuts down by itself (for
 whatever reason) opennebula has no chance to successfully run the complete
 chain of the saveas workflow??



That's right, OpenNebula assumes the VM Life Cycle is managed exclusively by
itself.

If you want to be able to take the decision to shutdown the VM from the
virtualized environment, you would have to make it contact the front-end
where OpenNebula is running and use the command 'onevm shutdown self-id'

Regards,
Carlos

--
Carlos Martín, Engineer, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


 regards
 Marco


 On 02/11/2011 11:50 AM, Carlos Martín Sánchez wrote:

 Hi,

  If I'm understanding right, you first log into your VM, shutdown it
 yourself, and then issue the onevm shutdown id.
 Is this right?

  onevm shutdown command assumes the VM is still running, and sends the
 ACPI signal to the machine. Your virtualized OS is supposed to shutdown
 itself with this shutdown signal.

  If the VM Life Cycle is managed manually, OpenNebula will lose track of
 what happened, that's why the VM is seen as UNKNOWN.

  Regards,
 Carlos
 --
 Carlos Martín, Engineer, MSc
 Project Major Contributor
 OpenNebula - The Open Source Toolkit for Cloud Computing
 www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org



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


Re: [one-users] convert VM template in ONE format to libvirt format

2011-02-23 Thread Carlos Martín Sánchez
Hi Nikolay,

Take a look at these C++ files:

include/LibVirtDriver.h
src/vmm/LibVirtDriverKVM.cc
src/vmm/LibVirtDriverVMware.cc

Regards,
Carlos

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On 22 February 2011 12:49, kna...@gmail.com wrote:

 Hi!

 What scripts/files in opennebula-2.0.1 are responsible for converting
 template with VM description in ONE format into libvirt xml format in order
 to run VM on libvirt enabled cluster node?

 Thanks.
 Nikolay.
 ___
 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] cannot have two VNETs created by uid=0 on a single VM by another user

2011-02-28 Thread Carlos Martín Sánchez
Thanks for the report, we'll take a look and check what's going on.
You can follow the resolution in redmine:
http://dev.opennebula.org/issues/502

Regards,
Carlos.
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On 27 February 2011 01:01, Shi Jin jinzish...@gmail.com wrote:

 By the way, this is a new problem in OpenNebula 2.x. I had similar setup
 working on version 1.4 without issue.

 Shi


 On Sat, Feb 26, 2011 at 4:59 PM, Shi Jin jinzish...@gmail.com wrote:

 Hi there,

 From the documentation, it says
   Virtual Networks created by oneadmin can be used by every other user.

 I have created two vNETs, intranet-office and LAN-1, both created by the
 oneadmin user (uid=0) and as the document says, any other user can use these
 vnets, at least in my experience, one VNET per VM.

 But I found that if another user wants to deploy a VM with two NICs, both
 owned by uid=0, then we will get a permission error:
  Sat Feb 26 16:51:44 2011 [ReM][E]: [VirtualMachineAllocate] User [6] not
 authorized to perform CREATE on VM Pool
 If I publish any one of the VNET, the dual NIC setup would work again.

 I think this is probably a bug, right?
 --
 Shi Jin, Ph.D.




 --
 Shi Jin, Ph.D.


 ___
 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] help understand one_xmlrpc.log

2011-02-28 Thread Carlos Martín Sánchez
Hi Shi Jin,

That log is created by the xmlrpc-c library [1]; so not so helpful
information about OpenNebula itself is logged.
The Request Manager component logs are written in oned.log file. We could
move that logs to a separate file with extended information if the community
think this is needed.

Regards,
Carlos.

[1] http://xmlrpc-c.sourceforge.net/
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On 26 February 2011 23:38, Shi Jin jinzish...@gmail.com wrote:

 Hi there,

 I wonder where I can find more information on what is logged
 into one_xmlrpc.log

 For example, I have
 192.168.2.103:37253 - no_user - [18/Feb/2011:16:12:59 +0700] POST 200
 431
 127.0.0.1:13984 - no_user - [18/Feb/2011:16:13:23 +0700] POST 200 472
 127.0.0.1:13984 - no_user - [18/Feb/2011:16:13:23 +0700] POST 200 468

 First of all, what do the lines mean?
 Secondly, can we log more information in this file, especially when the
 XML_RPC call fails?

 Thank you very much.
 Shi


 --
 Shi Jin, Ph.D.


 ___
 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] cannot have two VNETs created by uid=0 on a single VM by another user

2011-02-28 Thread Carlos Martín Sánchez
Hi again,

I haven't been able to reproduce the error, in either one 2.0 or 2.2
branches. Unless all vnets are public, the authorization rejects the new VM.

On the other hand, we may have confused you with this documentation quote:
 Virtual Networks created by oneadmin can be used by every other user.

That was how VNets were shared in OpenNebula 1.4. Since 2.0, oneadmin's
VNets are shared using the 'onevnet publish' command, just like any other
user's. The guide is now fixed, sorry for the confusion.

Regards,
Carlos.

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


2011/2/28 Carlos Martín Sánchez cmar...@opennebula.org

 Thanks for the report, we'll take a look and check what's going on.
 You can follow the resolution in redmine:
 http://dev.opennebula.org/issues/502

 Regards,
 Carlos.
 --
 Carlos Martín, MSc
 Project Major Contributor
 OpenNebula - The Open Source Toolkit for Cloud Computing
 www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


 On 27 February 2011 01:01, Shi Jin jinzish...@gmail.com wrote:

 By the way, this is a new problem in OpenNebula 2.x. I had similar setup
 working on version 1.4 without issue.

 Shi


 On Sat, Feb 26, 2011 at 4:59 PM, Shi Jin jinzish...@gmail.com wrote:

 Hi there,

 From the documentation, it says
   Virtual Networks created by oneadmin can be used by every other user.

 I have created two vNETs, intranet-office and LAN-1, both created by the
 oneadmin user (uid=0) and as the document says, any other user can use these
 vnets, at least in my experience, one VNET per VM.

 But I found that if another user wants to deploy a VM with two NICs, both
 owned by uid=0, then we will get a permission error:
  Sat Feb 26 16:51:44 2011 [ReM][E]: [VirtualMachineAllocate] User [6]
 not authorized to perform CREATE on VM Pool
 If I publish any one of the VNET, the dual NIC setup would work again.

 I think this is probably a bug, right?
 --
 Shi Jin, Ph.D.




 --
 Shi Jin, Ph.D.


 ___
 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] can't delete host

2011-03-07 Thread Carlos Martín Sánchez
Hi all,
This problem was identified [1] and fixed for next releases.

Meanwhile, you can use the hack Zaina pointed to. It is safe to delete the
host with the negative counter, the DB consistency won't be affected.

Regards.

[1] http://dev.opennebula.org/issues/317

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On 7 March 2011 09:06, Zaina AFOULKI zaina.afou...@ensi-bourges.fr wrote:

 Hi Khoa,

 I had the same problem a while back, check this post [1]
 hope it helps.

 [1]

 http://lists.opennebula.org/htdig.cgi/users-opennebula.org/2011-February/003951.html

 --
 Zaina

 On 03/07/2011 05:31 AM, Khoa Nguyen wrote:
  Hi all.
  I have a problem when I want to delete host.
  It display  some information. I see  RVM = -1 field , I don't know why
  Help me?
 
  oneadmin1@oneadmin-desktop:~$ onehost list
ID NAME  CLUSTER  RVM   TCPU   FCPU   ACPUTMEMFMEM
  STAT
 0 172.29.70.137 default   -12001992101.9G1.8G
  on
  oneadmin1@oneadmin-desktop:~$ onehost delete 0
  Host still has associated VMs, aborting delete.
 
 
  thank for advance.
 
 
 
 
  ___
  Users mailing list
  Users@lists.opennebula.org
  http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


 --
 Zaina
 ___
 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] minor typo in ONE 2.2 docs [xen - kvm]

2011-03-07 Thread Carlos Martín Sánchez
Fixed, thanks!
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On 5 March 2011 15:45, kna...@gmail.com wrote:

 There is a minor typo in ONE 2.2 docs [1] in the section Driver Files.
 The line
 $ONE_LOCATION/lib/remotes/vmm/xen :commands executed to perform actions

 has to be

 $ONE_LOCATION/lib/remotes/vmm/kvm :commands executed to perform actions

 BR,

 Nikolay.

 [1] http://opennebula.org/documentation:rel2.2:kvmg
 ___
 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] issue: can't specify NIC hardware type duirng VM creating

2011-03-10 Thread Carlos Martín Sánchez
Hi there,

There's a typo in your template, you are using MODLE instead of MODEL.

Regards,
Carlos

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On 10 March 2011 08:02, GONG YONGJIE A
yongjie.a.g...@alcatel-sbell.com.cnwrote:

  Hi,

 I’d like to create one VM with “e1000” hardware type for Ethernet 
 interface.
 But after VM boots up, it still use default “realtek” type.

 From “deployment.0”, there is no “model=e1000” parameter for NIC.

 Could you help me check this or correct me if my configuration isn
 ’t right.

 Thanks.

 Logs:

 [root@cloudmanager one]# onevm list

ID USER NAME STAT CPU MEMHOSTNAMETIME

12 rootOMCP1 runn   7  2G   172.24.178.38 00 22:00:52

14 root linux-0. runn   1512M   172.24.178.38 00 00:47:07

16 root test-OMC runn  12512M   172.24.178.38 00 00:07:26

 [root@cloudmanager one]#

 [root@cloudmanager one]# onevm show 12

 VIRTUAL MACHINE 12 INFORMATION


 ID : 12

 NAME   : OMCP1

 STATE  : ACTIVE

 LCM_STATE  : RUNNING

 START TIME : 03/09 18:02:48

 END TIME   : -

 DEPLOY ID: : one-12

 VIRTUAL MACHINE
 MONITORING

 USED MEMORY: 2097152

 USED CPU   : 7

 NET_TX : 0

 NET_RX : 0

 VIRTUAL MACHINE
 TEMPLATE

 ARCH=i686

 BOOT=hd

 CPU=1

 DISK=[

   CLONE=NO,

   DISK_ID=0,

   IMAGE=OMCP1,

   IMAGE_ID=3,

   READONLY=NO,

   SAVE=YES,

   SAVE_AS=3,

   SOURCE=/srv/cloud/var/images/de0d6ef4e05642f928c8eae5a5a0a7b4201cfba5,

   TARGET=hda,

   TYPE=DISK ]

 EMULATOR=/usr/libexec/qemu-kvm

 GRAPHICS=[

   LISTEN=127.0.0.1,

   PORT=5913,

   TYPE=vnc ]

 MEMORY=2048

 NAME=OMCP1

 NIC=[

   BRIDGE=br0,

   MAC=08:80:42:03:17:86,

   MODLE=e1000 ]

 NIC=[

   BRIDGE=br1,

   MAC=08:80:42:03:18:86,

   MODLE=e1000 ]

 VCPU=1

 VMID=12

 [root@cloudmanager one]#

 [root@cloudmanager one]# pwd

 /var/log/one

 [root@cloudmanager one]# cat /srv/cloud/var/images/vm-

 vm-linux-0.2.conf  vm-OMCP1.conf

 [root@cloudmanager one]# cat /srv/cloud/var/images/vm-OMCP1.conf

 NAME = OMCP1

 MEMORY = 2048

 CPU = 1

 VCPU = 1

 EMULATOR = /usr/libexec/qemu-kvm

 ARCH = i686

 BOOT = hd

 DISK = [ IMAGE= OMCP1 ]

 NIC = [ MAC = 08:80:42:03:17:86, MODLE =e1000, BRIDGE = br0 ]

 NIC = [ MAC = 08:80:42:03:18:86, MODLE =e1000, BRIDGE = br1 ]

 GRAPHICS = [

 TYPE = vnc,

 LISTEN = 127.0.0.1,

 PORT = 5913 ]

 [root@cloudmanager one]#

 [root@host1 ~]# cat /var/lib/one/12/images/deployment.0

 domain type='kvm'

 nameone-12/name

 vcpu1/vcpu

 memory2097152/memory

 os

 type arch='i686'hvm/type

 boot dev='hd'/

 /os

 devices

 emulator/usr/libexec/qemu-kvm/emulator

 disk type='file' device='disk'

 source file='/var/lib/one//12/images/disk.0'/

 target dev='hda'/

 driver name='qemu' type='raw'/

 /disk

 interface type='bridge'

 source bridge='br0'/

 mac address='08:80:42:03:17:86'/

 /interface

 interface type='bridge'

 source bridge='br1'/

 mac address='08:80:42:03:18:86'/

 /interface

 graphics type='vnc' listen='127.0.0.1' port='5913'/

 /devices

 features

 acpi/

 /features

 /domain

 [root@host1 ~]#

 ___
 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] RPC client: how to determine my user id?

2011-03-10 Thread Carlos Martín Sánchez
Hi Carsten,

You are right, there are some operations that require the user ID and only
oneadmin can know it.
For now, those operations will remain only accessible to oneadmin. In the
short term, we want to improve the overall user management (to add groups
and, maybe, permissions) and we'll address this issue at that moment.

Thanks and regards,
Carlos.
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On 7 March 2011 23:08, carsten.friedr...@csiro.au wrote:

 Hi Carlos,



 Thanks for the reply. Using -1 or -2 and then filtering on the client side
 based on the username works for one.userpool.info. (Still wouldn’t work
 for one.user.passwd however).



 Thanks,

 Carsten



 *From:* Carlos Martín Sánchez [mailto:cmar...@opennebula.org]
 *Sent:* Monday, 7 March 2011 22:23
 *To:* Friedrich, Carsten (ICT Centre, Acton)
 *Cc:* users@lists.opennebula.org
 *Subject:* Re: [one-users] RPC client: how to determine my user id?



 Hi Carsten,



 You can use instead the -1 filter flag [1].



 The user ID is intended for administrators. Authorized users like
 'oneadmin' can perform a one.userpool.info call and look for the ID of a
 given name.



 Regards,

 Carlos.



 [1] http://opennebula.org/documentation:rel2.0:api#image_pool_information


 --
 Carlos Martín, MSc
 Project Major Contributor
 OpenNebula - The Open Source Toolkit for Cloud Computing
 www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org

 On 7 March 2011 02:21, carsten.friedr...@csiro.au wrote:

 Over RPC, how do I find out what my user id is; e.g. for use in other calls
 such as one.imagepool.info .



 Thanks,

 Carsten




 ___
 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] FW: XMLRPC Configuration

2011-03-16 Thread Carlos Martín Sánchez
Hi Joe,

The XML-RPC interface requires the contents of the template to be included
as a string parameter, not the template path.
You can place it anywhere your client application can read it.

Regards,
Carlos.

[1] http://opennebula.org/documentation:rel2.0:api

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On 15 March 2011 20:18, Teasdale, Joe joe_teasd...@bmc.com wrote:

  Hi,



 I have a situation and I am new to this so please let me know if  I
 misstep.



 I need to create a new template (vm description) for each vm I would like
 to deploy and would like to use this template through one.vm.allocate.



 If the One server is remote where should I create the template file to be
 called from the xmlrpc interface?



 Would it go in the $HOME/one_templates directory for the user I supply in
 the session parameter on the remote one server?



 Thanks









 ___
 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] command to deploy VM on remote host

2011-03-25 Thread Carlos Martín Sánchez
Hi Nikolay,

You can check (and customize) the vmm_mad script files for each hypervisor
in your $VAR_LOCATION/remotes/vmm dir.
If you modify these scrips, use 'onehost sync' to update the files in the
remote hosts.

e.g. for Xen and system-wide installation, check
/var/lib/one/remotes/vmm/xen/deploy (and xenrc).

Regards,
Carlos.
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On 24 March 2011 15:41, kna...@gmail.com wrote:

 Dear all,

 What command and with which arguments is executed on the remote host to
 deploy e.g. xen VM?

 Regards,
 Nikolay.
 ___
 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] what's the exact meaning of CPU in vm template file?

2011-03-28 Thread Carlos Martín Sánchez
Hi Xie,

Both are true for Xen, for other hypervisors only 1 applies.
Regarding 1, the VM won't be deployed by the scheduler, but you can still
force the deployment manually using 'onevm deploy'.

Regards,
Carlos.

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On 11 March 2011 08:39, XIE Xin B xin.b@alcatel-sbell.com.cn wrote:

  Hello,
 In one vm template file, we can define such as
 CPU = 0.6
 Definition is : Percentage of CPU divided by 100 required for the Virtual
 Machine.

 my question is what's the meaning of this? 1 or 2 or both?
 1. if host's reamining cpu60%, the vm will not dispatch on the host
 2. after vm dispatched on the host, it will occupy 60% cpu at most, if more
 than that, host will not allocate CPU to the vm

 BR
 Xie Xin

 ___
 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] Call one.image.allocate of xml-rpc API question!

2011-03-30 Thread Carlos Martín Sánchez
Hi,

As you pointed out, your client program has to copy or create the file, and
then enable the image.
The command oneimage already does that. You may want to check it (the binary
executable is actually a ruby script) and ImageRepository.rb

Regards
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


2011/3/30 liudewei liude...@neusoft.com

   Hi,All

 When I call “one.image.allocate” of  xml-rpc API
 ,the new image file can't be created .
 but,oneimage register is no problem!

  oneimage list command follows:

  35 oneadmin 0328_mkImg_1   OS   Mar 28, 2011 02:12 Yes  No disa 0

   oneimage show 35 follows

 IMAGE  INFORMATION

  ID : 35
 NAME   : 0328_mkImg_1
 TYPE   : OS
 REGISTER TIME  : 03/28 10:12:57
 PUBLIC : Yes
 PERSISTENT : No

 SOURCE : /opt/nebula/images/afa5ebb70546e3786197e607b4092f1e13c5a5e4
 STATE  : disa
 RUNNING_VMS: 0

 IMAGE TEMPLATE
 DESCRIPTION=0328_mkImg_1 desc
 DEV_PREFIX=hd
 NAME=0328_mkImg_1
 PATH=/one_images/8/images/disk.0
 TYPE=OS


 The file path to SOURCE  Attribute,but the actual file isn't generated!

 My java project code the following:

 StringBuffer template = new StringBuffer();


 template.append(NAME=).append(\).append(name).append(\).append(\n);

 template.append(DESCRIPTION=).append(\).append(desc).append(\).append(\n);
 template.append(PUBLIC = ).append(YES).append(\n);
 template.append(TYPE=).append(OS).append(\n);
 template.append(PERSISTENT=).append(NO).append(\n);
 template.append(DEV_PREFIX=).append(\hd\).append(\n); // 可选.
 //template.append(BUS=).append().append(\n);

 template.append(PATH=).append(/one_images/).append(vminfo.getVmId()).append(/images/disk.0).append(\n);




  Vector params = new Vector();
 params.add(template);
 RPCUtil util = new RPCUtil(this.imageDAO.getDataCenterIp(null));//get
 opennebula ip/username/passwd
 Object[] rsObject = util.executeRpcMethod(one.image.allocate, params);
 if (!(Boolean) rsObject[0]){
 runLog.error((String)rsObject[1]);
 throw new BaseException(failed to image register!);
 }



 From opennebula.org document said:

 When a new image template is allocated, the core will insert the image in
 the system in DISABLED state. The developer has to request the extended
 information for the new image, and copy (or create) the file to the 
 SOURCEattribute (added by the core). After the file is copied (or created), 
 the
 image has to be enabled.


 When I used the command oneimage register  xxx.one ,the new image file
 has generated!

 Waiting for your reply!

 Thanks and Regars!
 david.

 2011-03-30
 --
 liudewei

 ---
 Confidentiality Notice: The information contained in this e-mail and any
 accompanying attachment(s)
 is intended only for the use of the intended recipient and may be
 confidential and/or privileged of
 Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader
 of this communication is
 not the intended recipient, unauthorized use, forwarding, printing,
 storing, disclosure or copying
 is strictly prohibited, and may be unlawful.If you have received this
 communication in error,please
 immediately notify the sender by return e-mail, and delete the original
 message and all copies from
 your system. Thank you.

 ---

 ___
 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] Fwd: Error trying to CREATE HOST Error inserting Host Share in DB

2011-04-01 Thread Carlos Martín Sánchez
Hi Vivek,

You are installing OpenNebula 2.0, right?

Could you check if there is any error message in oned.log right after this
message?
[ONE][I]: Bootstraping OpenNebula database.


It may be also helpful if you could send the output of
$ sqlite3 one.db .schema


Regards,
Carlos
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On 31 March 2011 16:02, Vivek Shrivastava shrivastava.vi...@gmail.comwrote:



 Hello all,

 I've installed opennebula with the help of express installation, while
 creating node I'm getting the problem:-


 oneadmin@oneadmin-desktop:~/Downloads$ onehost create node01 im_kvm
 vmm_kvm tm_ssh
 Error: [HostAllocate] Error trying to CREATE HOST Error inserting Host
 Share in DB.

 (1)  I made /etc/one chmod 777, so that install.sh can run easily, is this
 the problem?

 (2) What should I do to solve above problem?

 (3) if I want to use kvm with ssh in cluster nodes, is that necessary to
 configure nfs (in node-install script) ?

 (4)  in oned.log I got this error:-

 SQL command was: INSERT INTO host_shares (hid,disk_usage, mem_usage,
 cpu_usage,max_disk,   max_mem,   max_cpu,free_disk,  free_mem,
 free_cpu,used_disk,  used_mem,  used_cpu,running_vms) VALUES
 (0,0,0,0,0,0,0,0,0,0,0,0,0,0), error: table host_shares has no column named
 free_disk

 What should I do?


 Thanks in advance.
 --
 Regards,

 Vivek Shrivastava




 --


 ___
 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] vm fails to start - vm.log: [TM][E]: prolog, error getting driver vmm_kvm

2011-04-01 Thread Carlos Martín Sánchez
Hi Marius,

Please check in oned.log if right after start-up there are some error
messages like:
MAD did not answer INIT command

If so, you can enable the mad debug in etc/defaultrc: ONE_MAD_DEBUG=1. That
could shed some light on the issue.

Regards.
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On 1 April 2011 13:53, Marius Dagilis mar...@proservis.lt wrote:

  Hello everyone,

 I'm trying to create vm, but after being for a short time at Pending
 state it ends up in Failed.
 ssh login to hosts works without passwords, user oneadmin is able to access
 all files in the /srv/cloud/.
 Where can be the problem?


 There are these lines in the vm.log file:

 Fri Apr  1 14:43:06 2011 [DiM][I]: New VM state is ACTIVE.
 Fri Apr  1 14:43:06 2011 [LCM][I]: New VM state is PROLOG.
 Fri Apr  1 14:43:06 2011 [TM][E]: prolog, error getting driver vmm_kvm
 Fri Apr  1 14:43:06 2011 [DiM][I]: New VM state is FAILED
 Fri Apr  1 14:43:06 2011 [TM][E]: epilog_delete, error getting driver
 tm_nfs. You may need to manually clean 192.168.21.240:
 /srv/cloud/one/var//4/images
  my one config is:


 DB=BACKEND=mysql,DB_NAME=opennebula,PASSWD=onetwoone,PORT=0,SERVER=localhost,USER=oneadmin
 DEBUG_LEVEL=3
 DEFAULT_DEVICE_PREFIX=hd
 DEFAULT_IMAGE_TYPE=OS
 HM_MAD=EXECUTABLE=one_hm
 HOST_MONITORING_INTERVAL=600
 IMAGE_REPOSITORY_PATH=/srv/cloud/one/var//images
 IM_MAD=ARGUMENTS=-r 0 -t 15 kvm,EXECUTABLE=one_im_ssh,NAME=im_kvm
 MAC_PREFIX=02:00
 MANAGER_TIMER=15
 NETWORK_SIZE=32
 PORT=2633
 SCRIPTS_REMOTE_DIR=/var/tmp/one
 TM_MAD=ARGUMENTS=tm_nfs/tm_nfs.conf,EXECUTABLE=one_tm,NAME=tm_nfs
 VM_DIR=/srv/cloud/one/var/
 VM_HOOK=ARGUMENTS=$VMID,COMMAND=image.rb,NAME=image,ON=DONE
 VM_MAD=ARGUMENTS=-t 15 -r 0
 kvm,DEFAULT=vmm_ssh/vmm_ssh_kvm.conf,EXECUTABLE=one_vmm_ssh,NAME=vmm_kvm,TYPE=kvm
 VM_POLLING_INTERVAL=600
 VNC_BASE_PORT=5900
Thank you!
 Marius Dagilis.

 ___
 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] Can't restart or resume VM when VM is in save status. And MEMORY = 0 when VM is running .

2011-04-05 Thread Carlos Martín Sánchez
Hi there,

If you take a look at the Virtual Machine Life-cycle diagram [1], the 'save'
state is a intermediate state, and the VM should end in either the
'suspended' or 'stopped' state. If the VM is stuck in 'save', you may find
some error messages in oned.log or the VM's log (in vm-id/vm.log).

About #2, it may be a monitorization problem. Can you check using virsh or
xentop the actual memory consumption?

Best regards,
Carlos.

[1]
http://opennebula.org/documentation:rel2.2:vm_guide#virtual_machine_life-cycle

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On 17 March 2011 05:01, Khoa Nguyen vankhoa...@gmail.com wrote:

 I have two question but I can't explain .
 1.When i suspend or stop a VM, It changes to save status. Unfortunaly,I
 want to resume or restart  VM to changing running status , It display
 Error: Wrong state to perform action. I don't know why. Is OpenNebula
 wrong??

 2. Status's VM is ruunig but MEMORY = 0.

 Anyone know? Please help me.


 oneadmin1@oneadmin-desktop:/home/oneadmin$ onevm list
ID USER NAME STAT CPU MEMHOSTNAMETIME
39 oneadmin ttylinux runn   0 * 0K*   172.29.70.137 00 00:05:05
 oneadmin1@oneadmin-desktop:/home/oneadmin$ onevm suspend 39
 oneadmin1@oneadmin-desktop:/home/oneadmin$ onevm list
ID USER NAME STAT CPU MEMHOSTNAMETIME
39 oneadmin ttylinux save   0 * 0K*   172.29.70.137 00 00:05:21
 oneadmin1@oneadmin-desktop:/home/oneadmin$ *onevm resume 39
 Error: Wrong state to perform action*
 oneadmin1@oneadmin-desktop:/home/oneadmin$ *onevm restart 39
 Error: Wrong state to perform action*

 Thank you for advance.

 ,--
 Nguyễn Vũ Văn Khoa
 Đại học Khoa Học Tự Nhiên TP HCM



 ___
 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] VM is not saved upon shutdown

2011-04-05 Thread Carlos Martín Sánchez
Hi Pieter, please find my comments inline:


On 5 April 2011 13:42, Pieter Simoens pieter.simo...@intec.ugent.be wrote:

  Dear all,

 I am running OpenNebula 2.0. I am able to successfully deploy a VM on a
 cluster node. The image is (currently) transferred over SSH. The VM boots
 successfully, and I am able to log-in.

 When I do onevm shutdown VM_ID, the VM is correctly shut down. But it
 does no longer appear in the output of onevm list all.


That's the normal behaviour, VMs in DONE state are not listed. However, you
can still see the extended information using 'onevm show id', because they
are stored in the DB for accounting purposes.


 However, as far as I can recall from my previous experiments, I thought
 that the VM image would we transferred back, somewhere to VM_DIR/VM_ID
 directory.

 Unfortunately, this is not happening. Does anybody has any idea what can be
 the cause? Do I need to specify any additional parameters? The log-files
 show me no specific problem (I checked the oned.log and the
 /var/VM_ID/vm.log).



Are you using the Image Repository [1]? If so, is the Image persistent?
If you are defining the DISKs in the VM templates as in previous versions,
make sure the attribute SAVE=YES is present.



 Thank you,


Regards,
Carlos.

[1] http://opennebula.org/documentation:rel2.2:img_guide

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org

 --
 Pieter Simoens, Ph.D.
 Department of Information Technology
 Internet Based Communication Networks and Services (IBCN)
 Ghent University - IBBT
 Gaston Crommenlaan 8 (Bus 201), B-9050 Gent, Belgium
 T: +32 9 33 14878 ; T Secr: +32 9 33 14900
 F: +32 9 33 14899
 W : www.ibcn.intec.UGent.be


 ___
 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] Suggestions for parsing OCA output

2011-04-06 Thread Carlos Martín Sánchez
Hi,

Check if the XSD linked in the XML-RPC documentation[1] is what you are
looking for.

Regards,
Carlos.

[1] http://opennebula.org/documentation:rel2.2:api


--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On 6 April 2011 19:19, Gian Uberto Lauri sa...@eng.it wrote:

 Hello All!

 Does someone has any suggestion about how to parse the results of
 the OCA methods ?  Did I lost some xsd I can use  to build the code to
 parse these strings ?

 --
 ing. Gian Uberto Lauri
 Ricercatore / Reasearcher
 Laboratorio Ricerca e Sviluppo / Research  Development Lab.
 Area Calcolo Distribuito / Distributed Computation Area

 gianuberto.la...@eng.it

 Engineering Ingegneria Informatica spa
 Corso Stati Uniti 23/C, 35127 Padova (PD)

 Tel. +39-049.8283.571 | main(){printf(unix[\021%six\012\0],
 Fax  +39-049.8283.569 |(unix)[have]+fun-0x60);}
 Skype: gian.uberto.lauri  |  David Korn, ATT Bell Labs
 http://www.eng.it |  ioccc best One Liner,
 1987
 ___
 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] Can not SSH ttylinux

2011-04-07 Thread Carlos Martín Sánchez
Hi,

The first thing you should try is to open a VNC session [1] and check if the
VM is actually running.
If that's not the problem, then this FAQ entry [2] may help you to find a
network configuration problem.

Regards,
Carlos.

[1] http://opennebula.org/documentation:rel2.2:template#i_o_devices_section
[2]
http://opennebula.org/documentation:community:faq#my_vm_is_running_but_i_get_no_answer_from_pings_what_s_wrong
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On 7 April 2011 00:14, Shuo Liu sliu...@fiu.edu wrote:

 Hi all

 I am able to run the ttylinux.img on one of my nodes. The problem is I
 can SSH it, ping doesn't work neither. Any body can help fix it?

 By the way, what's the user name and password for ttylinux.img
 downloaded from the opennebula.org website? I have to make sure I
 didn't make any mistake on this.

 Thanks!


 -
 VIRTUAL MACHINE 9 INFORMATION
 ID : 9
 NAME   : ttylinux
 STATE  : ACTIVE
 LCM_STATE  : RUNNING
 START TIME : 04/06 10:40:34
 END TIME   : -
 DEPLOY ID: : one-9

 VIRTUAL MACHINE MONITORING
 NET_TX : 0
 NET_RX : 2860
 USED MEMORY: 65536
 USED CPU   : 13

 VIRTUAL MACHINE TEMPLATE
 CPU=0.1
 DISK=[
  DISK_ID=0,
  READONLY=no,
  SOURCE=/var/lib/one/images/ttylinux.img,
  TARGET=hda ]
 FEATURES=[
  ACPI=no ]
 GRAPHICS=[
  KEYMAP=es,
  LISTEN=localhost,
  PORT=5902,
  TYPE=vnc ]
 MEMORY=64
 NAME=ttylinux
 NIC=[
  BRIDGE=virbr0,
  IP=131.94.112.44,
  MAC=02:00:83:5e:70:2c,
  NETWORK=Small network,
  NETWORK_ID=1 ]
 VMID=9
 oneadmin@cloud:/etc/one$ ssh root@131.94.112.44
 ssh: connect to host 131.94.112.44 port 22: No route to host
 oneadmin@cloud:/etc/one$  onevm show ttylinux|grep IP
  IP=131.94.112.44,

 

 Shuo Liu
 ___
 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] Java OCA: poor choiche of Exception class

2011-04-11 Thread Carlos Martín Sánchez
Hi Gian Uberto,

Thank you for your feedback. As you may know, we use mainly our Ruby
bindings for external tools and extensions, so these comments about the Java
API are very welcome.
Please feel free to open a ticket in our development portal [1], along with
any other comments, suggestions or patches.

Regards,
Carlos.

[1] http://dev.opennebula.org/

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On 4 April 2011 13:12, Gian Uberto Lauri sa...@eng.it wrote:

  CC == Gian Uberto Lauri sa...@eng.it writes:

 CC Hello, I just started to use OCA and immediately had the bad
 CC surprise to find an Exception thrown by Client class
 CC instantiation.

 One thing I forgot in the previous message:

 I  know people  in Apache  Software Foundation  do such  raw Exception
 throwing as  natinal sport, but in  my (again not so)  humble opinion,
 ASF  java  coders  are  next  in  line  after  the  Sirius  Cybernetic
 Corporation Marketing Division.

 --
 ing. Gian Uberto Lauri
 Ricercatore / Reasearcher
 Laboratorio Ricerca e Sviluppo / Research  Development Lab.
 Area Calcolo Distribuito / Distributed Computation Area

 gianuberto.la...@eng.it

 Engineering Ingegneria Informatica spa
 Corso Stati Uniti 23/C, 35127 Padova (PD)

 Tel. +39-049.8283.571 | main(){printf(unix[\021%six\012\0],
 Fax  +39-049.8283.569 |(unix)[have]+fun-0x60);}
 Skype: gian.uberto.lauri  |  David Korn, ATT Bell Labs
 http://www.eng.it |  ioccc best One Liner,
 1987
 ___
 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] root user creates checkpoint directory on cluster node instead of oneadmin

2011-04-11 Thread Carlos Martín Sánchez
Hi Pieter,

Thanks for sharing your solution. We've added a warning about changing the
VM_DIR in the Ubuntu Platform Notes [1].

Regards,
Carlos.

[1] http://opennebula.org/documentation:rel2.2:notes

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On 8 April 2011 11:39, Pieter Simoens pieter.simo...@intec.ugent.be wrote:

  Dear all

 sorry for spamming the list, but I want to report the solution for my
 issues as well, just to close this thread

 Apparently, I had misconfigured the
 /etc/apparmor.d/abstractions/libvirt-qemu...
 First, there was a typo in the line I had added.

 Second, I had configured a specific VM_DIR, and you have to add an
 additional exception to the apparmor.d file!
 In my case, this was VM_DIR=/work/onimages, and I had to add an additional
 line:
 --- owner /srv/cloud/one/var/** rw,
 -- owner /work/onimages/** rw,

 Of course, restart the apparmor daemon again.

 I do not know whether this is a generic issue, maybe it should be added
 to the documentation on the OpenNebula website? Now, there is only a warning
 for the /srv/cloud/one/var directory...

 Best regards,
 Pieter



 Op 8/04/2011 10:52, Pieter Simoens schreef:

 Dear all,

 following up on my e-mail below: according to
 http://dev.opennebula.org/issues/131, this should be solved in my version
 (I am running 2.0).

 It seems it has to do with the way you connect to the virsh socket
 (qemu:///system ?)

 So, I think the question is: where is the variable $LIBVIRT_URI specified?
 At least, that is the variable that is used in the /var/remotes/vmm/kvm/save
 script?

 Best regards,
 Pieter

 Op 8/04/2011 10:18, Pieter Simoens schreef:

 Dear all,

 when I issue a command onevm stop VM_ID'', the Virtual Machine stays in
 the save state. On my front-end node, the log-files (both oned.log and
 vm.log) show no specific error.

 However, when I have a look at the virsh log-file on my cluster node
 (/var/log/libvirt/qemu/one-22.log), I see the error: sh: cannot create
 /work/onimages/VM_ID/images/checkpoint: Permission denied.

 Strangely enough, the permissions of /work/onimages/VM_ID/images directory
 are set correctly (or so I think...): oneadmin is the owner, and cloud is
 the group. Also the uid and gid are identical to the oneadmin user on my
 frontend. But the images/checkpoint directory seems to be owned by the root
 user, belonging to the root group.

 Does anybody have an idea how this can be possible? Did I configure my
 cluster node in the wrong way?

 Thank you,
 Pieter

 Op 5/04/2011 14:49, Carlos Martín Sánchez schreef:

 Hi Pieter, please find my comments inline:


 On 5 April 2011 13:42, Pieter Simoens pieter.simo...@intec.ugent.bewrote:

  Dear all,

 I am running OpenNebula 2.0. I am able to successfully deploy a VM on a
 cluster node. The image is (currently) transferred over SSH. The VM boots
 successfully, and I am able to log-in.

 When I do onevm shutdown VM_ID, the VM is correctly shut down. But it
 does no longer appear in the output of onevm list all.


 That's the normal behaviour, VMs in DONE state are not listed. However, you
 can still see the extended information using 'onevm show id', because they
 are stored in the DB for accounting purposes.


  However, as far as I can recall from my previous experiments, I thought
 that the VM image would we transferred back, somewhere to VM_DIR/VM_ID
 directory.

 Unfortunately, this is not happening. Does anybody has any idea what can
 be the cause? Do I need to specify any additional parameters? The log-files
 show me no specific problem (I checked the oned.log and the
 /var/VM_ID/vm.log).



 Are you using the Image Repository [1]? If so, is the Image persistent?
 If you are defining the DISKs in the VM templates as in previous versions,
 make sure the attribute SAVE=YES is present.



 Thank you,


 Regards,
 Carlos.

 [1] http://opennebula.org/documentation:rel2.2:img_guide

 --
 Carlos Martín, MSc
 Project Major Contributor
 OpenNebula - The Open Source Toolkit for Cloud Computing
 www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org

   --
 Pieter Simoens, Ph.D.
 Department of Information Technology
 Internet Based Communication Networks and Services (IBCN)
 Ghent University - IBBT
 Gaston Crommenlaan 8 (Bus 201), B-9050 Gent, Belgium
 T: +32 9 33 14878 ; T Secr: +32 9 33 14900
 F: +32 9 33 14899
 W : www.ibcn.intec.UGent.be


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



 --
 Pieter Simoens, Ph.D.
 Department of Information Technology
 Internet Based Communication Networks and Services (IBCN)
 Ghent University - IBBT
 Gaston Crommenlaan 8 (Bus 201), B-9050 Gent, Belgium
 T: +32 9 33 14878 ; T Secr: +32 9 33 14900
 F: +32 9 33 14899
 W : www.ibcn.intec.UGent.be

Re: [one-users] how to predeploy image

2011-04-13 Thread Carlos Martín Sánchez
Hi Łukasz,

You could use the tm_dummy driver. That tm script returns always 0 and does
nothing else.
But using that tm_driver, you will have to manually move the files for all
VMs, not just some of them.

It would be best if you could modify the driver (tm_clone.sh, look for it in
your lib location) to issue the mkdir and scp commands only if the
destination file is not already present. It should be pretty
straight-forward.

Regards,
Carlos.
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


2011/4/12 Łukasz Grabowski grabb...@gmail.com

 Hi,

 I am using OpenNebula 1.4 and Haizea 1.0. I want to predeploy an image so
 that the VM could start at the scheduled by haizea time.
 How can I predeploy a VM's image? I would appreciate clarification.

 I had several ideas how to make it work but I didn't succeed.
 1. I tried to copy a prepared image to the default directory
 (/var/lib/one/VM-id/images/) in which it should be stored when a new VM is
 created.
 2. Then I tried to do the same and to create transfer.0.prolog file (after
 reading one of the generated by opennebula) but it didn't work.
 3. I tried even set the source in DISK section in VM template to the copied
 file in the destination.
 However, everytime I can see in VM log, that the image is copied.

 I am enclosing VM log and VM template
 Tue Apr 12 19:46:59 2011 [DiM][I]: New VM state is ACTIVE.
 Tue Apr 12 19:46:59 2011 [LCM][I]: New VM state is PROLOG.
 Tue Apr 12 19:48:44 2011 [TM][I]: tm_clone.sh:
 debian:/var/lib/one/50/images/disk.0 194.29.169.42:
 /var/lib/one//50/images/disk.0
 Tue Apr 12 19:48:44 2011 [TM][I]: tm_clone.sh: DST:
 /var/lib/one//50/images/disk.0
 Tue Apr 12 19:48:44 2011 [TM][I]: tm_clone.sh: Creating directory
 /var/lib/one//50/images
 Tue Apr 12 19:48:44 2011 [TM][I]: tm_clone.sh: Executed ssh 194.29.169.42
 mkdir -p /var/lib/one//50/images.
 Tue Apr 12 19:48:44 2011 [TM][I]: tm_clone.sh: Cloning
 debian:/var/lib/one/50/images/disk.0
 Tue Apr 12 19:48:44 2011 [TM][I]: tm_clone.sh: Executed scp
 debian:/var/lib/one/50/images/disk.0 194.29.169.42:
 /var/lib/one//50/images/disk.0.
 Tue Apr 12 19:48:44 2011 [TM][I]: tm_clone.sh: Executed ssh 194.29.169.42
 chmod a+w /var/lib/one//50/images/disk.0.
 Tue Apr 12 19:48:46 2011 [TM][I]: tm_mkswap.sh: Creating 1024Mb image in
 /var/lib/one//50/images/disk.1
 Tue Apr 12 19:48:46 2011 [TM][I]: tm_mkswap.sh: Executed ssh 194.29.169.42
 mkdir -p /var/lib/one//50/images.
 Tue Apr 12 19:48:46 2011 [TM][I]: tm_mkswap.sh: Executed ssh 194.29.169.42
 dd if=/dev/zero of=/var/lib/one//50/images/disk.1 bs=1 count=1 seek=1024M.
 Tue Apr 12 19:48:46 2011 [TM][I]: tm_mkswap.sh: Initializing swap space
 Tue Apr 12 19:48:46 2011 [TM][I]: tm_mkswap.sh: Executed ssh 194.29.169.42
 /sbin/mkswap /var/lib/one//50/images/disk.1.
 Tue Apr 12 19:48:46 2011 [TM][I]: tm_mkswap.sh: Executed ssh 194.29.169.42
 chmod a+w /var/lib/one//50/images/disk.1.
 Tue Apr 12 19:48:46 2011 [TM][I]: tm_context.sh: Executed mkdir -p
 /var/c8f990f3e542b79b3bb691c6c20a2684/isofiles.
 Tue Apr 12 19:48:46 2011 [TM][I]: tm_context.sh: Executed cp -R
 /var/lib/one/50/context.sh /var/c8f990f3e542b79b3bb691c6c20a2684/isofiles.
 Tue Apr 12 19:48:46 2011 [TM][I]: tm_context.sh: Executed cp -R
 /srv/cloud/vm_contextualization/id_rsa.pub
 /var/c8f990f3e542b79b3bb691c6c20a2684/isofiles.
 Tue Apr 12 19:48:46 2011 [TM][I]: tm_context.sh: Executed cp -R
 /srv/cloud/vm_contextualization/init.sh
 /var/c8f990f3e542b79b3bb691c6c20a2684/isofiles.
 Tue Apr 12 19:48:46 2011 [TM][I]: tm_context.sh: Executed mkisofs -o
 /var/c8f990f3e542b79b3bb691c6c20a2684/disk.2 -J -R
 /var/c8f990f3e542b79b3bb691c6c20a2684/isofiles.
 Tue Apr 12 19:48:46 2011 [TM][I]: tm_context.sh: Executed scp
 /var/c8f990f3e542b79b3bb691c6c20a2684/disk.2 194.29.169.42:
 /var/lib/one//50/images/disk.2.
 Tue Apr 12 19:48:46 2011 [TM][I]: tm_context.sh: Executed rm -rf
 /var/c8f990f3e542b79b3bb691c6c20a2684.
 Tue Apr 12 19:48:46 2011 [LCM][I]: New VM state is BOOT
 Tue Apr 12 19:48:46 2011 [VMM][I]: Generating deployment file:
 /var/lib/one/50/deployment.0
 Tue Apr 12 19:48:52 2011 [LCM][I]: New VM state is RUNNING
 Tue Apr 12 19:48:59 2011 [LCM][I]: New VM state is SHUTDOWN
 Tue Apr 12 19:49:05 2011 [LCM][I]: New VM state is EPILOG
 Tue Apr 12 19:49:07 2011 [TM][I]: tm_delete.sh: Deleting
 /var/lib/one//50/images
 Tue Apr 12 19:49:07 2011 [TM][I]: tm_delete.sh: Executed ssh 194.29.169.42
 rm -rf /var/lib/one//50/images.
 Tue Apr 12 19:49:07 2011 [DiM][I]: New VM state is DONE




 VM template
 ---
 NAME = debian-context

 CPU= 1
 MEMORY = 512

 # --- kernel  boot device ---

 OS = [
   kernel   = /boot/vmlinuz-2.6.32-5-xen-amd64,
   initrd   = /boot/initrd.img-2.6.32-5-xen-amd64,
   root = xvda2 ]

 DISK = [
   source   = /var/lib/one/50/images/disk.0,
   target   = xvda2,
   readonly = no 

Re: [one-users] Fwd: Error trying to CREATE HOST Error inserting Host Share in DB

2011-04-15 Thread Carlos Martín Sánchez
 invoked
 Thu Apr 14 13:59:32 2011 [ReM][D]: VirtualMachinePoolInfo method invoked



 2011/4/14 Carlos Martín Sánchez cmar...@opennebula.org

 Hi Sebastian,

 Any other error messages? What about the bootstrapping section of the log?
 Try that sqlite3 command (assuming you have sqlite set in your oned.conf)
 in /var/lib/one; or $ONE_LOCATION/var if you installed it in self-contained
 mode. That's where you'll find the one.db file.

 On a side note, if you are using localhost as front-end and Host then you
 can use the tm_nfs drivers, since the FS is shared.


 Regards,
 Carlos.

 --
 Carlos Martín, MSc
 Project Major Contributor
 OpenNebula - The Open Source Toolkit for Cloud Computing
 www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


 2011/4/14 Sebastian Neg neg.sebast...@gmail.com

 Hi,
 I installed Opennebula 2.2 and it works fine.
 but when i want to create a host, i get this error:

 [oneadmin@root ~]$ onehost create localhost im_kvm vmm_kvm tm_ssh
 Error: [HostAllocate] Error trying to CREATE HOST Error inserting Host in
 DB.

 When i try to run this command sqlite3 one.db .schema, i got nothing:
 [oneadmin@root ~]$ sqlite3 one.db .schema
 [oneadmin@root ~]$

 Note: I installed the front-end and the cluster in one machine.



 2011/4/1 Carlos Martín Sánchez cmar...@opennebula.org

 Hi Vivek,

 You are installing OpenNebula 2.0, right?

 Could you check if there is any error message in oned.log right after
 this message?
 [ONE][I]: Bootstraping OpenNebula database.


 It may be also helpful if you could send the output of
 $ sqlite3 one.db .schema


 Regards,
 Carlos
 --
 Carlos Martín, MSc
 Project Major Contributor
 OpenNebula - The Open Source Toolkit for Cloud Computing
 www.OpenNebula.org http://www.opennebula.org/ | cmartin@opennebula
 .org


 On 31 March 2011 16:02, Vivek Shrivastava 
 shrivastava.vi...@gmail.comwrote:



 Hello all,

 I've installed opennebula with the help of express installation, while
 creating node I'm getting the problem:-


 oneadmin@oneadmin-desktop:~/Downloads$ onehost create node01 im_kvm
 vmm_kvm tm_ssh
 Error: [HostAllocate] Error trying to CREATE HOST Error inserting Host
 Share in DB.

 (1)  I made /etc/one chmod 777, so that install.sh can run easily, is
 this the problem?

 (2) What should I do to solve above problem?

 (3) if I want to use kvm with ssh in cluster nodes, is that necessary
 to configure nfs (in node-install script) ?

 (4)  in oned.log I got this error:-

 SQL command was: INSERT INTO host_shares (hid,disk_usage, mem_usage,
 cpu_usage,max_disk,   max_mem,   max_cpu,free_disk,  free_mem,
 free_cpu,used_disk,  used_mem,  used_cpu,running_vms) VALUES
 (0,0,0,0,0,0,0,0,0,0,0,0,0,0), error: table host_shares has no column 
 named
 free_disk

 What should I do?


 Thanks in advance.
 --
 Regards,

 Vivek Shrivastava




 --


 ___
 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





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


Re: [one-users] RPC client: how to determine my user id?

2011-04-15 Thread Carlos Martín Sánchez
Hi Carsten,

I just wanted to let you know that we have implemented an XML-RPC method
one.user.info, that can be called with -1 to know all your own user
information.

You can follow the development here:
http://dev.opennebula.org/issues/552

Regards,
Carlos.

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On 11 March 2011 00:24, carsten.friedr...@csiro.au wrote:

 Groups and permissions would be fantastic. Especially regarding image
 management I have a very current need for this!



 Looking forward to it.



 Carsten





 *From:* Carlos Martín Sánchez [mailto:cmar...@opennebula.org]
 *Sent:* Thursday, 10 March 2011 23:31

 *To:* Friedrich, Carsten (ICT Centre, Acton)
 *Cc:* users@lists.opennebula.org
 *Subject:* Re: [one-users] RPC client: how to determine my user id?



 Hi Carsten,



 You are right, there are some operations that require the user ID and only
 oneadmin can know it.

 For now, those operations will remain only accessible to oneadmin. In the
 short term, we want to improve the overall user management (to add groups
 and, maybe, permissions) and we'll address this issue at that moment.



 Thanks and regards,

 Carlos.
 --
 Carlos Martín, MSc
 Project Major Contributor
 OpenNebula - The Open Source Toolkit for Cloud Computing
 www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org

 On 7 March 2011 23:08, carsten.friedr...@csiro.au wrote:

 Hi Carlos,



 Thanks for the reply. Using -1 or -2 and then filtering on the client side
 based on the username works for one.userpool.info. (Still wouldn’t work
 for one.user.passwd however).



 Thanks,

 Carsten



 *From:* Carlos Martín Sánchez [mailto:cmar...@opennebula.org]
 *Sent:* Monday, 7 March 2011 22:23
 *To:* Friedrich, Carsten (ICT Centre, Acton)
 *Cc:* users@lists.opennebula.org
 *Subject:* Re: [one-users] RPC client: how to determine my user id?



 Hi Carsten,



 You can use instead the -1 filter flag [1].



 The user ID is intended for administrators. Authorized users like
 'oneadmin' can perform a one.userpool.info call and look for the ID of a
 given name.



 Regards,

 Carlos.



 [1] http://opennebula.org/documentation:rel2.0:api#image_pool_information


 --
 Carlos Martín, MSc
 Project Major Contributor
 OpenNebula - The Open Source Toolkit for Cloud Computing
 www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org

 On 7 March 2011 02:21, carsten.friedr...@csiro.au wrote:

 Over RPC, how do I find out what my user id is; e.g. for use in other calls
 such as one.imagepool.info .



 Thanks,

 Carsten




 ___
 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] Problem monitoring Xen host 2.2

2011-04-25 Thread Carlos Martín Sánchez
Hi Javier,

Maybe the dom0 is taking all that memory. Take a look at this thread:
http://lists.opennebula.org/htdig.cgi/users-opennebula.org/2009-May/000436.html

Regards,
Carlos.
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On 8 April 2011 11:25, Javier Alcazar Luque jalca...@bifi.es wrote:

 Hello,

 I have installed opennebula 2.2 in a Centos 5.6 server, and everything
 works fine except for the hosts. The Kvm hosts seems to be monitoring
 correctly, but the Xen hosts show that the memory used is at 98% and there
 is no running vm in it.

 Sunstone information:
 Max Mem 24G
 Used Mem (real) 23.6G

 Top in the xen host:
 Mem:  24259584k total,  1012020k used, 23247564k free

 Any help?

 Thanks
 ___
 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] setting variables ONE_LOCATION

2011-04-25 Thread Carlos Martín Sánchez
Hi Marco,

If you installed OpenNebula from the packages, then the installation was
made in system-wide mode [1].
You don't need -actually you shouldn't- set the ONE_LOCATION env. variable.

Regards.

[1] http://opennebula.org/documentation:rel2.2:ignc

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Mon, Apr 11, 2011 at 12:48 PM, Marco Mirabile domini...@gmail.comwrote:

 i have install opnennebula with deb package.
 where is it the directory of installation?
 (i must set the ONE_LOCATION path)

 I have searched the home directory in / srv / cloud / one, but I can not
 find the folder

 thank you very much
 marco mirable

 ___
 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] Directory Xen On opennebula

2011-04-25 Thread Carlos Martín Sánchez
Hi there,

There isn't any requirement as to where to install Xen. Please check the Xen
Driver configuration guide [1] for configuration instructions.

Regards.

[1] http://opennebula.org/documentation:rel2.2:xeng

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Tue, Apr 12, 2011 at 10:53 AM, mahirudin alkhoir
mahirhea...@gmail.comwrote:

 I have xen host with guest os running, but my directory xen not in
 /srv/cloud because when i create guest with xen, i manage to directory
 /virtual/xen
 is that possible if i want integrated with opennebula???



 ___
 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] user permissions on vnet

2011-04-25 Thread Carlos Martín Sánchez
Hi Ignazio,
This is a quick change to the simple_permissions.rb script. I didn't even
check if this works, but it should help you get the idea of what Daniel
proposed.

When modifying an authorization script, you have to take into account that
oneadmin (user with id = 0) is granted anything in the core.

--- a/src/authm_mad/simple_permissions.rb
+++ b/src/authm_mad/simple_permissions.rb
@@ -71,8 +71,12 @@ class SimplePermissions

 case action
 when 'CREATE'
-auth_result=true if %w{VM NET IMAGE}.include? object
-
+if %w{VM IMAGE}.include? object
+auth_result = true
+elsif object == NET
+auth_result = Regular users can not CREATE NET
+end
+
 if @quota_enabled and object=='VM' and auth_result
 STDERR.puts 'quota enabled'
 @quota.update(uid.to_i)


Regards.

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Mon, Apr 18, 2011 at 3:16 PM, ignazio.cass...@provincia.torino.itwrote:

 Hello Daniel,
 I'd like to ask when new features will be addes do manage user groups.
 I did not understand I can setroles for difeerent users using
 simple_permissions.rb...
 How can I modify the  simple_permissions.rb to deny users crating new
 virtual networks ?
 Please, could ou give me an example ?
 At this time my oneaadmn ha created c virtual network and I don't want any
 other user create furthers vmnet.
 Thanks and Regards

 - Messaggio da dmol...@opennebula.org -
Data: Mon, 28 Mar 2011 16:21:31 +0200
Da: Daniel Molina dmol...@opennebula.org
  Oggetto: Re: [one-users] user permissions on vnet
  A: ignazio.cass...@provincia.torino.it
  Cc: users@lists.opennebula.org


  Hi,

 You can use the auth module [1,2] to disable the VNet creation for
 users different from oneadmin.

 Furthermore, we are developing a new feature to mange user groups. You
 will be able to set roles for different users and even customize your
 Sunstone to add or remove functionality for these users.

 [1] http://www.opennebula.org/documentation:rel2.2:users
 [2] http://www.opennebula.org/documentation:rel2.2:auth

 Regards

 On 24 March 2011 14:09,  ignazio.cass...@provincia.torino.it wrote:

 Hello everyone,
 I'd like to know if it is possible to set user permissions on virtual
 network
 creation.
 At this time, using sunstone, seems a normale user (not oneadmin) can
 create
 a virtual
 network with the same attributes of vnet created by oneadmin.
 Is it strange ?
 Thanks and regards
 Ignazio

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




 --
 Daniel Molina, Cloud Technology Engineer/Researcher
 Major Contributor
 OpenNebula - The Open Source Toolkit for Cloud Computing
 www.OpenNebula.org | dmol...@opennebula.org



 - Fine messaggio da dmol...@opennebula.org -




 ___
 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] Regular users can not search their information such as userid

2011-04-25 Thread Carlos Martín Sánchez
Hi, this will be implemented for future versions. It was discussed in this
thread:
http://lists.opennebula.org/pipermail/users-opennebula.org/2011-April/004857.html

Regards.
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Tue, Apr 19, 2011 at 9:06 AM, aiguoxin2008 aiguoxin2008 
aiguoxin2...@gmail.com wrote:

 Regular users can not search their information such as
 userid,username,isabled and so on.

 --
 aiguoxin

 ___
 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] file ~/.ssh/config

2011-04-27 Thread Carlos Martín Sánchez
Hi. Yes, that's a file you have to configure manually.
Its reference:
$ man ssh_config

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Tue, Apr 19, 2011 at 2:45 PM, Marco Mirabile domini...@gmail.com wrote:

 a question
 the file ~/.ssh/config
 I don't understand to configure the file ~/.ssh/config
 how to set it?
 is it manual configuration ?

 in the exeples I saw this congigure


 $ cat ~/.ssh/config
 Host *
 StrictHostKeyChecking no


 ___
 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] Does the SOURCE make no sense when creating an image in opennebula-2.2.0

2011-04-27 Thread Carlos Martín Sánchez
Hi,

You are right about the steps made by the ruby OCA and OpenNebula daemon.
And indeed, it makes no sense to specify only a SOURE attribute *if it is a
file path*.

But you can still take advantage of the SOURCE if you use an http:// url.
This can be used to bypass the local Image Repository and store some of the
Image files remotely.

Anyway, this isn't the typical scenario, and maybe it still makes sense to
remove the SOURCE option from the Suntone wizard.

Best regards,
Carlos.
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Wed, Apr 27, 2011 at 2:41 AM, junjie...@cs2c.com.cn wrote:



 Hello,

 When creating an image by sunstone-server, I find that the
 SOURCE makes no sense. So I go to the source code both in Ruby and
 opennebula, the SOURCE is only valid when using the PATH or SIZE(with
 FSTYPE).

 In my opinion, the whole image creation consists of four steps:


 1. Sunstone-server sends one.image.allocate by using Ruby to
 opennebula. The opennebula receives the calls and checks if the SOURCE
 exists in parameters of the image template. If it does not exists,
 opennebula assign a string to the SOURCE with the SHA1 digesting of
 uid:name, otherwise do nothing to the SOURCE. Then, inserts a image
 record into the DB.

 2. Then sunstone-server sends one.image.info to
 opennebula to retrieve the initialized infomation by step 1, mainly the
 value of SOURCE.

 3. Suntone-server starts to judge the branches by PATH,
 SOURCE, SIZE, FSTYPE and TYPE. When there only exists the SOURCE, it will
 do nothing. (For example, if the PATH exists and SOURCE not exists, it will
 do copy the PATH file to the SOURCE file path, and etc.)

 4. If former
 steps have no errors, sunstone-server sends one.image.enable to
 opennebula, it just update the record in DB and do nothing about the
 SOURCE. Otherwise, it sends one.image.delete to opennebula and delete the
 record in DB.

 So, if just specify the SOURCE to create an image, the
 operation make no sense. So, I think the SOURCE input should be removed in
 web pages of sunstone-server .

 If I have mistakes, please send me the
 error correction. Thanks. :-)


 ___
 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] how to disabled a user?

2011-04-27 Thread Carlos Martín Sánchez
Hi,

The 'enabled' attribute for users had a meaning in previous versions.
But right now I think you can just forget about it.

We'll check if it is safe to remove it completely in the next releases.

Regards,
Carlos.

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Tue, Apr 26, 2011 at 3:15 AM, aiguoxin2008 aiguoxin2008 
aiguoxin2...@gmail.com wrote:

 In java API,There is a class named User that has a method named
 isEnabled().
 I want to know oneadmin how to disabled a regular user ?


 ___
 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] Can I add my own scripts ?

2011-04-27 Thread Carlos Martín Sánchez
Hi,

This guide might help you:
http://opennebula.org/documentation:rel2.2:sd

Regards.
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


2011/4/22 liudewei liude...@neusoft.com

  Configuration Interface

 The Transfer Manager is configured in the $ONE_LOCATION/etc/oned.conffile, see
 the Daemon Configuration 
 filehttp://opennebula.org/documentation:rel2.2:oned_conf.
 Being flexible, the TM is always the same program, and different
 configurations are achieved by changing the configuration file. This file
 regulates the assignment between actions, like CLONE or LN, and scripts,
 effectively changing the semantics of the actions understood by the TM.

 TM_MAD = [
 name   = tm_nfs,
 executable = one_tm,
 arguments  = tm-configuration-file,
 default= default-tm-configuration-file ]

 Current OpenNebula release contains two set of scripts for the two
 scenarios described above, Shared - NFS (
 $ONE_LOCATION/etc/tm_nfs/tm_nfs.conf) or the Non Shared SSH TM (
 $ONE_LOCATION/etc/tm_ssh/tm_ssh.conf). Each different TM will have their
 own directory inside $ONE_LOCATION/etc.

 Lets see a sample line from the Shared - NFS configuration file:

 ...
 CLONE   = nfs/tm_clone.sh
 ...

 Basically, the TM here is being told that whenever it receives a clone
 action it should call the tm_clone.sh script with the received parameters.
 For more information on modifying and extending these scripts see Customizing
 and 
 Extendinghttp://opennebula.org/documentation:rel2.2:sm#customizing_and_extending.

 ==
 ask:
 the Customizing and 
 Extendinghttp://opennebula.org/documentation:rel2.2:sm#customizing_and_extending.
  can't visit by browser?

 I may be to modify OpenNebula underlying code  Realize my function。
 Can I add my own scripts eg:tm_mv_1.sh?,In case
 of, What I need to do things and  make its modification effect ?

 Thanks!
 Regars!
 david2011-04-22
 --
 liudewei

 ---
 Confidentiality Notice: The information contained in this e-mail and any
 accompanying attachment(s)
 is intended only for the use of the intended recipient and may be
 confidential and/or privileged of
 Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader
 of this communication is
 not the intended recipient, unauthorized use, forwarding, printing,
 storing, disclosure or copying
 is strictly prohibited, and may be unlawful.If you have received this
 communication in error,please
 immediately notify the sender by return e-mail, and delete the original
 message and all copies from
 your system. Thank you.

 ---

 ___
 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] Java OCA: poor choiche of Exception class

2011-04-28 Thread Carlos Martín Sánchez
Hi there,

The RuntimeException looks better to me.

The only thing I'm not sure about is why you deleted the 'throws'
declaration from Client.java.
Doing that, a client application is not forced to catch the connection
problem.
I think it's better to force the coder to be aware of this kind of problems,
and prepare a nice error dialog, or a re-try mechanism.

What do you think about using the RuntimeException and
'public Client() throws OpenNebulaConfigurationError' ?


Best regards,
Carlos.

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Tue, Apr 12, 2011 at 10:10 AM, Gian Uberto Lauri sa...@eng.it wrote:

 According to the last update in  issue #572

  r == redmine  redm...@opennebula.org writes:

 r Issue #572 has been updated by Ruben S. Montero.

 r Target version changed from Release 2.2 to Release 2.4

 r This is initially scheduled for 2.4

 does the OpenNebula team plan to  include my contribution in the code,
 and  if  yes, which  kind  of  exception  (the  Error or  the  Runtime
 Exception) ?

 I ask  this because I  am working on  a OVF aware  OCCI implementation
 that relies on the OCA API (for Venus-C)  and I wonder if I can use my
 modified code now or this spells trouble.

 Zeeshan, your opinion is welcome, too!

 --
 ing. Gian Uberto Lauri
 Ricercatore / Reasearcher
 Laboratorio Ricerca e Sviluppo / Research  Development Lab.
 Area Calcolo Distribuito / Distributed Computation Area

 gianuberto.la...@eng.it

 Engineering Ingegneria Informatica spa
 Corso Stati Uniti 23/C, 35127 Padova (PD)

 Tel. +39-049.8283.571 | main(){printf(unix[\021%six\012\0],
 Fax  +39-049.8283.569 |(unix)[have]+fun-0x60);}
 Skype: gian.uberto.lauri  |  David Korn, ATT Bell Labs
 http://www.eng.it |  ioccc best One Liner,
 1987
 ___
 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] RPCXML response problem

2011-05-03 Thread Carlos Martín Sánchez
Hi all,

For questions about the Apache XML-RPC library, please visit their site.
http://ws.apache.org/xmlrpc/

Regards.
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Mon, May 2, 2011 at 5:10 PM, Joey majunj...@gmail.com wrote:

  Hi,

 You can use the xmlrpc jars in the opennebula source code, which are
 located at ./src/oca/java/lib/.

 There are three jars: *ws-commons-util-1.0.2.jar*, *
 xmlrpc-client-3.1.2.jar* and *xmlrpc-common-3.1.2.jar*. Just add these
 three jars in to the classpath of the project in netbeans, and it is enough
 for compiling the java oca source codes.

 Best Regards,
 Joey



 On 2011/5/2 22:48, Marco Mirabile wrote:

 ciao
 I can not add the xmlrpc libraries in NetBeans.
 I downloaded the jar using the website www.findjar.com
 I can get some help?
 After I add the package in NetBeans, what can I do?

 marco mirabile
 ___
 Users mailing 
 listUsers@lists.opennebula.orghttp://lists.opennebula.org/listinfo.cgi/users-opennebula.org



 ___
 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] apache for a ssl proxy with econe

2011-05-04 Thread Carlos Martín Sánchez
Hi Sebastien,

As this kind of recipes and how-tos can be difficult to locate in the list
archives, we've copied your recipe into the community wiki [1].
I'd like to remind all of you that you are welcome to improve our (your)
community wiki, just request an account from [2].

Thank you for your contribution.

[1] http://www.opennebula.org/documentation:community:econe_apache
[2] http://www.opennebula.org/documentation:community:index

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Tue, May 3, 2011 at 6:36 PM, sebastien goasguen run...@gmail.com wrote:

 Sure, here is what I have working:

 econe.conf:
 -
 # OpenNebula sever contact information
 ONE_XMLRPC=http://localhost:2633/RPC2

 # Host and port where OCA server will run
 SERVER=localhost
 PORT=4567

 #SSL Proxy
 SSL_SERVER=hostname.domain:the port you run the proxy on


 I did a force redirect in httpd

 /etc/httpd/conf/httpd.conf:
 -
 VirtualHost *:80
   ServerName hostname:80
   ServerAdmin yourem...@domain.com

   RedirectMatch  ^/$ https://yourhostname:yourproxyport

 /VirtualHost

 /etc/httpd/conf.d/ssl.conf:
 --
 VirtualHost _default_:8443

 #put the SSL options that you need/want
 #and the following did the trick for me

 ProxyPreserveHost on
 ProxyPass / http://localhost:4567
 ProxyPassReverse / http://localhost:4567

 /VirtualHost


 Hope that helps,

 -sebastien


 On Tue, May 3, 2011 at 12:07 PM, Sebastian Neg neg.sebast...@gmail.com
 wrote:
  Hi Sebastien,
  I am also instersted to do a SSL proxy to econe with apache.
  Have you any documentatio?
  Thanks
  Regards --
 
 
  On Wed, Apr 13, 2011 at 4:12 AM, Steven Timm t...@fnal.gov wrote:
 
  Hi Sebastien--we have this working with pre-release
  opennebula 2.2 at Fermilab and have contributed our
  patches back to the trunk.  We've confirmed
  that we can still use hybridfox to talk to the resulting combo.
 
  More details contact us offline.
 
  Steve
 
 
 
 
 
  On Tue, 12 Apr 2011, sebastien goasguen wrote:
 
  Hi,
 
  In http://www.opennebula.org/documentation:rel2.2:ec2qcg
  lighthttp is used to create a SSL proxy for the econe server.
 
  Has anyone setup apache to do the same ?
  I am looking for some documentation on how to do a SSL proxy to econe
  with apache.
 
  Any help much appreciated,
 
  -sebastien
 
 
 
  --
  --
  Steven C. Timm, Ph.D  (630) 840-8525
  t...@fnal.gov  http://home.fnal.gov/~timm/
  Fermilab Computing Division, Scientific Computing Facilities,
  Grid Facilities Department, FermiGrid Services Group, Group Leader.
  Lead of FermiCloud project.
  ___
  Users mailing list
  Users@lists.opennebula.org
  http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
 
 



 --
 ---
 Sebastien Goasguen, Associate Professor
 School of Computing
 Clemson University
 864-553-4734.
 Google Voice: (864)-869-8683
 http://sites.google.com/site/runseb/
 ___
 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] Installation and Configuration Opennebula on Opensuse 11.3

2011-05-04 Thread Carlos Martín Sánchez
That's all explained here:
http://opennebula.org/documentation:rel2.2:cg#start_stop_opennebula

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


2011/5/4 mahirudin alkhoir mahirhea...@gmail.com

 i have chechked this guide...
 and config file oned.conf here iam attached...

 when i want start

 # one start
 You should have ONE_AUTH set the first time you start
 OpenNebula as it is used to set the credentials for
 the administrator user.





 2011/5/3 Carlos Martín Sánchez cmar...@opennebula.org

 Hi,

 Did you check the documentation?

 http://opennebula.org/documentation:documentation#installation_basic_setup_guide

 Regards.

 --
 Carlos Martín, MSc
 Project Major Contributor
 OpenNebula - The Open Source Toolkit for Cloud Computing
 www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


 On Tue, May 3, 2011 at 1:23 PM, mahirudin alkhoir 
 mahirhea...@gmail.comwrote:

 Dear All,

 I am so sorry if my question is dummy, i am very newbie on opennebula. I
 have Xen machine that installed on Opensuse 11.3. I want to integrated xen
 domu with opennebula. But i am stuck after i am installing opennebula.

 my nebula host --- 172.17.77.150
 my xen machine  172.17.88.9 with xen directory /VIRTUAL/xen/

 there is no issue with networking or connection. I installing opennebula
 from opensuse repository using zypper ...

 # zypper in opennebula

 everything OK with no error

 opennebula installed on /var/lib/one
 user oneadmin with cloud groupp automatically created

 what should i do next?? maybe someone have experience with opennebula on
 opensuse...



 ___
 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] shutting down VM vs stopping it

2011-05-09 Thread Carlos Martín Sánchez
Hi Nikolay,

The life-cycle diagram [1] is the best way to understand the VM states, and
what actions are available for each of them.

If you shut down a VM, it will enter the final DONE state, from which no
action can be performed.
A stopped VM on the other hand can be later resumed, using 'onevm resume'.

Internally, the difference is that shutting down the VM it has a chance to
perform any operations (like unregister from a service). A stopped VM is
suspended (paused).

[1]
http://opennebula.org/documentation:rel2.2:vm_guide#virtual_machine_life-cycle

Regards

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Sun, May 8, 2011 at 5:34 PM, kna...@gmail.com wrote:

 Hi!

 Tino has already explained the difference between deleting and shutting
 down VM in [1]. But I wonder what the difference is between shutting down VM
 and stopping it (I mean 'onevm shutdown' and 'onevm stop'). It's not clear
 from onevm man page [2].

 Thanks.
 Nikolay.

 [1] http://www.mail-archive.com/users@lists.opennebula.org/msg02965.html
 [2] http://opennebula.org/doc/2.2/cli/onevm.html
 ___
 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] VM IP address not assigned as per the base network address mentioned in virtual network template

2011-05-09 Thread Carlos Martín Sánchez
Hi,

That behaviour is the right one, but it may not be the one you would
expect... this has been discussed recently in the list.

Check these threads:
http://www.mail-archive.com/users@lists.opennebula.org/msg02782.html
http://www.mail-archive.com/users@lists.opennebula.org/msg02827.html

Regards
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Mon, May 9, 2011 at 4:37 PM, Koushik Annapureddy
koushik1...@gmail.comwrote:

 Hello All,

 Here is the virtual network template I have used

 NAME = VM_LAN
 TYPE = RANGED
 BRIDGE = br0
 NETWORK_ADDRESS = 192.168.2.25
 NETWORK_SIZE= 50
 GATEWAY = 192.168.2.3

 I would like to have IP address allocated to VM's which starts from
 192.168.2.26 But when I launch a VM using Open Nebula it is assigning the ip
 192.168.2.1 to the first VM and hence forth.
 In the VM I have used the same context script given along with opennebula
 source.

  --
 Thanks
 Koushik Annapureddy

 ___
 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] VMs still reported as running although host is down

2011-05-11 Thread Carlos Martín Sánchez
Hi Steffen,

There are two reasons I can think of that can cause that behaviour:

1) The next monitoring cycle hasn't been triggered.
2) The monitorization was triggered, but the command crashed and it didn't
return neither FAILURE or SUCCESS to the core.

I've made a couple of tests and found that, indeed, there is a bug :/
You can its ticket here [1].

The problem is that the core sends the monitoring request to the ssh driver,
and it is supposed to return FAILURE or SUCCESS. Instead, the driver is
crashing, and the Host and VM keep the last monitoring data (and status).

This could also cause trouble if the motorization probe gets stuck, and
doesn't end its execution.
We are aware of this problem, and we intend to add timeouts and checks to
the drivers to ensure that the actions are always answered to the core.

Thanks for the feedback!
Carlos.

[1] http://dev.opennebula.org/issues/630

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Wed, May 11, 2011 at 5:10 PM, Steffen Neumann sneum...@ipb-halle.dewrote:

 Hi,

 I shut down some hosts (had to, there were NFS issues)
 and didn't delete the VMs beforehand.

 I am a bit surprised that onehost list still shows
 the node as on:
 node02 default2   1600   1280   1200 63G   58.1G   on

 and that onevm list also reports the VMs as running:
 386 oneadmin  suse113 runn  22  8G  node02 08 06:51:45

 1) Why doesn't onehost report err if it can't execute
   the probes on the shutdown node ?

 2) Why doesn't onevm report unknown or whatever if it
   can't reach the not-running VM on the not-running node ?

 Should I open (one or two ?) tickets ?

 Yours,
 Steffen


 --
 IPB HalleAG Massenspektrometrie  Bioinformatik
 Dr. Steffen Neumann  http://www.IPB-Halle.DE
 Weinberg 3   http://msbi.bic-gh.de
 06120 Halle  Tel. +49 (0) 345 5582 - 1470
  +49 (0) 345 5582 - 0
 sneumann(at)IPB-Halle.DE Fax. +49 (0) 345 5582 - 1409


 ___
 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] default scheduler obsesses over failing hosts

2011-05-11 Thread Carlos Martín Sánchez
Hi,

Adding default policies to the scheduler is not implemented, but it has been
requested before [1].
We'll schedule that ticket for next releases.

Cheers,
Carlos.

[1] http://dev.opennebula.org/issues/360

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Thu, Apr 7, 2011 at 3:25 PM, Carlos A. cara...@upv.es wrote:

 Hello,

 I have a vmware-based ONE deployment, and I am facing this problem:

 host1 is running 1 VM
 host2 is running 2 VM

 When I create a new VM (without any requirements), the scheduler tries to
 deploy it in host2.

 The deployment of the VM fails due to a VMWare issue (it falls into a
 internal error state, waiting for a query to be answered). Any other VM
 deployed in a host in this state will fail.

 The problem is that any subsequent vm creation is tried to be deployed in
 host2 while host1 is properly working!

 If I stated any requirement for the VM to be deployed into host1 (ex.
 -RUNNING_VM), the scheduler will properly deploy in host1.

 Do I have any way to avoid obsessing on host2? (appart from creating my own
 scheduler)

 On the other side... Do I have any possibility to force the default
 scheduler to follow a specific deployment policy? i.e. force to use an
 expression such as RANK=-RUNNING_VM in the templates, or an alternative way.

 Regards,
 Carlos A.
 ___
 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] How config Windows vm template?

2011-05-12 Thread Carlos Martín Sánchez
Hi there,

The contextualization offered by OpenNebula is creating that cdrom and
context.sh script, but it's up to the guest OS to read that file and
configure itself.

We only provide linux scripts; you would have to create similar ones. I'm
not sure how difficult that can be since I don't have experience with
Windows scripting.


If you only need to configure the right IP for your VM, then you can try to
configure a DHCP server in your network (it can be placed in a VM in the
same VNet). This has been discussed in the list, hopefully these threads
will help:

[1] http://www.mail-archive.com/users@lists.opennebula.org/msg01143.html
[2] http://www.mail-archive.com/users@lists.opennebula.org/msg01395.html

Regards

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


2011/5/6 ddd xrchina2...@163.com

  hi,all
now,my winxp vm is running.but,config's ip and hostname is not
 right.
now,windows vm's cd-rom is existing context.sh.
This is my vm config file:
 NAME=WinVista
 CPU=1
 MEMORY=1024
 OS=[boot=hd]
 DISK =[source=/root/images/winxp_test.img, clone=yes,
 target=hda, readonly=no]
 NIC=[network =Small network]
 CONTEXT=[
hostname   = $NAME$VMID,
ip_public  = $NIC[IP, NETWORK=\Small network\],
target =hdb
 ]
 GRAPHICS =[type =vnc,listen =127.0.0.1, port = 1]
windows template  need config?how?
Please help me.
 ---Rong  Xiong









 ___
 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] second argument for restore script

2011-05-12 Thread Carlos Martín Sánchez
Hi Nikolay,

We have opened a ticket with your request [1], to provide a generic method
to query any VM attribute from the drivers.

Meanwhile, you can add the deploy_id as the last parameter modifiying
src/vmm_mad/ssh/one_vmm_ssh.rb, line 81

-remotes_action(#{@remote_path}/deploy #{remote_dfile},
-id, host, :deploy, @remote_dir, domain)
+remotes_action(#{@remote_path}/deploy #{remote_dfile} #{id},
+  id, host, :deploy, @remote_dir, domain)

Cheers,
Carlos.

[1] http://dev.opennebula.org/issues/633
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Tue, May 10, 2011 at 9:48 AM, kna...@gmail.com wrote:

 Dear ONE developers,

 To perform restore action OpenVZ hypervisor apart from dump file requires
 VM ID as well, i.e. the command looks like below:
 $ vzctl restore VM_ID --dumpfile path

 For more details please see [1].
 As far as I understand from
 $ONE_LOCATION/var/remotes/vmm/hypervisor/restore files ONE invokes restore
 script only with one argument which is the dump file.
 I am using XML type of VM_MAD driver in oned.conf (as below) to perform all
 actions on OpenVZ VMs:
 -8-
 VM_MAD = [
name   = vmm_ovz,
executable = one_vmm_ssh,
arguments  = ovz,
type   = xml ]
 ---8

 I wonder what file needs to be change to invoke restore script on remote
 node with one more argument ($deploy_id) needed for OpenVZ hypervisor (it
 looks for me that such approach should be safe for other hypervisors since
 they takes into account only the first argument).

 Thanks!
 Nikolay.

 [1] http://wiki.openvz.org/Checkpointing_and_live_migration
 ___
 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] '-' or 'err' (instead of 0) as a value for parameters which ONE fails to get

2011-05-12 Thread Carlos Martín Sánchez
Hi Nikolay,

The memory and cpu are numeric attributes managed by the core, initialized
to 0.
If the driver doesn't report them, they are not updated.

The way I see it, the drivers didn't know how to populate the values, rather
than encounter an error monitoring them.
We could modify the core to initialize them with -1, and make the CLI show
'unk' or '-'.

But to me it makes more sense to report always a positive value, since the
data can be consumed by other applications, and dealing with the special
case of -1 (or 'err' if the data is read from the onevm output) can
introduce bugs.

Regards.
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


-- Forwarded message --
From: kna...@gmail.com
Date: Wed, May 11, 2011 at 6:19 PM
Subject: [one-users] '-' or 'err' (instead of 0) as a value for parameters
which ONE fails to get
To: users users@lists.opennebula.org


Hi!

ONE shows 0 (zero) as a value for those parameters which it fails to
retrieve. For example,
$ onevm list
  ID USER NAME STAT CPU MEMHOSTNAMETIME
  39 oneadmin   one-39 runn   0  0K   host1 01 04:02:29
  40 oneadmin   vps145 runn   0  0K   host2 00 08:23:28

I wonder if it wouldn't be more reasonable to show '-' or 'err' instead of
0?
Sorry if that question has been already asked before (I couldn't found
anything similar).

Regards,
Nikolay.


___
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] poll script return value if VM is not running

2011-05-18 Thread Carlos Martín Sánchez
Hi Nikolay,

The core looks for those meaningful attributes and updates them only if they
are present and not equal to '-1', but they are not mandatory.
If any of them is not found, the previous value persist.

I would say that your driver should return all values that can be retrieved
from the hypervisor.


Regards.

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Mon, May 16, 2011 at 8:04 PM, kna...@gmail.com wrote:

 Hi!

 I wonder what $ONE_LOCATION/var/remotes/vmm/hypervisor/poll script has to
 return if polling VM is not running (but it can be in one of a,p,d,e state)?
 Should it be just STATE='vm status' or script has to return all
 meaningful for OpenNebula variables (USEDCPU, USEDMEMORY, NETRX and NETTX)?
 If all  variables listed above are mandatory then which values has to be
 assigned to them (0, -, something else or variables shouldn't have any value
 assigned) since they can't be retrieved?

 I couldn't find such info in [1].

 Thanks!
 Nikolay.

 [1] http://opennebula.org/documentation:rel2.2:devel-vmm
 ___
 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] Can we use the front end host also to deploy VMs ?

2011-05-18 Thread Carlos Martín Sánchez
Hi,

Since the storage is shared, you should use the tm_nfs drivers.

Regards
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Tue, May 17, 2011 at 12:01 PM, Héctor Sanjuán hsanj...@opennebula.orgwrote:

 Hi, things should be fine AFAIK, as long as you meet the normal
 requirements (passwordless ssh access etc).

 Hector

 El 17/05/11 07:44, Madhurranjan Mohaan escribió:
  Hi,
 
  Since the front end machine in my set up has quite a lot of RAM, wanted
  to know if its fine to deploy VMs on this machine as well . Is there
  anything that doesn't work with this sort of setup ?
 
  thanks
 
  Madhurranjan
 
 
 
  ___
  Users mailing list
  Users@lists.opennebula.org
  http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


 --
 Héctor Sanjuan
 OpenNebula.org
 ___
 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] OCA XML-RPC output

2011-05-19 Thread Carlos Martín Sánchez
Hi all,

On Wed, May 18, 2011 at 6:36 PM, Gian Uberto Lauri sa...@eng.it wrote:

  This lead to this question: May I assume that tag order is fixed
  inside TEMPLATE /  ?  so that the content may  be defined by a
  xs:sequence / ?


The template attributes are sorted in alphabetical order, so you can assume
a fixed order, but you can't be sure about what child elements will be
present since the template may contain anything.

You could however assume the contents if you force the VM creation to be
only done using your OVF to OCA server; or if you limit the VM information
retrieval to work only for VMs created from your code.

 And does  this hold even  for the  content of DISK,  NIC and
  OS?


Even inside each vector attribute, its sub-attributes are ordered
alphabetically.

 Common sense says  that Ruby should not  execute its instruction
  out of order, so the order is fixed and some elements may or may
  not appear,  but the  order should not  change. Can  you confirm
  this ?


Yes, after doing some tests it looks to me that the XML is not modified in
any way by Ruby.

Best regards,
Carlos.

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Wed, May 18, 2011 at 7:06 PM, Florin Antonescu florinantone...@gmail.com
 wrote:

 I am also interested in this topic as I am trying to do the same task for
 research project GEYSERS.


 On Wed, May 18, 2011 at 6:36 PM, Gian Uberto Lauri sa...@eng.it wrote:

 Hello all,

  I am  writing an  OCCI implementation that  accepts OVF  for the
  Venus-C  research project.  This implementation  parses OVF  and
  uses  the  extracted informatios  to  build  the input  fir  the
  appropriate OCA api.

  /compute  works  using  OCA  allocate(), now  I  am  working  on
  /compute/[id] that will use OCA info(). This call returns an XML
  that I have to translate into an OVF.

  I choosed to parse this XML using xjc to compile xsd definitions
  into Java classes.

  I downloaded the xsd from the hyperlink in the XML-RPC page, but
  the definition for  VMs (i.e. the answer of the  info() OCA api)
  is too  coares, and I  need to parse at  least some of  the tags
  inside the TEMPLATE / tag to get finer grained informations.

  So I have to change the xsd I downloaded.

  This lead to this question: May I assume that tag order is fixed
  inside TEMPLATE /  ?  so that the content may  be defined by a
  xs:sequence / ?

  And does  this hold even  for the  content of DISK,  NIC and
  OS?

  Common sense says  that Ruby should not  execute its instruction
  out of order, so the order is fixed and some elements may or may
  not appear,  but the  order should not  change. Can  you confirm
  this ?

  Thank you in advance.

 --
 ing. Gian Uberto Lauri
 Ricercatore / Reasearcher
 Laboratorio Ricerca e Sviluppo / Research  Development Lab.
 Area Calcolo Distribuito / Distributed Computation Area

 gianuberto.la...@eng.it

 Engineering Ingegneria Informatica spa
 Corso Stati Uniti 23/C, 35127 Padova (PD)

 Tel. +39-049.8283.571 | main(){printf(unix[\021%six\012\0],
 Fax  +39-049.8283.569 |(unix)[have]+fun-0x60);}
 Skype: gian.uberto.lauri  |  David Korn, ATT Bell Labs
 http://www.eng.it |  ioccc best One
 Liner, 1987
 ___
 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


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


Re: [one-users] Error monitoring VM, Error executing sudo /usr/sbin/xentop -bi2

2011-05-20 Thread Carlos Martín Sánchez
Hi María,

It looks like the script is not getting the expected output format and fails
to parse it.
Could you please copy the output of 'sudo /usr/sbin/xentop -bi2', logged as
oneadmin in the Host?

Regards,
Carlos.
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Wed, May 18, 2011 at 3:07 PM, María Pérez ma...@caton.es wrote:

  Hi again,

 I have another problem with the monitoring of the machines and the
 execution of /var/tmp/one/vmm/xen/poll.

 The log file contains the following lines with the error:


 Command execution fail: 'if [ -x /var/tmp/one/vmm/xen/poll ]; then
 /var/tmp/one/vmm/xen/poll one-28; else  exit 42;
 fi'
 Wed May 18 14:48:56 2011 [VMM][I]: STDERR follows.
 Wed May 18 14:48:56 2011 [VMM][I]: Error executing sudo /usr/sbin/xentop
 -bi2
 Wed May 18 14:48:56 2011 [VMM][I]: /var/tmp/one/vmm/xen/poll:186:in `[]':
 can't convert String into Integer (TypeError)
 Wed May 18 14:48:56 2011 [VMM][I]: from /var/tmp/one/vmm/xen/poll:186:in
 `get_vm_info'
 Wed May 18 14:48:56 2011 [VMM][I]: from /var/tmp/one/vmm/xen/poll:310:in
 `print_one_vm_info'
 Wed May 18 14:48:56 2011 [VMM][I]: from /var/tmp/one/vmm/xen/poll:344
 Wed May 18 14:48:56 2011 [VMM][I]: ExitCode: 1
 Wed May 18 14:48:56 2011 [VMM][E]: Error monitoring VM, Error executing
 sudo /usr/sbin/xentop -bi2


 I have tried to execute the commando from the own node to discard problems
 of ssh, but the error message is the same.

 I have found the following information

 http://dev.opennebula.org/issues/567

 but this patches no solved this problem.  I have installed opennebula 2,2
 and the nodes are xen 3.4.3

 Any idea? Thank you very much by your attention.

 Regards,

 María












 ___
 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] VM state is UNKNOWN

2011-05-20 Thread Carlos Martín Sánchez
Hi María,

This problem is related to the other thread you started [1]. The core marks
the VM state as unknown because the polling script fails to report any
information.

Regards.

[1] http://www.mail-archive.com/users@lists.opennebula.org/msg03119.html

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Wed, May 18, 2011 at 2:44 PM, María Pérez ma...@caton.es wrote:

 Hi,

 I have a pair of problems in my installation of opennebula. First it is
 that the VM begins correctly  but soon after they become to unknown state.
 The message at the log (vm.log) is:

 VM running but it was not found. Restart and delete actions available or
 try to recover it manually
 New VM state is UNKNOWN

 I can recovery the VM doing onevm resubmit but soon after it returns to
 unknown state, although the machine is perfectly accessible and works well.

 Somebody has had the same problem? it has solved how it?

 Regars,

 Maria
 ___
 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] Error monitoring VM, Error executing sudo /usr/sbin/xentop -bi2

2011-05-20 Thread Carlos Martín Sánchez
Hi again,

The script was discarding the first lines, because other versions include
some information about the system before the list of domains.
Please try the patch attached in this new ticket:
http://dev.opennebula.org/issues/656

Thank you,
Carlos.

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


2011/5/20 María Pérez ma...@caton.es


 Hi Carlos,

 The output of 'sudo /usr/sbin/xentop -bi2' is:

 [oneadmin@dn08 ~]$ sudo /usr/sbin/xentop -bi2
   NAME  STATE   CPU(sec) CPU(%) MEM(k) MEM(%)  MAXMEM(k) MAXMEM(%)
 VCPUS NETS NETTX(k) NETRX(k) VBDS   VBD_OO   VBD_RD   VBD_WR SSID
   Domain-0 -r 510.0   15532060   92.6   no limit
 n/a 850000000
 one-44 --b---  10.010483966.21048576
 6.3 1111568020   68  2530
   NAME  STATE   CPU(sec) CPU(%) MEM(k) MEM(%)  MAXMEM(k) MAXMEM(%)
 VCPUS NETS NETTX(k) NETRX(k) VBDS   VBD_OO   VBD_RD   VBD_WR SSID
   Domain-0 -r 510.5   15532276   92.6   no limit
 n/a 850000000
 one-44 --b---  10.110484046.21048576
 6.3 1111570520   68  2530


 This error causes that the VM is not monitored correctly, also the machines
 happen to unknown state. Do you think that this error will have something to
 do with the unknown state of the VM?


 Thank you very much.
 Regards,
 María

 El 20/05/11 14:34, Carlos Martín Sánchez escribió:

 Hi María,

 It looks like the script is not getting the expected output format and
 fails to parse it.
 Could you please copy the output of 'sudo /usr/sbin/xentop -bi2', logged as
 oneadmin in the Host?

 Regards,
 Carlos.
 --
 Carlos Martín, MSc
 Project Major Contributor
 OpenNebula - The Open Source Toolkit for Cloud Computing
 www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


 On Wed, May 18, 2011 at 3:07 PM, María Pérez ma...@caton.es wrote:

  Hi again,

 I have another problem with the monitoring of the machines and the
 execution of /var/tmp/one/vmm/xen/poll.

 The log file contains the following lines with the error:


 Command execution fail: 'if [ -x /var/tmp/one/vmm/xen/poll ]; then
 /var/tmp/one/vmm/xen/poll one-28; else  exit 42;
 fi'
 Wed May 18 14:48:56 2011 [VMM][I]: STDERR follows.
 Wed May 18 14:48:56 2011 [VMM][I]: Error executing sudo /usr/sbin/xentop
 -bi2
 Wed May 18 14:48:56 2011 [VMM][I]: /var/tmp/one/vmm/xen/poll:186:in `[]':
 can't convert String into Integer (TypeError)
 Wed May 18 14:48:56 2011 [VMM][I]: from /var/tmp/one/vmm/xen/poll:186:in
 `get_vm_info'
 Wed May 18 14:48:56 2011 [VMM][I]: from /var/tmp/one/vmm/xen/poll:310:in
 `print_one_vm_info'
 Wed May 18 14:48:56 2011 [VMM][I]: from /var/tmp/one/vmm/xen/poll:344
 Wed May 18 14:48:56 2011 [VMM][I]: ExitCode: 1
 Wed May 18 14:48:56 2011 [VMM][E]: Error monitoring VM, Error executing
 sudo /usr/sbin/xentop -bi2


 I have tried to execute the commando from the own node to discard problems
 of ssh, but the error message is the same.

 I have found the following information

 http://dev.opennebula.org/issues/567

 but this patches no solved this problem.  I have installed opennebula 2,2
 and the nodes are xen 3.4.3

 Any idea? Thank you very much by your attention.

 Regards,

 María












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




 --
   *María Ascensión Pérez García
 Engineering  Support
 Catón Sistemas Alternativos *

 ma...@caton.es
 www.caton.es
  Telf: +34 958 750 446
 Fax: +34 958 750 447

 Parque Tecnológico de Ciencias de la Salud
 Avda. de la Innovación nº 1
 Edf. BIC Granada
 C.P. 18100 - Armilla, Granada (Spain)
 --

 Este mensaje se dirige exclusivamente a su destinatario y puede contener
 información privilegiada o confidencial. Si no es vd. el destinatario
 indicado, queda notificado de que la lectura, utilización, divulgación y/o
 copia sin autorización está prohibida en virtud de la legislación vigente.

 Si ha recibido este mensaje por error, le rogamos que nos lo comunique
 inmediatamente por esta misma vía y proceda a su destrucción. El correo
 electrónico vía Internet no permite asegurar la confidencialidad de los
 mensajes que se transmiten ni su integridad o correcta recepción. CATÓN no
 asume ninguna responsabilidad por estas circunstancias.
 --

 This message is intended exclusively for its addressee and may contain
 information that is CONFIDENTIAL and protected by a professional privilege
 or whose disclosure is prohibited by law. If you are not the intended
 recipient you are hereby notified

Re: [one-users] OS Image in Ubuntu

2011-05-23 Thread Carlos Martín Sánchez
Hi,

You must have installed OpenNebula 1.2, try downloading the latest stable
version deb files form our webpage:
http://opennebula.org/software:software

Regards,
Carlos.
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Mon, May 23, 2011 at 10:00 AM, Adnan Pasic pq...@yahoo.de wrote:

 Hello,

 I just need an information/help regarding the OS images to be used for
 virtualization. I don’t really know how to create one, since the tutorials
 aren’t really helpful in the case of using Ubuntu as host OS.

 The problem is that when I install opennebula on Ubuntu via apt (apt-get
 install opennebula) everything gets installed, except the “oneimage”-module
 and sunstone! Is this normal?

 So, since I don’t have the oneimage-command I can’t really create a VM
 OS-image. So can anyone give me other steps (just tell me how to create such
 an image easily. Maybe with virt-manager?) or can someone even give me an
 already prepared image? I’m fine with a Linux-OS (Ubuntu again, for
 example).

 Thanks!

 ___
 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] How to add worker nodes and to configure Open Nebula with XEN?

2011-05-23 Thread Carlos Martín Sánchez
Hi Anders,

The im_kvm and vmm_kvm MADs are defined in your /etc/one/oned.conf file, you
should uncomment im_xen and vmm_xen.
Follow the xen specific guide [1], but be aware that some steps will be
already done by the express installation. From [2]:

   - Configures sudo for Xen deployments.
   - Configures GRUB for Xen deployments.


Regards,
Carlos.

[1] http://opennebula.org/documentation:rel2.2:xeng
[2] http://opennebula.org/software:addons:express

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Thu, May 19, 2011 at 2:17 PM, Anders Branderud 
anders.brande...@gmail.com wrote:

 Hello!

 Thanks for the previous help with non-shared vs shared installation of Open
 Nebula.

 I have now installed an Open Nebula express installation - CentOS, SSH and
 Xen.

 I have installed it on the front end and on one worker node following these
 instructions:
 http://opennebula.org/software:addons:express

 I also did this as was specified in the express installation script:
 brctl addbr br0
 brctl addif br0 eth1

 I would now like to have some further guidance of what I should do.

 The above link says that I now should do this: “oneadmin@frontend:~$
 onehost create worker_node01 im_kvm vmm_kvm tm_nfs“


 However, it seems to be what I should do had I installed KVM.

 What is the command that I should run on the front end?

 Could anyone also give me instructions of how to deploy a XEN virtual
 machine on the front end and on a worker node? The guide on the Open
 Nebula-website only provides instructions for KVM.

 Thanks!!

 --Kind Regards, Anders Branderud

 [Personal blog] bloganders.blogspot.com  : Logical reasons - based on
 scientific premises - for the existence of a Super Intelligent Creator and
 that He hasn't left His sapient creatures without an Instruction Manual -
 Torah ['books of Moses'] - to ascertain, and aspire to, His purpose.

 [Company] Anders Branderud IT Solutions - www.abitsolutions.org

 ___
 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] Any one can help me? PLS...

2011-05-24 Thread Carlos Martín Sánchez
Hi Soge,

ONE_LOCATION should point to /srv/cloud/one, you can set it in your
.bashrc
Please check the Basic Configuration documentation [1] for the env.
variables needed.

Regards,
Carlos.

[1] http://opennebula.org/documentation:rel2.2:cg#opennebula_users

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Tue, May 24, 2011 at 6:09 AM, soge george sogegeo...@gmail.com wrote:

 hi,
 I am evaluating Opennebula 2.2. And I  completed installation of opennebula
 in Centos 5.3.I have installed opennebula in  /srv/cloud/one as
 Selfcontained mode.But i am not understanding how it comes under
 $ONE_LOCATION/.Can any one please help me for making the opennebula
 directories under  $ONE_LOCATION/.
 Is there any configuration i have to do?

 Thanks in advance,
 Soge


 ___
 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] Keep all the data from host_pool

2011-05-24 Thread Carlos Martín Sánchez
Hi,

There is no straight-forward way to do this. We don't have configuration
options for DB manipulation.
I think the best workaround is to create a SQL Trigger [1] [2] , that will
copy the rows to be deleted from 'host_pool' to a new table,
'history_host_pool'.

Please be aware of this bug [3], in some rare cases you may have a new Host
using the ID of an old deleted one.


Regards,
Carlos.

[1] http://dev.mysql.com/doc/refman/5.6/en/triggers.html
[2] http://www.sqlite.org/lang_createtrigger.html

[3] http://dev.opennebula.org/issues/566
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


2011/5/23 Carlos Fernández Iglesias cigles...@cesga.es

 Hello,

 I've noticed that when a host is deleted from opennebula it's information
 is also deleted from the database. This also applies to images, networks and
 users.

 For accounting purposes it will be great to have none of the database
 information erased as you may need that info in some scenario, and it may
 not be there.

 Is there some way to prevent this from happening?

 Thanks.
 ___
 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] Running FE as Xen dom0/domU?

2011-05-24 Thread Carlos Martín Sánchez
Hi Richard,


On Mon, May 23, 2011 at 4:09 PM, Richard Palmer
richard.d.pal...@kcl.ac.ukwrote:

The servers are all fairly powerful so I don't want to waste one
 just
running the FE on it. Can I run the FE code in dom0 (in Xen) and
also add the same server as a host to Nebula?. Or would it be better
to create a domU just to run the FE code in, but still add the host
to Nebula ?.


The FE can be added as a Host just fine.
We would advise to install OpenNebula in dom0, since there's no clear
advantage to an installation inside a VM. It will save you some network
configuration, and you avoid a possible performance downgrade.


You may however have some good reasons to install OpeNebula in a domU.
For instance, your servers may have an old OS and you find it difficult to
install the required dependencies. In that case a virtualized recent
distribution will be easier to set-up. Or if you have big plans for your
domU OpenNebula like migration to new HW, or High Availability setups.

In that case, keep in mind that the VM must be able to see the other Hosts
in your network, attaching its interfaces to a bridge in the private
physical interface. You should also configure an external NFS server.

   Can (or should) long running servers be managed through Nebula ? E.g.
a blog server. I'd like to have a single view of all the servers
so creating them all via Nebula would be useful, but perhaps it's
not really meant for this.


Yes, OpenNebula can and should manage all VMs, because it assumes exclusive
usage of the physical resources, and managing VMs manually may lead to IP
collisions.

Moreover, OpenNebula is well suited for long running servers. You can take
advantage of the Fault Tolerance features [1] to resubmit a crashed VM, or
even resubmit the VM in another Host if the first one fails. And, if the
server running OpenNebula fails, it will continue the monitoring and
management of the VMs when it is restarted.


   Can any requirements beyond memory and disc be specified for an
instance ?. E.g. must have access to tape library attached to only
one of the hosts.


You can define any placement requirement. If you need a specific Host,
REQUIREMENTS = NAME = myhost

or you can group some Hosts in clusters [3], and require the VM to be
deployed in any of them:
REQUIREMENTS = CLUSTER = development


Best regards,
Carlos.

[1] http://opennebula.org/documentation:rel2.2:ftguide
[2] http://opennebula.org/documentation:rel2.2:template#placement_section
[3] http://opennebula.org/documentation:rel2.2:cluster_guide
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Mon, May 23, 2011 at 4:09 PM, Richard Palmer
richard.d.pal...@kcl.ac.ukwrote:

 Dear list,

I'm planning on a open nebula setup on some hardware we have
(not necessarily the hardware we *need*, but I'm hoping nebula will
let us make the best use of it). But I have some questions:

The servers are all fairly powerful so I don't want to waste one
 just
running the FE on it. Can I run the FE code in dom0 (in Xen) and
also add the same server as a host to Nebula?. Or would it be better
to create a domU just to run the FE code in, but still add the host
to Nebula ?.

Can (or should) long running servers be managed through Nebula ?
 E.g.
a blog server. I'd like to have a single view of all the servers
so creating them all via Nebula would be useful, but perhaps it's
not really meant for this.

Can any requirements beyond memory and disc be specified for an
instance ?. E.g. must have access to tape library attached to only
one of the hosts.

 Many thanks,

 Richard

 --
 Richard Palmer  | Centre for E-Research
|  King's College London
 richard.d.pal...@kcl.ac.uk  |
 Tel: 0207 848 1973   |
 ___
 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] Opennebula as a virtual infrastructure Management tool

2011-05-24 Thread Carlos Martín Sánchez
Hi,

On Tue, May 24, 2011 at 1:19 PM, Oualid Nouri o.no...@computer-lan.dewrote:

 Question: Is it possible to deploy(install)and manage these Servers in a
 central repository and having this repository accessed by hypervisors
 without copying the whole virtual machine image when starting or stopping a
 virtual server with opennebula?



The Image Repository [1] takes care of the image files. If the storage is
shared (e.g. NFS), and the Images are marked as persistent [2], then the
file in the repository is used rather than cloned.



 Regards,

Carlos.


[1] http://opennebula.org/documentation:rel2.2:img_guide

[2]
http://opennebula.org/documentation:rel2.2:img_guide#making_images_persistent

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Tue, May 24, 2011 at 1:19 PM, Oualid Nouri o.no...@computer-lan.dewrote:

 Hello to all,

 I have looked in the documentation anb on the web but didn’t find a clear
 answer to my questions or at least I didn't understood the whole concept of
 opennebula.

 My Plan and Question

 I am looking for an administrator friendly open source management tool for
 virtual infrastructures.

 With the SUNSTONE web frontend there is a user friendly administrative tool
 to opennebula.



 I want to be able to manage a fixed but expandable set of virtual Servers,
 not just workloads in a cloud.

 Let’s say one File Server and one Mail Server (windows or linux) for the
 beginning.

 After some time a third, fourth or more might be deployed.

 I know that this is possible.

 I'm not interested  to just quickly deploy virgin virtual machine images
 and then destroy them after usage.

 Because the virtual machines will host user data I want to keep them.



 Question: Is it possible to deploy(install)and manage these Servers in a
 central repository and having this repository accessed by hypervisors
 without copying the whole virtual machine image when starting or stopping a
 virtual server with opennebula?



 If there is already one answer or hints please let me know.





 Regards



 O. Nouri





 ___
 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] Restarting a vm instance after shutdown?

2011-05-30 Thread Carlos Martín Sánchez
Hi Lars,

We think the model you are describing will be easily achieved in the
upcoming 3.0 [1] release.
The approach we are taking to implement persistent VM is making the VM
Template the main VM entity, as you pointed out.


With the new VM Template pool, you will be able to:

(a) A vm instance would start with its own copy of a disk image.


A new 'oneimage clone' command will provide a personal private copy of
another Image. Then, a VM Template using that Image can be registered using
'onetemplate create my_vm.one'


 (b) Shutdown would not delete the image.


The data won't be lost if the Image is persistent. Which I think is a
reasonable default for an Image created from 'oneimage clone'.


 (c) Some command (restart, or resubmit, or something) would allow one
 to restore a vm instance that had been shut down.


A VM instance will finish it's life-cycle after shutdown, this won't change.
But the VM Template will be still available in the pool, and can be
instantiated many more times.


 (d) Disk data would only be discarded with an explicit delete.


There will a explicit delete for the disks (oneimage delete), and for the VM
Template (onetemplate delete).


Best regards,
Carlos.

[1] http://blog.opennebula.org/?p=1626

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Tue, May 24, 2011 at 10:08 PM, Lars Kellogg-Stedman 
l...@seas.harvard.edu wrote:

 Steffen, Tino,

 Thank you both for your answers.  Using persistent disk images (or the
 save as feature) helps a little bit, but what I was really hoping
 for was a model in which:

 (a) A vm instance would start with its own copy of a disk image.
 (b) Shutdown would not delete the image.
 (c) Some command (restart, or resubmit, or something) would allow one
 to restore a vm instance that had been shut down.
 (d) Disk data would only be discarded with an explicit delete.

 Ideally, this would be controlled at the virtual machine level, not
 the disk image level.  That is, one would set the don't delete on
 shutdown option on the vm instance.

 The problem with persistent images is that -- as far as I can tell
 -- the vm instance references the image in the repository directly,
 rather than getting private persistent *copy* of the image.  The
 problem with saving a vm instance is that it doesn't really address
 the problem of, whoops, I typed the wrong vm id and shutdown the
 wrong system.  It also forces the template description file to become
 more important, since the recovery process is to create a new
 virtual machine instance, rather than rebooting the old one.

 I have seen several similar questions on the list from folks looking
 for a way to support persistent virtual machines, so it looks as if
 this is a model for which there is some demand.  For those of you
 familiar with the codebase, does this look as if it would be hard to
 implement?  If I wanted to implement it myself, should I be looked at
 the 2.4 code?  We're running 2.2 locally, but I understand that 2.4 is
 on the horizon.

 --
 Lars Kellogg-Stedman l...@seas.harvard.edu
 Senior Technologist
 Harvard University SEAS
 Academic and Research Computing (ARC)
 ___
 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] live-/migration not working, uknown error

2011-05-30 Thread Carlos Martín Sánchez
Hi Adnan,

This may be of help:
http://lists.opennebula.org/pipermail/users-opennebula.org/2010-September/002680.html

Regards,
Carlos.
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Mon, May 30, 2011 at 11:52 AM, Adnan Pasic pq...@yahoo.de wrote:

 Hello,

 unfortunately the problem is still there.

 It says: error: unable to set ownership of
 “/srv/cloud/one/var//29/images/checkpoint” to user 0:0: Operation not
 permitted

 Error saving VM state, error: Failed to save domain one-29 to
 /srv/cloud/one/var//29/images/checkpoint



 Please help, this is slowly  making me crazy…



 *Von:* Neumann, Steffen [mailto:sneum...@ipb-halle.de]
 *Gesendet:* Dienstag, 24. Mai 2011 16:59
 *An:* Adnan Pasic; users@lists.opennebula.org
 *Betreff:* RE: [one-users] live-/migration not working, uknown error



 Hi,

 check out the list archives:

 http://lists.opennebula.org/htdig.cgi/users-opennebula.org/2011-April/005013.html

 Steffen
 --

 *From:* users-boun...@lists.opennebula.org [
 users-boun...@lists.opennebula.org] on behalf of Adnan Pasic [
 pq...@yahoo.de]
 *Sent:* 24 May 2011 14:47
 *To:* users@lists.opennebula.org
 *Subject:* [one-users] live-/migration not working, uknown error

 Update: Okay, the issue with virsh list is gone. But still the problem
 with migration / live migration pertains.

 Do you have to do some extra steps for live migration to work? Do you need
 to create TLS keys or something, or is the standard tutorial enough for
 everything to work?



 The error still says:

 [VMM] [E]: Error saving VM state, error: Failed to save domain one-26 to
 /srv/cloud/one/var//26/images/checkpoint



 It seems the folder checkpoint can't get created, or the creation of the
 folder is missing somewhere in the scripts, because when I browse through to
 the folder /images there is no checkpoint folder inside.



 I hope those infos are sufficient to narrow down the possible mistakes?

 ___
 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] how to create an internal user.

2011-06-01 Thread Carlos Martín Sánchez
Hi,

Take a look at these links [1,2].

In /lib/one/ruby/simple_permissions.rb (or
$ONE_LOCATION/lib/ruby/simple_permissions.rb in a self-contained
installation) you have to modify the auth_object method. Assuming you want
to give user 7 the same authorization as oneadmin:

--- a/src/authm_mad/simple_permissions.rb
+++ b/src/authm_mad/simple_permissions.rb
@@ -78,7 +78,7 @@ class SimplePermissions
 # Authorizes each of the tokens. All parameters are strings. Pub
 # means public when 1 and private when 0
 def auth_object(uid, object, id, action, owner, pub)
-return true if uid=='0'
+return true if (uid=='0' || uid=='7')

 auth_result=false

Best regards,
Carlos.

[1] http://opennebula.org/documentation:rel2.2:users
[2] http://opennebula.org/documentation:rel2.2:auth


--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Wed, Jun 1, 2011 at 12:24 PM, salma rebai rebai.sa...@gmail.com wrote:

 Hi all,
 I work with Opennbeula2.2. I would know is that possible to create a second
 administrator account to opennebula( an internel user). What should I do to
 create an internal user to OpenNebula. Is there some configuration in the
 auth file to make.
 Thanks in advance.

 --
 Salma REBAI
 Ingénieur Informatique
 Mastère Réseaux et Systèmes Multimédia
 Ecole Nationale des Sciences Informatiques Univ. Manouba, Tunisie
 Institut Télécom SudParis
 rebai.sa...@gmail.com

 ___
 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] Deltacloud connexion failed with Opennbeula

2011-06-02 Thread Carlos Martín Sánchez
Hi,

The Deltacloud component was developed and tested for OpenNebula 1.4, I'm
not sure how difficult it would be to update it for the latest versions.

Please use the Ecosystem Mailing List [1] for questions regarding ecosystem
components.


Regards,
Carlos.

[1] http://opennebula.org/community:mailinglists
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Thu, Jun 2, 2011 at 3:14 PM, seb delta neg.sebast...@gmail.com wrote:

 Hi, i try to test Opennebula with Deltacloud.
 i did:
 OCCI_URL=http://occi.opennebula:1147/; ./bin/deltacloudd -i opennebula -p
 3001
 and when i log with: oneadmin/oneadmin, i encountred this problem:
 http://www.fpaste.org/26Uw/
 seems like opennebula have changed XML schema and the driver is not updated
 to that.
 Can someone help me please
 thanks


 ___
 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] how to create an internal user.

2011-06-07 Thread Carlos Martín Sánchez
Hi Salma,

It looks like you didn't set-up the environment variables referenced here
[1] for your new account (specially the PATH).

I would recommend you to use the :authentication: simple option in
auth.conf, to authenticate users with the one_auth file contents
(username:password). This way you can play around with the authorization and
then move on to the strongest ssh authentication.

Regards,
Carlos.

[1] http://opennebula.org/documentation:rel2.2:cg#opennebula_users
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


2011/6/2 salma rebai rebai.sa...@gmail.com

 hi,
 thank you for your response.
 But i still have problems with user management and some unclear points. In
 fact,  i have Opennebula installed in   a self contained directory.
 if i want to create a new user to opennebula, should that user be really
 created in my System or it is  not necessary.
 I follow this guide [1], i have created a new user in my system, then i
 generated the rsa- key, but i don't understand how to do the extraction of
 public key. the guide mention that it should be done bye the users by using
 the command oneauth key.. and sent to the administrators. but the user
 have not  this command .

  -bash: oneauth: command not found

 I have extracted the key using the oneadmin account, and i create the new
 user with the oneuser create command. the user is added in the  table list,
 and when i execute the command  i have this result

[oneadmin@node020 ~]$ oneauth login salma
export ONE_AUTH=/data1/opennebula/.one/one_ssh
[oneadmin@node020 ~]$


  but i could not login as the new user to execute opennebula
 fonctionalities.
 what is the problem?? am i doing some thing wrong??
 Can you give me some clarification please.
 thanks in advance.

 [1]http://opennebula.org/documentation:rel2.2:users


 Best regards,
 SALMA.


 2011/6/1 Carlos Martín Sánchez cmar...@opennebula.org

 Hi,

 Take a look at these links [1,2].

 In /lib/one/ruby/simple_permissions.rb (or
 $ONE_LOCATION/lib/ruby/simple_permissions.rb in a self-contained
 installation) you have to modify the auth_object method. Assuming you want
 to give user 7 the same authorization as oneadmin:

 --- a/src/authm_mad/simple_permissions.rb
 +++ b/src/authm_mad/simple_permissions.rb
 @@ -78,7 +78,7 @@ class SimplePermissions
  # Authorizes each of the tokens. All parameters are strings. Pub
  # means public when 1 and private when 0
  def auth_object(uid, object, id, action, owner, pub)
 -return true if uid=='0'
 +return true if (uid=='0' || uid=='7')

  auth_result=false

 Best regards,
 Carlos.

 [1] http://opennebula.org/documentation:rel2.2:users
 [2] http://opennebula.org/documentation:rel2.2:auth


 --
 Carlos Martín, MSc
 Project Major Contributor
 OpenNebula - The Open Source Toolkit for Cloud Computing
 www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


 On Wed, Jun 1, 2011 at 12:24 PM, salma rebai rebai.sa...@gmail.comwrote:

 Hi all,
 I work with Opennbeula2.2. I would know is that possible to create a
 second administrator account to opennebula( an internel user). What should I
 do to create an internal user to OpenNebula. Is there some configuration in
 the auth file to make.
 Thanks in advance.

 --
 Salma REBAI
 Ingénieur Informatique
 Mastère Réseaux et Systèmes Multimédia
 Ecole Nationale des Sciences Informatiques Univ. Manouba, Tunisie
 Institut Télécom SudParis
 rebai.sa...@gmail.com

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





 --
 Salma REBAI
 Ingénieur Informatique
 Mastère Réseaux et Systèmes Multimédia
 Ecole Nationale des Sciences Informatiques Univ. Manouba, Tunisie
 Institut Télécom SudParis
 rebai.sa...@gmail.com

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


Re: [one-users] Get Virtual network IP problem When it creates VM

2011-06-09 Thread Carlos Martín Sánchez
Hi,

The NETWORK_ADDRESS is not the first IP of the range, it is the base
address.
This is explained in detail in this thread:
http://lists.opennebula.org/htdig.cgi/users-opennebula.org/2011-April/005021.html

Regards.

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Tue, Jun 7, 2011 at 6:19 AM, liudewei liude...@neusoft.com wrote:


 Hi,
 Get Virtual network  IP problem When it creates VM

 onevnet list command execute the belowing:


 VIRTUAL NETWORK 127 INFORMATION
 ID:   : 127
 UID:  : 0

 VIRTUAL NETWORK TEMPLATE
 BRIDGE=xenbr.eth0
 NAME=10.100.23.0
 NETWORK_ADDRESS=10.100.23.20
 NETWORK_SIZE=5
 TYPE=RANGED

 LEASES INFORMATION
 LEASE=[ IP=10.100.23.17, MAC=00:03:0a:64:17:11, USED=1, VID=127 ]

 after create the VM template
 #onevm show 127
  NIC=[
   BRIDGE=xenbr.eth0,
   IP=10.100.23.17,
   MAC=00:03:0a:64:17:11,
   NETWORK=10.100.23.0,
   VNID=127 ]

 if it used TYPE=FIXED,the VM could allocate right IP from it(fixed).
 Why?

 regars
 thanks!
 2011-06-07
 --
  david

 ---
 Confidentiality Notice: The information contained in this e-mail and any
 accompanying attachment(s)
 is intended only for the use of the intended recipient and may be
 confidential and/or privileged of
 Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader
 of this communication is
 not the intended recipient, unauthorized use, forwarding, printing,
 storing, disclosure or copying
 is strictly prohibited, and may be unlawful.If you have received this
 communication in error,please
 immediately notify the sender by return e-mail, and delete the original
 message and all copies from
 your system. Thank you.

 ---

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


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


Re: [one-users] DB handling issue

2011-06-09 Thread Carlos Martín Sánchez
Hi Zeeshan,

OpenNebula uses the DB only for persistence, all information is cached in
memory. You can't modify the stored data and expect the core to update the
memory representation.

If you really need to modify the DB contents, stop OpenNebula, perform any
queries and then restart. This way OpenNebula will reload information from
the DB to build the cache.

Regards.
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Thu, Jun 9, 2011 at 11:29 AM, Zeeshan Ali Shah zas...@pdc.kth.se wrote:

 Hi,
 We are using Mysql with One. How sync the data from DB to One is ?  since
 if we change lets say leases table of IP , it does not show on onevnet list
 ?  do you have a cache some where ?

 or is there any cache between DB and ONE ?

 --

 --
 Regards

 Zeeshan Ali Shah
 System Administrator
 PDC-Center for High Performance Computing
 CSC School of Computer Science and Communication
 KTH-Royal Institute of Technology , Sweden

 +46 8 790 9115



 ___
 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] VM doesn't get network configuration

2011-06-10 Thread Carlos Martín Sánchez
Hi Christoph,

The templates look fine, but it is not clear to me if you configured your VM
with the contextualization scripts [1].

Could you please confirm if the vmcontext.sh script is installed?
If it is, then try to login via VNC and execute it.

Regards.

[1] http://opennebula.org/documentation:rel2.2:cong

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Thu, Jun 9, 2011 at 3:35 PM, Christoph Raible 
c.rai...@science-computing.de wrote:

 Hi @all

 I have a problem in configuring the network from a copied VM in
 OpenNebula.

 I wan't to give a specific IP-Adress to a VM. My network configuration in
 ON is:

 http://pastebin.com/4PVU8uQx

 Now I create a VM with the following template:

 http://pastebin.com/rPZ9cZTG

 All works fine. Contextualization, Creation, Starting and so on...
 But the network interface isn't up an doesn't get an IP-address.

 My VM operating system is Scientific Linux (free redhat clone).

 Do I need something special on SL / RedHat or do I have an error in my VM
 config?


 I hope someone can help me :)

 Regards,

 Chr.Raible

 --
 Vorstand/Board of Management:
 Dr. Bernd Finkbeiner, Dr. Roland Niemeier, Dr. Arno Steitz, Dr. Ingrid Zech
 Vorsitzender des Aufsichtsrats/
 Chairman of the Supervisory Board:
 Philippe Miltin
 Sitz/Registered Office: Tuebingen
 Registergericht/Registration Court: Stuttgart
 Registernummer/Commercial Register No.: HRB 382196

 ___
 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] OpenNebula TestDrive

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

The OpenNebula Cloud [1] may be what you are looking for.

Regards.

[1] http://opennebula.org/cloud:cloud

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Fri, Jun 10, 2011 at 6:59 PM, alph inf infopo...@gmail.com wrote:

 Hi,

 Does OpenNebula offer a TestDrive similar to that provided by Eucalyptus
 Community Cloud (http://open.eucalyptus.com/CommunityCloud)  or Amazon
 Free Usage Tier (http://aws.amazon.com/free/)


 Best Regards.

 Ami.

 ___
 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] OpenNebula TestDrive

2011-06-14 Thread Carlos Martín Sánchez
Hi Ami,

The OpenNebula Management Console project may help you. It is written in
php, but was developed for OpenNebula 1.4.

http://opennebula.org/software:ecosystem:management_console

Regards.

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Mon, Jun 13, 2011 at 12:52 PM, alph inf infopo...@gmail.com wrote:

 Hi,

 Yes it looks interesting, I've got an ID and password at
 https://devel.cloud.opennebula.org/

 However I would be thankful if anyone could help me with examples of how to
 manage these virtual online resources using php.

 Regards.

 2011/6/10 Carlos Martín Sánchez cmar...@opennebula.org

 Hi,

 The OpenNebula Cloud [1] may be what you are looking for.

 Regards.

 [1] http://opennebula.org/cloud:cloud

 --
 Carlos Martín, MSc
 Project Major Contributor
 OpenNebula - The Open Source Toolkit for Cloud Computing
 www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


 On Fri, Jun 10, 2011 at 6:59 PM, alph inf infopo...@gmail.com wrote:

 Hi,

 Does OpenNebula offer a TestDrive similar to that provided by Eucalyptus
 Community Cloud (http://open.eucalyptus.com/CommunityCloud)  or Amazon
 Free Usage Tier (http://aws.amazon.com/free/)


 Best Regards.

 Ami.

 ___
 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


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


Re: [one-users] VM stay in pending state

2011-06-14 Thread Carlos Martín Sánchez
Hi Emmanuel,

It looks like your host is not properly monitored, the memory and CPU are
both 0.
Could you check in /srv/one/cloud/var/oned.log if is there any monitoring
error?

The most common monitoring problem is that the passwordless ssh for oneadmin
is not properly configured, or it is but OpenNebula was run as root instead
of oneadmin.

Regards.

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Mon, Jun 13, 2011 at 6:19 PM, Clabaut, Emmanuel 
e.clab...@sqltechnologies.com wrote:

 Hey,

 I have just installed the last version of OpenNebula 2.2 on a server in
 /srv/one/cloud.
 Everything seems ok.
 I have also installed a node with Debian 6 and xen 4.1.
 I have add it like shown here :
  ID NAME  CLUSTER  RVM   TCPU   FCPU   ACPUTMEMFMEM
 STAT
4 192.168.1.244 Cluster0   0  0  0100  0K  0K
 on

 and i want to deploy the default image ttylinux.

 So i have made a template :
 NAME   = vm_cloud01
 CPU= 1
 MEMORY = 2048
 FEATURES=[ acpi=no ]
 DISK   = [
  source   = /srv/cloud/one/templates/
 test/ttylinux.img,
  target   = hda,
  clone= yes,
  readonly = no
 ]
 NIC= [ NETWORK=Lan ]

 But when i create a vm, it still stay in pending state. And i have no log
 in var/4/vm.log.
ID USER NAME STAT CPU MEMHOSTNAMETIME
 4 oneadmin   vm_002 pend   0  0K 00 00:19:46


 can you help me ?

 thanks.

 regards.



 --
 *Emmanuel Clabaut
 SQL Technologies*
 *Tel :* 03 62 27 59 40
 *Mobile :* 06 08 06 23 76



 ___
 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] Error in 'onehost delete'

2011-06-14 Thread Carlos Martín Sánchez
Hi Luis,

The negative running VMs is a bug [1] that we thought was solved.
What version are you running?

To force the host deletion, just edit the onehost script and change

if host['HOST_SHARE/RUNNING_VMS'].to_i != 0
puts Host still has associated VMs, aborting delete.
else
to

if false
puts Host still has associated VMs, aborting delete.
else

Best regards,
Carlos.

[1] http://dev.opennebula.org/issues/317
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Tue, Jun 14, 2011 at 1:02 PM, Luis Rodero-Merino lrod...@fi.upm.eswrote:

 Hi,

 When trying to run 'onehost delete 0' (0 is the id of the host) we got
 the following message error:
 $ onehost delete 0
 Host still has associated VMs, aborting delete.

 Listing the hosts we see:
 $ onehost list
  ID NAME  CLUSTER  RVM   TCPU   FCPU   ACPUTMEMFMEM
 STAT
   0 blade19   default   -12002003007.8G7.6G
 on
   1 blade20   default12001991007.8G7.4G
 on

 So the host seems to have '-1' virtual machines, which I guess is
 causing the error. There is no vm running in that host (virsh list
 returns an empty list when run in that host).

 Is there any way I can restore the host state so I can safely remove
 it from opennebula hosts list?

 Thanks for your help,
 Luis


 --
 
 Dr. Luis Rodero-Merino
 Researcher @ Distributed Systems Laboratory (http://lsd.ls.fi.upm.es),
 Computer Science School, Madrid Polytechnic University.
 Phone: (34)913363681, Fax: (34)913363669
 Address: Campus de Montegancedo, Bloque 2, L 3201
 CP: 28660, Boadilla del Monte (Madrid), Spain
 
 ___
 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] customizing tm_*.sh scripts for OpenVZ hypervisor [was $SCRIPTS_REMOTE_DIR in tm_*.sh scripts]

2011-06-16 Thread Carlos Martín Sánchez
Hi,

It looks like you could take adavantage of hooks [1]. This way you can
perform preparative operations on create, running, etc., maybe storing some
configurations files in $VAR_LOCATION/vm-id/ to be used later by your
drivers.

I'm sorry I can't dedicate enough time to write a more elaborated mail; but
please ask any other questions that may arise.


Regards.

[1] http://opennebula.org/documentation:rel2.2:hooks

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Sat, Jun 11, 2011 at 4:30 PM, kna...@gmail.com wrote:

 Tino Vazquez wrote on 09/06/11 13:52:

 Hi Nikolai,

 Hi Tino,

 I am not sure any longer that functionality I was going to implement can be
 done in tm_clone.sh script. Apart from possibility to be aware of
 $SCRIPT_REMOTE_DIR value the tm_clone.sh script needs to know the name of
 OS image to be used for VM deployment and that is a problem.
 Let me briefly explain what I mean.
 To create new VM on OpenVZ host there are two options:
 1) one can specify using 'ostemplate' option the name of already existing
 so called OS template which has to be available in predefined dir set in
 TEMPLATE variable of OpenVZ global config file (by default it is
 /etc/vz/vz.conf). Normally TEMPLATE=/vz/template and OS template has to be
 available in $TEMPLATE/cache. There is no way to specify the absolute path
 to OS template (like --ostemplate=$VM_DIR/$VMID/images/disk.0 replacing
 the variables $VM_DIR and $VMID by their values e.g.
 --ostemplate=/vz/one/vm/55/images/disk.0). One of the example of a proper
 command could be as
 $ vzctl create 101 --ostemplate centos-5-x86
 and OpenVZ expects the existence of the
 /vz/template/cache/centos-5-x86.tar.gz file with corresponding name.
 2) one can skip --ostemplate option. Then OpenVZ will use the default OS
 template name defined in $DEF_OSTEMPLATE variable in /etc/vz/vz.conf. But
 that way is not  very flexible (althrough it can be followed if all VMs are
 going to be deployed using only single OS template and thus its name can be
 redefined ones during initial OpenVZ host configuration).
 To follow the first option I would implement the logic as described below:
 1) get the name of OS template specified in config file for given VM;
 2) check if OS template with same name already exists in $TEMPLATE/cache
 dir. If it does then rename it, create a symlink (or one can copy it) from
 $VM_DIR/$VMID/images/disk.0 to $TEMPLATE/cache;
 3) create VM;
 4) remove symlinked OS template images from $TEMPLATE/cache dir.

 But tm_clone.sh script is executed before $SCRIPT_REMOTE_DIR/vmm/ovz/deploy
 script and hense the VM config file is not yet available to retrieve OS
 template name. Moreover the fourth step (OS template deletion from
 $TEMPLATE/cach dir) needs to be executed after VM creation. So all the steps
 described above needs to be implemented in $SCRIPT_REMOTE_DIR/vmm/ovz/deploy
 script although such approach in some sense mixes functionality which each
 script was initially intended for (as far as I understand it).

 Regards,
 Nikolay.
 ___
 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] opennebula on virtual box

2011-06-20 Thread Carlos Martín Sánchez
Hi Ami,

Depending on what you are trying achieve, you may find easier to just use
the dummy drivers.
Uncomment the three of them (im_, vmm_, tm_) in /etc/one/oned.conf. This way
you can fake Host monitoring, and deploy and manage VMs.

Regards.

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Mon, Jun 20, 2011 at 9:50 AM, alph inf infopo...@gmail.com wrote:

 Hi,

 I'm trying to install opennebula on two VM instances , a header and a
 worker, on VBox within my laptop to run few test.
 The problem is that when i execute brctl addbr br0 and try to configure
 the bridge, the stat of the worker withonehost list became err
 I wonder if it is feasible to install opennebula on such a config.

 Regards

 Ami

 ___
 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] Error monitoring VM, Error executing sudo /usr/sbin/xentop -bi2

2011-06-21 Thread Carlos Martín Sánchez
Hi,

Maybe the problem is that OpenNebula copies updated files when the
monitorization takes place.
Could you please check that /var/tmp/one/vmm/xen/poll in your remote host
has the updated code?

Anyway, we are going to test this issue in our local infrastructure,
hopefully we'll come up with a fix soon.

Regards.
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


2011/6/20 María Pérez ma...@caton.es

 **

 Hi Carlos,

 Before anything else, sorry for the delay in my answer.I have been very
 busy this past month and I haven't been able to test the patch that you
 prepared to solve the monitoring problem.

 Finally last week I tested the patch but the monitoring problems continue
 although the machines no longer happen to unknown state. I have executed
 from line of commands but the messages are the same that they appear
 registered in logs.

 [oneadmin@dn07 ~]$ /var/tmp/one/vmm/xen/poll one-28

 Error executing sudo /usr/sbin/xentop -bi2
 /var/tmp/one/vmm/xen/poll:186:in `get_vm_info': undefined method `[]' for
 nil:NilClass (NoMethodError)
 from /var/tmp/one/vmm/xen/poll:314:in `print_one_vm_info'
 from /var/tmp/one/vmm/xen/poll:348


 Can you think of any other thing that I could test?

 Thank you very much in advance.
 BR,

 María



 El 20/05/11 15:52, Carlos Martín Sánchez escribió:

 Hi again,

 The script was discarding the first lines, because other versions include
 some information about the system before the list of domains.
 Please try the patch attached in this new ticket:
 http://dev.opennebula.org/issues/656

 Thank you,
 Carlos.

 --
 Carlos Martín, MSc
 Project Major Contributor
 OpenNebula - The Open Source Toolkit for Cloud Computing
 www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


 2011/5/20 María Pérez ma...@caton.es


 Hi Carlos,

 The output of 'sudo /usr/sbin/xentop -bi2' is:

 [oneadmin@dn08 ~]$ sudo /usr/sbin/xentop -bi2
   NAME  STATE   CPU(sec) CPU(%) MEM(k) MEM(%)  MAXMEM(k) MAXMEM(%)
 VCPUS NETS NETTX(k) NETRX(k) VBDS   VBD_OO   VBD_RD   VBD_WR SSID
   Domain-0 -r 510.0   15532060   92.6   no limit
 n/a 850000000
 one-44 --b---  10.010483966.21048576
 6.3 1111568020   68  2530
   NAME  STATE   CPU(sec) CPU(%) MEM(k) MEM(%)  MAXMEM(k) MAXMEM(%)
 VCPUS NETS NETTX(k) NETRX(k) VBDS   VBD_OO   VBD_RD   VBD_WR SSID
   Domain-0 -r 510.5   15532276   92.6   no limit
 n/a 850000000
 one-44 --b---  10.110484046.21048576
 6.3 1111570520   68  2530


 This error causes that the VM is not monitored correctly, also the
 machines happen to unknown state. Do you think that this error will have
 something to do with the unknown state of the VM?


 Thank you very much.
 Regards,
 María

 El 20/05/11 14:34, Carlos Martín Sánchez escribió:

 Hi María,

 It looks like the script is not getting the expected output format and
 fails to parse it.
 Could you please copy the output of 'sudo /usr/sbin/xentop -bi2', logged
 as oneadmin in the Host?

 Regards,
 Carlos.
 --
 Carlos Martín, MSc
 Project Major Contributor
 OpenNebula - The Open Source Toolkit for Cloud Computing
 www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


 On Wed, May 18, 2011 at 3:07 PM, María Pérez ma...@caton.es wrote:

  Hi again,

 I have another problem with the monitoring of the machines and the
 execution of /var/tmp/one/vmm/xen/poll.

 The log file contains the following lines with the error:


 Command execution fail: 'if [ -x /var/tmp/one/vmm/xen/poll ]; then
 /var/tmp/one/vmm/xen/poll one-28; else  exit 42;
 fi'
 Wed May 18 14:48:56 2011 [VMM][I]: STDERR follows.
 Wed May 18 14:48:56 2011 [VMM][I]: Error executing sudo /usr/sbin/xentop
 -bi2
 Wed May 18 14:48:56 2011 [VMM][I]: /var/tmp/one/vmm/xen/poll:186:in `[]':
 can't convert String into Integer (TypeError)
 Wed May 18 14:48:56 2011 [VMM][I]: from /var/tmp/one/vmm/xen/poll:186:in
 `get_vm_info'
 Wed May 18 14:48:56 2011 [VMM][I]: from /var/tmp/one/vmm/xen/poll:310:in
 `print_one_vm_info'
 Wed May 18 14:48:56 2011 [VMM][I]: from /var/tmp/one/vmm/xen/poll:344
 Wed May 18 14:48:56 2011 [VMM][I]: ExitCode: 1
 Wed May 18 14:48:56 2011 [VMM][E]: Error monitoring VM, Error executing
 sudo /usr/sbin/xentop -bi2


 I have tried to execute the commando from the own node to discard
 problems of ssh, but the error message is the same.

 I have found the following information

 http://dev.opennebula.org/issues/567

 but this patches no solved this problem.  I have installed opennebula 2,2
 and the nodes are xen 3.4.3

 Any idea? Thank you very much by your

Re: [one-users] Cloud in a box

2011-06-21 Thread Carlos Martín Sánchez
Hi Robert,

That's excellent news. Thank you for your interest and your effort!

Best regards,
Carlos.
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Mon, Jun 20, 2011 at 11:44 PM, Robert Schweikert
rschweik...@novell.comwrote:

 Hi,

 Thanks again for all the help over the last few weeks while I was working
 on getting the openSUSE things in order. As promissed/threatened at the time
 I am sharing the results of my effort.

 http://en.opensuse.org/SDB:**KIWI_Cookbook_ONebula_Cloudhttp://en.opensuse.org/SDB:KIWI_Cookbook_ONebula_Cloud

 Describes how one can set up an OpenNebula cloud using images built with
 KIWI (http://kiwi.berios.de). With this one can have a cloud up and
 running in less than 2 hours (including the time it takes to build the
 images).

 Enjoy,
 Robert

 --
 Robert Schweikert   MAY THE SOURCE BE WITH YOU
 SUSE-IBM Software Integration Center   LINUX
 Tech Lead
 rschweik...@novell.com
 rschweik...@ca.ibm.com
 781-464-8147

 __**_
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**orghttp://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] Error: Connection reset by peer.

2011-06-22 Thread Carlos Martín Sánchez
Hi there,

Could you please be more specific? Is that the output of onevnet, or is it a
message in oned.log?
Please provide more information like the relevant part of oned.log, detail
which onevnet command you were executing, etc.

Regards.

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


2011/6/20 宁宁 董 dn...@yahoo.com.cn

 I use two pc to install opennebula. one as front-end without xen ,the other
 as Node with xen . I have installed opennebula and xen succesfully. And
 now,there is error when I was configure vnet using onevnet. My OS is Ubuntu.

 Error: Connection reset by peer.

 Is there any one met this problem?
 PLS give me any possible solutions ,thx.

 ___
 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] opennebula on virtual box

2011-06-22 Thread Carlos Martín Sánchez
Hi,

Could it be that your front-end lost connection to the node for a moment?
Please check that oneadmin can still ssh passwordless from the front-end to
the node.

In this thread [1] you'll find a great how-to on bridge set up.

Regards,
Carlos.

[1]
http://lists.opennebula.org/pipermail/users-opennebula.org/2011-May/005423.html

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


2011/6/20 alph inf infopo...@gmail.com

 Hi,
 Thanks Calros for the answer.

 But I'm trying to install open nebula express using VBox and i couldn't
 figure out exactly how to fix bridging within such a config.
 I'm using 2 VMs, a worker and a head installed into 2 VBox machines.
 Could you specify the right commands.

 Regards.

 2011/6/20 Carlos Martín Sánchez cmar...@opennebula.org

 Hi Ami,

 Depending on what you are trying achieve, you may find easier to just use
 the dummy drivers.
 Uncomment the three of them (im_, vmm_, tm_) in /etc/one/oned.conf. This
 way you can fake Host monitoring, and deploy and manage VMs.

 Regards.

 --
 Carlos Martín, MSc
 Project Major Contributor
 OpenNebula - The Open Source Toolkit for Cloud Computing
 www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


 On Mon, Jun 20, 2011 at 9:50 AM, alph inf infopo...@gmail.com wrote:

 Hi,

 I'm trying to install opennebula on two VM instances , a header and a
 worker, on VBox within my laptop to run few test.
 The problem is that when i execute brctl addbr br0 and try to configure
 the bridge, the stat of the worker withonehost list became err
 I wonder if it is feasible to install opennebula on such a config.

 Regards

 Ami

 ___
 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] Pending state issues

2011-06-22 Thread Carlos Martín Sánchez
Hi Madhurranjan,

Regarding your first question, you can't modify an existing VM. You'll have
to modify the source template, and then shutdown the current VM and create a
new one.

About the second one, your proposal seems reasonable. I'd say that the
optimal values depend basically on your infrastructure and the kind of
workload you'll have to deal with; so I can't really help here.


Regards,
Carlos.
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Tue, Jun 21, 2011 at 10:57 AM, Madhurranjan Mohaan 
moha...@thoughtworks.com wrote:

 Hi All,

 I have had VMs in the pending state for a while and I went through this
 thread(
 http://lists.opennebula.org/pipermail/users-opennebula.org/2011-April/004680.html)
 and basically figured out that there are no CPUs left to allocate VMs,
 though there is plenty of RAM. Manual deployment works  I had 2 questions
 regarding this scenario:

 1. I have close to 20VMs on one of the boxes and had allocated 1 CPU each ,
 so that has taken up 20CPUs. Overall the system has 16CPUs(4 CPUs  , each
 being a quad core). Now , can I re-allocate CPUs for these VMs to 50% or
 less than what they are currently ? Can I do this at all in the first place
 ? Require your thoughts on this point.

 2. What is a good allocation number for CPUs ,if I want to create something
 like Small , Medium and Big VMs ? I can do this with RAM since the box
 has good amount of RAM but not sure what parameters I should take for CPU.
 The CPU in my case seems to be the factor that doesn't allow more VMs to be
 allocated by the scheduler. Can I have for eg,
 Small VM - 0.25 CPU
 Medium VM = 0.5 CPU
 Large VM - 1 CPU

 thanks

 Madhurranjan

 ___
 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] Does OpenNebula work or replace VMware vCenter?

2011-06-24 Thread Carlos Martín Sánchez
Hi Florian and all, thanks you for your comments.

Although Tino is the main VMware driver developer and he will be able to
provide more low-level details, let me say some words to clarify how
OpenNebula compares with VMware products. OpenNebula 2.2 can be
used on top of VMware ESX and vCenter.

- On top of ESX, OpenNebula provides all its features for
public/private/hybrid cloud and virtualized data center management
(http://opennebula.org/documentation:features)
- On top of vCenter, OpenNebula can orchestrate several vCenter
instances and offers cloud functionality not offered by vCenter:
multi-tenancy, VM provisioning, cloud interfaces (EC2 and OCCI),
public/hybrid cloud computing… so there are many benefits from using
OpenNebula 2.2 on top of vCenter.

vCloud Director is the new VMware product that on top of vCenter
offers cloud functionality, mainly multi-tenancy and cloud API
(vCloud). The functionality for grouping users and creating virtual
data centers is something provided by vCloud that is not offered by
OpenNebula 2.2. However, OpenNebula 3.0 (due in 2 weeks), and its
powerful ACLs management, will offer  much richer functionality for
grouping users, creating projects, defining different levels of
administration, managing virtual data centers….

Summarizing, you can replace vCenter with OpenNebula if you want a
more cost-effective, open, standard-based, flexible and hypervisor
independent solution. However given that OpenNebula provides a
management layer with hypervisor independence, there may be VMware
specific functionality that is not leveraged by OpenNebula. You can
also use OpenNebula on top of vCenter, but I think that in such a
case, OpenNebula should have full control over vCenter and you should
manage the cloud through the OpenNebula interfaces. Finally,
OpenNebula 2.2 is not ready to replace vCloud Director, but this will
be solved in OpenNebula 3.0.

Please let us know if you need further information.

Best regards,
Carlos.
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Fri, Jun 24, 2011 at 1:16 AM, Derrick LIN klin...@gmail.com wrote:

 Thanks Florian,

 We are not very sensitive with downtime. Somehow we are lucky enough to
 receive vSphere Enterprise plus and vCenter licenses for free due to
 affinity with a university. And we benefit so much from vSphere's
 proprietary features. So the cost is not an issue for us. :D

 Based on what you said, we will lose more than what can gain if we replaced
 vCenter with OpenNebula. :(

 And I guess it's a bad idea to use both at the same time on the same
 cluster?

 But still good to hear the open source solutions always improving.

 Cheers,
 Derrick


 On Thu, Jun 23, 2011 at 9:12 PM, florian.feldh...@tu-dortmund.de wrote:

  Hi Derrick,

  from my past experience I can say, that OpenNebula in the current
 version is not ready to replace VMware vCenter. But, with OpenNebula 3.0
 many of the missing features are implemented and as far as I could test
 them, OpenNebula seems to be a good / cost efficient choice to replace
 vCenter. Integrating OpenNebula with vCenter and usage of ESX is possible,
 but from my point of view this is only valid as a migration path to replace
 it with a KVM or XEN infrastructure.

  If you have a production setup where a downtime of your service costs a
 lot of money, then you're probably better off with vCenter and buying all
 their licenses. If you want to provide a cheap IaaS plattform, then
 OpenNebula 3.0 could be right for you. BTW: From a recent comparison of
 OpenNebula 3.0 and the current version of OpenStack I got the impression
 that OpenNebula will be better suitable for IaaS environments. Especially
 the Sunstone Webinterface has more potential than the OpenStack
 webinterface.

  Cheers,
 Florian

   Von: Derrick LIN klin...@gmail.com
 Datum: Thu, 23 Jun 2011 13:44:22 +1000
 An: users@lists.opennebula.org
 Betreff: [one-users] Does OpenNebula work or replace VMware vCenter?

  Hi guys,

  My institute is running a cloud platform which is VMware vSphere based
 with its Enterprise Plus license. We also have a vCenter server for managing
 the platform.

  I have been seeking a way to allow me to automate the VM deployment
 process and contextualize the Linux VMs.

  OpenNebula seems to be a solution. I have read through some
 documentations as well as the VMware Driver Addon guide. But I still not
 quite understand many basic aspects of OpenNebula, particularly:

  1) What's the position for OpenNebula in a VMware based platform that
 vCenter already exists?
 2) Our Enterprise Plus license gives us full features of the vSphere
 platform, work with the vCenter, does OpenNebula interact with those
 features as well?

  I'd keen to hear from anyone who has the experience on this.

  Thanks in advance.
 Derrick
 ___ Users mailing 

Re: [one-users] OpenNebula test data

2011-06-24 Thread Carlos Martín Sánchez
Hi there,

I'm not aware of any study focused on finding the OpenNebula limits, but in
this link [1] you can see a large scale deployment at CERN managing up to
16,000 VMs

Regards,
Carlos.

[1] http://blog.opennebula.org/?p=983
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


2011/6/22 高建平 13810416...@qq.com

 Hi,
Is anyone know the max num of host and vm  that OpenNebula surport , and
 the max vm num when i concurrently create VM , or is there any test data or
 file that can be reference .

 Regards.

 ___
 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] creating VMs

2011-06-24 Thread Carlos Martín Sánchez
Hi,

You don't have to create an OpenNebula-specific VM format, you can use your
existing VM images or follow any tutorial for your chosen hypervisor.

After you manage to create and deploy a VM for your hypervisor, you have to
contextualize it in order to make the OpenNebula network management work.
See this guide [1] for more information.

Or you can download the sample VM we provide [2] in order to test your
installation before you create your own VMs.

Regards.

[1] http://opennebula.org/documentation:rel2.2:cong
[2] http://opennebula.org/documentation:rel2.2:vmg

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Fri, Jun 24, 2011 at 5:56 AM, chethan kp chethan...@gmail.com wrote:

 Hi,
 I have installed the opennebula, Now i'm trying to create VMs but I couldnt
 find any documents which helps me to go with this.

 any help on this pls

 ___
 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] Long Running Servers

2011-06-29 Thread Carlos Martín Sánchez
Hi Richard,

The template you propose looks fine, but let me make a couple of comments.

Instead of 'source' and 'save' for DISC, you should use the Image
repository, and take advantage of the persistent flag [1] to make sure the
contents are saved.
This way you can forget about the 'save', 'clone' and 'readonly' attributes.

And just in case, when you say to ensure it keeps its state between
restarts, keep in mind that a onevm shutdown command will save the disk,
but not the VM state (RAM).
If that's what you need, take a look at the suspend and cancel commands [2].

Please also note that onevm restart will not start over the life cycle of a
VM, it is a way to resubmit the booting command to the hypervisor in cases
when the VM gets stuck in the BOOT state.
To continue the execution of a VM you previously shut down, you have to
create a new VM instance from the same template file.


Best regards,
Carlos.

[1]
http://opennebula.org/documentation:rel2.2:img_guide#making_images_persistent
[2]
http://opennebula.org/documentation:rel2.2:vm_guide#virtual_machine_life-cycle

--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org


On Mon, Jun 27, 2011 at 6:34 PM, Richard Palmer
richard.d.pal...@kcl.ac.ukwrote:

 Dear list,

To setup a long running server I assume I need to create a specific
template file for it something like this:

NAME = long-running-server-name

...

DISC = [ source = /path/to/disk/image/for/this/server/only.img,
 save = yes,
 
   ]
NIC = [ IP = XXX.XXX.XXX.XXX ] # Fixed IP for this server
...

to ensure it keeps its state between restarts. Is anything else
needed ?.

 regards,

 Richard

 --
 Richard Palmer  | Centre for E-Research
|  King's College London
 richard.d.pal...@kcl.ac.uk  |
 Tel: 0207 848 1973   |
 ___
 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


  1   2   3   4   5   6   7   8   9   10   >