Re: [one-users] sunstone configuration issues

2011-05-06 Thread Héctor Sanjuán
Hi,

> 1. The server is listening for localhost connections only. 
> Is there any way we can change it to listen for
> different address and on different port number?

As Peter pointed out:

"sunstone-server -H X.X.X.X -p  start" should work. It could be that
you were placing this parametres after "start", so they are not being
recognized.

> 
> 2. I configured sunstone-server with reverse proxy config with both - 
> apache-httpd and lighttpd. The proxy config works fine and I can view 
> existing resources details - VMs, hosts, vnets etc. However the 
> sunstone-server crashes after receiving any create request. The 
> sunstone-server PID file is not cleared but the server process quits 
> abruptly. I am not using ssl config here. Also, I am not seeing any related 
> log messages in the sunstone.log file. Is there any way I can increase the 
> debugging level? 

I believe sunstone server is not well prepared to work with a reverse
http proxy due to the use of absolute paths, so this could be the reason.

There is an issue tracking this and some patches available, including
for 2.2:

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

Can you try and see if the problem is solved then?

Hope it helps,

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


[one-users] problem with ebtables-xen OpenNebula

2011-05-06 Thread 高建平
Dear 
  
  I have some problem when I using ebtables to isolate vlans. My OpenNebula 
version is 1.4,and  i'm using Xen(3.0.3) and centos(5.4;nodes os). and I have 
done sone configuration according to Private Cloud Computing with OpenNebula 
1.4 document:
  1. install ebtables and configure sudoers on every nodes. 
  oneadmin ALL=(ALL) NOPASSWD: /usr/local/sbin/ebtables*
  2. modify my one configure, /opt/nebula/ONE/etc/oned.conf:
  VM_HOOK = [
name="ebtables-start",
on  ="running",
command ="/opt/nebula/ONE/share/hooks/ebtables-xen",
arguments   ="one-$VMID",
remote  ="yes" ]
 VM_HOOK = [
name="ebtables-flush",
on  ="done",
command ="/opt/nebula/ONE/share/hooks/ebtables-flush",
arguments   ="",
remote  ="yes" ]
but when VM is created the ebtables rules is empty,and the oned.log 
has this msg:
  Thu May  5 15:59:41 2011 [HKM][D]: Message received: LOG - 10 CQ_TEST## ssh 
node30 '/opt/nebula/ONE/share/hooks/ebtables-xen one-10' ; echo ExitCode: $? 
1>&2
 Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 Command 
execution fail: '/opt/nebula/ONE/share/hooks/ebtables-xen one-10'
 Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 STDERR follows.
 Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 sudo: xm: 
command not found
 Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 sudo: xm: 
command not found
 Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 
/opt/nebula/ONE/share/hooks/ebtables-xen:80: command not found: brctl show
 Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 
/opt/nebula/ONE/share/hooks/ebtables-xen:33:in `get_bridges': undefined method 
`each' for nil:NilClass (NoMethodError)
 Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 from 
