[one-users] ebtables hook

2011-04-28 Thread Frédéric Dreier
Hi,

I have some problems using ebtables-kvm hooks script.

I use the one saved in the GIT (the one from the documentation seems
deprecated).

get_interfaces return this hash table:

 >> {"br-vnets"=>["vnet1", "vnet2", "vnet3", "vnet4"], "br-test"=>["vnet0"],
"virbr0"=>[nil]}"

therefor the following 'if' statement failed for tap="vnet1" (which is my
VM's interface):

>> if interfaces.include? tap


Thanks for your help,

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


[one-users] Can't suspend VM when call command from Opennebula

2011-04-28 Thread Khoa Nguyen
Hey all.

I have two computer . One of them install opennebula and the others install
KVM.

I created a VM , then I deployed it on KVM.

When I try to suspend VM from KVM (  virsh --connect qemu:///system suspend
 ), it suspend successfully.
I resume it, It work well.
Howerver, I suspend it from opennebula , it can't. It don't change from save
to stop state.
So I don't resume it>
Anyone know? Please help me.
Some information:


Fri Apr 29 11:26:00 2011 [VMM][D]: Monitor Information:
CPU   : 3
Memory: 65536
Net_TX: 1510
Net_RX: 326359
Fri Apr 29 11:28:53 2011 [LCM][I]: New VM state is SAVE_SUSPEND

I install opennebula on ubuntu10.4
and KVM on ubuntu9.10.

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


Re: [one-users] Asking about VMWARE ESX and OpenNebula

2011-04-28 Thread antoni artigues
Hi Tino

I have exactly the same issue as Tim

I have done the proposed in :
http://www.mail-archive.com/users@lists.opennebula.org/msg02723.html

Then I have changed this:

change line 116 of
$ONE_LOCATION/lib/ruby/OpenNebula/XMLUtils.rb to:

   self.each(filter.to_s) { |e|  ids_array << e.text }

My code now is:

--
else
   # @xml.each(filter.to_s) { |e|  ids_array << e.text }
   self.each(filter.to_s) { |e|  ids_array << e.text } 
end
--

And with this changes I obtain the same error as Tim:

--
Thu Apr 28 09:56:54 2011 [InM][I]: Command execution
fail: /srv/cloud/one/var/remotes//im/run_probes vmware oscarnode3
Thu Apr 28 09:56:54 2011 [InM][I]: STDERR follows.
Thu Apr 28 09:56:54 2011
[InM][I]: /srv/cloud/one/lib/ruby/vmwarelib.rb:26: warning: already
initialized constant ONE_LOCATION
Thu Apr 28 09:56:54 2011
[InM][I]: /srv/cloud/one/lib/ruby/vmwarelib.rb:32: warning: already
initialized constant RUBY_LIB_LOCATION
Thu Apr 28 09:56:54 2011
[InM][I]: /srv/cloud/one/lib/ruby/OpenNebula/XMLUtils.rb:117:in `each':
wrong number of arguments (1 for 0) (ArgumentError)
Thu Apr 28 09:56:54 2011 [InM][I]:
from /srv/cloud/one/lib/ruby/OpenNebula/XMLUtils.rb:117:in
`retrieve_elements'
Thu Apr 28 09:56:54 2011 [InM][I]: from ./vmware.rb:83
Thu Apr 28 09:56:54 2011 [InM][I]: Error executing vmware.rb
Thu Apr 28 09:56:54 2011 [InM][I]: ExitCode: 1
Thu Apr 28 09:56:54 2011 [InM][E]: Error monitoring host 5 : MONITOR
FAILURE 5 Could not monitor host oscarnode3.
--

Thanks in advance

Antoni Artigues

El mié, 27-04-2011 a las 17:03 +0200, Tino Vazquez escribió:
> Hi Tim,
> 
> Did you restart oned?
> 
> If so, please send the error message, it may be a little different.
> 
> Regards,
> 
> -Tino
> 
> --
> Constantino Vázquez Blanco | dsa-research.org/tinova
> Virtualization Technology Engineer / Researcher
> OpenNebula Toolkit | opennebula.org
> 
> 
> 
> On Wed, Apr 27, 2011 at 2:36 PM, Tim Dunlevy  
> wrote:
> > Same error after changing the line to below.
> >
> > -Original Message-
> > From: Tino Vazquez [mailto:tinov...@gmail.com]
> > Sent: Wednesday, April 27, 2011 5:49 AM
> > To: Tim Dunlevy
> > Cc: users@lists.opennebula.org
> > Subject: Re: [one-users] Asking about VMWARE ESX and OpenNebula
> >
> > Hi Tim,
> >
> > This looks like a bug. Could you change line 116 of 
> > $ONE_LOCATION/lib/ruby/OpenNebula/XMLUtils.rb to:
> >
> >   self.each(filter.to_s) { |e|  ids_array << e.text }
> >
> > and try again. If this works, please come back and i'll open a ticket to 
> > get it fix in future OpenNebula releases.
> >
> > Regards,
> >
> > -Tino
> >
> > --
> > Constantino Vázquez Blanco | dsa-research.org/tinova Virtualization 
> > Technology Engineer / Researcher OpenNebula Toolkit | opennebula.org
> >
> >
> >
> > On Tue, Apr 26, 2011 at 9:03 PM, Tim Dunlevy  
> > wrote:
> >> FYI -
> >> Ruby is version 1.8.7
> >>
> >> ___
> >> 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


[one-users] Error executing "econe-server start"

2011-04-28 Thread Sebastian Neg
Hi,
i tried to configure EC2 Service in my Opennebula installation.
when i started the service, i got this error:

$ econe-server start
Error executing /home/esprit/one/lib/ruby/cloud/econe/econe-server.rb.

my log file: "econe-server.log"
--
 Server configuration
--
#"/home/esprit/one/lib/ruby/cloud/econe/views",
   "PORT"=>"8880",
   "TEMPLATE_LOCATION"=>"/home/esprit/one/etc/ec2query_templates",
   "VM_TYPE"=>{"NAME"=>"m1.small", "TEMPLATE"=>"m1.small.erb"},
   "SERVER"=>"cloud.opennebula.org",
   "ONE_XMLRPC"=>"http://localhost:2633/RPC2"}>
--
  Registered Instance Types
--
{"m1.small"=>{"NAME"=>"m1.small", "TEMPLATE"=>"m1.small.erb"}}
Port busy, please shutdown the service or move econe server port.

i tried to change the port but the problem persist.
any idea please..

Regards --
___
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 Prakhar Srivastava
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, Cloud Technology Engineer/Researcher
> Major Contributor
> OpenNebula - The Open Source Toolkit for Cloud Computing
> www.OpenNebula.org | dmol...@opennebula.org
>
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] image libvirt on ONE

2011-04-28 Thread Marco MIRABILE

I created a disk image using libvirt.
I copied this file in the folder "/ var / lib / one / images /"
So, I gave permission to the user oneadmin

Register oneimage the image, so I created and launched the VM, but the 
machinefails

Can I use images created with libvirt on OpenNebula?
regards Micale___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] sunstone start

2011-04-28 Thread Marco MIRABILE

hiI have an error to configure " /var/log/one/sunstone.log"The output file 
is:./sunstone-server: riga 70: rackup: comando non trovato
oneadmin@marco-laptop:/usr/bin$ ./sunstone-server startsunstone-server started
I can not connect with server localhost:4567Oops! Google Chrome could not 
connect to localhost:4567
regards Micale M. ___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] image libvirt on ONE

