Re: [one-users] onevm saveas, "ID not defined"

2010-08-31 Thread Carlos Martín Sánchez
I'm still unable to replicate the error here...

Could you check (or send) oned.log file? The problem may be related to the
DB initialization.

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/28 Jason Heiss 

> I'm using 2.0 beta 1.  I'm using the mysql backend in case it is relevant.
>
> Here's the complete "onevm show" output.  Note that in doing some other
> work I reinstalled OpenNebula, so the VM has a different ID.  However saveas
> is still failing in the same way.
>
> # onevm show 2
> VIRTUAL MACHINE 2 INFORMATION
>
> ID : 2
> NAME   : vm1
> STATE  : ACTIVE
> LCM_STATE  : RUNNING
> START TIME : 08/26 05:36:54
> END TIME   : -
> DEPLOY ID: : one-2
>
> VIRTUAL MACHINE TEMPLATE
>
> CPU=1
> DISK=[
>   CLONE=YES,
>   DISK_ID=0,
>   IMAGE=CentOS-5.5-x86_64-netinstall.iso,
>   IMAGE_ID=0,
>   READONLY=YES,
>   SAVE=NO,
>   SOURCE=/opt/tpkg/one/var/images/8b44d66b02ea1c28f94b2d44c87aabc8fa37b1c0,
>   TARGET=hdc,
>   TYPE=CDROM ]
> DISK=[
>   CLONE=YES,
>   DISK_ID=1,
>   IMAGE=blank20G,
>   IMAGE_ID=1,
>   READONLY=NO,
>   SAVE=NO,
>   SOURCE=/opt/tpkg/one/var/images/5464c818cfc6c8072800330bd2089af6a22ec477,
>   TARGET=hda,
>   TYPE=DISK ]
> DISK=[
>   DISK_ID=2,
>   SIZE=1024,
>   TARGET=hdd,
>   TYPE=swap ]
> GRAPHICS=[
>   LISTEN=0.0.0.0,
>   PASSWD=vncpass,
>   PORT=5002,
>   TYPE=vnc ]
> MEMORY=1024
> NAME=vm1
> NIC=[
>   BRIDGE=br0 ]
> OS=[
>   BOOT=cdrom ]
> VMID=2
>
>
> On Aug 26, 2010, at 10:00 AM, Carlos Martín Sánchez wrote:
>
> 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 
>
>> 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  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 

Re: [one-users] Managing VMS with Script

2010-09-07 Thread Carlos Martín Sánchez
Hi Siva,

The VMs will staty in shutdown until they are, well, shut-down. If your VMs
don't answer to the acpi signals, OpenNebula will keep waiting.
Your machines are shown in onevm list because they are stil running (you can
check if they are visible in your hypervisor).

Keep in mind that a graceful shutdown is different from a delete command,
that may be what you are looking for.

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 7 September 2010 07:24, siva  wrote:

>  Hi all,
>
> I have written a small perl script that shutdowns/Creates all the VMS.
>
> If I shut down a VM through the script. It  shows the state of VM as shut,
> But it still shows in 'onevm list'. its not going away.
>
>
> Can any body help me with this,
>  If I do onehost list for the coresponding Host still it shows RVM=3 though
> I have shutdown all the VMs on that host (using script). Same is the
> behaviour if I stop and start the one daemon.
>
> appreciate any inputs.
>
> Thanks,
> Siva
> ___
> 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] Placement section

2010-09-20 Thread Carlos Martín Sánchez
Hi Rubén,

The PLACEMENT attribute you are using is ignored by the scheduler (take a
look at the examples in the link you provided). Try with
REQUIREMENTS = "HYPERVISOR   = \"kvm\""

If you are using the development version, you may want to try the new host
clustering feature [1] instead of using the hypervisor attribute.

Regards,
Carlos

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

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 20 September 2010 10:18, Ruben Diez  wrote:

> Hello:
>
> We are watching for a xen/kvm mixed set of nodes. For do this, we create
> the hosts in the following manner:
>
> - For xen nodes: onehost create  84.21.173.28 im_xen vmm_xen tm_ssh
> - For kvm nodes: onehost create  84.21.173.36 im_kvm vmm_kvm tm_ssh
>
> So, for select to run a VM in a kvm or xen node type we are using the
> "PLACEMENT" section in the following manner:
>
> PLACEMENT = [
>  REQUIREMENTS = "HYPERVISOR   = \"kvm\""
>  ]
>
> According with http://www.opennebula.org/documentation:rel2.0:template the
> "HYPERVISOR" variable is defined by default
>
>
> But it don work: the scheduler deploy the VM in a xen node
>
> Where are the error?? Any other manner to force a VM to be deployed in a
> xen or kvm node???
>
> 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] Is APIs of ONE 2.0 compatible with ONE1.4?

2010-09-23 Thread Carlos Martín Sánchez
Hi Xiaoyi,

Currently you can interact with OpenNebula 1.4 using our ruby, java and
XML-RPC APIs.
Applications developed using this 1.4 APIs will be compatible with the
upcoming OpenNebula 2.0, except for the new introduced functionallity.

Regarding the bug you report, you are right, it should call the "restart"
action. Thank you for your feedback!

Best 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 19 September 2010 15:22, Xiaoyi Lu  wrote:

> Hello, developers of ONE:
>  I want to ask that is APIs of ONE 2.0 compatible with ONE1.4?
>  And how about APIs of ONE1.4 and ONE1.5?
>  3ks a lot.
>
>  ps: I also find a problem in the method, "public OneResponse
> restart()", of VirtualMachine Java file in "one-java-api" project. The
> action in this method is written as "shutdown". Please check this one.
>
> Xiaoyi Lu
> 2010-09-19
>
> ___
> 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] Status of the java bindings

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

The current Java API is 1.4 compatible, and that makes it also compatible
with 2.0, except for the new functionality.
We are going to update it, but most probably not until we have the final
OpenNebula version finished.

It has to be updated for the new methods one.vm.savedisk, one.user.passwd,
and all the new methods for image and cluster management. You can check all
the details at the XML-RPC documentation for 1.4 [1] and 2.0 [2].

Regards,
Carlos

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

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 24 September 2010 11:06, Tiago Batista  wrote:

> Hello all
>
> I am currently in the process of writing a java application that interfaces
> with opennebula... Something like onemc but prettier (I hope!).
>
> What is the current status of the java bindings in src/oca/java? Are they
> up to date or should I just use the RPC interface directly?
>
> TIA
>
> Tiago
>
> ___
> 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] Persistent Storage

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

One of the new features introduced in the 2.0 version is the Image
Repository [1]. If you want to give it a try, you can download the RC1 we
have just released today [2].

Using this repository, you can create an empty DATABLOCK image to store the
data you mention. The changes made to the image are saved back to the
repository once the VM is shutdown; and you can then then mount that image
in any other virtual machine.

