Re: [one-users] Express Installation Script.

2010-11-09 Thread KING LABS
Thanks Daniel, this worked for me , i think i need to dig further into the
syntax  of templates. I am able to create new vms based on the raw image i
created using virt-manager which is registerd as OS image. Can you share
with me your opennebula deployment scenario and how you are using it.

Can i migrate the current setup to mysql db after installing from express
script ?

Also I am trying to understand how to interface with opennebula setup using
ruby oca api to build some basic web frontend to manage the opennebula
setup. A simple webpage which displays statistics like If you have any
information for the same

Will keep posting my experiences and queries.

@Daniel: Let me know if i can contact you directly for some knowledge
sharing.

Regards,
kinglabs

On Sat, Nov 6, 2010 at 1:19 PM,  wrote:

> I think that the error is related to "export ONE_AUTH=/$HOME/.one-auth"
> and it means that there is no one_auth file. This file should contain
> username:pasword of the opennebula user. but it might also be from some
> broken/missing ruby dependencies. You can also try install ruby-full from
> a package manager.
>
> Now about installing nebula. Using the express install is the easiest way
> of getting things working(I am still talking of installing on a Ubuntu
> distribution).
> 1. You run the install on the client machine(using sudo install.sh or
> something). The install script creates a "oneadmin" user and generates a
> "rsa" key for this user. When it generates the "node-install.sh" it copies
> that key to the node-install script.
>
> 2. If you add a node using "tm_ssh"( i have only used ssh, never nfs
> because i am new at this too) then OpenNebula will get the host info by
> using a "scp" to copy the "remotes" folder in the node /tmp/one and then
> will connect using "ssh" to the node and call those ruby scripts.
>
> NOTE1: one start must be done from the oneadmin user( so log in as
> oneadmin , because this is why the instalation script creates it ) and DO
> NOT USE sudo. If you use SUDO for "sudo start one", nebula will try  to
> ssh as root.
> NOTE2: to log in as oneadmin (i don't know the default oneadmin password)
> i do a sudo passwd oneadmin and input another password.
>
> 3. The commands:
> >> 1. export ONE_AUTH=/$HOME/.one-auth
> >> 2. export ONE_XMLRPC=http://localhost:2633/RPC2
> >> 3. sudo mkdir /var/run/one
> >> 4. sudo mkdir /var/lock/one
> >> 5. sudo chmod 0777 /var/run/one
> >> 6. sudo chmod 0777 /var/lock/one
> >> 7. one start
> Need to be performed on the client machine from the "oneadmin" user
> logged in.
> NOTE1: The install script should had created the /$HOME/.one-auth
> containing oneadmin:oneadmin inside.
> NOTE2: The password in the one_auth file does NOT NEED TO match the
> password of the oneadmin user. They are two separate things. The one_auth
> file is used for opennebula requests for client validation.
>
> 4. To install opennebula-node just run the node-install.sh on each node.
> The node-install script also creates a oneadmin user. And more important,
> it creates a  $HOME/.ssh (hidden folder, use Ctrl+H to see it in a file
> manager). In this folder it creates(if not already existing) a file called
> authorized_keys. Here the "rsa" key generated on the client is placed.
> This file contains all the "rsa" keys used by anywone which wants to be
> able to connect remotely to this node trough ssh. If the key is not
> present a password is requested when issuing a ssh.
>
> NOTE1: after running node-install, generate a password for oneadmin user
> and log in as oneadmin. If you remain logged as other user the nebula
> client will not be able to connect to the node to get info.
>
> NOTE2: this steps only enable onehost add and onevm submit methods to
> work. Migrate and onevm stop will fail because when migrating the nebula
> nodes communicate directly. And when issuing a stop the node will try to
> save the state of the virtual machine and copy back the machine to the
> nebula client. This two methods will fail because the nodes do not have
> the "rsa" key of the other nodes in their $HOME/.ssh/authorized_keys file.
> And also the nebula client does not have the keys of the nebula nodes. So,
> on each node, do a "ssh-keygen -t rsa". It will generate a id_rsa.pub.
> Copy the key from the .pub file to the authorized_keys file on the nebula
> client and of the other nebula nodes. Do this for each node. If the
> authorized_keys file does not exist create it but see in the node-install
> sh how is that created. VERRY IMPORTANT it must have certain access rights
> and owner. A chmod 0600 and chown -R oneadmin $HOME/.ssh  is necesary. But
> search in the node-install script. There are the correct values.
>
> În Vin, Noiembrie 5, 2010 6:42 pm, KING LABS a scris:
> > Hi Daniel,
> >
> >
> > What you said is right , I am still struggling to get things right  I
> >  dont find opennebula docs to be straigt forward for a newbei , can you
> > ask you for help .
> >
> > I am hoping if

[one-users] VMs stuck in PEND state

2010-11-09 Thread Fernando Morgenstern
Hello,

This is the first time that i'm using open nebula, so i tried to do it with 
express script which ran fine. I'm using CentOS 5.5 with Xen.

The first thing that i'm trying to do is getting the following vm running:

NAME   = ttylinux
CPU= 0.1
MEMORY = 64

DISK   = [
  source   = "/var/lib/one/images/ttylinux.img",
  target   = "hda",
  readonly = "no" ]

NIC= [ NETWORK = "Small network" ]

FEATURES=[ acpi="no" ]


So i used:

onevm create ttylinux.one 

The issue is that it keeps stuck in PEND state:

onevm list
   ID USER NAME STAT CPU MEMHOSTNAMETIME
3 oneadmin ttylinux pend   0  0K 00 00:20:03


At oned log the following messages keeps repeating:

Tue Nov  9 20:29:48 2010 [ReM][D]: VirtualMachinePoolInfo method invoked
Tue Nov  9 20:29:59 2010 [ReM][D]: VirtualMachinePoolInfo method invoked
Tue Nov  9 20:30:18 2010 [ReM][D]: HostPoolInfo method invoked
Tue Nov  9 20:30:18 2010 [ReM][D]: VirtualMachinePoolInfo method invoked

And at sched.log, i see this:

Tue Nov  9 20:31:18 2010 [HOST][D]: Discovered Hosts (enabled):
Tue Nov  9 20:31:18 2010 [VM][D]: Pending virtual machines : 3
Tue Nov  9 20:31:18 2010 [RANK][W]: No rank defined for VM
Tue Nov  9 20:31:18 2010 [SCHED][I]: Select hosts
PRI HID
---
Virtual Machine: 3


Any ideas of what might be happening?

I saw other threads here at the list with similar problems, but their solution 
didn't applied to my case.

Best Regards,

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


[one-users] Strange behaviour when creating new VM from image (ONE 2.0)

2010-11-09 Thread Oscar Elfving
Hello,

I am trying to create a new VM from a raw disk image, I have added it in the
template like this:
DISK = [
TYPE = "disk",
SOURCE = "/srv/cloud/var/images/ws1.img",
CLONE = no
]

But ONE just creates it, links it and then immediately deletes it, why is
this?

oned.log:
Tue Nov  9 15:33:18 2010 [TM][D]: Message received: LOG - 58 tm_ln.sh:
Creating directory /srv/cloud/one/var/58/images

Tue Nov  9 15:33:18 2010 [TM][D]: Message received: LOG - 58 tm_ln.sh:
Executed "mkdir -p /srv/cloud/one/var/58/images".

Tue Nov  9 15:33:18 2010 [TM][D]: Message received: LOG - 58 tm_ln.sh:
Executed "chmod a+w /srv/cloud/one/var/58/images".

Tue Nov  9 15:33:18 2010 [TM][D]: Message received: LOG - 58 tm_ln.sh: Link
/srv/cloud/var/images/ws1.img

Tue Nov  9 15:33:18 2010 [TM][D]: Message received: LOG - 58 tm_ln.sh:
Executed "ln -s /srv/cloud/var/images/ws1.img
/srv/cloud/one/var/58/images/disk.0".

Tue Nov  9 15:33:18 2010 [TM][D]: Message received: TRANSFER SUCCESS 58 -

Tue Nov  9 15:33:18 2010 [TM][D]: Message received: LOG - 58 tm_delete.sh:
Deleting /srv/cloud/one/var/58/images

Tue Nov  9 15:33:18 2010 [TM][D]: Message received: LOG - 58 tm_delete.sh:
Executed "rm -rf /srv/cloud/one/var/58/images".

Tue Nov  9 15:33:18 2010 [TM][D]: Message received: TRANSFER SUCCESS 58 -

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


Re: [one-users] OpenNebula Express 2.0 on Debian_5.0.6 problem

2010-11-09 Thread Jaime Melis
Hi,

thank you for reporting this. We have created a bug in order to fix it.

Regards,
Jaime

2010/11/2 Che-Yuan Tu 

>  Dear ONE users:
>
> I have just modified the OpenNebula Express 2.0 RC for the support of
> Debian 5.0.6 lenny.
> It now works on Debian_5.0.6 i386, but it meets a dependency problem on
> Debian_5.0.6 amd64.
> Because of the package: libmysqlclient16 dependency, the source.list
> of Debian_5.0.6 only provides libmysqlclient15(...).
> In order to install the OpenNubula Express 2.0 successfully on Debian 5.0.6
> amd64, it's seems that adding the deb 
> http://www.backports.org/debianlenny-backports main into
> source.list and solve the dependency between mysql-common(>=
> 5.1.49-1~bpo50+1 vs. 5.0.51a-24+lenny4) and libmysqlclient16 are two main
> issues.
> Does any one have suggestions for this problem?
> I am very appreciated.
> For the attached file is the ONE express for Debian_5.0.6. (Two files are
> modified: ./os/debian-5.0.sh & install.sh)
>
> Thanks
> Best Regards
> ==
> Bill Tu < Rider >
> National Center for High-Performance Computing
> No.22, Keyuan Rd., Central Taiwan Science Park, Taichung City 40763, Taiwan
> Tel : 886-4-24620202  # 826
> Fax : 886-4-24627373
> E-mail : ri...@nchc.org.tw
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] opennebula 2.0.1 under Debian Lenny (5.0.6)