2011-04-28 Thread Héctor Sanjuán
OpenNebula just manages the images. Using them in the VMs has more to do
with correct the template parameters and the hypervisor support for the
image type.

It would be good if you could attach your templates (image, VM) and the
VM log to see what could be the problem.

Hector

El 28/04/11 11:07, Marco MIRABILE escribió:
> I created a disk image using libvirt.
> I copied this file in the folder "/ var / lib / one / images /"
> So, I gave permission to the user oneadmin
> 
> Register oneimage the image, so I created and launched the VM, but the
> machinefails
> 
> Can I use images created with libvirt on OpenNebula?
> 
> regards Micale
> 
> 
> 
> ___
> 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


Re: [one-users] sunstone start

2011-04-28 Thread Héctor Sanjuán
Please install the rack gem ("sudo gem install rack" typically). You
will also need the gems json, sinatra and thin.

Hector

El 28/04/11 11:32, Marco MIRABILE escribió:
> hi
> I have an error to configure " |/var/log/one/sunstone.log|"
> The output file is:
> ./sunstone-server: riga 70: rackup: comando non trovato
> 
> oneadmin@marco-laptop:/usr/bin$ ./sunstone-server start
> sunstone-server started
> 
> I can not connect with server localhost:4567
> 
> 
>   Oops! Google Chrome could not connect to localhost:4567
> 
> 
> regards Micale M.
> 
> 
> 
> ___
> 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


Re: [one-users] sunstone start

2011-04-28 Thread Héctor Sanjuán
Is it the same error in sunstone.log? Perhaps rackup is not in the PATH.
You can do something like

export PATH=path_to_gems:$PATH

in ubuntu path_to_gems is /var/lib/gems/1.8/bin/

Hector

El 28/04/11 11:55, Marco MIRABILE escribió:
> 
> I had installed the gems json, sinatra and thin.
> I followed the documentation.
> 
> I still can not connect to server. 
> I've install gems rack, json, sinatra and thin.
> 
> $ sudo gem install rack
> [sudo] password for marco: 
> Successfully installed rack-1.2.2
> 1 gem installed
> Installing ri documentation for rack-1.2.2...
> Installing RDoc documentation for rack-1.2.2...
> 
> $ sudo gem install json
> Building native extensions.  This could take a while...
> Successfully installed json-1.5.1
> 1 gem installed
> Installing ri documentation for json-1.5.1...
> Installing RDoc documentation for json-1.5.1...
> 
> $ sudo gem install sinatra
> Successfully installed sinatra-1.2.3
> 1 gem installed
> Installing ri documentation for sinatra-1.2.3...
> Installing RDoc documentation for sinatra-1.2.3...
> 
> $ sudo gem install thin
> Building native extensions.  This could take a while...
> Successfully installed thin-1.2.11
> 1 gem installed
> Installing ri documentation for thin-1.2.11...
> Installing RDoc documentation for thin-1.2.11...
> marco@marco-laptop:~$ 
> 
> 
>> Date: Thu, 28 Apr 2011 11:42:52 +0200
>> From: hsanj...@opennebula.org
>> To: domini...@hotmail.it
>> CC: users@lists.opennebula.org
>> Subject: Re: [one-users] sunstone start
>>
>> Please install the rack gem ("sudo gem install rack" typically). You
>> will also need the gems json, sinatra and thin.
>>
>> Hector
>>
>> El 28/04/11 11:32, Marco MIRABILE escribió:
>> > hi
>> > I have an error to configure " |/var/log/one/sunstone.log|"
>> > The output file is:
>> > ./sunstone-server: riga 70: rackup: comando non trovato
>> >
>> > oneadmin@marco-laptop:/usr/bin$ ./sunstone-server start
>> > sunstone-server started
>> >
>> > I can not connect with server localhost:4567
>> >
>> >
>> > Oops! Google Chrome could not connect to localhost:4567
>> >
>> >
>> > regards Micale M.
>> >
>> >
>> >
>> > ___
>> > Users mailing list
>> > Users@lists.opennebula.org
>> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>> --
>> Héctor Sanjuan
>> OpenNebula.org


-- 
Héctor Sanjuan
OpenNebula.org
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] sunstone start

2011-04-28 Thread Sebastian Neg
Hi,

You should check the FAQ in the OpenNebula website:
http://www.opennebula.org/documentation:community:faq

There is a compatibility problem with rack and sinatra

Regards

On Thu, Apr 28, 2011 at 11:04 AM, Héctor Sanjuán wrote:

> Is it the same error in sunstone.log? Perhaps rackup is not in the PATH.
> You can do something like
>
> export PATH=path_to_gems:$PATH
>
> in ubuntu path_to_gems is /var/lib/gems/1.8/bin/
>
> Hector
>
> El 28/04/11 11:55, Marco MIRABILE escribió:
> >
> > I had installed the gems json, sinatra and thin.
> > I followed the documentation.
> >
> > I still can not connect to server.
> > I've install gems rack, json, sinatra and thin.
> >
> > $ sudo gem install rack
> > [sudo] password for marco:
> > Successfully installed rack-1.2.2
> > 1 gem installed
> > Installing ri documentation for rack-1.2.2...
> > Installing RDoc documentation for rack-1.2.2...
> >
> > $ sudo gem install json
> > Building native extensions.  This could take a while...
> > Successfully installed json-1.5.1
> > 1 gem installed
> > Installing ri documentation for json-1.5.1...
> > Installing RDoc documentation for json-1.5.1...
> >
> > $ sudo gem install sinatra
> > Successfully installed sinatra-1.2.3
> > 1 gem installed
> > Installing ri documentation for sinatra-1.2.3...
> > Installing RDoc documentation for sinatra-1.2.3...
> >
> > $ sudo gem install thin
> > Building native extensions.  This could take a while...
> > Successfully installed thin-1.2.11
> > 1 gem installed
> > Installing ri documentation for thin-1.2.11...
> > Installing RDoc documentation for thin-1.2.11...
> > marco@marco-laptop:~$
> >
> >
> >> Date: Thu, 28 Apr 2011 11:42:52 +0200
> >> From: hsanj...@opennebula.org
> >> To: domini...@hotmail.it
> >> CC: users@lists.opennebula.org
> >> Subject: Re: [one-users] sunstone start
> >>
> >> Please install the rack gem ("sudo gem install rack" typically). You
> >> will also need the gems json, sinatra and thin.
> >>
> >> Hector
> >>
> >> El 28/04/11 11:32, Marco MIRABILE escribió:
> >> > hi
> >> > I have an error to configure " |/var/log/one/sunstone.log|"
> >> > The output file is:
> >> > ./sunstone-server: riga 70: rackup: comando non trovato
> >> >
> >> > oneadmin@marco-laptop:/usr/bin$ ./sunstone-server start
> >> > sunstone-server started
> >> >
> >> > I can not connect with server localhost:4567
> >> >
> >> >
> >> > Oops! Google Chrome could not connect to localhost:4567
> >> >
> >> >
> >> > regards Micale M.
> >> >
> >> >
> >> >
> >> > ___
> >> > Users mailing list
> >> > Users@lists.opennebula.org
> >> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> >>
> >>
> >> --
> >> Héctor Sanjuan
> >> 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] Asking about VMWARE ESX and OpenNebula

2011-04-28 Thread Tino Vazquez
Hi,

This is a bug in the code when not using the NOKOGIRI gem. As a
workaround, please try installing that gem.

