[one-users] subnet and GW in network file

2011-02-21 Thread Zeeshan Ali Shah
Hi , any way to subnet and Gateway in network file and use it for 
creating networking from onevnet ?


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


[one-users] sample linux image beside ttylinux?

2011-02-21 Thread Zeeshan Ali Shah

Hi ,
1) how to get linux image beside ttylinux for example : centos, ubuntu 
to try with opennebula ?

2) the standard image is runnable out of the box in opennebula ?

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


[one-users] customizing image

2011-02-21 Thread Zeeshan Ali Shah

Hi , I have scenario like this . .

1) I have a running xen vm with customzed software installation
2) How to make it as an image so that other can use it in opennebula  ?

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


Re: [one-users] User couldn't be authenticated, aborting call.

2011-02-21 Thread Tino Vazquez
Hi,

The file pointed by ONE_AUTH when oned is first started sets the
username and password for the ID=0 account (the oneadmin account). If
this files changes, or the env variable shifts to point to another
file, you will get the could not authenticate error message.

Regards,

-Tino

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



On Mon, Feb 21, 2011 at 7:52 AM, christophe bonnaud  wrote:
> Hi Richard,
>
> Thanks a lot for your answer.
>
> I checked but on my system all process for opennebula are owned by the
> oneadmin user.
> I did a reinstallation of the server to have a self-contained installation
> so now all opennebula's files are owned by oneadmin user.
> Unfortunately the problem reappeared...
>
> I don't really know how to solve this problem. I did some research but it
> seems that this problem is not really common and I couldn't find any usefull
> informations.
>
> Can I ask you which ruby/opennebula version you are using? I am not sure
> it's rely to the problem but I have to consider all possibilities.
>
> Cheers,
>
> Chris.
>
>
> On Fri, Feb 18, 2011 at 5:17 PM, Whiffen, Richard
>  wrote:
>>
>> Christophe,
>>
>> I'm new to OpenNebula, so I'm not sure if this will help or not.  When I
>> was getting started I had the same problems. For some reason when I would
>> do a 'sudo su - oneadmin' it would still use my (root) .ssh settings and
>> not the oneadmin user.  Worse, some processes would be started with UID
>> root rather than oneadmin.  I had to kill the schedule process as root, it
>> wouldn't quit on it's own, and chown the log files to oneadmin again.
>> After that, the ssh authentication issues went away.
>>
>> Rich
>>
>> --
>> Rich Whiffen
>> richard_whif...@cable.comcast.com
>> AIM: richwhiffen
>> Yahoo: richwhiffen
>> Phone: 202-449-1312
>>
>>
>>
>> >
>> >Message: 4
>> >Date: Thu, 17 Feb 2011 08:42:58 -0800
>> >From: christophe bonnaud 
>> >To: Users@lists.opennebula.org
>> >Subject: [one-users] User couldn't be authenticated, aborting call.
>> >Message-ID:
>> >    
>> >Content-Type: text/plain; charset="iso-8859-1"
>> >
>> >Hi,
>> >
>> >I have just installed opennebula ver 2.0.1-1.
>> >I have created a ssh key for oneadmin user, run the command:
>> >
>> >     oneauth login oneadmin
>> >
>> >and exported the variable:
>> >
>> >     export ONE_AUTH="/home/oneadmin/.one/one_ssh"
>> >
>> >I have correctly start oned using the command (as oneadmin user):
>> >
>> >     one start
>> >
>> >But now all commands I am trying fail with an error:
>> >
>> >     User couldn't be authenticated, aborting call.
>> >
>> >Did I miss something? is there an other step to do to allow oneadmin to
>> >issue some commands?
>> >
>> >Cheers,
>> >
>> >Christophe bonnaud.
>>
>> ___
>> Users mailing list
>> Users@lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
>
> --
> --
> Bonnaud Christophe
> GSDC
> Korea Institute of Science and Technology Information
> Fax. +82-42-869-0789
> Tel. +82-42-869-0660
> Mobile +82-10-4664-3193
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] retrieve info from OpenVZ host running libvirtd

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

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

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

Regards,
Carlos.

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


On 18 February 2011 17:27,  wrote:

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


Re: [one-users] Problems when booting VM (OpenNebula 2.0.1 and ESXi 4.1)

2011-02-21 Thread Tino Vazquez
Hi Luigi,

Ok, I'll have to test that with 4.1, it certainly works with soft
links in previous versions.

Regards,

-Tino

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



On Thu, Feb 17, 2011 at 11:16 AM, Luigi Fortunati
 wrote:
> Hi,
> I fixed the problem related to the use of symlink.
> I found out that by making a symlink to a directory (which is what
> OpenNebula does) my ESXi 4.1 server sees the directory not named as
> "disk.0", but with the same name of the directory in the image repository
> (which is like "44bdf63hf63kd73nfetcetc..."). You can check that out by
> browsing the "images" repository with VSphere Client. I decided to change
> the script vmware/tm_ln.sh in order to create a directory disk.0 in the
>  $ONE_LOCATION/var//images/ directory and then create hardlinks to the
> vmdk files in the image repo, and now persistent images are working. :-)
>
> On Mon, Feb 7, 2011 at 5:15 PM, Tino Vazquez  wrote:
>>
>> Hi Luigi,
>>
>> There is indeed a bug for system-wide installations, we are working on
>> it and will be fixed in the upcoming 2.2 release.
>>
>> About the symlink, we got tests for the Image catalog in VMware that
>> shows it working for persistent and not persistent images. The
>> template is trivial, just using a image flagged as persistent within a
>> VM. Maybe the problem lies somewhere else, like for instance, are you
>> using VMFS? In our tests we use NFS.
>>
>> About the VCPU, the scheduler completely ignores this parameter, so it
>> shouldn't make a difference for scheduling.
>>
>> Regards,
>>
>> -Tino
>>
>> --
>> Constantino Vázquez Blanco | dsa-research.org/tinova
>> Virtualization Technology Engineer / Researcher
>> OpenNebula Toolkit | opennebula.org
>>
>>
>>
>> On Thu, Feb 3, 2011 at 11:08 AM, Luigi Fortunati
>>  wrote:
>> > Hi Matthias,
>> > First of all, thanks for the reply.
>> > I checked on the logs that come up in the "var" folder when the
>> > "ONE_MAD_DEBUG" option is set to 1 in $ONE_LOCATION/etc/defaultrc file
>> > (enabling logging for all the vmware drivers) but the content seems a
>> > bit
>> > cryptic and unhelpful.
>> > Anyhow I managed to solve the problem regarding the launch of a new VM.
>> > I
>> > realized that the cluster hosts works with root users when managing
>> > files on
>> > the nfs repository. Given the settings of my NFS server I noticed that
>> > root
>> > squashing was enabled so the root user of the cluster hosts was mapped
>> > as
>> > user with UID 65534(user "nobody") on the opennebula frontend host.
>> > Therefore the root user of the cluster hosts couldn't access files that
>> > were
>> > placed on the shared image repository because there weren't enough
>> > permissions.
>> > I decided to solve this problem by modifying the /etx/exports file one
>> > the
>> > opennebula frontend
>> > /srv/cloud/one/var  (rw,all_squash_,anonuid=> > 'oneadmin' user>, anongid=)
>> > with these settings all users of the cluster hosts are mapped to
>> > oneadmin:cloud on the frontend.
>> > Up to now I can start a VM that uses nonpersistent images, but I can't
>> > start
>> > VM with persistent images.
>> > This is the output of vm.log:
>> > Wed Feb  2 15:51:54 2011 [DiM][I]: New VM state is ACTIVE.
>> > Wed Feb  2 15:51:54 2011 [LCM][I]: New VM state is PROLOG.
>> > Wed Feb  2 15:51:54 2011 [VM][I]: Virtual Machine has no context
>> > Wed Feb  2 15:51:54 2011 [TM][I]: tm_ln.sh: Creating directory
>> > /srv/cloud/one/var/49/images
>> > Wed Feb  2 15:51:54 2011 [TM][I]: tm_ln.sh: Executed "mkdir -p
>> > /srv/cloud/one/var/49/images".
>> > Wed Feb  2 15:51:54 2011 [TM][I]: tm_ln.sh: Executed "chmod a+w
>> > /srv/cloud/one/var/49/images".
>> > Wed Feb  2 15:51:54 2011 [TM][I]: tm_ln.sh: Link
>> > /srv/cloud/one/var/images/7594aeafecbabec0de9da508cf2500fb486675a6
>> > Wed Feb  2 15:51:54 2011 [TM][I]: tm_ln.sh: Executed "ln -s
>> > ../../images/7594aeafecbabec0de9da508cf2500fb486675a6 /srv/cloud/
>> > one/var/49/images/disk.0".
>> > Wed Feb  2 15:51:54 2011 [LCM][I]: New VM state is BOOT
>> > Wed Feb  2 15:51:54 2011 [VMM][I]: Generating deployment file:
>> > /srv/cloud/one/var/49/deployment.0
>> > Wed Feb  2 15:51:54 2011 [VMM][I]: Command execution fail:
>> > /srv/cloud/one/lib/remotes/vmm/vmware/deploy custom6.sns.it /srv/c
>> > loud/one/var/49/deployment.0
>> > Wed Feb  2 15:51:54 2011 [VMM][I]: STDERR follows.
>> > Wed Feb  2 15:51:54 2011 [VMM][I]: [VMWARE] cmd failed
>> > [/srv/cloud/one/bin/tty_expect -u oneadmin -p password1234 virsh -c
>> > esx://custom6.sns.it?no_verify=1 define
>> > /srv/cloud/one/var/49/deployment.0].
>> > Stderr:
>> > Wed Feb  2 15:51:54 2011 [VMM][I]: error: Failed to define domain from
>> > /srv/cloud/one/var/49/deployment.0
>> > Wed Feb  2 15:51:54 2011 [VMM][I]: error: internal error HTTP response
>> > code
>> > 500 for upload to
>> >
>> > 'https://custom6.sns.it:443/folder/49%2fimages%2fdisk%2e0/one%2d49.vmx?dcPath=ha%2ddatacenter&d