You will find useful the documentation for the new oneimage command [3], and
the saveas option [4] for the onevm command.

I hope this meets your needs. If you need any more specific help, let us
know.


Best regards,
Carlos

[1] http://opennebula.org/documentation:rel2.0:img_guide
[2] http://blog.opennebula.org/?p=805
[3] http://opennebula.org/documentation:rel2.0:cli#oneimage
[4] http://opennebula.org/documentation:rel2.0:cli#onevm


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/9/24 Flávio R. C. Sousa 

> Hello all,
>
>   I have an application that uses postgresql and I would like to create
> multiple instances of postgresql in different virtual machines. In this
> case, I want to persist the application data and use them in a new virtual
> machine (I do not want to replicate the virtual machine, just persist the
> data to use them in a new virtual machine).
>
> There is a similar issue, but it was not answered.
>
> http://lists.opennebula.org/pipermail/users-opennebula.org/2009-August/000668.html
>
> Thank you very much in advance.
>
> Regards,
> -
> -
> Prof. Flávio R. C. Sousa
> Software Engineering Coordinator
> Federal University of Ceará, Quixadá, Brazil
> http://www.es.ufc.br/~flavio
> 
>
> ___
> 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  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,  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,  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] vm creation failed

2010-10-04 Thread Carlos Martín Sánchez
Hi Juan Luis,

You are using the "type" attribute for your second DISK wrongly, take a look
at [0].

Let's try with this instead:

DISK   = [
  TYPE = swap,
  SIZE = 1024,
  READONLY = "no"
  TARGET   = "sdb"]


Regards.

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

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/10/1 Juan Luis Prieto Martínez 

> Hi all,
>
> I'm having a problem when crating my vm using one. My setup is this:
>
>
>- I'm using ONE 2.0 as front end and a host with xen 3.0.3
>- I have a dummy connection set between the frontend and the host.
>- the xen image that I wanna run is in the host.
>
>
> This is the script that I'm using
>
> PU= 0.5
> MEMORY = 256
> OS = [
>   kernel   = "/boot/vmlinuz-2.6.18-194.el5xen",
>   initrd   = "/boot/no-scsi-initrd-2.6.18-194.el5xen.img",
>   root = "sda1" ]
> DISK   = [
>   source   = "/srv/cloud/one/var/hello-cloud.img",
>   target   = "sda1",
>   readonly = "no" ]
> DISK   = [
>   type = "/srv/cloud/one/var/hello-cloud-swap.img",
>   size = 1024,
>   target   = "sdb"]
>
>
>
> This is the log after run *onevm create /tmp/one/hello-cloud.template*
> *
> *
>
> onead...@onefront:/srv/cloud/one/var/5$ cat vm.log
> Fri Oct  1 12:46:08 2010 [DiM][I]: New VM state is ACTIVE.
> Fri Oct  1 12:46:08 2010 [LCM][I]: New VM state is PROLOG.
> Fri Oct  1 12:46:08 2010 [TM][E]: prolog, undefined source disk image in VM
> template
> Fri Oct  1 12:46:08 2010 [DiM][I]: New VM state is FAILED
> Fri Oct  1 12:46:08 2010 [TM][W]: Ignored: TRANSFER SUCCESS 5 -
>
>
>
> In the host the vm is in this directory
>
> [r...@centos-xen var]# ls
> hello-cloud.img  hello-cloud-swap.img  hello-world-xen.conf
> [r...@centos-xen var]# pwd
> /srv/cloud/one/var
>
>
> Can you please tell me what am I doing wrong?
>
> Thanks in advance.
>
> Regards
> JuanLu
>
> ___
> 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] deployment file doesn't get generated properly

2010-10-22 Thread Carlos Martín Sánchez
Hi Rich,

I think the problem is that you need to set a TARGET attribute for the
second disk, because OpenNebula will only assign one for the Disks that use
a registered IMAGE.
If you take a look at [1], the TARGET is mandatory. Since you are mixing
Disks that use Images with Disks from your filesystem, you should pay
attention at the "Disks device mapping" section to avoid target conflicts.

Or you could just register your .iso file as a CDROM image.

Regards,
Carlos.

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

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 October 2010 19:07, Rich Wellner  wrote:

>  I have a vm definition file:
>
> *CPU = 1
> MEMORY = 256
>
> GRAPHICS = [
>   TYPE= "vnc",
>   LISTEN  = "0.0.0.0"
>   ]
>
> OS = [ KERNEL = /vmlinuz,
>INITRD = /initrd.img,
>ROOT   = sda1,
>KERNEL_CMD = "ro xencons=tty console=tty1"]
>
> DISK = [
> IMAGE = "The Ring"
>  ]
>
> DISK = [
> TYPE= cdrom,
> SOURCE  = /var/lib/one/dsl-4.4.10.iso,
> READONLY = "yes",
> CLONE = "yes"
> ]*
>
> and when I try to create an instance the deployment file only gets
> partially written:
>
> *
> one-66
> 262144
> 
> hvm
> /vmlinuz
> /initrd.img
> root=/dev/sda1 ro xencons=tty console=tty1
> 
> 
> 
> /usr/bin/kvm
> 
> 
> 
> 
> *
> But all that appears in the log file is:
>
> *Fri Oct 22 12:01:31 2010 [LCM][I]: New VM state is BOOT
> Fri Oct 22 12:01:31 2010 [VMM][I]: Generating deployment file:
> /var/lib/one/66/deployment.0
> Fri Oct 22 12:01:31 2010 [VMM][E]: Wrong target value in DISK.
> Fri Oct 22 12:01:31 2010 [VMM][E]: deploy_action, error generating
> deployment file: /var/lib/one/66/deployment.0
> Fri Oct 22 12:01:31 2010 [DiM][I]: New VM state is FAILED
> Fri Oct 22 12:01:31 2010 [TM][W]: Ignored: TRANSFER SUCCESS 66 -
> *
> Any ideas on what is going wrong here?
>
> rw2
>
>
> ___
> 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] use non-standard mysql port in OpenNebula-2

2010-10-26 Thread Carlos Martín Sánchez
Hi Shi,

Right now you can't configure the port, but it's something that would be
useful indeed.

I have opened a ticket [1] for this feature, but meanwhile you could change
the connection call in src/sql/MySqlDB.cc, line 39. That method is
documented in [2].

Thanks for your feedback,
Carlos.

[1] http://dev.opennebula.org/issues/377
[2] http://dev.mysql.com/doc/refman/5.5/en/mysql-real-connect.html

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 October 2010 21:41, Shi Jin  wrote:

> Hi there,
>
> Is there a way to specify the MySQL port number used in OpenNebula 2?
> The default is to use TCP 3306 but some servers have used other ports. Can
> we have a port entry in the daemon configuration file?
> Thanks a lot.
>
> 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] 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 wrote:

>
>
> 2010/11/12 Olivier Sallou 
>
>  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] Accounting informations

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

We have created a new documentation page in the references section:
http://opennebula.org/documentation:rel2.0:dbschema

As always, your feedback is very welcome.

Cheers,
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 12 November 2010 15:39, Federico Paparoni wrote:

>
>
> 2010/11/12 Olivier Sallou 
>
>  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  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  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  and
.

To be able to identify the disks later, you could include in the new image
name the  _ 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  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,  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 

>
> ___
> 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  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  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  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,  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  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] PostgreSQL issue

2011-01-31 Thread Carlos Martín Sánchez
Hi Idafen,

At the moment, OpenNebula can only use Sqlite or MySQL databases as backends
for the front-end.
But there are not any restrictions for the software you run inside your
Virtual Machines.

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


2011/1/31 Idafen Santana Pérez 

> Dear all,
>
> I've been reading this issue http://dev.opennebula.org/issues/332.
>
> This means that ONE can not run using PostgreSQL for storing the
> vector of attributes, but if I run a VM with PostgreSQL properly
> installed it will work, isn't it?
>
> Thanks in advance.
>
> Regards,
> Idafen
> ___
> 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  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//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 



>
>
>  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 

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 
___
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 ).
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  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] VM Life-Cycle

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

The save state is an intermediate state, in which the VM's state in being
saved. After that is completed, the VM should change to the "suspended"
state.

If the VM is stuck in the "save" state, you should check the logs for any
error. Please check oned.log, or VAR_LOCATION/http://dsa-research.org and blog
http://blog.dsa-research.org
OpenNebula Open Source Toolkit for Cloud Computing:
http://www.OpenNebula.org


On 8 February 2011 02:40, Taylor Tay  wrote:

> Hi all,
>
> I had suspend one of my running vm to save state but when i issue the
> onevm resume , i encounter the following error: Wrong state to
> perform action.
> Is the any way to get the vm to run again? Thanks in advance
>
> ___
> 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  | cmar...@opennebula.org


On 8 February 2011 17:03, Marco Strutz  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  in the XMLRPC-call?
> The same problem with OCCI: Are there any attributes (perhaps for the
>  section) I can use for the "onevm saveas"?
>
>
>
> Thanks
> Marco
>
>
> [1]
> onevm saveas   
>
>
> [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] 'onevm saveas' via XMLRPC or OCCI???

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

2011/2/10 Marco Strutz 

>  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.
>
>
For version 2.4 we are going to move all this image files management to the
Core Daemon; we hope that will make things easier for upper layers, as you
suggest.

Cheers,
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/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  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  in the XMLRPC-call?
>> The same problem with OCCI: Are there any attributes (perhaps for the
>>  section) I can use for the "onevm saveas"?
>>
>>
>>
>> Thanks
>> Marco
>>
>>
>> [1]
>> onevm saveas   
>>
>>
>> [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
 VIRTUAL MACHINE
> MONITORING
> NET_TX : 0
> NET_RX : 0
> USED MEMORY: 0
> USED CPU   : 0
>
> VIRTUAL MACHINE
> TEMPLATE
> CPU=0.1
> DISK=[
>   DISK_ID=0,
>   READONLY=no,
>   SAVE=YES,
>   SAVE_AS=37,
>   SOURCE=/srv/cloud/one/testing/ttylinux.img,
>   TARGET=hda ]
> FEATURES=[
>   ACPI=no ]
> GRAPHICS=[
>   LISTEN=0.0.0.0,
>   PORT=5901,
>   TYPE=vnc ]
> MEMORY=64
> NAME=ttylinux
> VMID=318
>
>
>
> $ 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  : 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.
>

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 ".
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 

>  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//images/XX to  var//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 
>
>>  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 

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 

>  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 '

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 ".
> 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] Why not a "support forum"?

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

Thank you for your feedback. We are aware that as the threads volume
increases, navigating the archives and locating specific info can be
challenging.

We'll take your suggestion into consideration. We could aim for a hybrid
approach, keeping the mailing list and somehow integrate it into a forum.
Actually, you can use gmane [1] to navigate our mailing list in a forum-like
style [2].

Regards,
Carlos.

[1] http://dir.gmane.org/gmane.comp.distributed.opennebula.user
[2] http://blog.gmane.org/gmane.comp.distributed.opennebula.user

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


On 17 February 2011 11:05, Luigi Fortunati wrote:

> Hi,
> I would like to ask the community if it would be better to have a Forum
> instead of a mailing list for OpenNebula support.
> Managing answers and threads or looking for a particular message on the
> mailing list is starting to be stressing and time consuming for me.
> I also noticed that several questions come up periodically even if the
> answers to the questions were already given.
> Today I wanted to give some help to someone that posted a problem which I
> already had but I found that I'm unable to reply to the message from the
> digest.
> Finding the message through the mailing list is really time consuming so,
> at last, I had to give up, I'm sorry.
> Maybe that is only a problem of mine, however I think that a Forum would
> serve better this community.
>
>
> --
> Luigi Fortunati
>
> ___
> 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] retrieve info from OpenVZ host running libvirtd

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

Could you paste the output of
ssh  "/var/tmp/one/im/run_probes ovz"
?

Change /var/tmp/one to your SCRIPTS_REMOTE_DIR if you changed it in your
oned.conf file.

Regards,
Carlos.

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


On 18 February 2011 17:27,  wrote:

> Dear all,
>
> Trying to implement IM driver for OpenVZ cluster nodes I faced with the
> following problem:
>
> $ onehost list
>  ID NAME   CLUSTER  RVM   TCPU   FCPU   ACPU   TMEM
>FMEM STAT
>   2  xen_x64   0   200  200 200
>   3.1G 128Mon
>   3  ovz_x32   00  0   100
> 0K  0K err
>
> oned.log:
> [...]
> Fri Feb 18 18:54:47 2011 [InM][D]: Host 3 successfully monitored.
> Fri Feb 18 18:54:47 2011 [ONE][E]: syntax error, unexpected $end, expecting
> VARIABLE at line 2, columns 1:2
> Fri Feb 18 18:54:47 2011 [InM][E]: Error parsing host information:
> [...]
>
> I added oneadmin user into /etc/sudoers file and commented out the line
> "Defaultsrequiretty":
> $ egrep "oneadmin|requiretty" /etc/sudoers
> #Defaultsrequiretty
> oneadminALL=(ALL)   NOPASSWD: ALL
>
> (I couldn't figure out more secure and elegant way to get info from OpenVZ
> host having libvirt interface installed. Any suggestions on that?)
>
> and did the following changes in ovz.rb file:
> $ diff /usr/lib/one/remotes/im/ovz.d/ovz.rb
> /usr/lib/one/remotes/im/kvm.d/kvm.rb
> 29c29
> < nodeinfo_text = `sudo virsh -c openvz:///system nodeinfo`
> ---
> > nodeinfo_text = `virsh -c qemu:///system nodeinfo`
> 90c90
> < print_info("HYPERVISOR","ovz")
> ---
> > print_info("HYPERVISOR","kvm")
>
> "sudo virsh -c openvz:///system nodeinfo" running under oneadmin user from
> front-end node gives the following output:
> [oneadmin@$ ssh  sudo virsh -c
> openvz:///system nodeinfo
> CPU model:   i686
> CPU(s):  1
> CPU frequency:   2793 MHz
> CPU socket(s):   1
> Core(s) per socket:  1
> Thread(s) per core:  1
> NUMA cell(s):1
> Memory size: 2056216 kB
>
> I was hoping to apply the same solution as written in "KVM Driver Guide
> 2.0" (http://opennebula.org/documentation:rel2.0:kvmg) since ONE uses the
> libvirt interface as well to interact with KVM hosts:
> ...The following steps are required in the cluster nodes to get the KVM
> driver running:
> [...]
>*  The user with access to these remotes hosts on behalf of
> OpenNebula (typically ) has to pertain to the  and 
> groups in order to use the deaemon and be able to launch VMs.
>
> but I can't following that way since there is no libvirt group and libvirtd
> is run under root (I had to build libvirt from tarball available at its home
> page since CentOS has a pretty old one in its repos without openvz support).
>
> Any help on that is highly appreciated!
> 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] 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  | cmar...@opennebula.org


On 22 February 2011 12:49,  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] can oneadmin (uid=0) create a VNET that is owned by another account?

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

That's a functionality we definitely want to add to OpenNebula, along with a
more advanced user management see [1]. We've opened a ticket with you
request:
http://dev.opennebula.org/issues/501

Regards,
Carlos.

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


On 27 February 2011 05:35, Shi Jin  wrote:

> Hi there,
>
> The admin typically runs as the oneadmin and may not want to set something
> up as a user, especially if he/she has to do this frequently for many
> different users. Is there a way to specify the owner in the VNET template
> file or let the onevnet command to have some functionality of changing
> ownership, similar to the "chown" Unix command?
>
> Thanks.
> 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
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  | cmar...@opennebula.org


On 27 February 2011 01:01, Shi Jin  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  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  | cmar...@opennebula.org


On 26 February 2011 23:38, Shi Jin  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 

> 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  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  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  | cmar...@opennebula.org


On 7 March 2011 09:06, Zaina AFOULKI  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  | cmar...@opennebula.org


On 5 March 2011 15:45,  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] RPC client: how to determine my user id?

2011-03-07 Thread Carlos Martín Sánchez
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  | cmar...@opennebula.org


On 7 March 2011 02:21,  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] 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  | cmar...@opennebula.org


On 10 March 2011 08:02, GONG YONGJIE A
wrote:

>  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
>
> 
>
> one-12
>
> 1
>
> 2097152
>
> 
>
> hvm
>
> 
>
> 
>
> 
>
> /usr/libexec/qemu-kvm
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> [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,  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,  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  | cmar...@opennebula.org


On 15 March 2011 20:18, Teasdale, Joe  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  | cmar...@opennebula.org


On 24 March 2011 15:41,  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  | cmar...@opennebula.org


On 11 March 2011 08:39, XIE Xin B  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 cpu<60%, 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] Virtual networks by static leases.

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

The behaviour you are describing is not the intended one, OpenNebula should
never generate a random IP. It will either get one of the free Leases from
the requested VNet, or return an error.

Could you copy the VM templates you are using? At least the NIC attributes.

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


On 28 March 2011 16:13, benpro  wrote:

> Hi there,
>
> To manage our virtual network, we use a DHCP with static leases
> specified in our network template, like :
>
> >NAME = "Réseau local 192.168.0.0/24 ( à partir de 100)"
> >TYPE = FIXED
> >BRIDGE = LAN
> >PUBLIC = NO
> >LEASES = [IP=192.168.0.110, MAC=50:20:20:20:20:20]
> >LEASES = [IP=192.168.0.111, MAC=50:20:20:20:20:21]
> And then in our DHCP's configuration file we have the same values.
> (Using a homemade script to inject the configuration)
>
> When VMs reach the end of the leases, new MAC address is generated
> automatically by ONE. Is there a way to restart at the top of the
> leases, if the IP address is not used anymore ?
>
> For exemple, I have the leases of 2 MAC and IP:
> >LEASES = [IP=192.168.0.110, MAC=50:20:20:20:20:20]
> >LEASES = [IP=192.168.0.111, MAC=50:20:20:20:20:21]
> I launch two VMs, they will obtain address IP by DHCP.
> I stop one VM, and I start another one, it will not obtain address IP
> by DHCP, because ONE will generate random address MAC, I'd like ONE to
> restart obtaining address MAC by reading the top of the leases in my
> network template, here:
> >LEASES = [IP=192.168.0.110, MAC=50:20:20:20:20:20]
>
> Sorry maybe its not quite clear.
>
> In advance, thanks.
> ---
> Benoît.S
> alias Benpro
> ___
> 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  | cmar...@opennebula.org


2011/3/30 liudewei 

>   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  | cmar...@opennebula.org


On 31 March 2011 16:02, Vivek Shrivastava wrote:

>
>
> 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  | cmar...@opennebula.org


On 1 April 2011 13:53, Marius Dagilis  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.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  | cmar...@opennebula.org


On 17 March 2011 05:01, Khoa Nguyen  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  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 ', 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  | 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  | cmar...@opennebula.org


On 6 April 2011 19:19, Gian Uberto Lauri  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, AT&T 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  | cmar...@opennebula.org


On 7 April 2011 00:14, Shuo Liu  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  | cmar...@opennebula.org


On 4 April 2011 13:12, Gian Uberto Lauri  wrote:

> > "CC" == Gian Uberto Lauri  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, AT&T 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  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 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 ', 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)

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  | cmar...@opennebula.org


2011/4/12 Łukasz Grabowski 

> 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//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

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

2011-04-14 Thread Carlos Martín Sánchez
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 

> 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 
>
>> 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 wrote:
>>
>>>
>>>
>>> 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] initialize a new virtual machine

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

Do you have a registered image called "ubuntu_desktop"?
Is it in ready state?

Regards.

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


On 14 April 2011 12:37, Marco Mirabile  wrote:

> hello
> I created this template file for onevm
>
> REQUIREMENTS = "HYPERVISOR=\"kvm\""
>> NAME = ubuntu
>> CPU = 1
>> MEMORY = 512
>> DISK = [ image= "ubuntu_desktop" ]
>> OS = [ boot = "hd" ]
>
>
> when I want to initialize a new virtual machine I get an error the
> following error
> Can you help me?
>
> oneadmin@marco-laptop:~$ onevm create kvmHVM
>> Error: [VirtualMachineAllocate] Error trying to CREATE VM Could not get
>> disk image for VM.
>
>
> ___
> 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-15 Thread Carlos Martín Sánchez
 Apr 14 13:58:58 2011 [InM][I]: --Mark--
> Thu Apr 14 13:58:58 2011 [InM][I]: Monitoring host localhost (1)
> Thu Apr 14 13:59:02 2011 [ReM][D]: HostPoolInfo method invoked
> Thu Apr 14 13:59:02 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
> Thu Apr 14 13:59:02 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
> Thu Apr 14 13:59:14 2011 [ReM][D]: UserPoolInfo method invoked
> Thu Apr 14 13:59:26 2011 [ReM][D]: ImagePoolInfo method invoked
> Thu Apr 14 13:59:28 2011 [InM][I]: Monitoring host localhost (1)
> Thu Apr 14 13:59:32 2011 [ReM][D]: HostPoolInfo method invoked
> Thu Apr 14 13:59:32 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
>
>
>
> 2011/4/14 Carlos Martín Sánchez 
>
>> 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 
>>
>>> 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 
>>>
>>>> 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 
>>>> wrote:
>>>>
>>>>>
>>>>>
>>>>> 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,  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,  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,  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  | cmar...@opennebula.org


On 8 April 2011 11:25, Javier Alcazar Luque  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  | cmar...@opennebula.org


On Mon, Apr 11, 2011 at 12:48 PM, Marco Mirabile wrote:

> 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  | cmar...@opennebula.org


On Tue, Apr 12, 2011 at 10:53 AM, mahirudin alkhoir
wrote:

> 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  | cmar...@opennebula.org


On Mon, Apr 18, 2011 at 3:16 PM, wrote:

> 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 
>  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,   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  | 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] Directory structure under $ONE_LOCATION after install.sh, lacks several folders

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

If you use the -c option of the installer, only a minimum set of client
files are installed.

Regardless, the directory trees in the link you provide have to be updated.
Meanwhile, this is what a 2.2 self-contained installation looks like
installing only client utilities (-c):
$ tree -d
.
├── bin
└── lib
└── ruby
├── cloud
│   ├── econe
│   └── occi
└── OpenNebula

And a regular self-contained installation:
$ tree -d -L 2
.
├── bin
├── etc
│   ├── auth
│   ├── ec2query_templates
│   ├── hm
│   ├── im_ec2
│   ├── im_kvm
│   ├── im_xen
│   ├── occi_templates
│   ├── tm_dummy
│   ├── tm_lvm
│   ├── tm_nfs
│   ├── tm_ssh
│   ├── vmm_ec2
│   ├── vmm_sh
│   └── vmm_ssh
├── include
├── lib
│   ├── mads
│   ├── remotes
│   ├── ruby
│   ├── sunstone
│   └── tm_commands
├── share
│   ├── examples
│   ├── hooks
│   └── man
└── var
├── images
└── remotes

Regards,
Carlos.

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


On Mon, Apr 11, 2011 at 11:33 AM, Luis Rodero-Merino wrote:

> Hi,
>
> I'm following the instructions in
> http://opennebula.org/documentation:rel2.2:ignc to install OpenNebula
> v2.2 . I can compile using scons without any problem, and then I
> install ONE by running:
> ./install.sh -u oneadmin -g cloud -d /one_sw -c
>
> Everything goes fine, but the resulting directory structure differs
> from what is shown in the webpage. It lacks many folders, such as
> one_sw/lib/remotes, one_sw/lib/tm_commands, one_sw/libexec,
> one_vm/share and one_vm/etc. Is this normal? It's me who is supposed
> to create those folders?
>
> Thanks for your help, regards,
> Luis Rodero-Merino
>
> --
> 
> 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] 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  | cmar...@opennebula.org


On Tue, Apr 19, 2011 at 2:45 PM, Marco Mirabile  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  | cmar...@opennebula.org


On Wed, Apr 27, 2011 at 2:41 AM,  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  | 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] Regular user can not register on opennebula

2011-04-27 Thread Carlos Martín Sánchez
The same way you can't just register yourself in a Unix system.
Sunstone is not aimed for final public cloud users, it is a control panel
for OpenNebula.


On Tue, Apr 26, 2011 at 8:55 AM, aiguoxin2008 aiguoxin2008 <
aiguoxin2...@gmail.com> wrote:

> if a regular user want to register on opennebula by sunstone, there is no
> interface of XML-RPC to use.
>
> I think a regular user can register on opennebula. when he registered on
> opennebula,the method isEnabled()  is false.
> Then oneadmin can enabled the user. Of course ,there is no enable user
> method currently.
>
> ___
> 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 change their own password

2011-04-27 Thread Carlos Martín Sánchez
Actually that's up to you, the permissions can be set to anything you want.

Check this two links:
http://opennebula.org/documentation:rel2.2:users
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  | cmar...@opennebula.org


On Tue, Apr 26, 2011 at 8:50 AM, aiguoxin2008 aiguoxin2008 <
aiguoxin2...@gmail.com> wrote:

> Regular users can not change their own password.
>
>
> ___
> 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  | cmar...@opennebula.org


2011/4/22 liudewei 

>  Configuration Interface
>
> The Transfer Manager is configured in the $ONE_LOCATION/etc/oned.conffile, see
> the Daemon Configuration 
> file.
> 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  = "",
> default= "
> 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 
> Extending.
>
> ==
> ask:
> the "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] There has no parameter to define subnet mask in Virtual Network template.

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

You can define any extra attribute, like NETMASK, in the Virtual Network
template when you create it.
Those attributes can be accessed within the VM using contextualization. In
[1], there's a brief example with a DNS field.

Don't forget to make your vmcontext script do something useful with that new
attribute.

Regards,
Carlos.

[1] http://opennebula.org/documentation:rel2.2:cong#defining_context

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


On Tue, Apr 26, 2011 at 3:27 AM, qian.shen  wrote:

> I think the "255.255.255.0" is not suitable for the "B" type network.
>
>
> wen.y...@cs2c.com.cn wrote:
>
>>
>> In script vmcontexttty ,the subnet mask of virtual machine is setted as
>> "255.255.255.0". If the subnet mask of physical PC isn't equal to
>> "255.255.255.0", then the physical PC can communicate with virtual machine
>> or not?
>>
>>
>> For example:
>>
>> The physical PC's IP is "10.1.29.105", subnet mask is "255.255.0.0".
>>
>> The virtual machine's IP is "10.1.29.106", subnet mask is "255.255.255.0".
>>
>> The physical PC ping the virtual machine failure.
>>
>>
>> I set virtual machine's subnet mask as "255.255.0.0" by using VNC, then
>> The physical PC ping the virtual machine success.
>>
>> 
>>
>> ___
>> 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] 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  | cmar...@opennebula.org