Meanwhile, I've opened a ticket [1] to keep track of the solution.

Regards,

-Tino

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

--
Constantino Vázquez Blanco, MSc
OpenNebula Major Contributor
www.OpenNebula.org | @tinova79



On Thu, Apr 28, 2011 at 10:09 AM, antoni artigues  wrote:
> Hi Tino
>
> I have exactly the same issue as Tim
>
> I have done the proposed in :
> http://www.mail-archive.com/users@lists.opennebula.org/msg02723.html
>
> Then I have changed this:
>
> change line 116 of
> $ONE_LOCATION/lib/ruby/OpenNebula/XMLUtils.rb to:
>
>           self.each(filter.to_s) { |e|  ids_array << e.text }
>
> My code now is:
>
> --
> else
>   # @xml.each(filter.to_s) { |e|  ids_array << e.text }
>   self.each(filter.to_s) { |e|  ids_array << e.text }
> end
> --
>
> And with this changes I obtain the same error as Tim:
>
> --
> Thu Apr 28 09:56:54 2011 [InM][I]: Command execution
> fail: /srv/cloud/one/var/remotes//im/run_probes vmware oscarnode3
> Thu Apr 28 09:56:54 2011 [InM][I]: STDERR follows.
> Thu Apr 28 09:56:54 2011
> [InM][I]: /srv/cloud/one/lib/ruby/vmwarelib.rb:26: warning: already
> initialized constant ONE_LOCATION
> Thu Apr 28 09:56:54 2011
> [InM][I]: /srv/cloud/one/lib/ruby/vmwarelib.rb:32: warning: already
> initialized constant RUBY_LIB_LOCATION
> Thu Apr 28 09:56:54 2011
> [InM][I]: /srv/cloud/one/lib/ruby/OpenNebula/XMLUtils.rb:117:in `each':
> wrong number of arguments (1 for 0) (ArgumentError)
> Thu Apr 28 09:56:54 2011 [InM][I]:
> from /srv/cloud/one/lib/ruby/OpenNebula/XMLUtils.rb:117:in
> `retrieve_elements'
> Thu Apr 28 09:56:54 2011 [InM][I]: from ./vmware.rb:83
> Thu Apr 28 09:56:54 2011 [InM][I]: Error executing vmware.rb
> Thu Apr 28 09:56:54 2011 [InM][I]: ExitCode: 1
> Thu Apr 28 09:56:54 2011 [InM][E]: Error monitoring host 5 : MONITOR
> FAILURE 5 Could not monitor host oscarnode3.
> --
>
> Thanks in advance
>
> Antoni Artigues
>
> El mié, 27-04-2011 a las 17:03 +0200, Tino Vazquez escribió:
>> Hi Tim,
>>
>> Did you restart oned?
>>
>> If so, please send the error message, it may be a little different.
>>
>> Regards,
>>
>> -Tino
>>
>> --
>> Constantino Vázquez Blanco | dsa-research.org/tinova
>> Virtualization Technology Engineer / Researcher
>> OpenNebula Toolkit | opennebula.org
>>
>>
>>
>> On Wed, Apr 27, 2011 at 2:36 PM, Tim Dunlevy  
>> wrote:
>> > Same error after changing the line to below.
>> >
>> > -Original Message-
>> > From: Tino Vazquez [mailto:tinov...@gmail.com]
>> > Sent: Wednesday, April 27, 2011 5:49 AM
>> > To: Tim Dunlevy
>> > Cc: users@lists.opennebula.org
>> > Subject: Re: [one-users] Asking about VMWARE ESX and OpenNebula
>> >
>> > Hi Tim,
>> >
>> > This looks like a bug. Could you change line 116 of 
>> > $ONE_LOCATION/lib/ruby/OpenNebula/XMLUtils.rb to:
>> >
>> >           self.each(filter.to_s) { |e|  ids_array << e.text }
>> >
>> > and try again. If this works, please come back and i'll open a ticket to 
>> > get it fix in future OpenNebula releases.
>> >
>> > Regards,
>> >
>> > -Tino
>> >
>> > --
>> > Constantino Vázquez Blanco | dsa-research.org/tinova Virtualization 
>> > Technology Engineer / Researcher OpenNebula Toolkit | opennebula.org
>> >
>> >
>> >
>> > On Tue, Apr 26, 2011 at 9:03 PM, Tim Dunlevy  
>> > wrote:
>> >> FYI -
>> >> Ruby is version 1.8.7
>> >>
>> >> ___
>> >> 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


[one-users] size of storage reported differently from value set

2011-04-28 Thread Eilidh Troup
Hi,
 
When using the OCCI interface, the SIZE of a DATABLOCK storage is created and 
reported in different units - i.e. the size is reported as 1024 times the 
requested size. Can I report this as a bug in the OCCI server, please?

curl -vki http://url/storage -d "occixml=

TEST OCCI
A place to store the log files of the server
DATABLOCK
2048
ext3
"

HTTP/1.1 201 Created 
https://url/storage/45";>
45
TEST OCCI
DATABLOCK
A place to store the log files of the server
2097152
ext3
NO
NO


From the OpenNebula command line: 
oneimage show 45
IMAGE  INFORMATION  
ID : 45  
NAME   : TEST OCCI 
...
SIZE=2048
TYPE=DATABLOCK

Regards,
Eilidh TroupThe University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] size of storage reported differently from value set

2011-04-28 Thread Tino Vazquez
Hi Eilidh,

I've opened a ticket to keep track of the solution:
http://dev.opennebula.org/issues/598

Regards,

-Tino

--
Constantino Vázquez Blanco, MSc
OpenNebula Major Contributor
www.OpenNebula.org | @tinova79



On Thu, Apr 28, 2011 at 12:50 PM, Eilidh Troup  wrote:
> Hi,
>
> When using the OCCI interface, the SIZE of a DATABLOCK storage is created
> and reported in different units - i.e. the size is reported as 1024 times
> the requested size. Can I report this as a bug in the OCCI server, please?
> curl -vki http://url/storage -d "occixml=
> 
> TEST OCCI
> A place to store the log files of the server
> DATABLOCK
> 2048
> ext3
> "
> HTTP/1.1 201 Created
> https://url/storage/45";>
> 45
> TEST OCCI
> DATABLOCK
> A place to store the log files of the server
> 2097152
> ext3
> NO
> NO
> 
> From the OpenNebula command line:
> oneimage show 45
> IMAGE  INFORMATION
>
> ID             : 45
> NAME           : TEST OCCI
> ...
> SIZE=2048
> TYPE=DATABLOCK
> Regards,
> Eilidh Troup
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>
> ___
> 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 ESXI 4.1

2011-04-28 Thread César Carrasco Mosquera


  
  
Hi Tino,

I still have some doubts. If I understand well, the driver u mention
allows OpenNebula deal with VMWare ESXi, but I don't know what I
have to install/configure at the compute node using ESXI. The
configuration of my cluster is as follows: I have a machine acting
as the front-end running OpenNebula on Ubuntu Server, and another
machine running just VMWare ESXI wich will be the compute-node. 

So, how can I install the opnenebula-node package on my ESXI 4.1
compute node? 

Thanks a lot for your help,

Best regards,

César

El 27/04/2011 15:52, Tino Vazquez escribió:

  
  Hi Cesar,


You can follow the guide at http://opennebula.org/documentation:rel2.2:evmwareg


Regards,