Re: [one-users] Does Opennebula 2.0.1 support disaster recovery?

2011-02-21 Thread Tino Vazquez
Hi,

comments inline,


On Fri, Feb 18, 2011 at 4:52 AM, Manikanta Kattamuri
 wrote:
> we have tried some poc's to achieve this sometime back
>
> 2011/2/17 Tino Vazquez 
>>
>> Hi YE Lei,
>>
>> The first issue that I see here is the migration, since it is
>> impossible to migrate a VM from a host that is down.
>>
>> What is possible is the reestablishment of the service in placeB,
>> where the VM images should be previously placed (to avoid transferring
>> them, although this is possible as well), so only the VM state (in the
>> form of snapshots of memory, and deltas of what has changed in the
>> disk images since the VM was up) needs to be transferred. This
>> snapshots should reside in a shared filesystem (to avoid losing access
>> when the host is down), or synced in placeB using DRDB for instance.
>
>
> since place A and place B are quiet distant and we did not want to share the
> same file system, we used rsync to keep the disks in check. if the file
> system is a failure at place A then the latest image would used at placeB
> else the images are synced before starting.
>>
>> OpenNebula at place A can detect that the hosts are down and start the
>> reestablishment of the service talking with the OpenNebula at place B.
>> This setup can be achieved with some minor adjustments to the
>> out-of-the-box OpenNebula.
>>
> Can you give any pointers on this, as i have achieved it using a script
> above oned to detect failures and request place B to start the vm's after
> syncing with the current vm. I would like to know how oned can be configured
> to talk to placeB ( i suspect you are talking about hooks?).

I was talking about a new set of drivers to enable this kind of behavior.

>
>>
>> For extra protection, the OpenNebula at placeA could be running two
>> instances in different servers, to avoid the fail in the disaster
>> recovery in case the OpenNebula front-end goes down.
>>
> isn't this being discussed in another thread about oned redundancy?. which
> is presently not present in one.

Sure, this is WIP

Regards,

-Tino

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

>>
>> This is an interesting use case, we will be happy to provide
>> assistance in the setup of this scenario.
>>
>> Best regards,
>>
>> -Tino
>>
>> --
>> Constantino Vázquez Blanco, MSc
>> OpenNebula Major Contributor  / Cloud Researcher
>> www.OpenNebula.org | @tinova79
>>
>>
>>
>> On Thu, Feb 17, 2011 at 10:22 AM, YE LEI 
>> wrote:
>> > For example, we have a product (in VM) running in the servers on placeA,
>> > and in case disaster happens on placeA, all servers on placeA are
>> > damaged, could opennebula migrate this product to the severs on
>> > placeB(thousands miles away from placeA) which are managed by opennebula
>> > in the cloud?
>> >
>> > Best Regards,
>> > YE Lei
>> >
>> > -Original Message-
>> > From: Ignacio M. Llorente [mailto:imllore...@opennebula.org]
>> > Sent: Thursday, February 17, 2011 4:55 PM
>> > To: YE LEI
>> > Cc: users@lists.opennebula.org
>> > Subject: Re: [one-users] Does Opennebula 2.0.1 support disaster
>> > recovery?
>> >
>> > Please, could you elaborate on the use case for this? Which
>> > functionality would you require?
>> >
>> > Thanks
>> >
>> > On Thu, Feb 17, 2011 at 7:58 AM, YE LEI 
>> > wrote:
>> >> Hello,
>> >>
>> >> As mentioned in the mail title, does Opennebula 2.0.1 support disaster
>> >> recovery cross-regional?
>> >>
>> >> Best Regards,
>> >>
>> >> YE Lei
>> >>
>> >> ___
>> >> Users mailing list
>> >> Users@lists.opennebula.org
>> >> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>> >>
>> >>
>> >
>> >
>> >
>> > --
>> > Ignacio M. Llorente, PhD, MBA
>> > Project co-Lead and Director
>> > OpenNebula - The Open Source Toolkit for Cloud Computing
>> > www.OpenNebula.org | imllore...@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
>
>
>
> --
> K Manikanta Swamy
> +919059014442
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] retrieve info from OpenVZ host running libvirtd

2011-02-21 Thread knawnd

Hi Carlos,

Carlos Martín Sánchez wrote on 21/02/11 14:04:

Hi Nikolay,

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

[oneadmin@FN]$ ssh edugrid10 "/tmp/one/im/run_probes ovz"
Warning: Permanently added '' (RSA) to the list of 
known hosts.

 [oneadmin@FN]$

i.e. it looks like the command above returns space character.

Nikolay.


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

Regards,
Carlos.

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



On 18 February 2011 17:27, mailto:kna...@gmail.com>>
wrote:

Dear all,

Trying to implement IM driver for OpenVZ cluster nodes I faced with
the following problem:

$ onehost list
  ID NAME   CLUSTER  RVM   TCPU   FCPU
ACPU   TMEMFMEM STAT
   2  xen_x64   0   200  200
 200   3.1G 128Mon
   3  ovz_x32   00  0
   100   0K  0K err

oned.log:
[...]
Fri Feb 18 18:54:47 2011 [InM][D]: Host 3 successfully monitored.
Fri Feb 18 18:54:47 2011 [ONE][E]: syntax error, unexpected $end,
expecting VARIABLE at line 2, columns 1:2
Fri Feb 18 18:54:47 2011 [InM][E]: Error parsing host information:
[...]

I added oneadmin user into /etc/sudoers file and commented out the
line "Defaultsrequiretty":
$ egrep "oneadmin|requiretty" /etc/sudoers
#Defaultsrequiretty
oneadminALL=(ALL)   NOPASSWD: ALL

(I couldn't figure out more secure and elegant way to get info from
OpenVZ host having libvirt interface installed. Any suggestions on
that?)