2010-11-09 Thread Jaime Melis
Hi Marlon,

thank you for reporting this. We have created a bug in order to fix it.

regards,
Jaime

On Tue, Nov 9, 2010 at 11:33 AM,  wrote:

> The opennebula 2.0 debian package for Lenny (5.0.6) has a dependency
> on libmysqlclient16, althought the default Lenny repository only has
> libmysqlclient15.
> I'm posting here, knowing there are another thread for the same issue,
> since the second November : "OpenNebula Express 2.0 on Debian_5.0.6
> problem"
> By my meaning should opennebula not never depend on a backport package.
> Would it be a problem to change the dependency in the package and use
> libmysqlclient15 instead of libmysqlclient16?
> Has it been tested?
>
> Best Regards
>
> Marlon Nerling
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] opennebula 2.0.1 under Debian Lenny (5.0.6)

2010-11-09 Thread opennebula

The opennebula 2.0 debian package for Lenny (5.0.6) has a dependency
on libmysqlclient16, althought the default Lenny repository only has
libmysqlclient15.
I'm posting here, knowing there are another thread for the same issue,
since the second November : "OpenNebula Express 2.0 on Debian_5.0.6
problem"
By my meaning should opennebula not never depend on a backport package.
Would it be a problem to change the dependency in the package and use
libmysqlclient15 instead of libmysqlclient16?
Has it been tested?

Best Regards

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