-Tino


  --
  Constantino Vázquez Blanco, MSc  
  OpenNebula Major Contributor
  www.OpenNebula.org | @tinova79
  
  
  On Wed, Apr 27, 2011 at 2:55 PM, César
Carrasco Mosquera 
wrote:

  
Dear all,

I'm trying to deploy a cluster using Opennebula at the front end and ESXI
at the compute nodes. Although I've found many emails in the mailing lists
about how to make Opennebula and ESXI work together, I've not been able to
find any manual on how to do this from scratch.

This is, I have the Opennebula machine installed, and the ESXI compute
node as well, but I don't know what to do to make them work toghether.

Could you please give me some help?

Best 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




-- 
  
  

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


Re: [one-users] OpenNebula and ESXI 4.1

2011-04-28 Thread Tino Vazquez
Hi Cesar,

You don't need to install any additional hardware in the ESX node, all the
configuration must be done in the front-end.

Regards,

-Tino

--
Constantino Vázquez Blanco | dsa-research.org/tinova
Virtualization Technology Engineer / Researcher
OpenNebula Toolkit | opennebula.org


On Thu, Apr 28, 2011 at 1:05 PM, César Carrasco Mosquera <
ccarra...@csi.uned.es> wrote:

>  Hi Tino,
>
> I still have some doubts. If I understand well, the driver u mention allows
> OpenNebula deal with VMWare ESXi, but I don't know what I have to
> install/configure at the compute node using ESXI. The configuration of my
> cluster is as follows: I have a machine acting as the front-end running
> OpenNebula on Ubuntu Server, and another machine running just VMWare ESXI
> wich will be the compute-node.
>
> So, how can I install the opnenebula-node package on my ESXI 4.1 compute
> node?
>
> Thanks a lot for your help,
>
> Best regards,
>
> César
>
> El 27/04/2011 15:52, Tino Vazquez escribió:
>
> Hi Cesar,
>
>  You can follow the guide at
> http://opennebula.org/documentation:rel2.2:evmwareg
>
>  Regards,
>
>  -Tino
>
>  --
> Constantino Vázquez Blanco, MSc
> OpenNebula Major Contributor
> www.OpenNebula.org | @tinova79
>
>
> On Wed, Apr 27, 2011 at 2:55 PM, César Carrasco Mosquera <
> ccarra...@csi.uned.es> wrote:
>
>>  Dear all,
>>
>> I'm trying to deploy a cluster using Opennebula at the front end and ESXI
>> at the compute nodes. Although I've found many emails in the mailing lists
>> about how to make Opennebula and ESXI work together, I've not been able to
>> find any manual on how to do this from scratch.
>>
>> This is, I have the Opennebula machine installed, and the ESXI compute
>> node as well, but I don't know what to do to make them work toghether.
>>
>> Could you please give me some help?
>>
>> Best regards,
>>
>> --
>>
>> ___
>> Users mailing list
>> Users@lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>
> ___
> 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 ESXI 4.1

2011-04-28 Thread Carlos A.


  
  
Cesar,

you do not need to install anything in the ESXI compute node, but
configuring the shared filesystem.

I think ESXI is able to configure a datastore which is located in a
nfs shared folder. I that case you won't even need to connect to the
shared resource by hand.

Regards

El 28/04/11 13:05, César Carrasco Mosquera escribió:

  
  Hi Tino,
  
  I still have some doubts. If I understand well, the driver u
  mention allows OpenNebula deal with VMWare ESXi, but I don't know
  what I have to install/configure at the compute node using ESXI.
  The configuration of my cluster is as follows: I have a machine
  acting as the front-end running OpenNebula on Ubuntu Server, and
  another machine running just VMWare ESXI wich will be the
  compute-node. 
  
  So, how can I install the opnenebula-node package on my ESXI 4.1
  compute node? 
  
  Thanks a lot for your help,
  
  Best regards,
  
  César
  
  El 27/04/2011 15:52, Tino Vazquez escribió:
  

Hi Cesar,
  
  
  You can follow the guide at http://opennebula.org/documentation:rel2.2:evmwareg
  
  
  Regards,
  
  
  -Tino
  
  
--
Constantino Vázquez Blanco, MSc  
OpenNebula Major Contributor
www.OpenNebula.org | @tinova79


On Wed, Apr 27, 2011 at 2:55 PM, César
  Carrasco Mosquera 
  wrote:
  

  Dear all,

I'm trying to deploy a cluster using Opennebula at the front end and ESXI
at the compute nodes. Although I've found many emails in the mailing lists
about how to make Opennebula and ESXI work together, I've not been able to
find any manual on how to do this from scratch.

This is, I have the Opennebula machine installed, and the ESXI compute
node as well, but I don't know what to do to make them work toghether.

Could you please give me some help?

Best 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

  
  
  
  -- 

  

___
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] Sunstone does not has a interface that administrator can set a regular user'quota.

2011-04-28 Thread Héctor Sanjuán
Hi,

currently Sunstone has no support for this operation. However I have
created a request,

http://dev.opennebula.org/issues/599

so we can have it for future releases. Thanks for your suggestion.

Héctor

El 28/04/11 04:01, aiguoxin2008 aiguoxin2008 escribió:
> In comman interface, the user id for |test| is 1. Now we use |oneauth
> quota set   | to change user limits:
> 
> $ oneauth quota set 1 20 1000
> 
> But sunstone does not has a interface that administrator can set a
> regular user'quota.
> 
> 
> 
> ___
> 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


Re: [one-users] image libvirt on ONE

2011-04-28 Thread Héctor Sanjuán
> NAME  = "Uubuntu1"
> DISK = [ image = "ubuntu1" ]

Different names. Might be that?

H

El 28/04/11 13:36, Marco MIRABILE escribió:
> /var/lib/one/images# ls -l
> totale 2548196
> -rwxrws--T 1 root oneadmin 5368709120 2011-04-28 12:26 ubuntu1.img
> 
> ---ubuntu1.oneimage.template- 
> NAME  = "Uubuntu1"
> PATH  = /var/lib/one/images/ubuntu1.img
> PUBLIC= YES
> DESCRIPTION   = "Ubuntu 10.10 desktop i386 1CPU 512 RAM 4GB HDD"
> 
> 
> ---ubuntu1.onevm.template-
> CPU= 1
> 
> MEMORY = 512
> 
> DISK = [ image = "ubuntu1" ]
> 
> DISK = [ type   = swap,
>  size   = 1024  ]
> 
> #NIC= [ NETWORK = "Public network" ]
> 
> GRAPHICS = [type="vnc", listen="0.0.0.0", password="not-set"]
> 
> 
> oneadmin@laptop:~$ onevm create ubuntu1.onevm.template 
> Error: [VirtualMachineAllocate] Error trying to CREATE VM Could not get
> disk image for VM.
> 
> 
>> Date: Thu, 28 Apr 2011 11:39:51 +0200
>> From: hsanj...@opennebula.org
>> To: domini...@hotmail.it; users@lists.opennebula.org
>> Subject: Re: [one-users] image libvirt on ONE
>>
>> OpenNebula just manages the images. Using them in the VMs has more to do
>> with correct the template parameters and the hypervisor support for the
>> image type.
>>
>> It would be good if you could attach your templates (image, VM) and the
>> VM log to see what could be the problem.
>>
>> Hector
>>
>> El 28/04/11 11:07, Marco MIRABILE escribió:
>> > I created a disk image using libvirt.
>> > I copied this file in the folder "/ var / lib / one / images /"
>> > So, I gave permission to the user oneadmin
>> >
>> > Register oneimage the image, so I created and launched the VM, but the
>> > machinefails
>> >
>> > Can I use images created with libvirt on OpenNebula?
>> >
>> > regards Micale
>> >
>> >
>> >
>> > ___
>> > Users mailing list
>> > Users@lists.opennebula.org
>> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>> --
>> Héctor Sanjuan
>> OpenNebula.org