and did the following changes in ovz.rb file:
$ diff /usr/lib/one/remotes/im/ovz.d/ovz.rb
/usr/lib/one/remotes/im/kvm.d/kvm.rb
29c29
< nodeinfo_text = `sudo virsh -c openvz:///system nodeinfo`
---
 > nodeinfo_text = `virsh -c qemu:///system nodeinfo`
90c90
< print_info("HYPERVISOR","ovz")
---
 > print_info("HYPERVISOR","kvm")

"sudo virsh -c openvz:///system nodeinfo" running under oneadmin
user from front-end node gives the following output:
[oneadmin@$ ssh  sudo virsh -c
openvz:///system nodeinfo
CPU model:   i686
CPU(s):  1
CPU frequency:   2793 MHz
CPU socket(s):   1
Core(s) per socket:  1
Thread(s) per core:  1
NUMA cell(s):1
Memory size: 2056216 kB

I was hoping to apply the same solution as written in "KVM Driver
Guide 2.0" (http://opennebula.org/documentation:rel2.0:kvmg) since
ONE uses the libvirt interface as well to interact with KVM hosts:
...The following steps are required in the cluster nodes to get the
KVM driver running:
[...]
*  The user with access to these remotes hosts on behalf of
OpenNebula (typically ) has to pertain to the 
and  groups in order to use the deaemon and be able to launch VMs.

but I can't following that way since there is no libvirt group and
libvirtd is run under root (I had to build libvirt from tarball
available at its home page since CentOS has a pretty old one in its
repos without openvz support).

Any help on that is highly appreciated!
Nikolay.
___
Users mailing list
Users@lists.opennebula.org 
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org



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


Re: [one-users] retrieve info from OpenVZ host running libvirtd

2011-02-21 Thread Héctor Sanjuán
Hi Nikolay,

I had a similar problem and it came down to im driver files not having
the proper execution rights. Can you maybe check that?

Héctor

El 21/02/11 13:17, kna...@gmail.com escribió:
> Hi Carlos,
> 
> Carlos Martín Sánchez wrote on 21/02/11 14:04:
>> Hi Nikolay,
>>
>> Could you paste the output of
>>  ssh  "/var/tmp/one/im/run_probes ovz"
>> ?
> [oneadmin@FN]$ ssh edugrid10 "/tmp/one/im/run_probes ovz"
> Warning: Permanently added '' (RSA) to the list of
> known hosts.
>  [oneadmin@FN]$
> 
> i.e. it looks like the command above returns space character.
> 
> Nikolay.
>>
>> Change /var/tmp/one to your SCRIPTS_REMOTE_DIR if you changed it in your
>> oned.conf file.
>>
>> Regards,
>> Carlos.
>>
>> -- 
>> Carlos Martín, MSc
>> Project Major Contributor
>> OpenNebula - The Open Source Toolkit for Cloud Computing
>> www.OpenNebula.org  | cmar...@opennebula.org
>> 
>>
>>
>> On 18 February 2011 17:27, mailto:kna...@gmail.com>>
>> wrote:
>>
>> Dear all,
>>
>> Trying to implement IM driver for OpenVZ cluster nodes I faced with
>> the following problem:
>>
>> $ onehost list
>>   ID NAME   CLUSTER  RVM   TCPU   FCPU
>> ACPU   TMEMFMEM STAT
>>2  xen_x64   0   200  200
>>  200   3.1G 128Mon
>>3  ovz_x32   00  0
>>100   0K  0K err
>>
>> oned.log:
>> [...]
>> Fri Feb 18 18:54:47 2011 [InM][D]: Host 3 successfully monitored.
>> Fri Feb 18 18:54:47 2011 [ONE][E]: syntax error, unexpected $end,
>> expecting VARIABLE at line 2, columns 1:2
>> Fri Feb 18 18:54:47 2011 [InM][E]: Error parsing host information:
>> [...]
>>
>> I added oneadmin user into /etc/sudoers file and commented out the
>> line "Defaultsrequiretty":
>> $ egrep "oneadmin|requiretty" /etc/sudoers
>> #Defaultsrequiretty
>> oneadminALL=(ALL)   NOPASSWD: ALL
>>
>> (I couldn't figure out more secure and elegant way to get info from
>> OpenVZ host having libvirt interface installed. Any suggestions on
>> that?)
>>
>> and did the following changes in ovz.rb file:
>> $ diff /usr/lib/one/remotes/im/ovz.d/ovz.rb
>> /usr/lib/one/remotes/im/kvm.d/kvm.rb
>> 29c29
>> < nodeinfo_text = `sudo virsh -c openvz:///system nodeinfo`
>> ---
>>  > nodeinfo_text = `virsh -c qemu:///system nodeinfo`
>> 90c90
>> < print_info("HYPERVISOR","ovz")
>> ---
>>  > print_info("HYPERVISOR","kvm")
>>
>> "sudo virsh -c openvz:///system nodeinfo" running under oneadmin
>> user from front-end node gives the following output:
>> [oneadmin@$ ssh  sudo virsh -c
>> openvz:///system nodeinfo
>> CPU model:   i686
>> CPU(s):  1
>> CPU frequency:   2793 MHz
>> CPU socket(s):   1
>> Core(s) per socket:  1
>> Thread(s) per core:  1
>> NUMA cell(s):1
>> Memory size: 2056216 kB
>>
>> I was hoping to apply the same solution as written in "KVM Driver
>> Guide 2.0" (http://opennebula.org/documentation:rel2.0:kvmg) since
>> ONE uses the libvirt interface as well to interact with KVM hosts:
>> ...The following steps are required in the cluster nodes to get the
>> KVM driver running:
>> [...]
>> *  The user with access to these remotes hosts on behalf of
>> OpenNebula (typically ) has to pertain to the 
>> and  groups in order to use the deaemon and be able to launch
>> VMs.
>>
>> but I can't following that way since there is no libvirt group and
>> libvirtd is run under root (I had to build libvirt from tarball
>> available at its home page since CentOS has a pretty old one in its
>> repos without openvz support).
>>
>> Any help on that is highly appreciated!
>> Nikolay.
>> ___
>> Users mailing list
>> Users@lists.opennebula.org 
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


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


Re: [one-users] retrieve info from OpenVZ host running libvirtd

2011-02-21 Thread knawnd

Hi Hector,

Héctor Sanjuán wrote on 21/02/11 15:27:

Hi Nikolay,

I had a similar problem and it came down to im driver files not having
the proper execution rights. Can you maybe check that?

Thanks for reply!
FN$ ll /usr/lib/one/remotes/im/ovz.d/ovz.rb
-rwxr-xr-x 1 root root 3305 Feb 21 09:23 
/usr/lib/one/remotes/im/ovz.d/ovz.rb


CN$ ll /tmp/one/im/run_probes
-rwxr-xr-x 1 oneadmin cloud 1773 Feb 18 17:34 /tmp/one/im/run_probes

execution right looks for me OK.

Nikolay.


Héctor

El 21/02/11 13:17, kna...@gmail.com escribió:

Hi Carlos,

Carlos Martín Sánchez wrote on 21/02/11 14:04:

Hi Nikolay,

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

[oneadmin@FN]$ ssh edugrid10 "/tmp/one/im/run_probes ovz"
Warning: Permanently added '' (RSA) to the list of
known hosts.
  [oneadmin@FN]$

i.e. it looks like the command above returns space character.

Nikolay.


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

Regards,
Carlos.

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



On 18 February 2011 17:27,mailto:kna...@gmail.com>>
wrote:

 Dear all,

 Trying to implement IM driver for OpenVZ cluster nodes I faced with
 the following problem:

 $ onehost list
   ID NAME   CLUSTER  RVM   TCPU   FCPU
 ACPU   TMEMFMEM STAT
2  xen_x64   0   200  200
  200   3.1G 128Mon
3  ovz_x32   00  0
100   0K  0K err

 oned.log:
 [...]
 Fri Feb 18 18:54:47 2011 [InM][D]: Host 3 successfully monitored.
 Fri Feb 18 18:54:47 2011 [ONE][E]: syntax error, unexpected $end,
 expecting VARIABLE at line 2, columns 1:2
 Fri Feb 18 18:54:47 2011 [InM][E]: Error parsing host information:
 [...]

 I added oneadmin user into /etc/sudoers file and commented out the
 line "Defaultsrequiretty":
 $ egrep "oneadmin|requiretty" /etc/sudoers
 #Defaultsrequiretty
 oneadminALL=(ALL)   NOPASSWD: ALL

 (I couldn't figure out more secure and elegant way to get info from
 OpenVZ host having libvirt interface installed. Any suggestions on
 that?)

 and did the following changes in ovz.rb file:
 $ diff /usr/lib/one/remotes/im/ovz.d/ovz.rb
 /usr/lib/one/remotes/im/kvm.d/kvm.rb
 29c29
 <  nodeinfo_text = `sudo virsh -c openvz:///system nodeinfo`
 ---
  >  nodeinfo_text = `virsh -c qemu:///system nodeinfo`
 90c90
 <  print_info("HYPERVISOR","ovz")
 ---
  >  print_info("HYPERVISOR","kvm")

 "sudo virsh -c openvz:///system nodeinfo" running under oneadmin
 user from front-end node gives the following output:
 [oneadmin@$ ssh  sudo virsh -c
 openvz:///system nodeinfo
 CPU model:   i686
 CPU(s):  1
 CPU frequency:   2793 MHz
 CPU socket(s):   1
 Core(s) per socket:  1
 Thread(s) per core:  1
 NUMA cell(s):1
 Memory size: 2056216 kB

 I was hoping to apply the same solution as written in "KVM Driver
 Guide 2.0" (http://opennebula.org/documentation:rel2.0:kvmg) since
 ONE uses the libvirt interface as well to interact with KVM hosts:
 ...The following steps are required in the cluster nodes to get the
 KVM driver running:
 [...]
 *  The user with access to these remotes hosts on behalf of
 OpenNebula (typically) has to pertain to the
 and  groups in order to use the deaemon and be able to launch
VMs.

 but I can't following that way since there is no libvirt group and
 libvirtd is run under root (I had to build libvirt from tarball
 available at its home page since CentOS has a pretty old one in its
 repos without openvz support).

 Any help on that is highly appreciated!
 Nikolay.
 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org



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




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


Re: [one-users] retrieve info from OpenVZ host running libvirtd

2011-02-21 Thread Héctor Sanjuán
Im seeing different paths here:

> FN$ ll /usr/lib/one/remotes/im/ovz.d/ovz.rb
> 
> CN$ ll /tmp/one/im/run_probes

The "/tmp/one/im/run_probes" script on the remote host would execute the
contents of the /tmp/one/im/ovz folder.

So you have to check that the right files are there on the remote host
and that they have the right permissions.

The im files are copied to the im folder ("/tmp/one/im" in your case it
seems) in the remote host when adding a new host to OpenNebula. They are
copied from the $ONE_LOCATION/var/remotes/im on the frontend host, even
though there is a copy of them in the $ONE_LOCATION/lib/remotes/im as
well, as backup.

I think it might help if you check again that the right files are being
copied to the /tmp/one/im/ovz folder on the host you want to monitor and
that they have the right permissions etc? (./run_probes returns an empty
space when nothing to execute from the specified driver is found).

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


[one-users] Security in Hybrid cloud

2011-02-21 Thread Sajith Kalathingal
Hi,

I am a master student. Currently I'm studying about hybrid clouds. I would like 
to know how can we ensure security while using a hybrid cloud (which consist of 
a public cloud service provider, say rackspace or EC2). Is there anything like 
VPN? If yes will open nebula configure it automatically? 

Thanks

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


Re: [one-users] User couldn't be authenticated, aborting call.

2011-02-21 Thread Idafen Santana Pérez
Hi,

I was having almost the same problem and I solved it by reinstalling
opennebula with the right sqlite support and compiling it (I used
scons to install it from source) as oneadmin user.

You should check your oneadmin user information at your sqlite db (or mysql).

Hope it helps.

Regards
Idafen

On Mon, Feb 21, 2011 at 12:02 PM, Tino Vazquez  wrote:
> Hi,
>
> The file pointed by ONE_AUTH when oned is first started sets the
> username and password for the ID=0 account (the oneadmin account). If
> this files changes, or the env variable shifts to point to another
> file, you will get the could not authenticate error message.
>
> Regards,
>
> -Tino
>
> --
> Constantino Vázquez Blanco, MSc
> OpenNebula Major Contributor  / Cloud Researcher
> www.OpenNebula.org | @tinova79
>
>
>
> On Mon, Feb 21, 2011 at 7:52 AM, christophe bonnaud  
> wrote:
>> Hi Richard,
>>
>> Thanks a lot for your answer.
>>
>> I checked but on my system all process for opennebula are owned by the
>> oneadmin user.
>> I did a reinstallation of the server to have a self-contained installation
>> so now all opennebula's files are owned by oneadmin user.
>> Unfortunately the problem reappeared...
>>
>> I don't really know how to solve this problem. I did some research but it
>> seems that this problem is not really common and I couldn't find any usefull
>> informations.
>>
>> Can I ask you which ruby/opennebula version you are using? I am not sure
>> it's rely to the problem but I have to consider all possibilities.
>>
>> Cheers,
>>
>> Chris.
>>
>>
>> On Fri, Feb 18, 2011 at 5:17 PM, Whiffen, Richard
>>  wrote:
>>>
>>> Christophe,
>>>
>>> I'm new to OpenNebula, so I'm not sure if this will help or not.  When I
>>> was getting started I had the same problems. For some reason when I would
>>> do a 'sudo su - oneadmin' it would still use my (root) .ssh settings and
>>> not the oneadmin user.  Worse, some processes would be started with UID
>>> root rather than oneadmin.  I had to kill the schedule process as root, it
>>> wouldn't quit on it's own, and chown the log files to oneadmin again.
>>> After that, the ssh authentication issues went away.
>>>
>>> Rich
>>>
>>> --
>>> Rich Whiffen
>>> richard_whif...@cable.comcast.com
>>> AIM: richwhiffen
>>> Yahoo: richwhiffen
>>> Phone: 202-449-1312
>>>
>>>
>>>
>>> >
>>> >Message: 4
>>> >Date: Thu, 17 Feb 2011 08:42:58 -0800
>>> >From: christophe bonnaud 
>>> >To: Users@lists.opennebula.org
>>> >Subject: [one-users] User couldn't be authenticated, aborting call.
>>> >Message-ID:
>>> >    
>>> >Content-Type: text/plain; charset="iso-8859-1"
>>> >
>>> >Hi,
>>> >
>>> >I have just installed opennebula ver 2.0.1-1.
>>> >I have created a ssh key for oneadmin user, run the command:
>>> >
>>> >     oneauth login oneadmin
>>> >
>>> >and exported the variable:
>>> >
>>> >     export ONE_AUTH="/home/oneadmin/.one/one_ssh"
>>> >
>>> >I have correctly start oned using the command (as oneadmin user):
>>> >
>>> >     one start
>>> >
>>> >But now all commands I am trying fail with an error:
>>> >
>>> >     User couldn't be authenticated, aborting call.
>>> >
>>> >Did I miss something? is there an other step to do to allow oneadmin to
>>> >issue some commands?
>>> >
>>> >Cheers,
>>> >
>>> >Christophe bonnaud.
>>>
>>> ___
>>> Users mailing list
>>> Users@lists.opennebula.org
>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>>
>> --
>> --
>> Bonnaud Christophe
>> GSDC
>> Korea Institute of Science and Technology Information
>> Fax. +82-42-869-0789
>> Tel. +82-42-869-0660
>> Mobile +82-10-4664-3193
>>
>> ___
>> 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] retrieve info from OpenVZ host running libvirtd

2011-02-21 Thread knawnd

Héctor Sanjuán wrote on 21/02/11 16:29:

Im seeing different paths here:


FN$ ll /usr/lib/one/remotes/im/ovz.d/ovz.rb

CN$ ll /tmp/one/im/run_probes


The "/tmp/one/im/run_probes" script on the remote host would execute the
contents of the /tmp/one/im/ovz folder.

So you have to check that the right files are there on the remote host
and that they have the right permissions.

The im files are copied to the im folder ("/tmp/one/im" in your case it
seems) in the remote host when adding a new host to OpenNebula. They are
copied from the $ONE_LOCATION/var/remotes/im on the frontend host, even
though there is a copy of them in the $ONE_LOCATION/lib/remotes/im as
well, as backup.
now it's clear! I put ovz-related files only into /usr/lib/one (ONE is 
installed in a system wide mode) and they are missing in 
/var/lib/one/remotes/im/. That's why they weren't copied on remote host 
during its addition.


I've just copied ovz.d into /var/lib/one/remotes/im/. Delete remote host 
from the pool. Add it again and now ONE gets the proper info about 
remote host running OpenVZ.


Thanks a lot, Hector!

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


Re: [one-users] Error with TM_LVM

2011-02-21 Thread Jaime Melis
Hi Anoop,

we have figured out what's wrong. A while back we changed the $SED variable
and to use by default the '-r' option (extended reg-exps), but that change
broke the sed script which parses de VM ID which is passed to the tm_clone
script. We have reported a bug and submitted a patch:
http://dev.opennebula.org/issues/496

In order to fix it manually, edit "$ONE_LOCATION/etc/tm_lvm/tm_lvmrc" and
change this line:
echo $1 |$SED -e 's%^.*/\([^/]*\)/images.*$%\1%'
to this one:
echo $1 |$SED -e 's%^.*/([^/]*)/images.*$%\1%'

The link to the patch:
http://dev.opennebula.org/projects/opennebula/repository/revisions/ef738d5d51cefff55f7ee2aec4f7721473ebeb0e/diff/src/tm_mad/lvm/tm_lvmrc

Thanks for reporting this!

cheers,
Jaime

On Wed, Feb 16, 2011 at 6:08 PM, Anoop L  wrote:

> sure Jaime.
>
> I have attached the vm.log as well.
>
> Vm.log:
>
> Wed Feb 16 20:49:43 2011 [DiM][I]: New VM state is ACTIVE.
> Wed Feb 16 20:49:43 2011 [LCM][I]: New VM state is PROLOG.
> Wed Feb 16 20:49:43 2011 [VM][I]: Virtual Machine has no context
> Wed Feb 16 20:49:54 2011 [TM][I]: Command execution fail:
> /opt/cloud/one/lib/tm_commands/lvm/tm_clone.sh
> ast462:/opt/cloud/one/var//images/fd34675a5656d3b5b92e01b11dbae9c819e5f4c4
> ast-wks-348:/opt/cloud/one/var//86/images/disk.0
> Wed Feb 16 20:49:54 2011 [TM][I]: STDERR follows.
> Wed Feb 16 20:49:54 2011 [TM][I]: /bin/sed: -e expression #1, char 29:
> invalid reference \1 on `s' command's RHS
> Wed Feb 16 20:49:54 2011 [TM][I]: ERROR MESSAGE --8<--
> Wed Feb 16 20:49:54 2011 [TM][I]: Logical volume "lv-one--0" already exists
> in volume group "vg00"
> Wed Feb 16 20:49:54 2011 [TM][I]: ERROR MESSAGE -->8--
> Wed Feb 16 20:49:54 2011 [TM][I]: ExitCode: 5
> Wed Feb 16 20:49:54 2011 [TM][I]: tm_clone.sh:
> ast462:/opt/cloud/one/var//images/fd34675a5656d3b5b92e01b11dbae9c819e5f4c4
> ast-wks-348:/opt/cloud/one/var//86/images/disk.0
> Wed Feb 16 20:49:54 2011 [TM][I]: tm_clone.sh: DST:
> /opt/cloud/one/var//86/images/disk.0
> Wed Feb 16 20:49:54 2011 [TM][I]: tm_clone.sh: Creating directory
> /opt/cloud/one/var//86/images
> Wed Feb 16 20:49:54 2011 [TM][I]: tm_clone.sh: Executed "/usr/bin/ssh
> ast-wks-348 mkdir -p /opt/cloud/one/var//86/images".
> Wed Feb 16 20:49:54 2011 [TM][I]: tm_clone.sh: Creating LV lv-one--0
> Wed Feb 16 20:49:54 2011 [TM][I]: tm_clone.sh: ERROR: Command "/usr/bin/ssh
> ast-wks-348 /usr/bin/sudo /sbin/lvcreate -L20G -n lv-one--0 vg00" failed.
> Wed Feb 16 20:49:54 2011 [TM][I]: tm_clone.sh: ERROR:   Logical volume
> "lv-one--0" already exists in volume group "vg00"
> Wed Feb 16 20:49:54 2011 [TM][E]: Error excuting image transfer script:
> Logical volume "lv-one--0" already exists in volume group "vg00"
> Wed Feb 16 20:49:55 2011 [DiM][I]: New VM state is FAILED
> Wed Feb 16 20:50:00 2011 [TM][W]: Ignored: LOG - 86 Command execution fail:
> /opt/cloud/one/lib/tm_commands/lvm/tm_delete.sh
> ast-wks-348:/opt/cloud/one/var//86/images
>
> Wed Feb 16 20:50:00 2011 [TM][W]: Ignored: LOG - 86 STDERR follows.
>
> Wed Feb 16 20:50:00 2011 [TM][W]: Ignored: LOG - 86 /bin/sed: -e expression
> #1, char 29: invalid reference \1 on `s' command's RHS
>
> Wed Feb 16 20:50:00 2011 [TM][W]: Ignored: LOG - 86 ERROR MESSAGE
> --8<--
>
> Wed Feb 16 20:50:00 2011 [TM][W]: Ignored: LOG - 86 Can't remove open
> logical volume "lv-one--0"
>
> Wed Feb 16 20:50:00 2011 [TM][W]: Ignored: LOG - 86 ERROR MESSAGE
> -->8--
> Wed Feb 16 20:50:00 2011 [TM][W]: Ignored: LOG - 86 ExitCode: 5
>
> Wed Feb 16 20:50:00 2011 [TM][W]: Ignored: LOG - 86 tm_delete.sh: Deleting
> remote LVs
>
> Wed Feb 16 20:50:00 2011 [TM][W]: Ignored: LOG - 86 tm_delete.sh: ERROR:
> Command "/usr/bin/ssh ast-wks-348 /usr/bin/sudo /sbin/lvremove -f $(echo
> vg00/$(/usr/bin/sudo /sbin/lvs --noheadings vg00|awk '{print $1}'|grep
> lv-one-))" failed.
>
> Wed Feb 16 20:50:00 2011 [TM][W]: Ignored: LOG - 86 tm_delete.sh: ERROR:
> Can't remove open logical volume "lv-one--0"
>
> Wed Feb 16 20:50:00 2011 [TM][W]: Ignored: TRANSFER FAILURE 86 Can't remove
> open logical volume "lv-one--0"
>
> Thanks,
> Anoop
>
>
>
> On Wed, Feb 16, 2011 at 9:12 PM, Jaime Melis wrote:
>
>> Hi Anoop,
>>
>> could you please send me the full vm.log of that VM?
>>
>> cheers,
>> Jaime
>>
>>
>> On Wed, Feb 16, 2011 at 4:31 PM, Anoop L  wrote:
>>
>>> Hi Jaime,
>>>
>>> Thanks for the reply. My VM ID is 86 but still ONE uses 0 as identifier
>>> for LV. Even the working VM with ID  is using lv-one--0.
>>>
>>> I have already tried removing LV manually. I guess issue is that ONE is
>>> trying to create the LV of same name and some how VM ID is not appended to
>>> the LV_NAME.
>>>
>>> One more things is when second VM fails it deletes the lv-one--0. Also
>>> any idea how can I force set a VM template that a swap space/disk to be
>>> created on LV.
>>>
>>> Some more information:
>>>
>>>  onevm list
>>>ID USER NAME STAT CPU MEMHOSTNAMETIME
>>>85 oneadmin centos55 runn   0  2G ast-wks-348 00