/opt/nebula/ONE/share/hooks/ebtables-xen:47:in `get_interfaces'
 Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 from 
/opt/nebula/ONE/share/hooks/ebtables-xen:58
 Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 ExitCode: 1
 Thu May  5 15:59:42 2011 [HKM][D]: Message received: EXECUTE FAILURE 10 
ebtables-start
  
 can you help me to fix this problem, thanks for your time.Best Regardsgaojp___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Problems using OpenNebula EC2 interface

2011-05-06 Thread Daniel Molina
Hi Lars,

I think the best solution would be to change the econe client
implementation to use the sha1 password, therefore the EC2_SECRET_KEY
can be used in the same way for the three clients. The priority is CLI
> ENV > ONE_AUTH

I have opened a ticket regarding this issue to include it in the next version:
http://dev.opennebula.org/issues/618

Regards.

On 4 May 2011 20:15, Lars Kellogg-Stedman  wrote:
>> Ok, I think the problem was that the EC2_SECRET_KEY for euca tools is
>> the sha1 password and in the econe client is the plain password.
>
> Ah, that did it.
>
> The fact the econe-* expects different values from both EcuaTools and
> Elastic Fox is somewhat confusing.  Do you think it would make sense
> for  the econe-* tools prefer ONE_AUTH over the EC2 variables?  This
> way EC2_SECRET_KEY could be set for eucatools or Elastic Fox, while
> the econe-* tools could pull their config from wherever ONE_AUTH
> points.
>
> --
> Lars Kellogg-Stedman 
> Senior Technologist
> Harvard University SEAS
> Academic and Research Computing (ARC)
>



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


[one-users] OCCI version

2011-05-06 Thread Zeeshan Ali Shah
It seems that OCCI new spec has been released ..  the current Impl of OCCI
under ONE is according this spec or old one ?
http://occi-wg.org/about/specification/

-- 

-- 
Regards

Zeeshan Ali Shah
System Administrator
PDC-Center for High Performance Computing
CSC School of Computer Science and Communication
KTH-Royal Institute of Technology , Sweden
+46 8 790 9115
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] OCCI version

2011-05-06 Thread florian.feldhaus
Hello Zeeshan,

in OpenNebula currently only version 1.0 is supported, but we started
development for OCCI 1.1. An official announcement of the project as
OpenNebula Ecosystem project is planned for next week. We still need to
tidy up a bit and add some usage notes.

The Sourcecode can be found at:
http://dev.opennebula.org/projects/ogf-occi/repository

Until further notice, the sourcecode is still considered experimental!

Cheers,
Florian

Am 06.05.11 11:49 schrieb "Zeeshan Ali Shah" unter :

>It seems that OCCI new spec has been released ..  the current Impl of
>OCCI under ONE is according this spec or old one ?
>http://occi-wg.org/about/specification/
>
>-- 
>-- 
>Regards
>
>Zeeshan Ali Shah
>System Administrator
>PDC-Center for High Performance Computing
>CSC School of Computer Science and Communication
>KTH-Royal Institute of Technology , Sweden
>+46 8 790 9115
>___
>Users mailing list
>Users@lists.opennebula.org
>http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

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


Re: [one-users] OCCI version

2011-05-06 Thread Zeeshan Ali Shah
Just a small query, OCCI does provide COMPUTE element right ?  do you see
any use of wrapping OVF under OCCI ?

Zeeshan

On Fri, May 6, 2011 at 11:54 AM,  wrote:

> Hello Zeeshan,
>
> in OpenNebula currently only version 1.0 is supported, but we started
> development for OCCI 1.1. An official announcement of the project as
> OpenNebula Ecosystem project is planned for next week. We still need to
> tidy up a bit and add some usage notes.
>
> The Sourcecode can be found at:
> http://dev.opennebula.org/projects/ogf-occi/repository
>
> Until further notice, the sourcecode is still considered experimental!
>
> Cheers,
> Florian
>
> Am 06.05.11 11:49 schrieb "Zeeshan Ali Shah" unter :
>
> >It seems that OCCI new spec has been released ..  the current Impl of
> >OCCI under ONE is according this spec or old one ?
> >http://occi-wg.org/about/specification/
> >
> >--
> >--
> >Regards
> >
> >Zeeshan Ali Shah
> >System Administrator
> >PDC-Center for High Performance Computing
> >CSC School of Computer Science and Communication
> >KTH-Royal Institute of Technology , Sweden
> >+46 8 790 9115
> >___
> >Users mailing list
> >Users@lists.opennebula.org
> >http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>


-- 

-- 
Regards

Zeeshan Ali Shah
System Administrator
PDC-Center for High Performance Computing
CSC School of Computer Science and Communication
KTH-Royal Institute of Technology , Sweden
+46 8 790 9115
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Errors in tm_clone.sh for NFS hosts

2011-05-06 Thread Tino Vazquez
Hi Richard,

Did you set the VM_DIR variable?

Regards,

-Tino

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



On Tue, Apr 19, 2011 at 3:58 PM, Whiffen, Richard
 wrote:
>
> This is looking more and more like a bug or variable scope issue.
> I added the following to /usr/lib/one/tm_commands/nfs/tm_clone.sh:
> log "SRC Value: $SRC"
> log "DST value: $DST"
> (after the line "get_vmdir")
> The log entries now say:
> Tue Apr 19 09:39:30 2011 [TM][I]: tm_clone.sh: SRC Value:
> io-kvm-ctrl-01.streamsage.com:/home/oneadmin/one-templates/ttylinux.img
> Tue Apr 19 09:39:30 2011 [TM][I]: tm_clone.sh: DST value:
> sn-kvm-11:/srv/cloud/one/var/59/images/disk.0
> Tue Apr 19 09:39:30 2011 [TM][I]: tm_clone.sh:
> io-kvm-ctrl-01.streamsage.com:/home/oneadmin/one-templates/ttylinux.img
> sn-kvm-11:/srv/cloud/one/var/59/images/disk.0
> Tue Apr 19 09:39:30 2011 [TM][I]: tm_clone.sh: DST:
> /var/lib/one/59/images/disk.0
> Tue Apr 19 09:39:30 2011 [TM][I]: tm_clone.sh: Creating directory
> /var/lib/one/59/images
> Tue Apr 19 09:39:30 2011 [TM][I]: tm_clone.sh: Executed "mkdir -p
> /var/lib/one/59/images".
> Tue Apr 19 09:39:30 2011 [TM][I]: tm_clone.sh: Executed "chmod a+w
> /var/lib/one/59/images".
> Tue Apr 19 09:39:30 2011 [TM][I]: tm_clone.sh: Cloning
> /home/oneadmin/one-templates/ttylinux.img
> Tue Apr 19 09:39:30 2011 [TM][I]: tm_clone.sh: Executed "cp -r
> /home/oneadmin/one-templates/ttylinux.img /var/lib/one/59/images/disk.0".
> Tue Apr 19 09:39:30 2011 [TM][I]: tm_clone.sh: Executed "chmod a+rw
> /var/lib/one/59/images/disk.0".
>
> So DST has the correct value: /srv/cloud/one/var/59/image/disk.0. But two
> log lines later, DST is set to: /var/lib/one/59/images/disk.0
> Tue Apr 19 09:39:30 2011 [TM][I]: tm_clone.sh: DST:
> /var/lib/one/59/images/disk.0
> So somewhere in the sub-routine "fix_paths" we're picking up /var/lib
> instead of /srv/cloud/???
> For now I've commented out "fix_paths" in tm_clone.sh and fix_dst_path
> in /usr/lib/one/tm_commands/nfs/tm_context.sh and it's now creating virts on
> my NFS enabled hosts.
> Rich
>
>
> From: Rich Whiffen 
> Date: Mon, 18 Apr 2011 15:51:39 -0400
> To: 
> Subject: Errors in tm_clone.sh for NFS hosts
>
> I think this one is pretty straight forward, I just need someone to tell me
> where I set it.    When I try to create a virt on a tm_nfs target, the
> tm_clone is cloning into the wrong directory.
> It says its trying to do it right:
>  tm_clone.sh:
> io-kvm-ctrl-01.streamsage.com:/srv/cloud/var/images/83603da305e13410317b0c947f435a019644f46f
> sn-kvm-11:/srv/cloud/one/var/56/images/disk.0
> /srv/cloud/one/var/56/images is the correct target path, but the clone
> script  appears to be putting it in:  /var/lib/one/56/images/disk.0
> tm_clone.sh: DST: /var/lib/one/56/images/disk.0
> Where do I set the variable for the tm_nfs config to not use
> '${ONE_LOCATION}' for the destination but rather use the /srv/cloud/one/var/
> (/srv is the NFS mount common to both the oneadmin control box and the
> target host).
> The log file of a failure:
> Mon Apr 18 15:10:30 2011 [DiM][I]: New VM state is ACTIVE.
> Mon Apr 18 15:10:30 2011 [LCM][I]: New VM state is PROLOG.
> Mon Apr 18 15:11:53 2011 [TM][I]: tm_clone.sh:
> io-kvm-ctrl-01.streamsage.com:/srv/cloud/var/images/83603da305e13410317b0c947f435a019644f46f
> sn-kvm-11:/srv/cloud/one/var/56/images/disk.0
> Mon Apr 18 15:11:53 2011 [TM][I]: tm_clone.sh: DST:
> /var/lib/one/56/images/disk.0
> Mon Apr 18 15:11:53 2011 [TM][I]: tm_clone.sh: Creating directory
> /var/lib/one/56/images
> Mon Apr 18 15:11:53 2011 [TM][I]: tm_clone.sh: Executed "mkdir -p
> /var/lib/one/56/images".
> Mon Apr 18 15:11:53 2011 [TM][I]: tm_clone.sh: Executed "chmod a+w
> /var/lib/one/56/images".
> Mon Apr 18 15:11:53 2011 [TM][I]: tm_clone.sh: Cloning
> /srv/cloud/var/images/83603da305e13410317b0c947f435a019644f46f
> Mon Apr 18 15:11:53 2011 [TM][I]: tm_clone.sh: Executed "cp -r
> /srv/cloud/var/images/83603da305e13410317b0c947f435a019644f46f
> /var/lib/one/56/images/disk.0".
> Mon Apr 18 15:11:53 2011 [TM][I]: tm_clone.sh: Executed "chmod a+rw
> /var/lib/one/56/images/disk.0".
> Mon Apr 18 15:11:53 2011 [TM][I]: tm_context.sh: Executed "mkdir -p
> /var/lib/one/56/images/isofiles".
> Mon Apr 18 15:11:53 2011 [TM][I]: tm_context.sh: Executed "cp -R
> /var/lib/one/56/context.sh /var/lib/one/56/images/isofiles".
> Mon Apr 18 15:11:53 2011 [TM][I]: tm_context.sh: Executed "/usr/bin/mkisofs
> -o /var/lib/one/56/images/disk.1 -J -R /var/lib/one/56/images/isofiles".
> Mon Apr 18 15:11:53 2011 [TM][I]: tm_context.sh: Executed "rm -rf
> /var/lib/one/56/images/isofiles".
> Mon Apr 18 15:11:55 2011 [LCM][I]: New VM state is BOOT
> Mon Apr 18 15:11:55 2011 [VMM][I]: Generating deployment file:
> /var/lib/one/56/deployment.0
> Mon Apr 18 15:12:25 2011 [VMM][I]: Command execution fail: 'if [ -x
> "/var/tmp/one/vmm/kvm/deploy" ]; then /var/tmp/one/vmm/kvm/deploy
> /srv/cloud/one/var

Re: [one-users] Beginner questions: Opennebula 2.2.1

2011-05-06 Thread Tino Vazquez
Hi Peter,


On Wed, May 4, 2011 at 7:42 AM, Peter Farič  wrote:
> Hi,
>
>
> I'm mostly using the CLI, but through Sunstone I can explain it best.
>
> In Sunstone when you shutdown a VM, then the VM entry disappears. If I want
> to run the same VM later I have to go through the same process of creating
> the VM like the first time. In the CLI I understand I use the same VM
> template file to create the same VM again. Is this the way its supposed to
> work or will future versions have some sort of mechanism to deal with this
> use case (on the mailing list I read something about a VM template pool)?

Yes, upcoming ONE release will ship with a Template Pool, to be able
to instantiate VMs from predefined templates.

> From a users perspective there is no real difference betwen onevm delete and
> onevm shutdown - they both make a previously running VM inaccessible...
> Maybe a better question would be - how do you use Opennebula?

Delete a VM is like unplugging the power cord (the FS can break), adn
plus the image is not transfered back (even if the SAVE flag is
present). Shutdown represents a more clean approach, the VM is cleanly
shut down, and the image saved if marked so.

>
> What if I wanted to create new VMs on the fly if network traffic were to
> spike? As I understand it I would make hooks and if some monitored value
> exceeded the threshold it would run create on an VM template file. Is this
> correct?

For this use case, you will need an (easily to develop) new component,
a Service Manager, that will use values from ONE monitoring to decide
to launch or shutdown VMs.

>
>
> At our company we have 10 dedicated servers for virtualization which share a
> SAN. I plan on running 30 - 40 VMs. Mostly Linux.
>
> Is Opennebula a good fit for our scenario?

I would say it is ;)

>
>
>
> Thanks!


Regards,

-Tino

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


>
>
> Sincerely,
> Peter Farič
>
> Neumann, Steffen wrote:
>>
>> Hi,
>>
>> I think you understood things correctly,
>> in ONE you create and shutdown instances, and you get new VM IDs for every
>> cycle.
>>
>> So in our HPC setup, we get "fresh" virtual compute nodes with every onevm
>> create.
>> What exactly do you want ? Do you need the changes to be persistent ?
>>
>> yours,
>> Steffen
>> 
>> From: users-boun...@lists.opennebula.org
>> [users-boun...@lists.opennebula.org] on behalf of Peter Farič
>> [peter.fa...@ledinek.com]
>> Sent: 03 May 2011 12:57
>> To: users@lists.opennebula.org
>> Subject: [one-users] Beginner questions: Opennebula 2.2.1
>>
>> Hi!
>>
>>
>> I'm experimenting with opennebula 2.2.1 on Centos 5.5 i686. So far I am
>> pleased with the results. I got two KVM nodes and am running two VMs.
>>
>> Since I am a beginner I can't seem to wrap my head around the lifecycle
>> of VMs. I looked at the documentation and the shown lifecycle... When I
>> shutdown a VM instance it is not shown in "onevm list" anymore. I read
>> that this is normal. If I then want to start it again I have to run
>> "onevm create centos.one" which is ok, but how do I automate this
>> process so oned can start it on its own or am I missing something? I am
>> used to the way virt-manager does things as it leaves an entry for a VM
>> instance even if its shutdown and keeps the VM ID number... Any thoughts
>> on this?
>>
>> One other thing is when I have a VM running on a node and I run
>> "poweroff" in the VM instance, the VM shuts down and the nodes "virsh
>> list" shows the VM as not running anymore. On the "oned" server "onevm
>> list" still shows the VM instance as running. Shouldn't it recognize the
>> new state of the VM and report something?
>>
>>
>>  Thanks!
>>
>>
>> --
>>
>> LP,
>> ---
>> Peter Farič
>> Sistemski administrator
>> Tel.:  +386 2 613 00 79
>> Fax :  +386 2 613 00 60
>> Email: peter.fa...@ledinek.com
>> WWW:   http://www.ledinek.com
>> Ledinek Engineering d.o.o.
>> Bohovska cesta 19 A
>> SI-2311 HOČE
>> Slovenija
>> ---
>>
>> ___
>> Users mailing list
>> Users@lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>
> --
>
> LP,
> ---
> Peter Farič
> Sistemski administrator
> Tel.:  +386 2 613 00 79
> Fax :  +386 2 613 00 60
> Email: peter.fa...@ledinek.com
> WWW:   http://www.ledinek.com
> Ledinek Engineering d.o.o.
> Bohovska cesta 19 A
> SI-2311 HOČE
> Slovenija
> ---
>
> ___
> 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 with ebtables-xen OpenNebula

2011-05-06 Thread Jaime Melis
Hi,

change lines 54 and 55 of ebtables-xen script to reflect the full path of
the xm executable (typically /usr/sbin/xm).

I suggest you migrate to OpenNebula 2.2

cheers,
Jaime


2011/5/6 高建平 <13810416...@qq.com>

>  Dear
>
>  I have some problem when I using ebtables to isolate vlans. My
> OpenNebula version is 1.4,and  i'm using Xen(3.0.3) and centos(5.4;nodes
> os). and I have done sone configuration according to Private Cloud Computing
> with OpenNebula 1.4 document:
>  1. install ebtables and configure sudoers on every nodes.
>
> oneadmin ALL=(ALL) NOPASSWD: /usr/local/sbin/ebtables*
>
>  2. modify my one configure, /opt/nebula/ONE/etc/oned.conf:
>
> VM_HOOK = [
> name="ebtables-start",
> on  ="running",
> command ="/opt/nebula/ONE/share/hooks/ebtables-xen",
> arguments   ="one-$VMID",
> remote  ="yes" ]
> VM_HOOK = [
> name="ebtables-flush",
> on  ="done",
> command ="/opt/nebula/ONE/share/hooks/ebtables-flush",
> arguments   ="",
> remote  ="yes" ]
>
>but when VM is created the ebtables rules is empty,and the
> oned.log has this msg:
>
> Thu May  5 15:59:41 2011 [HKM][D]: Message received: LOG - 10 CQ_TEST## ssh
> node30 '/opt/nebula/ONE/share/hooks/ebtables-xen one-10' ; echo ExitCode: $?
> 1>&2
> Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 Command
> execution fail: '/opt/nebula/ONE/share/hooks/ebtables-xen one-10'
> Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 STDERR
> follows.
> Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 sudo: xm:
> command not found
> Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 sudo: xm:
> command not found
> Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10
> /opt/nebula/ONE/share/hooks/ebtables-xen:80: command not found: brctl show
> Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10
> /opt/nebula/ONE/share/hooks/ebtables-xen:33:in `get_bridges': undefined
> method `each' for nil:NilClass (NoMethodError)
> Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 from
> /opt/nebula/ONE/share/hooks/ebtables-xen:47:in `get_interfaces'
> Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 from
> /opt/nebula/ONE/share/hooks/ebtables-xen:58
> Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 ExitCode: 1
> Thu May  5 15:59:42 2011 [HKM][D]: Message received: EXECUTE FAILURE 10
> ebtables-start
>
>
> can you help me to fix this problem, thanks for your time.
>
> Best Regards
>
> gaojp
>
>
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>