-- 
Héctor Sanjuan
OpenNebula.org
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Error executing "econe-server start"

2011-04-28 Thread Steffen Neumann
Hi,

Check the message:
Port busy, please shutdown the service or move econe server port.

Which port did you change ? The 8880 ?

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


Re: [one-users] Asking about VMWARE ESX and OpenNebula

2011-04-28 Thread antoni artigues
Okey.

Install NOKOGIRI solves the problem. Now works well

Thanks

Antoni Artigues
El jue, 28-04-2011 a las 12:30 +0200, Tino Vazquez escribió:
> This is a bug in the code when not using the NOKOGIRI gem. As a
> workaround, please try installing that gem.
> 
> Meanwhile, I've opened a ticket [1] to keep track of the solution.
> 
> Regards,
> 
> -Tino
> 
> [1] http://dev.opennebula.org/issues/597 

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


Re: [one-users] ebtables hook [CLOSED]

2011-04-28 Thread Frédéric Dreier
Oh ok... I understand the purpose of this hook now (and how it abuses mac
addresses mask).

I find this solution a little bit dirty and limited (fixed subnets, need
different IP range for each virtual network, etc). Therefore I will continue
to setup a bridge for each vnet.

However the script seems broken.

Regards

Frederic







Le 28 avril 2011 09:26, Frédéric Dreier  a écrit
:

> Hi,
>
> I have some problems using ebtables-kvm hooks script.
>
> I use the one saved in the GIT (the one from the documentation seems
> deprecated).
>
> get_interfaces return this hash table:
>
>  >> {"br-vnets"=>["vnet1", "vnet2", "vnet3", "vnet4"],
> "br-test"=>["vnet0"], "virbr0"=>[nil]}"
>
> therefor the following 'if' statement failed for tap="vnet1" (which is my
> VM's interface):
>
> >> if interfaces.include? tap
>
>
> Thanks for your help,
>
> Frederic
>
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] boto with opennebula 2.2

2011-04-28 Thread sebastien goasguen
Hi,

Has anyone used the python boto module with ONE 2.2 ?
Can you share your config or changes to the code that you made.

thanks,

-sebastien

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


Re: [one-users] OCA and OCCI in 2.2 how much change ?

2011-04-28 Thread Daniel Molina
Hi,

There is no specific changelog for these components. You should check
the release notes [1] and the ruby documentation for OCA [2, 3]

[1] http://opennebula.org/software:rnotes:rn-rel2.2.0
[2] http://opennebula.org/doc/2.0/oca/ruby/
[3] http://opennebula.org/doc/2.2/oca/ruby/

Regards.

On 26 April 2011 15:59, Zeeshan Ali Shah  wrote:
>
> Hi, How much is the difference between OCA, OCCI in one-2.0 and one-2.2  
> branch ?
>
>
> --
>
> --
> Regards
>
> Zeeshan Ali Shah
> System Administrator
> PDC-Center for High Performance Computing
>
> KTH-Royal Institute of Technology , Sweden
> +46 8 790 9115
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>

-- 
Daniel Molina, Cloud Technology Engineer/Researcher
Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org | dmol...@opennebula.org
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] boto with opennebula 2.2

2011-04-28 Thread Tino Vazquez
Dear Sebastian,

Are you referring to the boto library as a client for OpenNebula EC2
implementation? If so, no directly, but I believe the elasticfox
extension (which we've tried) is based on such library.

Regards,

-Tino

--
Constantino Vázquez Blanco | dsa-research.org/tinova
Virtualization Technology Engineer / Researcher
OpenNebula Toolkit | opennebula.org



On Thu, Apr 28, 2011 at 4:55 PM, sebastien goasguen  wrote:
> Hi,
>
> Has anyone used the python boto module with ONE 2.2 ?
> Can you share your config or changes to the code that you made.
>
> thanks,
>
> -sebastien
>
> --
> ---
> 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] boto with opennebula 2.2

2011-04-28 Thread sebastien goasguen
Hi,

Yes I am referring to:
http://code.google.com/p/boto/

The ecua2ools are based on it, so it should work. But I was wondering
if someone ever wrote a Python script using boto to start instances
with opennebula 2.2

-sebastien

On Thu, Apr 28, 2011 at 11:15 AM, Tino Vazquez  wrote:
> Dear Sebastian,
>
> Are you referring to the boto library as a client for OpenNebula EC2
> implementation? If so, no directly, but I believe the elasticfox
> extension (which we've tried) is based on such library.
>
> Regards,
>
> -Tino
>
> --
> Constantino Vázquez Blanco | dsa-research.org/tinova
> Virtualization Technology Engineer / Researcher
> OpenNebula Toolkit | opennebula.org
>
>
>
> On Thu, Apr 28, 2011 at 4:55 PM, sebastien goasguen  wrote:
>> Hi,
>>
>> Has anyone used the python boto module with ONE 2.2 ?
>> Can you share your config or changes to the code that you made.
>>
>> thanks,
>>
>> -sebastien
>>
>> --
>> ---
>> 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
>>
>



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


[one-users] Improving openSUSE package

2011-04-28 Thread Robert Schweikert

Hi,

After recently updating the OpenNebula package in the openSUSE Build 
Service for openSUSE I am now trying to improve the package a bit and 
make things a bit more user friendly. Also I'd eventually create a 
mostly pre-configured image, but one thing at a time.


The setup-guide http://opennebula.org/documentation:rel2.2:plan advices 
to use /srv/cloud/one as the oneadmin users home directory. However, it 
appears that /srv/cloud/one (actually /var/lib/one for SUSE) contains 
(needs to contain) scripts that launch VMs on the cluster. This 
directory also gets exported to cluster nodes.


I think these scripts should still owned by root, while the oneadmin 
users home directory should be owned by oneadmin. Thus IMHO this would 
set up a somewhat unconventional owner ship strcuture where scripts 
inside oneadmin's home directory are owned by root.


I guess there are two approaches, 1.) separate the oneadmin's home 
directory from the directory that contains the scripts (any harm in 
that?) or 2.) let oneadmin own the scripts (any harm in that?)


Thanks,
Robert

--
Robert Schweikert   MAY THE SOURCE BE WITH YOU
SUSE-IBM Software Integration Center   LINUX
Tech Lead
rschweik...@novell.com
rschweik...@ca.ibm.com
781-464-8147
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Problem with OCCI client while creating storage image

2011-04-28 Thread Daniel Molina
There was a thread months ago about a java OCCI client. Maybe you can
get some information from it.
http://lists.opennebula.org/htdig.cgi/users-opennebula.org/2010-August/002527.html

Regards.