[one-users] [VMware ESXi] What's the purpose of exporting var/ ?

2011-02-21 Thread benpro
Hi,

like my subject said, what is the purpose of exporting var/ via a NFS
share ? I don't get it.

Actually I use this scheme :

ONE_LOCATION=/srv/cloud/one
My images (instances of the VMs) is in /srv/cloud/one/var/images,
which is a NFS mount.

So why I need to export the var/ ? ESXi have the datastore which is
the same NFS mount as /srv/cloud/one/var/images.
If you can give me some information, because for me this is unnecessary.

In advance, thanks.
---
Benoît.S
alias Benpro
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] [VMware ESXi] No migrating support ?

2011-02-21 Thread benpro
Hi,

I'm playing with ONE and VMware ESXi, and migrate or livemigrate operation fail.
So I was searching why the migration fail, and I've found this.

>oneadmin@OpenNebula:~$ cat ~/lib/remotes/vmm/vmware/migrate
>#!/usr/bin/env ruby
># --
>
># Action not supported
>exit -1

So, there is no migrating support in ONE + VMware ?

In advance thanks.
---
Benoît.S
alias Benpro
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] How about an OpenNebula image market place? was: sample linux image beside ttylinux?

2011-02-21 Thread Carsten.Friedrich
It would be great if OpenNebula could host a space where users can upload and 
share OS images and templates for use in OpenNebula.