-- 
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] problem with ebtables-xen OpenNebula

2011-05-06 Thread Jaime Melis
Hi,

change lines 54 and 55 of ebtables-xen script to reflect the full path of
the xm binary (typically /usr/sbin/xm).

I suggest you migrate to OpenNebula 2.2

regards,
Jaime

2011/5/6 高建平 <13810416...@qq.com>

>  Dear
>
>  I have some problem when I using ebtables to isolate vlans. My
> OpenNebula version is 1.4,and  i'm using Xen(3.0.3) and centos(5.4;nodes
> os). and I have done sone configuration according to Private Cloud Computing
> with OpenNebula 1.4 document:
>  1. install ebtables and configure sudoers on every nodes.
>
> oneadmin ALL=(ALL) NOPASSWD: /usr/local/sbin/ebtables*
>
>  2. modify my one configure, /opt/nebula/ONE/etc/oned.conf:
>
> VM_HOOK = [
> name="ebtables-start",
> on  ="running",
> command ="/opt/nebula/ONE/share/hooks/ebtables-xen",
> arguments   ="one-$VMID",
> remote  ="yes" ]
> VM_HOOK = [
> name="ebtables-flush",
> on  ="done",
> command ="/opt/nebula/ONE/share/hooks/ebtables-flush",
> arguments   ="",
> remote  ="yes" ]
>
>but when VM is created the ebtables rules is empty,and the
> oned.log has this msg:
>
> Thu May  5 15:59:41 2011 [HKM][D]: Message received: LOG - 10 CQ_TEST## ssh
> node30 '/opt/nebula/ONE/share/hooks/ebtables-xen one-10' ; echo ExitCode: $?
> 1>&2
> Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 Command
> execution fail: '/opt/nebula/ONE/share/hooks/ebtables-xen one-10'
> Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 STDERR
> follows.
> Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 sudo: xm:
> command not found
> Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 sudo: xm:
> command not found
> Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10
> /opt/nebula/ONE/share/hooks/ebtables-xen:80: command not found: brctl show
> Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10
> /opt/nebula/ONE/share/hooks/ebtables-xen:33:in `get_bridges': undefined
> method `each' for nil:NilClass (NoMethodError)
> Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 from
> /opt/nebula/ONE/share/hooks/ebtables-xen:47:in `get_interfaces'
> Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 from
> /opt/nebula/ONE/share/hooks/ebtables-xen:58
> Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 ExitCode: 1
> Thu May  5 15:59:42 2011 [HKM][D]: Message received: EXECUTE FAILURE 10
> ebtables-start
>
>
> can you help me to fix this problem, thanks for your time.
>
> Best Regards
>
> gaojp
>
>
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>


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


[one-users] opennebula.org is down

2011-05-06 Thread Jaime Melis
Hi,

opennebula.org is down because of an outage in Linod, our host provider. See
this [1] link for more info on the outage:

[1] http://status.linode.com/2011/05/outage-in-fremont-facility.html

Regards,
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] Beginner questions: Opennebula 2.2.1

2011-05-06 Thread Steffen Neumann
Hi, 

one add-on question:

On Fri, 2011-05-06 at 12:15 +0200, Tino Vazquez wrote:
...
> Shutdown represents a more clean approach, the VM is cleanly
> shut down, and the image saved if marked so.

Is that atomic ? Or under file locking control ?

If I have some place, say /srv/could/goldenimage/ubuntu.img
where my disk image file is stored, does shutdown then overwrite
the existing ubuntu.img, and what happens if during the XX seconds
of writing back a new VM is created from ubuntu.img ? 
Unless "save" is atomic, the new VM will fail on a half-written 
mix of old and new. Or did I miss anything ?
What happens if three VMs created off ubuntu.img shutdown 
simultanously ? Will each write its changes back 
into that single ubuntu.img ?

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] Command execution fail: 'if [ -x "" ]; then Creating; else exit 42; fi'

2011-05-06 Thread Tino Vazquez
Hi,

The cancel script expects the deploy_id (which is not the vm_id, but
rather the identifier of the VM in the hypervisor). Please check you
deploy script, it should return the deploy_id and now it is probably
returning "Creating". You can check this deploy_id in the VM template
as well.

Regards,

-Tino

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



On Thu, May 5, 2011 at 5:55 PM,   wrote:
> '$SOME_PATH_TO_REMOTE_SCRIPTS/vmm/ovz/cancel ' but as one can see from
> vm.log these command is '/tmp/one//vmm/ovz/cancel Creating' (Creating
> instead of VMID).
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] 回复: problem with ebtables-xen OpenNebula

2011-05-06 Thread 高建平
Hi,
 thanks for you repply ,
 I have changed those commnd to full path in the ebtables-xen script , but 
it did not work. the following is my script :
  
   
#!/usr/bin/env ruby
 
 
 
# -- #
 
# Copyright 2002-2009, Distributed Systems Architecture Group, Universidad   #
 
# Complutense de Madrid (dsa-research.org)   #
 
##
 
# Licensed under the Apache License, Version 2.0 (the "License"); you may#
 
# not use this file except in compliance with the License. You may obtain#
 
# a copy of the License at   #
 
##
 
# http://www.apache.org/licenses/LICENSE-2.0 #
 
##
 
# Unless required by applicable law or agreed to in writing, software#
 
# distributed under the License is distributed on an "AS IS" BASIS,  #
 
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #
 
# See the License for the specific language governing permissions and#
 
# limitations under the License. #
 
#--- #
 
 
 
VM_NAME=ARGV[0]
 
 
 
# Uncomment to act only on the listed bridges.
 
#FILTERED_BRIDGES = ['beth0']
 
 
 
def activate(rule)
 
system "sudo /usr/local/sbin/ebtables -A #{rule}"
 
end
 
 
 
def get_bridges
 
bridges = Hash.new
 
brctl_exit=`/usr/sbin/brctl show`
 
cur_bridge = ""
 
brctl_exit.split("\n")[1..-1].each do |l| 
 
l = l.split
 
if l.length > 1
 
cur_bridge = l[0]
 
bridges[cur_bridge] = Array.new
 
bridges[cur_bridge] << l[3]
 
else
 
bridges[cur_bridge] << l[0]
 
end
 
end
 
bridges
 
end
 
 
 
def get_interfaces
 
bridges = get_bridges
 
if defined? FILTERED_BRIDGES
 
FILTERED_BRIDGES.collect {|k,v| bridges[k]}.flatten
 
else
 
bridges.values.flatten
 
end
 
end
 
 
 
vm_id=`sudo /usr/sbin/xm domid #{VM_NAME}`.strip
 