On 26 April 2011 22:08, Florin Antonescu  wrote:
> I am developing my own client in Java. Do you know if such a (reference)
> client already exists?
>
> On Tue, Apr 26, 2011 at 6:57 PM, Daniel Molina 
> wrote:
>>
>> What client are you using? Are you developing your own client?
>>
>> You can check the OCCIClient code (post_image method) to get an idea.
>>
>> On 26 April 2011 18:44, Florin Antonescu 
>> wrote:
>> > Can you please suggest me a way to send the file? Also, the file
>> > parameter
>> > should contain the path to the actual image ot the content of the image?
>> > Is there any documentation that I could consult regarding registering
>> > images
>> > using the OCCI client? Also an example would be very useful.
>> > Best regards
>> > On Tue, Apr 26, 2011 at 4:39 PM, Daniel Molina 
>> > wrote:
>> >>
>> >> Hi,
>> >>
>> >> The server waits for a file (request.params['file']) and the xml
>> >> (request.params['occixml']). In your case is that the file is missing
>> >> in the request.
>> >>
>> >> Regards
>> >>
>> >> On 17 April 2011 21:34, Florin Antonescu 
>> >> wrote:
>> >> > Hello,
>> >> > I have encountered a strange situation while trying to create a
>> >> > storage
>> >> > image using OCCI interface from a Java client (Opennebula 2.2 on
>> >> > Ubuntu
>> >> > 10.10). The XML representation that I was trying to send is
>> >> > 
>> >> > test-ttylinux
>> >> > Minimalist Linux distribution
>> >> > OS
>> >> > file:///srv/cloud/one/one-templates/ttylinux.img
>> >> > 
>> >> > and the response received from OCCI server is: "Image path not
>> >> > present,
>> >> > aborting." However, if I try to create the same storage image using
>> >> > occi-image, everything works OK. Is there a constraint for the URL?
>> >> > What
>> >> > is
>> >> > the proper way of creating OS images using OCCI interface?
>> >> > Thank you,
>> >> > Florian
>> >> > ___
>> >> > 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
>> >
>> >
>>
>>
>>
>> --
>> Daniel Molina, Cloud Technology Engineer/Researcher
>> Major Contributor
>> OpenNebula - The Open Source Toolkit for Cloud Computing
>> www.OpenNebula.org | dmol...@opennebula.org
>
>



-- 
Daniel Molina, Cloud Technology Engineer/Researcher
Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org | dmol...@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] boto with opennebula 2.2

2011-04-28 Thread sriedel

Hi,

I tried it once, but had no luck in configuring it right.
But if you try to control OpenNebula via python in general, I can 
recommend the xmlrpc interface. It's pretty easy to set up and works 
fine for me.


http://opennebula.org/documentation:rel2.2:api

Greetings,
Stephan


Quoting sebastien goasguen :


Hi,

Yes I am referring to:
http://code.google.com/p/boto/

The ecua2ools are based on it, so it should work. But I was wondering
if someone ever wrote a Python script using boto to start instances
with opennebula 2.2

-sebastien

On Thu, Apr 28, 2011 at 11:15 AM, Tino Vazquez  wrote:

Dear Sebastian,

Are you referring to the boto library as a client for OpenNebula EC2
implementation? If so, no directly, but I believe the elasticfox
extension (which we've tried) is based on such library.

Regards,

-Tino

--
Constantino Vázquez Blanco | dsa-research.org/tinova
Virtualization Technology Engineer / Researcher
OpenNebula Toolkit | opennebula.org



On Thu, Apr 28, 2011 at 4:55 PM, sebastien goasguen 
 wrote:

Hi,

Has anyone used the python boto module with ONE 2.2 ?
Can you share your config or changes to the code that you made.

thanks,

-sebastien

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







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


[one-users] OpenNebula and authorization

2011-04-28 Thread Lars Kellogg-Stedman
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


Re: [one-users] boto with opennebula 2.2

2011-04-28 Thread sebastien goasguen
Actually I just got it to work with ONE 2.2 and latest boto on Ubuntu.
In your $HOME put a .boto file with your opennebula credentials:

sebgoa@belmiro:~$ cat .boto
[Credentials]
aws_access_key_id = 
aws_secret_access_key = 
[Boto]
debug = 0
num_retries = 2

then launch python

sebgoa@belmiro:~$ python
Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import boto
>>> import boto.ec2
>>> conn=boto.connect_ec2(region=boto.ec2.regioninfo.RegionInfo(name="opennebula",endpoint='>>  opennebul>'),port=8443)
>>> myimages=conn.get_all_images()
>>> print myimages
[Image:ami-, Image:ami-0001]
>>> myimages[0].run()
Reservation:r-47a5402e
>>> myimages[0].run()
Reservation:r-47a5402e
>>> print conn.get_all_instances()
[Reservation:default]

>>> print conn.get_all_instances()[0].instances
[Instance:i-75, Instance:i-76, Instance:i-77, Instance:i-78, Instance:i-79]

(obviously I had other machines running)

>>> for instance in conn.get_all_instances()[0].instances:
...instance.state
...
u'running'
u'running'
u'running'
u'running'
u'running'

The trick was the regioninfo instance.
Note that in my case the host:port I put in the regioninfo is an SSL
Proxy to Opennebula.

-sebastien


On Thu, Apr 28, 2011 at 11:56 AM,   wrote:
> Hi,
>
> I tried it once, but had no luck in configuring it right.
> But if you try to control OpenNebula via python in general, I can recommend
> the xmlrpc interface. It's pretty easy to set up and works fine for me.
>
> http://opennebula.org/documentation:rel2.2:api
>
> Greetings,
> Stephan
>
>
> Quoting sebastien goasguen :
>
>> Hi,
>>
>> Yes I am referring to:
>> http://code.google.com/p/boto/
>>
>> The ecua2ools are based on it, so it should work. But I was wondering
>> if someone ever wrote a Python script using boto to start instances
>> with opennebula 2.2
>>
>> -sebastien
>>
>> On Thu, Apr 28, 2011 at 11:15 AM, Tino Vazquez  wrote:
>>>
>>> Dear Sebastian,
>>>
>>> Are you referring to the boto library as a client for OpenNebula EC2
>>> implementation? If so, no directly, but I believe the elasticfox
>>> extension (which we've tried) is based on such library.
>>>
>>> Regards,
>>>
>>> -Tino
>>>
>>> --
>>> Constantino Vázquez Blanco | dsa-research.org/tinova
>>> Virtualization Technology Engineer / Researcher
>>> OpenNebula Toolkit | opennebula.org
>>>
>>>
>>>
>>> On Thu, Apr 28, 2011 at 4:55 PM, sebastien goasguen 
>>> wrote:

 Hi,

 Has anyone used the python boto module with ONE 2.2 ?
 Can you share your config or changes to the code that you made.

 thanks,

 -sebastien

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

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



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


[one-users] Ranged network!

2011-04-28 Thread Ahmad Hammad
Hello,

we have setup up a ranged virtual network for our ONE-2.2 VMs but the gateway 
IP address keeps being assigned to VMs.

The network range to assign is a 4x class C network:
  X.X.16.0/22
with gateway X.X.16.1,   i.e. the VMs can get any IP in the range
 X.X.16.2  --> X.X.19.254

We also tested with a smaller range, a single class C, but the gateway IP 
keeps getting assigned to instances:

TYPE   = RANGED
NETWORK_SIZE= 245
NETWORK_ADDRESS = X.X.16.10

How should the configuration look like for this case? 
The "Ranged Virtual Networks" section in 
   http://opennebula.org/documentation:rel2.2:vgg
is not very explicit in this regard.

Thanks in advance!

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


Re: [one-users] Ranged network!

2011-04-28 Thread Lars Kellogg-Stedman
> we have setup up a ranged virtual network for our ONE-2.2 VMs but the gateway
> IP address keeps being assigned to VMs.

Ahmad,

I just asked a very similar question on the list.  I agree that the
existing documentation isn't particularly clear.

The only response I received was a suggestion to use FIXED networks
rather than RANGED networks, and then to programmatically generate the
list of leases.  So our network configuration looks like this:

  BRIDGE=br619
  NAME=Cloud Private
  TYPE=FIXED

Followed by the output of the following shell script:

  for (( ip=20; ip<255; ip++ )); do
printf "LEASES  = [IP=10.243.19.%d,
MAC=5E:A5:%02X:%02X:%02X:%02X]\n" $ip 10 243 19 $ip
  done

This generates output that looks like this:

  LEASES  = [IP=10.243.19.20, MAC=5E:A5:0A:F3:13:14]
  LEASES  = [IP=10.243.19.21, MAC=5E:A5:0A:F3:13:15]
  [...]
  LEASES  = [IP=10.243.19.254, MAC=5E:A5:0A:F3:13:FE]

In this case, we're using the "MAC prefix" model, so we're able to
pre-generate this list.  This has solved the problem of OpenNebula
handing out the router address to virtual machines, at the cost of a
small amount of complexity.

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


Re: [one-users] Improving openSUSE package

2011-04-28 Thread Jaime Melis
Hi,
comments inline:

After recently updating the OpenNebula package in the openSUSE Build Service
> for openSUSE I am now trying to improve the package a bit and make things a
> bit more user friendly. Also I'd eventually create a mostly pre-configured
> image, but one thing at a time.
>
> That's really good news. Regarding the pre-configured image we provide a
ttylinux [1] which we use mainly for testing the environment, although if
you're looking for a proper and usable image I'd be glad to help out to
build one.


> The setup-guide http://opennebula.org/documentation:rel2.2:plan advices to
> use /srv/cloud/one as the oneadmin users home directory. However, it appears
> that /srv/cloud/one (actually /var/lib/one for SUSE) contains (needs to
> contain) scripts that launch VMs on the cluster. This directory also gets
> exported to cluster nodes.
>
> I think these scripts should still owned by root, while the oneadmin users
> home directory should be owned by oneadmin. Thus IMHO this would set up a
> somewhat unconventional owner ship strcuture where scripts inside oneadmin's
> home directory are owned by root.
>

Well, actually /srv/cloud/one is our recommended path for ONE_LOCATION in
self-contained installation, and /var/lib/one for system-wide installations.
Since packages are always system-wide, ONE_LOCATION should in fact be
/var/lib/one (see bottom of this document [2]).

The scripts that manage the VMs are placed in /var/lib/one/remotes and they
should definetly belong to the oneadmin user, since oneadmin needs to be
able to modify them. These scripts are later sync'd over to all the hosts by
OpenNebula.

There is an exact copy (more accurately a backup) of those remote scripts in
/usr/lib/one/remotes, but those should belong to root. They just sit there
as a backup. If the oneadmin user accidentally loses or changes those remote
scripts he should be able to recover them quickly by copying them back to
/var/lib/one/remotes from /usr/lib/one/remotes.

>
> I guess there are two approaches, 1.) separate the oneadmin's home
> directory from the directory that contains the scripts (any harm in that?)
> or 2.) let oneadmin own the scripts (any harm in that?)
>
>
So answering your question, definitely option 2: oneadmin should own
everything placed under /var/lib/one.