carsten

-Original Message-
From: users-boun...@lists.opennebula.org 
[mailto:users-boun...@lists.opennebula.org] On Behalf Of Zeeshan Ali Shah
Sent: Monday, 21 February 2011 19:38
To: users@lists.opennebula.org
Subject: [one-users] sample linux image beside ttylinux?

Hi ,
1) how to get linux image beside ttylinux for example : centos, ubuntu 
to try with opennebula ?
2) the standard image is runnable out of the box in opennebula ?

-- 
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
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] User couldn't be authenticated, aborting call

2011-02-21 Thread shamaya

Hi Christophe ,
  In my situation, This problem is caused by that one was started by the root 
user at the boot time.
  My solution is source the ONE_AUTH file start one by oneadmin
  root$ su oneadmin
  oneadmin$ one stop
  oneadmin$ source ~/.bashrc  #export the ONE_AUTH  file
  oneadmin$ one start

 Hope this helps you!
2011-02-22



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


[one-users] VM can not start, STATE is always PEND, NO error info output( system locale cause it!!!)

2011-02-21 Thread shamaya
Hi,
  
Problem:
I had installed openNebula in ubuntu 10.04. but can not start any vm. the 
output of "onevm list" shows that the STAT is always PEND. and I couldn't find 
any error in log files. 