networks=`sudo /usr/sbin/xm network-list #{vm_id}`.split("\n")[1..-1]
 
 
 
interfaces = get_interfaces
 
 
 
networks.each {|net|
 
n=net.split
 
iface_id=n[0]
 
iface_mac=n[2]
 
 
 
tap="vif#{vm_id}.#{iface_id}"
 
 
 
if interfaces.include? tap
 
mac=iface_mac.split(':')
 
mac[-1]='00'
 
net_mac=mac.join(':')
 
 
 
 
 
in_rule="FORWARD -s ! #{net_mac}/ff:ff:ff:ff:ff:00 -o #{tap} -j DROP"
 
out_rule="FORWARD -s ! #{iface_mac} -i #{tap} -j DROP"
 
 
 
activate(in_rule)
 
activate(out_rule)
 
end
 
}


  
  -- 原始邮件 --
  发件人: "Jaime Melis";
 发送时间: 2011年5月6日(星期五) 晚上6:24
 收件人: "高建平"<13810416...@qq.com>; 
 抄送: "users"; 
 主题: Re: [one-users] problem with ebtables-xen OpenNebula

  
Hi, 

 change lines 54 and 55 of ebtables-xen script to reflect the full path of the 
xm binary (typically /usr/sbin/xm).
 

 I suggest you migrate to OpenNebula 2.2
 

 regards,
 Jaime

 2011/5/6 高建平 <13810416...@qq.com>
Dear 
  
  I have some problem when I using ebtables to isolate vlans. My OpenNebula 
version is 1.4,and  i'm using Xen(3.0.3) and centos(5.4;nodes os). and I have 
done sone configuration according to Private Cloud Computing with OpenNebula 
1.4 document:
  1. install ebtables and configure sudoers on every nodes. 
  oneadmin ALL=(ALL) NOPASSWD: /usr/local/sbin/ebtables*
  2. modify my one configure, /opt/nebula/ONE/etc/oned.conf:
  VM_HOOK = [
name="ebtables-start",
on  ="running",
command ="/opt/nebula/ONE/share/hooks/ebtables-xen",
arguments   ="one-$VMID",
remote  ="yes" ]
 VM_HOOK = [
name="ebtables-flush",
on  ="done",
command ="/opt/nebula/ONE/share/hooks/ebtables-flush",
arguments   ="",
remote  ="yes" ]
but when VM is created the ebtables rules is empty,and the oned.log 
has this msg:
  Thu May  5 15:59:41 2011 [HKM][D]: Message received: LOG - 10 CQ_TEST## ssh 
node30 '/opt/nebula/ONE/share/hooks/ebtables-xen one-10' ; echo ExitCode: $? 
1>&2
 Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 Command 
execution fail: '/opt/nebula/ONE/share/hooks/ebtables-xen one-10'
 Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 STDERR follows.
 Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 sudo: xm: 