Hope this helps, and please let us know if you need more help with the
openSUSE package.

[1] http://dev.opennebula.org/attachments/download/355/ttylinux.tar.gz
[2] http://opennebula.org/documentation:rel2.2:ignc

cheers,
Jaime

-- 
Jaime Melis, Cloud Technology Engineer/Researcher
Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org | jme...@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 Prakhar Srivastava
Hi Carlos,
Thanks a ton for all this information.
>From the onevm saveas code, I have identified that a new image has to be
allocated before it can be used to save a running VMs disk image. So I need
to create a new virtual image before I can call the savedisk method on the
VM by using the new image id.

Thanks,
Prakhar

2011/4/28 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 <
> prakhar@gmail.com> 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".

[one-users] No more than 144 vm instances?

2011-04-28 Thread Lars Kellogg-Stedman
I have a cluster of three machines, each with 256GB of RAM and 48
cores.  I deployed 200 VM instances using occi-compute, and all 200
intances show up in "onevm list".  However, OpenNebula does not appear
to be willing to actual boot more than 144 of these instances at a
time.  After there were 144 running instances, no more were started;
when I killed one of the running instances, a new one started.  I am
creating these instances as myself, rather than as the "oneadmin"
user.

I thought that perhaps some sort of quota mechanism was kicking in,
but I can't see anywhere that such a limit is defined.
/etc/one/auth/auth.conf looks like this:

:database: sqlite://auth.db
:authentication: simple
:quota:
  :enabled: false
  :defaults:
:cpu: 10.0
:memory: 1048576
:num_vms:

And I've never used the "oneauth quota ..." command.

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


Re: [one-users] Ranged network!

2011-04-28 Thread Ruben S. Montero
Hi,

Please also note that is very common to put the gateway in a VM also as part
of the network. You can request an specific IP for the gateway VM in the
template (NIC=[ NETWORK_ID = 3, IP = 192.168.0.1])

Probably, we should make more clear the documentation to remark that you are
defining the range using a network address and not a starting host ip
address. The rationale behind this is that in this way you can easily setup
the network address and mask for the VMs.

To improve this, we can extend the parameters to define the ranged network,
e.g. with the starting ip address parameter. Or alternatively, define a
fixed net using single leases and/or continuous ranges of leases. Which one
is better?

BTW, if the MAC is not specified OpenNebula generates one for you using the
prefix in oned.conf and the 32 bits of the IP address (as shown in you shell
script).

Cheers

Ruben

On Thu, Apr 28, 2011 at 7:49 PM, Lars Kellogg-Stedman  wrote:

> > we have setup up a ranged virtual network for our ONE-2.2 VMs but the
> gateway
> > IP address keeps being assigned to VMs.
>
> Ahmad,
>
> I just asked a very similar question on the list.  I agree that the
> existing documentation isn't particularly clear.
>
> The only response I received was a suggestion to use FIXED networks
> rather than RANGED networks, and then to programmatically generate the
> list of leases.  So our network configuration looks like this:
>
>  BRIDGE=br619
>  NAME=Cloud Private
>  TYPE=FIXED
>
> Followed by the output of the following shell script:
>
>  for (( ip=20; ip<255; ip++ )); do
>printf "LEASES  = [IP=10.243.19.%d,
> MAC=5E:A5:%02X:%02X:%02X:%02X]\n" $ip 10 243 19 $ip
>  done
>
> This generates output that looks like this:
>
>  LEASES  = [IP=10.243.19.20, MAC=5E:A5:0A:F3:13:14]
>  LEASES  = [IP=10.243.19.21, MAC=5E:A5:0A:F3:13:15]
>  [...]
>  LEASES  = [IP=10.243.19.254, MAC=5E:A5:0A:F3:13:FE]
>
> In this case, we're using the "MAC prefix" model, so we're able to
> pre-generate this list.  This has solved the problem of OpenNebula
> handing out the router address to virtual machines, at the cost of a
> small amount of complexity.
>
> --
> 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
>



-- 
Dr. Ruben Santiago Montero
Associate Professor (Profesor Titular), Complutense University of Madrid