$ onehost list
  ID NAME  CLUSTER  RVM   TCPU   FCPU   ACPUTMEMFMEM STAT
   5 work-node1default0  0  0100  0K  366.6M   on

$ onevm list
   ID USER NAME STAT CPU MEMHOSTNAMETIME
9 oneadmin ttylinux pend   0  0K 00 00:00:33

Cause:
finally I found what cause this problem: It is locale that cause this!
In my ubuntu:
$ cat /etc/default/locale 
 LANG="zh_CN.UTF-8"
 LANGUAGE="zh_CN:zh"
This would cause IM scripts (e.g. /var/tmp/one/im/kvm.d/kvm.rb) not able to get 
correct node info. Because in OpenNebula node info gathered by running shell 
command like "virsh -c qemu:///system nodeinfo". 
Locale besides English  will cause problem!

Solution:
modify /etc/default/locale and add the following to it
LANG=en_US.UTF-8
LANGUAGE=en_US.en
  2.  echo “export LANGUAGE=en_US:en” >> ~/.bashrc 
2011-02-22



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


Re: [one-users] VM can not start, STATE is always PEND, NO error info output( system locale cause it!!!)

2011-02-21 Thread Carsten.Friedrich
Your output of “onehost list” does not look good. It is not reporting TCPU or 
FCPU correctly and ACPU is very small. Also TMEM seems incorrect and TMEM very 
small. Your VM is most likely “pending” as OpenNebula cannot find a cloud node 
with enough  resources to fulfil the requirements of the VM template. This is 
not surprising when looking at the “onehost list” output.
How many cores and how much RAM does work-node1 actually have? If this number 
is big enough to fulfil the requirements of the VM template you should be able 
to launch the VM once you fix the “onehost list” problem.
Carsten

From: users-boun...@lists.opennebula.org 
[mailto:users-boun...@lists.opennebula.org] On Behalf Of shamaya
Sent: Tuesday, 22 February 2011 12:39
To: users
Subject: [one-users] VM can not start, STATE is always PEND, NO error info 
output( system locale cause it!!!)

Hi,

Problem:
I had installed openNebula in ubuntu 10.04. but can not start any vm. the 
output of "onevm list" shows that the STAT is always PEND. and I couldn't find 
any error in log files.

$ onehost list
  ID NAME  CLUSTER  RVM   TCPU   FCPU   ACPUTMEMFMEM STAT
   5 work-node1default0  0  0100  0K  366.6M   on

$ onevm list
   ID USER NAME STAT CPU MEMHOSTNAMETIME
9 oneadmin ttylinux pend   0  0K 00 00:00:33

Cause:
finally I found what cause this problem: It is locale that cause this!
In my ubuntu:
$ cat /etc/default/locale
 LANG="zh_CN.UTF-8"
 LANGUAGE="zh_CN:zh"
This would cause IM scripts (e.g. /var/tmp/one/im/kvm.d/kvm.rb) not able to get 
correct node info. Because in OpenNebula node info gathered by running shell 
command like "virsh -c qemu:///system nodeinfo".
Locale besides English  will cause problem!

Solution:

 1.  modify /etc/default/locale and add the following to it
LANG=en_US.UTF-8
LANGUAGE=en_US.en

  2.  echo “export LANGUAGE=en_US:en” >> ~/.bashrc
2011-02-22

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


[one-users] 回复: RE: VM can not start, STATE is always PEND, NO error info output( system locale cause it!!!)

2011-02-21 Thread shamaya

Thanks for your replay!
I have resolved this problem by change the system locale to English. Now My 
"onehost list" output is nice:

$ onehost list
  ID NAME  CLUSTER  RVM   TCPU   FCPU   ACPUTMEMFMEM STAT
   5 work-node1default0100 99100  497.3M  369.9M   on
   9 front-end default0100 94100 1002.4M  824.7M   on

Yuelin
2011-02-22



shamaya



发件人: 
发送时间: 2011-02-22 10:11
主 题: RE: [one-users] VM can not start, STATE is always PEND, NO error info 
output( system locale cause it!!!)
收件人: , 



Your output of “onehost list” does not look good. It is not reporting TCPU or 
FCPU correctly and ACPU is very small. Also TMEM seems incorrect and TMEM very 
small. Your VM is most likely “pending” as OpenNebula cannot find a cloud node 
with enough  resources to fulfil the requirements of the VM template. This is 
not surprising when looking at the “onehost list” output.
How many cores and how much RAM does work-node1 actually have? If this number 
is big enough to fulfil the requirements of the VM template you should be able 
to launch the VM once you fix the “onehost list” problem.
Carsten
 