On Tue, Apr 12, 2011 at 10:10 AM, Gian Uberto Lauri  wrote:

> According to the last update in  issue #572
>
> > "r" == redmine   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, AT&T 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] onevm saveas command

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

The Java OCA is a wrapper for the XML-RPC interface [1].
The image file manipulation done by the oneimage command is performed by the
ImageRepository.rb [2] utility. You can take a look at the code to get an
idea of the steps. Or even check this thread [3].

Your Java application has to be aware of that, and perform the same file
operations, as described in [4].

Regards,
Carlos.

[1] http://opennebula.org/documentation:rel2.2:api
[2]
http://dev.opennebula.org/projects/opennebula/repository/revisions/one-2.2/entry/src/oca/ruby/OpenNebula/ImageRepository.rb
[3] http://www.mail-archive.com/users@lists.opennebula.org/msg02744.html
[4]
http://opennebula.org/documentation:rel2.2:img_template#notes_for_developers


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


On Thu, Apr 28, 2011 at 10:49 AM, Prakhar Srivastava
wrote:

> Hi,
> Thanks a lot for the response.
> Here is the output of, onevm show after onevm saveas
>
> VIRTUAL MACHINE 109 INFORMATION
>
> ID : 109
> NAME   : test2
> STATE  : ACTIVE
> LCM_STATE  : RUNNING
> START TIME : 04/28 14:06:06
> END TIME   : -
> DEPLOY ID: : one-109
>
> VIRTUAL MACHINE MONITORING
>
> NET_TX : 0
> NET_RX : 0
> USED MEMORY: 0
> USED CPU   : 0
>
> VIRTUAL MACHINE TEMPLATE
>
> CONTEXT=[
>   DNS_PUBLIC=192.168.150.226,
>   FILES=/home/cloud/opennebula/images/init.sh /root/.ssh/id_dsa.pub,
>   GATEWAY_PUBLIC=192.168.145.1,
>   HOSTNAME=test2,
>   IP_PUBLIC=192.168.145.69,
>   ROOT_PUBKEY=id_dsa.pub,
>   TARGET=xvdc ]
> CPU=1
> DISK=[
>   CLONE=YES,
>   DISK_ID=0,
>   DRIVER=file:,
>   IMAGE=DebianLenny3,
>   IMAGE_ID=5,
>   READONLY=NO,
>   SAVE=YES,
>   SAVE_AS=6,
>
>   SOURCE=/srv/cloud/one/var//images/b870fb155609d982de48a9b050e2b8c8790aa953,
>   TARGET=xvda,
>   TYPE=DISK ]
> DISK=[
>   DISK_ID=1,
>   DRIVER=file:,
>   READONLY=no,
>   SIZE=1024,
>   TARGET=xvdd,
>   TYPE=swap ]
> MEMORY=256
> NAME=test2
> NIC=[
>   BRIDGE=eth0,
>   IP=192.168.145.69,
>   MAC=02:00:c0:a8:91:45,
>   NETWORK=Public,
>   NETWORK_ID=4 ]
> OS=[
>   INITRD=/home/cloud/kernel/xen/2/initrd-2.6.27.21-0.1-xen,
>   KERNEL=/home/cloud/kernel/xen/2/vmlinuz-2.6.27.21-0.1-xen,
>   KERNEL_CMD=xencons=tty,
>   ROOT=xvda ]
> VCPU=1
> VMID=109
>
> I uncommented the image hooks in oned.conf and restarted one daemon. This
> time it worked as expected. The oneimage list listed the new image and its
> corresponding image file was found in /srv/lcoud/one/var/images.
>
> I have one another issue. The JAVA OCA has a savedisk() method for the same
> functionality but its asks for the image ID. I expected it to ask the new
> image name similar to the input taken by onevm saveas command. How to
> achieve the same functionality using the JAVA OCA.
>
> Thanks
> Prakhar
>
> On Thu, Apr 28, 2011 at 3:59 AM, Daniel Molina wrote:
>
>> Hi,
>>
>> Check that the image hook is uncommented in the oned.conf.
>> Would you mind to send us the output of onevm show VMID after the saveas
>> command.
>>
>> Regards
>>
>> On 27 April 2011 10:53, Prakhar Srivastava  wrote:
>>
>>>  Hi,
>>> When I run the command,
>>>   onevm saves VMID DISKID IMAGENAME
>>> the image of the disk is successfully saved upon shutdown of the VM,
>>> however the the file with a hash string name in (/srv/cloud/one/var/images)
>>> is not created. So when I use the image in any VM, it compains that the file
>>> cannot be found in /srv/cloud/one/var/images.
>>> Tue Apr 26 20:59:36 2011 [LCM][I]: New VM state is SHUTDOWN
>>> Tue Apr 26 20:59:44 2011 [LCM][I]: New VM state is EPILOG
>>> Tue Apr 26 21:01:15 2011 [TM][I]: tm_mv.sh: Moving
>>> /srv/cloud/one/var//90/images/disk.0
>>> Tue Apr 26 21:01:15 2011 [TM][I]: tm_mv.sh: Executed "/usr/bin/ssh box1
>>> mkdir -p /srv/cloud/one/var/90".
>>> Tue Apr 26 21:01:15 2011 [TM][I]: tm_mv.sh: Executed "/usr/bin/scp -r
>>> 192.168.145.116:/srv/cloud/one/var//90/images/disk.0
>>> box1:/srv/cloud/one/var/90/disk.0".
>>> Tue Apr 26 21:01:15 2011 [TM][I]: tm_mv.sh: Executed "/usr/bin/ssh
>>> 192.168.145.116 rm -rf /srv/cloud/one/var//90/images/disk.0".
>>> Tue Apr 26 21:01:16 2011 [TM][I]: tm_delete.sh: Deleting
>>> /srv/cloud/one/var//90/images
>>> Tue Apr 26 21:01:16 2011 [TM][I]: tm_delete.sh: Executed "/usr/bin/ssh
>>> 192.168.145.116 rm -rf /srv/cloud/one/var//90/images".
>>> Tue Apr 26 21:01:16 2011 [DiM][I]: New VM state is DONE
>>>
>>>
>>>
>>> Isn't the image supposed to be registered during the save process.
>>> Anyhow I am able to use the image by using a template file providing the
>>> source as the disk image saved and then registering it with a different
>>> name.
>>>
>>> Please advice.
>>>
>>> Prakhar
>>>
>>> ___
>>> Users mailing list
>>> Users@lists.opennebula.org
>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>
>>>
>>
>>
>> --
>> Daniel Molina,

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  | cmar...@opennebula.org


On Mon, May 2, 2011 at 5:10 PM, Joey  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] OpenNebula and authorization

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

The functionality you are describing will be available for the next release.

Our first idea is to have a main group and many secondary ones for each
user; the rest of the resources will belong only to one group.
We'll implement an ACL system to allow fine-tuning of the permissions.


If you need to implement it for 2.2, I'd suggest a workaround in the
authorization module.

The VNET, Image and VM templates can contain arbitrary data to store group
information, but new data cannot be added once the resource is created (with
the exception of Images). So the resource-group association will be better
managed in an external DB, which shouldn't be problematic since all
OpenNebula resources are identified by a unique ID.

About the creation and management of groups, it could be done totally
independent from OpenNebula, as long as the data is stored in a DB accesible
from the authorization driver. If the driver is written in ruby, the sequel
gem can take care of both sqlite and mysql connections.

The main problem with this workaround is that users will be able to list and
see all resources, without a way to identify which ones are available for
them.
This could be tackled modifying the onevm, oneimage and onevnet commands.
Since these files are just ruby scripts, you could read your permissions DB
and add a new column to the resources table showing the group(s) they belong
to. Or even hide some of the resources.

For the external DB, sqlite should do just fine. I believe you can even
protect it setting the file to be read-only for the users executing the
onevm/oneimage commands, and writable for oneadmin.


Best regards,
Carlos.

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


On Thu, Apr 28, 2011 at 6:13 PM, Lars Kellogg-Stedman  wrote:

> We're looking at using OpenNebula to support courses in our CS area.
> This will ultimately require some form of group-based authorization,
> so that we can restrict control over vm instances to specific groups
> of students, and so that we can restrict access to disk images to
> particular classes.  There's no support for this out of the box, and
> more importantly there's no support in the API [that I have been able
> to find] for associating arbitrary metadata with objects in
> OpenNebula.  Before we start down the road of trying to implement
> something that meets our needs, I'm curious if anyone else has
> implemented something that we could either use or at least use as a
> model.
>
> Ideally, we want to associate objects (networks, disk images, vm
> instances) with one or more groups, and then use the same backend used
> for authentication to make authorization decisions.  In this case,
> that means we'd be pulling group information out of LDAP.
>
> Cheers,
>
> --
> Lars Kellogg-Stedman 
> 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] VM image dir not created

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

Please check if this thread helps:
http://www.mail-archive.com/users@lists.opennebula.org/msg00465.html

(
http://lists.opennebula.org/htdig.cgi/users-opennebula.org/2010-September/002680.html
)

Regards.

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


On Tue, Apr 26, 2011 at 7:13 PM, Michael W. Lucas <
mwlu...@blackhelicopters.org> wrote:

> Hi,
>
> I'm testing OpenNebula 2.2 on Ubuntu 10.10 as a front end to KVM.  The
> worker nodes run diskless.  Diskless VMs run fine, but a VM with a
> disk image won't start.
>
> The vm.log shows:
>
> Tue Apr 26 13:01:32 2011 [VM][I]: Virtual Machine has no context
> Tue Apr 26 13:01:32 2011 [TM][I]: tm_ln.sh: Creating directory
> /usr/local/one/var/2/images
> Tue Apr 26 13:01:32 2011 [TM][I]: tm_ln.sh: Executed "mkdir -p
> /usr/local/one/var/2/images".
> Tue Apr 26 13:01:32 2011 [TM][I]: tm_ln.sh: Executed "chmod a+w
> /usr/local/one/var/2/images".
> Tue Apr 26 13:01:32 2011 [TM][I]: tm_ln.sh: Link
> /usr/local/one/var/images/gnosis.img
> Tue Apr 26 13:01:32 2011 [TM][I]: tm_ln.sh: Executed "ln -s
> /usr/local/one/var/images/gnosis.img /usr/local/one/var/2/images/disk.0".
> Tue Apr 26 13:01:33 2011 [LCM][I]: New VM state is BOOT
> Tue Apr 26 13:01:33 2011 [VMM][I]: Generating deployment file:
> /usr/local/one/var/2/deployment.1
> Tue Apr 26 13:02:04 2011 [VMM][I]: Command execution fail: 'if [ -x
> "/var/tmp/one/vmm/kvm/deploy" ]; then /var/tmp/one/vmm/kvm/deploy
> /usr/local/one/var/2/images/deployment.1; else
>  exit 42; fi'
> Tue Apr 26 13:02:04 2011 [VMM][I]: STDERR follows.
> Tue Apr 26 13:02:04 2011 [VMM][I]: error: Failed to create domain from
> /usr/local/one/var/2/images/deployment.1
> Tue Apr 26 13:02:04 2011 [VMM][I]: error: internal error process exited
> while connecting to monitor: qemu: could not open disk image
> /usr/local/one/var/2/images/disk.0: Permission denied
> Tue Apr 26 13:02:04 2011 [VMM][I]:
>
> The VM directory contains:
>
> # ls -ail /usr/local/one/var/2/
> total 15
> 3236 drwxrwxrwx 2 oneadmin oneadmin9 2011-04-26 13:05 .
>   3 drwxr-xr-x 7 oneadmin oneadmin   12 2011-04-26 13:10 ..
> 3250 -rw-r--r-- 1 oneadmin oneadmin  583 2011-04-26 12:59 deployment.0
> 3279 -rw-r--r-- 1 oneadmin oneadmin  583 2011-04-26 13:01 deployment.1
> 3257 -rw-r--r-- 1 oneadmin oneadmin   48 2011-04-26 12:59 transfer.0.delete
> 3245 -rw-r--r-- 1 oneadmin oneadmin  105 2011-04-26 12:59 transfer.0.prolog
> 3286 -rw-r--r-- 1 oneadmin oneadmin   48 2011-04-26 13:02 transfer.1.delete
> 3274 -rw-r--r-- 1 oneadmin oneadmin  105 2011-04-26 13:01 transfer.1.prolog
> 3237 -rw-r--r-- 1 oneadmin oneadmin 4012 2011-04-26 13:02 vm.log
>
> There is no "images" directory.  I suspect this is the cause of the
> error.
>
> Any suggestions on what I'm missing?  I'm migrating from 1.4 to 2.2,
> so I might well have missed something basic...
>
> Thanks,
> ==ml
>
> --
> Michael W. Lucas
> http://www.MichaelWLucas.com/, http://blather.MichaelWLucas.com/
> Latest book: Network Flow Analysis http://www.networkflowanalysis.com/
> mwlu...@blackhelicopters.org, Twitter @mwlauthor
> ___
> 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-03 Thread Carlos Martín Sánchez
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  | cmar...@opennebula.org


On Tue, May 3, 2011 at 1:23 PM, mahirudin alkhoir wrote:

> 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] 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  | cmar...@opennebula.org


On Tue, May 3, 2011 at 6:36 PM, sebastien goasguen  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=:
>
>
> I did a force redirect in httpd
>
> /etc/httpd/conf/httpd.conf:
> -
> 
>   ServerName :80
>   ServerAdmin yourem...@domain.com
>
>   RedirectMatch  ^/$ https://:
>
> 
>
> /etc/httpd/conf.d/ssl.conf:
> --
> 
>
> #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
>
> 
>
>
> Hope that helps,
>
> -sebastien
>
>
> On Tue, May 3, 2011 at 12:07 PM, Sebastian Neg 
> 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  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 

> 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 
>
>> 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 
>> wrote:
>>
>>> 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] having a problem when shut down a VM

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

>From the libvirt doc. [1]:
ACPI is useful for power management, for example, with KVM guests it is
required for graceful shutdown to work. If you set ACPI = YES, then your VM
should have the ACPI daemon running and be configured to shutdown with the
ACPI signal . For instance, I think Ubuntu Desktop shows the log out menu
instead.

Regards,
Carlos

[1] http://libvirt.org/formatdomain.html

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


On Fri, May 6, 2011 at 6:21 AM, Khoa Nguyen  wrote:

> hj all
> I'm working with opennebula and KVM.
> In file template of VM
> FEATURES=[
>
> acpi={yes|no} ]
>
> When i put "yes" into acpi, VM don't shut down,
> It display
> at May  7 16:13:35 2011 [LCM][I]: New VM state is BOOT
> Sat May  7 16:13:35 2011 [VMM][I]: Generating deployment file:
> /srv/cloud/one/var/160/deployment.0
> Sat May  7 16:13:46 2011 [LCM][I]: New VM state is RUNNING
> Sat May  7 16:14:40 2011 [LCM][I]: New VM state is SHUTDOWN
> Sat May  7 16:15:14 2011 [VMM][I]: Command execution fail: 'if [ -x
> "/var/tmp/one/vmm/kvm/shutdown" ]; then /var/tmp/one/vmm/kvm/shutdown
> one-160; else  exit 42; fi'
> Sat May  7 16:15:14 2011 [VMM][I]: STDERR follows.
> Sat May  7 16:15:14 2011 [VMM][I]: Connecting to uri: qemu:///system
> Sat May  7 16:15:14 2011 [VMM][I]: Timeout reached
> Sat May  7 16:15:14 2011 [VMM][I]: ExitCode: 1
> Sat May  7 16:15:14 2011 [VMM][E]: Error shuting down VM, Connecting to
> uri: qemu:///system
> Sat May  7 16:15:14 2011 [LCM][I]: Fail to shutdown VM. Assuming that the
> VM is still RUNNING (will poll VM).
> Sat May  7 16:15:25 2011 [VMM][D]: Monitor Information:
> CPU   : -1
> Memory: 262144
> Net_TX: -1
> Net_RX: -1
>
> Howerver when i put "no" into acpi .It shut down sucessfully . I don't know
> why? please help me.
> thank you in 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] 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  | cmar...@opennebula.org


On Sun, May 8, 2011 at 5:34 PM,  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  | cmar...@opennebula.org


On Mon, May 9, 2011 at 4:37 PM, Koushik Annapureddy
wrote:

> 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  | cmar...@opennebula.org


On Wed, May 11, 2011 at 5:10 PM, Steffen Neumann wrote:

> 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  | cmar...@opennebula.org


On Thu, Apr 7, 2011 at 3:25 PM, Carlos A.  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  | cmar...@opennebula.org


2011/5/6 ddd 

>  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  | cmar...@opennebula.org


On Tue, May 10, 2011 at 9:48 AM,  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 
>
> For more details please see [1].
> As far as I understand from
> $ONE_LOCATION/var/remotes/vmm//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  | cmar...@opennebula.org


-- Forwarded message --
From: 
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 


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  0K01 04:02:29
  40 oneadmin   vps145 runn   0  0K00 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  | cmar...@opennebula.org


On Mon, May 16, 2011 at 8:04 PM,  wrote:

> Hi!
>
> I wonder what $ONE_LOCATION/var/remotes/vmm//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='' 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  | cmar...@opennebula.org


On Tue, May 17, 2011 at 12:01 PM, Héctor Sanjuán wrote:

> 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  wrote:

>  This lead to this question: May I assume that tag order is fixed
>  inside   ?  so that the content may  be defined by a
>   ?
>

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 ,   and
>  ?
>

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  | cmar...@opennebula.org


On Wed, May 18, 2011 at 7:06 PM, Florin Antonescu  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  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  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   ?  so that the content may  be defined by a
>>   ?
>>
>>  And does  this hold even  for the  content of ,   and
>>  ?
>>
>>  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, AT&T 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  | cmar...@opennebula.org


On Wed, May 18, 2011 at 3:07 PM, María Pérez  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  | cmar...@opennebula.org


On Wed, May 18, 2011 at 2:44 PM, María Pérez  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 

>
> 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  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

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  | cmar...@opennebula.org


On Mon, May 23, 2011 at 10:00 AM, Adnan Pasic  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  | 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] VM starting fail

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

That error is shown when the Core can't find the 'tm_ss' Transfer Manager
Driver.
Please make sure that:

- You defined the host with 'tm_ssh' and 'tm_ss' is just a typo in you
email, as Steffen said. You can check this with onehost show 

- Your /etc/one/one.conf file has the tm_ssh driver uncommented. The drivers
are loaded at start-up, you have to reset OpenNebula if you make any change
to oned.conf. Check the first lines of oned.log, the drivers being loaded
are shown there, and you may find some error messages if something went
wrong.

Regards,
Carlos.

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


On Tue, May 24, 2011 at 10:15 AM, Steffen Neumann wrote:

> Hi,
>
> On Tue, 2011-05-24 at 09:23 +0200, genna...@email.it wrote:
> > prolog, error getting driver tm_ss
> This is surely a typo in the mail  ^
> you did specify tm_ssh ?
>
> 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] 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  | cmar...@opennebula.org


On Tue, May 24, 2011 at 6:09 AM, soge george  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  | cmar...@opennebula.org


2011/5/23 Carlos Fernández Iglesias 

> 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
wrote:

>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  | cmar...@opennebula.org


On Mon, May 23, 2011 at 4:09 PM, Richard Palmer
wrote:

> 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 wrote:

> 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  | cmar...@opennebula.org


On Tue, May 24, 2011 at 1:19 PM, Oualid Nouri wrote:

> 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


<    3   4   5   6   7   8   9   10   11   12   >