URL: http://dsa-research.org/doku.php?id=people:ruben
Weblog: http://blog.dsa-research.org/?author=7
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] trying to troubleshoot onevm shutdown/stop/restart

2011-04-28 Thread John Nyhuis
Thank you for looking over my problem!

> Could you tell us what was the action that was being performed to the
> VM when it failed? To me it looks like stop but I am not sure about
> it.

onevm stop 

> It would be also helpful to take a peek into $ONE_LOCATION/var/config

DB=BACKEND=mysql,DB_NAME=x,PASSWD=x,SERVER=localhost,USER=oneadmin
DEBUG_LEVEL=3
DEFAULT_DEVICE_PREFIX=hd
DEFAULT_IMAGE_TYPE=OS
HM_MAD=EXECUTABLE=one_hm
HOST_MONITORING_INTERVAL=60
IMAGE_REPOSITORY_PATH=/srv/vm/images
IM_MAD=ARGUMENTS=kvm,EXECUTABLE=one_im_ssh,NAME=im_kvm
MAC_PREFIX=02:00
MANAGER_TIMER=15
NETWORK_SIZE=254
PORT=2633
SCRIPTS_REMOTE_DIR=/var/tmp/one
TM_MAD=ARGUMENTS=tm_nfs/tm_nfs.conf,EXECUTABLE=one_tm,NAME=tm_nfs
TM_MAD=ARGUMENTS=tm_flexclone-kvm/tm_flexclone-kvm.conf,EXECUTABLE=one_tm,NAME=tm_flexclone-kvm
VM_DIR=/srv/vm
VM_HOOK=ARGUMENTS=$VMID,COMMAND=image.rb,NAME=image,ON=DONE
VM_MAD=ARGUMENTS=kvm,DEFAULT=vmm_ssh/vmm_ssh_kvm.conf,EXECUTABLE=one_vmm_ssh,NAME=vmm_kvm,TYPE=kvm
VM_POLLING_INTERVAL=60
VNC_BASE_PORT=5900

>Also the VM directory in the frontend for self contained installation
>is always $ONE_LOCATION/var, if you want to have the images for
>running VMs stored in another place you can symlink that dir (var) to
>the desired directory.

As you can see, VM_DIR is set to a location outside $ONE_LOCATION

   Thanks,

John Nyhuis, 
jnyh...@rim.com
Infrastructure Engineering Specialist
Desk: (813)-60556
External: (425)-208-0556
Desk #2073


-Original Message-
From: Javier Fontan [mailto:jfon...@gmail.com] 
Sent: Friday, April 15, 2011 2:08 AM
To: John Nyhuis
Cc: users@lists.opennebula.org
Subject: Re: [one-users] trying to troubleshoot onevm shutdown/stop/restart

Could you tell us what was the action that was being performed to the
VM when it failed? To me it looks like stop but I am not sure about
it.

It would be also helpful to take a peek into $ONE_LOCATION/var/config
(delete any password it may contain before sending it).

Also the VM directory in the frontend for self contained installation
is always $ONE_LOCATION/var, if you want to have the images for
running VMs stored in another place you can symlink that dir (var) to
the desired directory.

On Thu, Apr 14, 2011 at 11:28 PM, John Nyhuis  wrote:
>        Greetings,
>
>        I am trying to troubleshoot our OpenNebula 2.0 installation (w/ kvm) 
> and would appreciate some help.
> When we run onevm shutdown  or onevm stop , the VM fails to stop 
> and enters the 'fail' state.  Once in this state, it can not be restarted 
> using onevm restart or repaired in any way.  We have been deleting the vm and 
> creating it again, which is time consuming and wasteful.   (We are using the 
> $one_location=/srv/vm/ self contained option).
>
>
>        Examination of the vm.log of a failed vm reveals:
> Mon Apr 11 18:46:21 2011 [TM][I]: ERROR MESSAGE --8<--
> Mon Apr 11 18:46:21 2011 [TM][I]: mv: cannot stat 
> `/srv/cloud/var/600/images': No such file or directory
> Mon Apr 11 18:46:21 2011 [TM][I]: ERROR MESSAGE -->8--
> Mon Apr 11 18:46:21 2011 [TM][I]: ExitCode: 1
> Mon Apr 11 18:46:21 2011 [TM][I]: tm_mv.sh: Moving /srv/cloud/var/600/images
> Mon Apr 11 18:46:21 2011 [TM][I]: tm_mv.sh: ERROR: Command "mv 
> /srv/cloud/var/600/images /srv/vm/600/images" failed.
> Mon Apr 11 18:46:21 2011 [TM][I]: tm_mv.sh: ERROR: mv: cannot stat 
> `/srv/cloud/var/600/images': No such file or directory
> Mon Apr 11 18:46:21 2011 [TM][E]: Error excuting image transfer script: mv: 
> cannot stat `/srv/cloud/var/600/images': No such file or directory
> Mon Apr 11 18:46:21 2011 [DiM][I]: New VM state is FAILED
>
> For some reason, onevm thinks the images are located at 
> /srv/cloud/var/600/images.  The images are located in /srv/vm//images/.  
> The create and delete options for onevm know how to find them there, but for 
> some reason, the stop and shutdown options keep looking in the wrong place.
>
> I could manually create a link to the images directory to solve this, but 
> with over 600 vm's, that's a bit painful, and we would have to remember to 
> re-create the link with every new vm.
>
> Does anyone know where this location is set for onevm stop and onevm 
> shutdown, as it is not in oned.conf or the env?
> The tm_mv.sh script is accepting the source and destination locations via 
> stdin, but I don't know what is calling the tm_mv.sh script.
>
>
>           Thanks,
>
> John Nyhuis,
> jnyh...@rim.com
> Infrastructure Engineering Specialist
> Desk: (813)-60556
> External: (425)-208-0556
> Desk #2073
>
>
>
> -
> This transmission (including any attachments) may contain confidential 
> information, privileged material (including material protected by the 
> solicitor-client or other applicable privileges), or constitute non-public 
> information. Any use of this information by anyone other than the intended 
> recipient is prohibited. If you have received this transmission i

Re: [one-users] No more than 144 vm instances?

2011-04-28 Thread Neumann, Steffen
Hi,

144 is exactly the number of cores on your physical nodes.
The scheduler uses the available CPUs (cf. onehost list)
and whatever CPU resources are defined in your template.

You could reduce CPU to X<1 to allow overcomitting
of physical CPUs.

Yours,
Steffen

From: users-boun...@lists.opennebula.org [users-boun...@lists.opennebula.org] 
on behalf of Lars Kellogg-Stedman [l...@seas.harvard.edu]
Sent: 28 April 2011 23:24
To: users@lists.opennebula.org
Subject: [one-users] No more than 144 vm instances?

I have a cluster of three machines, each with 256GB of RAM and 48
cores.  I deployed 200 VM instances using occi-compute, and all 200
intances show up in "onevm list".  However, OpenNebula does not appear
to be willing to actual boot more than 144 of these instances at a
time.  After there were 144 running instances, no more were started;
when I killed one of the running instances, a new one started.  I am
creating these instances as myself, rather than as the "oneadmin"
user.

I thought that perhaps some sort of quota mechanism was kicking in,
but I can't see anywhere that such a limit is defined.
/etc/one/auth/auth.conf looks like this:

:database: sqlite://auth.db
:authentication: simple
:quota:
  :enabled: false
  :defaults:
:cpu: 10.0
:memory: 1048576
:num_vms:

And I've never used the "oneauth quota ..." command.

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