From: users-boun...@lists.opennebula.org 
[mailto:users-boun...@lists.opennebula.org] On Behalf Of shamaya
Sent: Tuesday, 22 February 2011 12:39
To: users
Subject: [one-users] VM can not start, STATE is always PEND, NO error info 
output( system locale cause it!!!)
 
Hi,
  
Problem:
I had installed openNebula in ubuntu 10.04. but can not start any vm. the 
output of "onevm list" shows that the STAT is always PEND. and I couldn't find 
any error in log files. 
 
$ onehost list
  ID NAME  CLUSTER  RVM   TCPU   FCPU   ACPUTMEMFMEM STAT
   5 work-node1default0  0  0100  0K  366.6M   on
 
$ onevm list
   ID USER NAME STAT CPU MEMHOSTNAMETIME
9 oneadmin ttylinux pend   0  0K 00 00:00:33
 
Cause:
finally I found what cause this problem: It is locale that cause this!
In my ubuntu:
$ cat /etc/default/locale 
 LANG="zh_CN.UTF-8"
 LANGUAGE="zh_CN:zh"
This would cause IM scripts (e.g. /var/tmp/one/im/kvm.d/kvm.rb) not able to get 
correct node info. Because in OpenNebula node info gathered by running shell 
command like "virsh -c qemu:///system nodeinfo". 
Locale besides English  will cause problem!
 
Solution:
modify /etc/default/locale and add the following to it
LANG=en_US.UTF-8
LANGUAGE=en_US.en
  2.  echo “export LANGUAGE=en_US:en” >> ~/.bashrc 
2011-02-22



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


[one-users] 回复: Users Digest, Vol 36, Issue 70

2011-02-21 Thread shamaya
Is there any place we can download pre-bundled image which can be used in 
opennebula?
if not if we can use images downloaded from Eucalyptus's site? 
http://forum.eucalyptus.com/wiki/EucalyptusUserImageCreatorGuide_v2.0

--  
Regards 

2011-02-22



shamaya




-- 

Message: 3 
Date: Tue, 22 Feb 2011 10:12:01 +1100 
From:  
To: ,  
Subject: [one-users] How about an OpenNebula image market place? was: 
sample linux image beside ttylinux? 
Message-ID: 
<439139c994945e41b9886be89789549b02964f5...@exnsw-mbx05.nexus.csiro.au> 
 
Content-Type: text/plain; charset="us-ascii" 

It would be great if OpenNebula could host a space where users can upload and 
share OS images and templates for use in OpenNebula. 

carsten 

-Original Message- 
From: users-boun...@lists.opennebula.org 
[mailto:users-boun...@lists.opennebula.org] On Behalf Of Zeeshan Ali Shah 
Sent: Monday, 21 February 2011 19:38 
To: users@lists.opennebula.org 
Subject: [one-users] sample linux image beside ttylinux? 

Hi , 
1) how to get linux image beside ttylinux for example : centos, ubuntu  
to try with opennebula ? 
2) the standard image is runnable out of the box in opennebula ? 

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

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


Re: [one-users] User couldn't be authenticated, aborting call.

2011-02-21 Thread christophe bonnaud
Hi,

I tried to reinstalled opennebula using oneadmin user, I made the
compilation from sources using scons.

After that I did the following commands as oneadmin user:

export RUBYLIB=/usr/lib/one/ruby/
export ONE_LOCATION=/etc/one
export ONE_XMLRPC="http://localhost:2633/RPC2";
 export PATH="/etc/one/bin:"$PATH

 oneauth login oneadmin
export ONE_AUTH=/home/oneadmin/.one/one_ssh

one start
 oned and scheduler started

onehost list
  Error: [HostPoolInfo] User couldn't be authenticated, aborting call.

no files were existing before (sqlite db, conf, etc..), so no changes have
been done one "ssh_one" file after the first start of "one" daemon.

in my sqlite db, I have the following:

sqlite> select * from user_pool;
0|oneadmin|23b2a94066e351bd18aa0d97db3d4a7b0cb98adb|1


I don't have any references to check if this information is correct.

I tried to increase the log level in oned.conf but no usefull informations
appear there...


Cheers,

Chris.



2011/2/21 Idafen Santana Pérez 

> Hi,
>
> I was having almost the same problem and I solved it by reinstalling
> opennebula with the right sqlite support and compiling it (I used
> scons to install it from source) as oneadmin user.
>
> You should check your oneadmin user information at your sqlite db (or
> mysql).
>
> Hope it helps.
>
> Regards
> Idafen
>
> On Mon, Feb 21, 2011 at 12:02 PM, Tino Vazquez 
> wrote:
> > Hi,
> >
> > The file pointed by ONE_AUTH when oned is first started sets the
> > username and password for the ID=0 account (the oneadmin account). If
> > this files changes, or the env variable shifts to point to another
> > file, you will get the could not authenticate error message.
> >
> > Regards,
> >
> > -Tino
> >
> > --
> > Constantino Vázquez Blanco, MSc
> > OpenNebula Major Contributor  / Cloud Researcher
> > www.OpenNebula.org | @tinova79
> >
> >
> >
> > On Mon, Feb 21, 2011 at 7:52 AM, christophe bonnaud 
> wrote:
> >> Hi Richard,
> >>
> >> Thanks a lot for your answer.
> >>
> >> I checked but on my system all process for opennebula are owned by the
> >> oneadmin user.
> >> I did a reinstallation of the server to have a self-contained
> installation
> >> so now all opennebula's files are owned by oneadmin user.
> >> Unfortunately the problem reappeared...
> >>
> >> I don't really know how to solve this problem. I did some research but
> it
> >> seems that this problem is not really common and I couldn't find any
> usefull
> >> informations.
> >>
> >> Can I ask you which ruby/opennebula version you are using? I am not sure
> >> it's rely to the problem but I have to consider all possibilities.
> >>
> >> Cheers,
> >>
> >> Chris.
> >>
> >>
> >> On Fri, Feb 18, 2011 at 5:17 PM, Whiffen, Richard
> >>  wrote:
> >>>
> >>> Christophe,
> >>>
> >>> I'm new to OpenNebula, so I'm not sure if this will help or not.  When
> I
> >>> was getting started I had the same problems. For some reason when I
> would
> >>> do a 'sudo su - oneadmin' it would still use my (root) .ssh settings
> and
> >>> not the oneadmin user.  Worse, some processes would be started with UID
> >>> root rather than oneadmin.  I had to kill the schedule process as root,
> it
> >>> wouldn't quit on it's own, and chown the log files to oneadmin again.
> >>> After that, the ssh authentication issues went away.
> >>>
> >>> Rich
> >>>
> >>> --
> >>> Rich Whiffen
> >>> richard_whif...@cable.comcast.com
> >>> AIM: richwhiffen
> >>> Yahoo: richwhiffen
> >>> Phone: 202-449-1312
> >>>
> >>>
> >>>
> >>> >
> >>> >Message: 4
> >>> >Date: Thu, 17 Feb 2011 08:42:58 -0800
> >>> >From: christophe bonnaud 
> >>> >To: Users@lists.opennebula.org
> >>> >Subject: [one-users] User couldn't be authenticated, aborting call.
> >>> >Message-ID:
> >>> >
> >>> >Content-Type: text/plain; charset="iso-8859-1"
> >>> >
> >>> >Hi,
> >>> >
> >>> >I have just installed opennebula ver 2.0.1-1.
> >>> >I have created a ssh key for oneadmin user, run the command:
> >>> >
> >>> > oneauth login oneadmin
> >>> >
> >>> >and exported the variable:
> >>> >
> >>> > export ONE_AUTH="/home/oneadmin/.one/one_ssh"
> >>> >
> >>> >I have correctly start oned using the command (as oneadmin user):
> >>> >
> >>> > one start
> >>> >
> >>> >But now all commands I am trying fail with an error:
> >>> >
> >>> > User couldn't be authenticated, aborting call.
> >>> >
> >>> >Did I miss something? is there an other step to do to allow oneadmin
> to
> >>> >issue some commands?
> >>> >
> >>> >Cheers,
> >>> >
> >>> >Christophe bonnaud.
> >>>
> >>> ___
> >>> Users mailing list
> >>> Users@lists.opennebula.org
> >>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> >>
> >>
> >>
> >> --
> >> --
> >> Bonnaud Christophe
> >> GSDC
> >> Korea Institute of Science and Technology Information
> >> Fax. +82-42-869-0789
> >> Tel. +82-42-869-0660
> >> Mobile +82-10-4664-3193
> >>
> >> __