command not found
 Thu May  5 15:59:42 2011 [HKM][D]: Message received: LOG - 10 sudo: xm: 
command not found
 Thu May  5 15:59:42 2011 [HKM][D]: M

Re: [one-users] Beginner questions: Opennebula 2.2.1

2011-05-06 Thread Tino Vazquez
Hi,

It is not atomic, and in fact is asynchronous. There are various save
and save_as choices (take a look in the documentation). If you are
using NFS with a persistant image, you can bump into this sort of
situations, so special care must be taken with this kind of VMs.

Regards,

-Tino

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



On Fri, May 6, 2011 at 12:50 PM, Steffen Neumann  wrote:
> Hi,
>
> one add-on question:
>
> On Fri, 2011-05-06 at 12:15 +0200, Tino Vazquez wrote:
> ...
>> Shutdown represents a more clean approach, the VM is cleanly
>> shut down, and the image saved if marked so.
>
> Is that atomic ? Or under file locking control ?
>
> If I have some place, say /srv/could/goldenimage/ubuntu.img
> where my disk image file is stored, does shutdown then overwrite
> the existing ubuntu.img, and what happens if during the XX seconds
> of writing back a new VM is created from ubuntu.img ?
> Unless "save" is atomic, the new VM will fail on a half-written
> mix of old and new. Or did I miss anything ?
> What happens if three VMs created off ubuntu.img shutdown
> simultanously ? Will each write its changes back
> into that single ubuntu.img ?
>
> Yours,
> Steffen
>
> --
> IPB Halle                    AG 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] OCCI version

2011-05-06 Thread florian.feldhaus
Hi Zeeshan,

work is already in progress regarding OVF and OCCI. For more information
ask on the OCCI WG Mailinglist.

Cheers,
Florian

Am 06.05.11 11:57 schrieb "Zeeshan Ali Shah" unter :

>Just a small query, OCCI does provide COMPUTE element right ?  do you see
>any use of wrapping OVF under OCCI ?
>Zeeshan
>
>On Fri, May 6, 2011 at 11:54 AM,   wrote:
>
>Hello Zeeshan,
>
>in OpenNebula currently only version 1.0 is supported, but we started
>development for OCCI 1.1. An official announcement of the project as
>OpenNebula Ecosystem project is planned for next week. We still need to
>tidy up a bit and add some usage notes.
>
>The Sourcecode can be found at:
>http://dev.opennebula.org/projects/ogf-occi/repository
>
>Until further notice, the sourcecode is still considered experimental!
>
>Cheers,
>Florian
>
>Am 06.05.11 11:49 schrieb "Zeeshan Ali Shah" unter :
>
>>It seems that OCCI new spec has been released ..  the current Impl of
>>OCCI under ONE is according this spec or old one ?
>>http://occi-wg.org/about/specification/
>>
>>--
>>--
>>Regards
>>
>>Zeeshan Ali Shah
>>System Administrator
>>PDC-Center for High Performance Computing
>>CSC School of Computer Science and Communication
>>KTH-Royal Institute of Technology , Sweden
>>+46 8 790 9115 
>
>
>>___
>>Users mailing list
>>Users@lists.opennebula.org
>>http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
>
>
>
>
>
>-- 
>-- 
>Regards
>
>Zeeshan Ali Shah
>System Administrator
>PDC-Center for High Performance Computing
>CSC School of Computer Science and Communication
>KTH-Royal Institute of Technology , Sweden
>+46 8 790 9115
>

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


Re: [one-users] OCCI version

2011-05-06 Thread Zeeshan Ali Shah
Actually i am writing for venus_c a connecter/wrapper of OCCI-OVF  using
Plain OCCI of Opennebula ..

Zeeshan

On Fri, May 6, 2011 at 12:56 PM,  wrote:

> Hi Zeeshan,
>
> work is already in progress regarding OVF and OCCI. For more information
> ask on the OCCI WG Mailinglist.
>
> Cheers,
> Florian
>
> Am 06.05.11 11:57 schrieb "Zeeshan Ali Shah" unter :
>
> >Just a small query, OCCI does provide COMPUTE element right ?  do you see
> >any use of wrapping OVF under OCCI ?
> >Zeeshan
> >
> >On Fri, May 6, 2011 at 11:54 AM,  
> wrote:
> >
> >Hello Zeeshan,
> >
> >in OpenNebula currently only version 1.0 is supported, but we started
> >development for OCCI 1.1. An official announcement of the project as
> >OpenNebula Ecosystem project is planned for next week. We still need to
> >tidy up a bit and add some usage notes.
> >
> >The Sourcecode can be found at:
> >http://dev.opennebula.org/projects/ogf-occi/repository
> >
> >Until further notice, the sourcecode is still considered experimental!
> >
> >Cheers,
> >Florian
> >
> >Am 06.05.11 11:49 schrieb "Zeeshan Ali Shah" unter :
> >
> >>It seems that OCCI new spec has been released ..  the current Impl of
> >>OCCI under ONE is according this spec or old one ?
> >>http://occi-wg.org/about/specification/
> >>
> >>--
> >>--
> >>Regards
> >>
> >>Zeeshan Ali Shah
> >>System Administrator
> >>PDC-Center for High Performance Computing
> >>CSC School of Computer Science and Communication
> >>KTH-Royal Institute of Technology , Sweden
> >>+46 8 790 9115 
> >
> >
> >>___
> >>Users mailing list
> >>Users@lists.opennebula.org
> >>http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> >
> >
> >
> >
> >
> >
> >
> >--
> >--
> >Regards
> >
> >Zeeshan Ali Shah
> >System Administrator
> >PDC-Center for High Performance Computing
> >CSC School of Computer Science and Communication
> >KTH-Royal Institute of Technology , Sweden
> >+46 8 790 9115
> >
>
>


-- 

-- 
Regards

Zeeshan Ali Shah
System Administrator
PDC-Center for High Performance Computing
CSC School of Computer Science and Communication
KTH-Royal Institute of Technology , Sweden
+46 8 790 9115
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Command execution fail: 'if [ -x "" ]; then Creating; else exit 42; fi'

2011-05-06 Thread knawnd

Indeed the problem was in wrong returning value of deploy script. Fixed now.
Thanks a lot, Tino!

Tino Vazquez wrote on 06/05/11 14:49:

Hi,

The cancel script expects the deploy_id (which is not the vm_id, but
rather the identifier of the VM in the hypervisor). Please check you
deploy script, it should return the deploy_id and now it is probably
returning "Creating". You can check this deploy_id in the VM template
as well.

Regards,

-Tino

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



On Thu, May 5, 2011 at 5:55 PM,  wrote:

'$SOME_PATH_TO_REMOTE_SCRIPTS/vmm/ovz/cancel' but as one can see from
vm.log these command is '/tmp/one//vmm/ovz/cancel Creating' (Creating
instead of VMID).

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


Re: [one-users] OCCI version

2011-05-06 Thread Gian Uberto Lauri
> "ZAS" == Zeeshan Ali Shah  writes:

ZAS> Actually i am writing for venus_c a connecter/wrapper of OCCI-OVF
ZAS> using Plain OCCI of Opennebula ..

Was not it OCA that to use in OpenNebula ? Wrapper for wrapper OCA allows
a closer translation ...

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


Re: [one-users] Unable to Stop Running VM

2011-05-06 Thread Koushik Annapureddy
Hello All,

I found that issue for "stop" command is that  chown command in NFS is not
working . Node is not able to perform chown operation on checkpoint file i.e
(for example) /srv/cloud/one/var//12/images/checkpoint.  Here is the
detailed information about my NFS setup configuration details and issue I am
facing.

It would be great if anyone can help me in solving this issue

I have create a NFS server (IP: 192.168.2.3) with following export
configuration at /etc/exports:

Code:

/srv/cloud 192.168.2.4(rw,async,no_subtree_check,no_root_squash)

>From machine 192.168.2.4 I have following configuration in /etc/fstab:

Code:

192.168.2.3:/srv/cloud  /srv/cloud  nfs rw,hard,intr0   0

Now from machine 192.168.2.4 with root user, I create a file
"/srv/cloud/xyz" and then change the ownership of the file to user
"oneadmin". I have following commands and the error in the output:

Code:

#touch /srv/cloud/xyz
#chown oneadmin:oneadmin /srv/cloud/xyz
chown: changing ownership of `xyz': Invalid argument

I have user "oneadmin" at both server and the client machine with same user
and group id:

At client:
Code:

#id oneadmin
uid=9000(oneadmin) gid=9000(oneadmin) groups=9000(oneadmin),110(libvirtd)

At server:
Code:

#id oneadmin
uid=9000(oneadmin) gid=9000(oneadmin) groups=9000(oneadmin)

What could be the problem in changing the ownership of the file from the
root user at nfs client machine when "no_root_squash" has been specified?

Thanks
Koushik



On Thu, May 5, 2011 at 4:14 PM, Koushik Annapureddy
wrote:

> Hello Tino,
>
> While using virsh save command I did not get any error message.
>
>
> On Thu, May 5, 2011 at 2:19 PM, Koushik Annapureddy  > wrote:
>
>> Hello Tino,
>>
>> I am able to successfully save( using virsh) running ttylinux VM and
>> Ubuntu VM  to a file and restore it.
>>
>> Thanks
>> Koushik
>>
>> On Thu, May 5, 2011 at 12:49 PM, Tino Vazquez wrote:
>>
>>> Hi,
>>>
>>> Do you get the same behavior using "virsh save"?
>>>
>>> Regards,
>>>
>>> -Tino
>>>
>>> --
>>> Constantino Vázquez Blanco, MSc
>>> OpenNebula Major Contributor
>>> www.OpenNebula.org | @tinova79
>>>
>>>
>>>
>>> On Thu, May 5, 2011 at 10:13 AM, Koushik Annapureddy
>>>  wrote:
>>> > Hello Tino,
>>> > I have followed these steps as per the link mentioned
>>> > 1)  edit /etc/libvirt/qemu.conf, and uncomment the line that says
>>> > "dynamic_ownership = 1" and change the 1 to a 0
>>> > 2) Restart libvirtd
>>> >
>>> >
>>> >  I guess that all the disk image files are used by qemu are set to
>>> proper
>>> > ownership since qemu is sucessfull in launching the VM's.
>>> > After performing these steps I am still facing the same issue ( When i
>>> > issues onevm stop vmid ), Here is the log info
>>> > Thu May  5 11:02:53 2011 [VMM][D]: Message received: LOG - 46 ExitCode:
>>> 1
>>> > Thu May  5 11:02:53 2011 [VMM][D]: Message received: SAVE FAILURE 46
>>> error:
>>> > Failed to save domain one-46 to
>>> /srv/cloud/one/var//46/images/checkpoint
>>> > Thu May  5 11:02:53 2011 [VMM][D]: Message received: error: unable to
>>> set
>>> > user and group to '0:0' on '/srv/cloud/one/var//46/images/checkpoint':
>>> > Invalid argument
>>> > Thu May  5 11:02:53 2011 [VMM][D]: Message received: ExitCode: 1
>>> > Thu May  5 11:02:54 2011 [VMM][D]: Message received: POLL SUCCESS 46
>>> STATE=a
>>> > USEDMEMORY=131072
>>> > Thank you for the help..
>>> > Thanks
>>> > Koushik
>>> >
>>> >
>>> > On Wed, May 4, 2011 at 4:24 PM, Tino Vazquez 
>>> wrote:
>>> >>
>>> >> Hi,
>>> >>
>>> >> Yes, this is a permissions issue. Please see if this [1] provides any
>>> >> hints to solve the issue.
>>> >>
>>> >> Regards,
>>> >>
>>> >> -Tino
>>> >>
>>> >> [1] http://osdir.com/ml/libvir-list/2011-04/msg01220.html
>>> >> --
>>> >> Constantino Vázquez Blanco, MSc
>>> >> OpenNebula Major Contributor
>>> >> www.OpenNebula.org | @tinova79
>>> >>
>>> >>
>>> >>
>>> >> On Wed, May 4, 2011 at 2:31 PM, Koushik Annapureddy
>>> >>  wrote:
>>> >> > unable to set user and group to '0:0' o
>>> >
>>> >
>>> >
>>> > --
>>> > Thanks
>>> > Koushik Annapureddy
>>> >
>>>
>>
>>
>>
>> --
>> Thanks
>> Koushik Annapureddy
>>
>
>
>
> --
> Thanks
> Koushik Annapureddy
>



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


Re: [one-users] Unable to Stop Running VM

2011-05-06 Thread Tino Vazquez
Hi,

This may be of use: http://ubuntuforums.org/archive/index.php/t-1598588.html

Regards,

-Tino

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



On Fri, May 6, 2011 at 3:19 PM, Koushik Annapureddy
 wrote:
> changing ownership of `xyz': Invalid argument
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] onevmware register error

2011-05-06 Thread Tino Vazquez
Hi Antoni,

Not sure if VMware server disks are a little bit different. If the
following works:

onevmware register --disk-vmdk
/srv/cloud/one/var/vmUbuntu2/vmUbuntu-copy.vmdk --disk-flat /etc/hosts
vmUbuntu.one

and the VM boots properly from that image, then we'll make the flat
disk optional to support VMware server.

Thanks a lot for your feedback!!!

Regards,

-Tino

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



On Thu, May 5, 2011 at 3:37 PM, antoni artigues  wrote:
> Hi
>
> Thanks for the answer.
>
> One more question: In my new image the "vmUbuntu-copy.vmdk" contains the
> entire disc, I don't have any flat file.
>
> Do I have to split the image in flat files to register in opennebula??
> How can I do it?
>
> Thanks in advance
>
> Antoni Artigues
>
> El jue, 05-05-2011 a las 15:11 +0200, Tino Vazquez escribió:
>> Hi Antoni,
>>
>> Yes ,it is mandatory. The plain .vmdk file is a test descriptor file,
>> where the flat files are the binaries that actually contains the disk.
>>
>> Regards,
>>
>> -Tino
>>
>> --
>> Constantino Vázquez Blanco | dsa-research.org/tinova
>> Virtualization Technology Engineer / Researcher
>> OpenNebula Toolkit | opennebula.org
>>
>>
>>
>> On Thu, May 5, 2011 at 3:08 PM, antoni artigues  wrote:
>> > Hello
>> >
>> > I'm trying to register an vmware image with this command:
>> >
>> > onevmware register
>> > --disk-vmdk /srv/cloud/one/var/vmUbuntu2/vmUbuntu-copy.vmdk vmUbuntu.one
>> >
>> > But I obtan this error:
>> >
>> > Error: Files not found.
>> >
>> > However I'm sure that the paths and file names are correct. Where is the
>> > problem?
>> >
>> > I registered another image successfully with this comand:
>> >
>> > onevmware register--disk-vmdk /srv/cloud/one/var/ubuntu/ubuntu10_32.vmdk
>> > --disk-flat 
>> > /srv/cloud/one/var/ubuntu/ubuntu10_32_2.vmdk,/srv/cloud/one/var/ubuntu/ubuntu10_32_2-flat.vmdk
>> >  ubuntu_img.one
>> >
>> > Is it mandatory to register a image with flat files???
>> >
>> > Thanks in advance
>> >
>> > Antoni Artigues
>> >
>> > ___
>> > 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] Problems using OpenNebula EC2 interface

2011-05-06 Thread Lars Kellogg-Stedman
> I think the best solution would be to change the econe client
> implementation to use the sha1 password, therefore the EC2_SECRET_KEY
> can be used in the same way for the three clients. The priority is CLI
>> ENV > ONE_AUTH

Sounds good to me!

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


[one-users] Reminder: OpenNebula IRC Session

2011-05-06 Thread Daniel Molina
Hi all,

I would like to remember that the first OpenNebula IRC session will take
place next Monday.

Monday, 9 May 2011, 15:00 UTC 
 
For more information:
http://www.opennebula.org/community:events

Regards

-- 
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] Unable to Stop Running VM

2011-05-06 Thread Neumann, Steffen
Hi,

we also had that behaviour with NFS4 on ubuntu 11.04, 
and rpc.idmapd was not running because we had /var
on a different partition than / and idmapd wanted to store
stuff in the not-yet-mounted /var. Solution is a single filesystem
for / and /var. Is that the case in your setup ?

Yours,
Steffen



From: users-boun...@lists.opennebula.org [users-boun...@lists.opennebula.org] 
on behalf of Tino Vazquez [tin...@opennebula.org]
Sent: 06 May 2011 15:23
To: Koushik Annapureddy
Cc: users@lists.opennebula.org
Subject: Re: [one-users] Unable to Stop Running VM

Hi,

This may be of use: http://ubuntuforums.org/archive/index.php/t-1598588.html

Regards,

-Tino

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



On Fri, May 6, 2011 at 3:19 PM, Koushik Annapureddy
 wrote:
> changing ownership of `xyz': Invalid argument
___
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