Re: [one-users] Error with TM_LVM

2011-02-21 Thread Anoop L
Thanks Jaime.

I have edited the  tm_lvmrc and now I get this error on launching a second
VM:

Tue Feb 22 08:51:33 2011 [LCM][I]: New VM state is BOOT
Tue Feb 22 08:51:33 2011 [VMM][I]: Generating deployment file:
/opt/cloud/one/var/87/deployment.0
Tue Feb 22 08:53:21 2011 [VMM][I]: Command execution fail: 'if [ -x
"/var/tmp/one/vmm/xen/deploy" ]; then /var/tmp/one/vmm/xen/deploy
/opt/cloud/one/var//87/images/deployment.0;
else  exit 42; fi'
Tue Feb 22 08:53:21 2011 [VMM][I]: STDERR follows.
Tue Feb 22 08:53:21 2011 [VMM][I]: Error: Device 0 (vkbd) could not be
connected. Hotplug scripts not working.
Tue Feb 22 08:53:21 2011 [VMM][I]: ExitCode: 1
Tue Feb 22 08:53:21 2011 [VMM][E]: Error deploying virtual machine: Error:
Device 0 (vkbd) could not be connected. Hotplug scripts not working.


To test everything from scratch I have deleted the first VM and trying it
again.

Thanks,
Anoop

On Mon, Feb 21, 2011 at 10:08 PM, Jaime Melis  wrote:

> Hi Anoop,
>
> we have figured out what's wrong. A while back we changed the $SED variable
> and to use by default the '-r' option (extended reg-exps), but that change
> broke the sed script which parses de VM ID which is passed to the tm_clone
> script. We have reported a bug and submitted a patch:
> http://dev.opennebula.org/issues/496
>
> In order to fix it manually, edit "$ONE_LOCATION/etc/tm_lvm/tm_lvmrc" and
> change this line:
> echo $1 |$SED -e 's%^.*/\([^/]*\)/images.*$%\1%'
> to this one:
> echo $1 |$SED -e 's%^.*/([^/]*)/images.*$%\1%'
>
> The link to the patch:
> http://dev.opennebula.org/projects/opennebula/repository/revisions/ef738d5d51cefff55f7ee2aec4f7721473ebeb0e/diff/src/tm_mad/lvm/tm_lvmrc
>
> Thanks for reporting this!
>
> cheers,
> Jaime
>
> On Wed, Feb 16, 2011 at 6:08 PM, Anoop L  wrote:
>
>> sure Jaime.
>>
>> I have attached the vm.log as well.
>>
>> Vm.log:
>>
>> Wed Feb 16 20:49:43 2011 [DiM][I]: New VM state is ACTIVE.
>> Wed Feb 16 20:49:43 2011 [LCM][I]: New VM state is PROLOG.
>> Wed Feb 16 20:49:43 2011 [VM][I]: Virtual Machine has no context
>> Wed Feb 16 20:49:54 2011 [TM][I]: Command execution fail:
>> /opt/cloud/one/lib/tm_commands/lvm/tm_clone.sh
>> ast462:/opt/cloud/one/var//images/fd34675a5656d3b5b92e01b11dbae9c819e5f4c4
>> ast-wks-348:/opt/cloud/one/var//86/images/disk.0
>> Wed Feb 16 20:49:54 2011 [TM][I]: STDERR follows.
>> Wed Feb 16 20:49:54 2011 [TM][I]: /bin/sed: -e expression #1, char 29:
>> invalid reference \1 on `s' command's RHS
>> Wed Feb 16 20:49:54 2011 [TM][I]: ERROR MESSAGE --8<--
>> Wed Feb 16 20:49:54 2011 [TM][I]: Logical volume "lv-one--0" already
>> exists in volume group "vg00"
>> Wed Feb 16 20:49:54 2011 [TM][I]: ERROR MESSAGE -->8--
>> Wed Feb 16 20:49:54 2011 [TM][I]: ExitCode: 5
>> Wed Feb 16 20:49:54 2011 [TM][I]: tm_clone.sh:
>> ast462:/opt/cloud/one/var//images/fd34675a5656d3b5b92e01b11dbae9c819e5f4c4
>> ast-wks-348:/opt/cloud/one/var//86/images/disk.0
>> Wed Feb 16 20:49:54 2011 [TM][I]: tm_clone.sh: DST:
>> /opt/cloud/one/var//86/images/disk.0
>> Wed Feb 16 20:49:54 2011 [TM][I]: tm_clone.sh: Creating directory
>> /opt/cloud/one/var//86/images
>> Wed Feb 16 20:49:54 2011 [TM][I]: tm_clone.sh: Executed "/usr/bin/ssh
>> ast-wks-348 mkdir -p /opt/cloud/one/var//86/images".
>> Wed Feb 16 20:49:54 2011 [TM][I]: tm_clone.sh: Creating LV lv-one--0
>> Wed Feb 16 20:49:54 2011 [TM][I]: tm_clone.sh: ERROR: Command
>> "/usr/bin/ssh ast-wks-348 /usr/bin/sudo /sbin/lvcreate -L20G -n lv-one--0
>> vg00" failed.
>> Wed Feb 16 20:49:54 2011 [TM][I]: tm_clone.sh: ERROR:   Logical volume
>> "lv-one--0" already exists in volume group "vg00"
>> Wed Feb 16 20:49:54 2011 [TM][E]: Error excuting image transfer script:
>> Logical volume "lv-one--0" already exists in volume group "vg00"
>> Wed Feb 16 20:49:55 2011 [DiM][I]: New VM state is FAILED
>> Wed Feb 16 20:50:00 2011 [TM][W]: Ignored: LOG - 86 Command execution
>> fail: /opt/cloud/one/lib/tm_commands/lvm/tm_delete.sh
>> ast-wks-348:/opt/cloud/one/var//86/images
>>
>> Wed Feb 16 20:50:00 2011 [TM][W]: Ignored: LOG - 86 STDERR follows.
>>
>> Wed Feb 16 20:50:00 2011 [TM][W]: Ignored: LOG - 86 /bin/sed: -e
>> expression #1, char 29: invalid reference \1 on `s' command's RHS
>>
>> Wed Feb 16 20:50:00 2011 [TM][W]: Ignored: LOG - 86 ERROR MESSAGE
>> --8<--
>>
>> Wed Feb 16 20:50:00 2011 [TM][W]: Ignored: LOG - 86 Can't remove open
>> logical volume "lv-one--0"
>>
>> Wed Feb 16 20:50:00 2011 [TM][W]: Ignored: LOG - 86 ERROR MESSAGE
>> -->8--
>> Wed Feb 16 20:50:00 2011 [TM][W]: Ignored: LOG - 86 ExitCode: 5
>>
>> Wed Feb 16 20:50:00 2011 [TM][W]: Ignored: LOG - 86 tm_delete.sh: Deleting
>> remote LVs
>>
>> Wed Feb 16 20:50:00 2011 [TM][W]: Ignored: LOG - 86 tm_delete.sh: ERROR:
>> Command "/usr/bin/ssh ast-wks-348 /usr/bin/sudo /sbin/lvremove -f $(echo
>> vg00/$(/usr/bin/sudo /sbin/lvs --noheadings vg00|awk '{print $1}'|grep
>> lv-one-))" failed.
>>
>> Wed Feb 16 20:50:00 2011 [TM][W]: Ignored: LOG - 86 tm_delete.sh: ERROR: