[one-users] Sunstone does not has a interface that administrator can set a regular user'quota.

2011-04-27 Thread aiguoxin2008 aiguoxin2008
In comman interface, the user id for test is 1. Now we use oneauth quota set
   to change user limits:

$ oneauth quota set 1 20 1000

But sunstone does not has a interface that administrator can set a regular
user'quota.
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Does the SOURCE make no sense when creating an image in opennebula-2.2.0

2011-04-27 Thread junjie.ma


Hello, Carlos 

Thanks for your reply. :-) 

As your said, the SOURCE is
surely important when offering both user own private Image Repository and
the public Image Repository shared by all. SOURCE is an exciting option.
:-) 

I should do some experiments on how to use the SOURCE and send back
here the results. :-) 

Thanks a lot. :-) 

Best regards, 

Joey 

On 星期三
18:55, Carlos Martín Sánchez  写到:  

Hi,

You are right about the steps
made by the ruby OCA and OpenNebula daemon.
And indeed, it makes no sense
to specify only a SOURE attribute *if it is a file path*.

But you can
still take advantage of the SOURCE if you use an http:// url.
 This can be
used to bypass the local Image Repository and store some of the Image files
remotely.

Anyway, this isn't the typical scenario, and maybe it still
makes sense to remove the SOURCE option from the Suntone wizard.

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

 On Wed, Apr 27, 2011 at 2:41 AM, 
wrote:

Hello, 

When creating an image by sunstone-server, I find that
the
SOURCE makes no sense. So I go to the source code both in Ruby
and
opennebula, the SOURCE is only valid when using the PATH or
SIZE(with
FSTYPE). 

In my opinion, the whole image creation consists of
four steps:

1. Sunstone-server sends "one.image.allocate" by using Ruby
to
opennebula. The opennebula receives the calls and checks if the
SOURCE
exists in parameters of the image template. If it does not
exists,
opennebula assign a string to the SOURCE with the SHA1 digesting
of
"uid:name", otherwise do nothing to the SOURCE. Then, inserts a
image
record into the DB. 

2. Then sunstone-server sends "one.image.info
[5]" to
opennebula to retrieve the initialized infomation by step 1, mainly
the
value of SOURCE. 

3. Suntone-server starts to judge the branches by
PATH,
SOURCE, SIZE, FSTYPE and TYPE. When there only exists the SOURCE, it
will
do nothing. (For example, if the PATH exists and SOURCE not exists, it
will
do copy the PATH file to the SOURCE file path, and etc.) 

4. If
former
steps have no errors, sunstone-server sends "one.image.enable"
to
opennebula, it just update the record in DB and do nothing about
the
SOURCE. Otherwise, it sends "one.image.delete" to opennebula and delete
the
record in DB. 

So, if just specify the SOURCE to create an image,
the
operation make no sense. So, I think the SOURCE input should be removed
in
web pages of sunstone-server . 

If I have mistakes, please send me
the
error correction. Thanks. :-)


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



Links:
--
[1] http://www.opennebula.org/
[2]
mailto:cmar...@opennebula.org
[3] http://junjie.ma
[4]
http://cs2c.com.cn
[5] http://one.image.info
[6]
mailto:Users@lists.opennebula.org
[7]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] onevm saveas command

2011-04-27 Thread Daniel Molina
Hi,

Check that the image hook is uncommented in the oned.conf.
Would you mind to send us the output of onevm show VMID after the saveas
command.

Regards

On 27 April 2011 10:53, Prakhar Srivastava  wrote:

> Hi,
> When I run the command,
>   onevm saves VMID DISKID IMAGENAME
> the image of the disk is successfully saved upon shutdown of the VM,
> however the the file with a hash string name in (/srv/cloud/one/var/images)
> is not created. So when I use the image in any VM, it compains that the file
> cannot be found in /srv/cloud/one/var/images.
> Tue Apr 26 20:59:36 2011 [LCM][I]: New VM state is SHUTDOWN
> Tue Apr 26 20:59:44 2011 [LCM][I]: New VM state is EPILOG
> Tue Apr 26 21:01:15 2011 [TM][I]: tm_mv.sh: Moving
> /srv/cloud/one/var//90/images/disk.0
> Tue Apr 26 21:01:15 2011 [TM][I]: tm_mv.sh: Executed "/usr/bin/ssh box1
> mkdir -p /srv/cloud/one/var/90".
> Tue Apr 26 21:01:15 2011 [TM][I]: tm_mv.sh: Executed "/usr/bin/scp -r
> 192.168.145.116:/srv/cloud/one/var//90/images/disk.0
> box1:/srv/cloud/one/var/90/disk.0".
> Tue Apr 26 21:01:15 2011 [TM][I]: tm_mv.sh: Executed "/usr/bin/ssh
> 192.168.145.116 rm -rf /srv/cloud/one/var//90/images/disk.0".
> Tue Apr 26 21:01:16 2011 [TM][I]: tm_delete.sh: Deleting
> /srv/cloud/one/var//90/images
> Tue Apr 26 21:01:16 2011 [TM][I]: tm_delete.sh: Executed "/usr/bin/ssh
> 192.168.145.116 rm -rf /srv/cloud/one/var//90/images".
> Tue Apr 26 21:01:16 2011 [DiM][I]: New VM state is DONE
>
>
>
> Isn't the image supposed to be registered during the save process.
> Anyhow I am able to use the image by using a template file providing the
> source as the disk image saved and then registering it with a different
> name.
>
> Please advice.
>
> Prakhar
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>


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


Re: [one-users] OpenNebula 2.2 not respecting network range?

2011-04-27 Thread Lars Kellogg-Stedman
> Maybe it is a good idea to add a STARTING_IP attribute for the RANGED
> networks...

Out of curiousity, how do other people avoid giving the address of the
default router to a VM?  Put the router at .254 and hope you never
allocate that many virtual machines?  Or are most people using FIXED
networks?

-- 
Lars Kellogg-Stedman 
Senior Technologist
Harvard University SEAS
Academic and Research Computing (ARC)
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] OpenNebula 2.2 not respecting network range?

2011-04-27 Thread Ruben S. Montero
Yes the design was to define a network address as base for the ranged
network  rather than a starting IP  I'm afraid that the only thing you
can do is generate a network template of type FIXED with all the 200 leases
you want. This can be easily done programatically, though.

Maybe it is a good idea to add a STARTING_IP attribute for the RANGED
networks...

Cheers

Ruben

On Wed, Apr 27, 2011 at 6:27 PM, Lars Kellogg-Stedman  wrote:

> > The NETWORK_SIZE is used to compute the network mask for 202 addresses
> > (including network and broadcast)
>
> Interesting.  The documentation says:
>
> - NETWORK_ADDRESS: Base network address to generate IP addresses
> - NETWORK_SIZE: Number of hosts that can be connected using this
> network. It can be defined either using a number or a network class (B
> or C).
>
> This suggests to me that ONE starts allocating addresses at
> NETWORK_ADDRESS and continues up to NETWORK_ADDRESS + NETWORK_SIZE.
> Since this isn't the case...how do I define a /24 network in which the
> first N addresses are not available?  In my situation, .1 - .10 are
> reserved by the network operations group.  Is my only solution to
> manually create leases using the "onevnet addlease" command?  Is there
> a way to automate this when a new network is created?  Because I will
> need this behavior for every network I create, regardless of the size
> of the network.
>
> Thanks,
>
> --
> Lars Kellogg-Stedman 
> Senior Technologist
> Harvard University SEAS
> Academic and Research Computing (ARC)
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



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

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


Re: [one-users] ttylinux fails to start

2011-04-27 Thread Mike Putter
There seemed to be a problem with the NFS share as it didn't mount 
correctly when the node restarts.
Although it doesn't mount correctly, the dir structure is still 
available showing an old file structure.
I've to figure out how to correctly add it to fstab. At the moment it 
throws an error at start up and I have to mount it manually.


With the correct mount I was able to start up ttylinux (status 'runn') 
but I couldn't connect (no IP, no ssh possibility). Looking in a qemu 
window, the ttylinux image throws disk errors continuously and is not 
really able to start up completely. I think some kind of incompatibility 
between the server settings/config where the image was created and my node.


Therefore I will try to create an ubuntu image with virt-builder to see 
if that will work.


If I run into new issues I will post them in a new thread.

Thanks so far,
Mike




On 04/27/2011 04:56 PM, Javier Fontan wrote:

Have you checked that the directory you are sharing is the same one as
the var dir?

On Fri, Apr 15, 2011 at 4:53 PM, Mike Putter  
wrote:

On the cluster frontend (as oneadmin):

oneadmin@voyager:~/var$ touch test
oneadmin@voyager:~/var$ ls -lAF
total 456
drwxrwxrwx 2 oneadmin cloud   4096 2011-04-12 14:28 0/
drwxrwxrwx 2 oneadmin cloud   4096 2011-04-12 15:02 1/
drwxrwxrwx 2 oneadmin cloud   4096 2011-04-12 15:57 2/
drwxrwxrwx 2 oneadmin cloud   4096 2011-04-13 14:10 3/
drwxrwxrwx 2 oneadmin cloud   4096 2011-04-13 14:19 4/
drwxrwxrwx 2 oneadmin cloud   4096 2011-04-13 17:21 5/
drwxrwxrwx 2 oneadmin cloud   4096 2011-04-14 14:45 6/
drwxrwxrwx 2 oneadmin cloud   4096 2011-04-14 15:26 7/
drwxrwxrwx 2 oneadmin cloud   4096 2011-04-14 15:54 8/
-rw-r--r-- 1 oneadmin cloud648 2011-04-15 15:57 config
drwxrws--T 2 oneadmin cloud   4096 2011-04-07 22:06 images/
-rw-r- 1 oneadmin cloud  0 2011-04-15 15:57 .lock
-rw-r--r-- 1 oneadmin cloud  31744 2011-04-15 16:39 one.db
-rw-r--r-- 1 oneadmin cloud  20940 2011-04-15 16:47 oned.log
-rw-r--r-- 1 oneadmin cloud  5 2011-04-15 15:57 oned.pid
-rw--- 1 oneadmin cloud 321865 2011-04-15 16:47 one_xmlrpc.log
drwxr-xr-x 4 oneadmin cloud   4096 2011-04-07 22:06 remotes/
-rw-r--r-- 1 oneadmin cloud  21614 2011-04-15 16:47 sched.log
-rw-r--r-- 1 oneadmin cloud  5 2011-04-15 15:57 sched.pid
-rw-r--r-- 1 oneadmin cloud  0 2011-04-15 16:47 test



This is what I see at the node:

administrator@wws-vmhost01:/srv/cloud/one/var$ ls -lAF
total 36
drwxr-xr-x 3 oneadmin cloud 4096 2011-04-12 14:28 0/
drwxr-xr-x 3 oneadmin cloud 4096 2011-04-12 15:02 1/
drwxr-xr-x 3 oneadmin cloud 4096 2011-04-12 15:57 2/
drwxr-xr-x 3 oneadmin cloud 4096 2011-04-13 14:10 3/
drwxr-xr-x 3 oneadmin cloud 4096 2011-04-13 14:18 4/
drwxr-xr-x 3 oneadmin cloud 4096 2011-04-13 17:21 5/
drwxr-xr-x 3 oneadmin cloud 4096 2011-04-14 14:44 6/
drwxr-xr-x 3 oneadmin cloud 4096 2011-04-14 15:26 7/
drwxr-xr-x 3 oneadmin cloud 4096 2011-04-14 15:53 8/


Can't see the test file ...
What action could I take ?



On 04/15/2011 04:27 PM, Javier Fontan wrote:

Don't do that, the disk.0 that is written in the deployment file is
the actual disk copied by the TM. It seems that you are using tm_nfs
but the shared storage is not mounted in the correct path in the
remote node. Try creating a file in /srv/cloud/one/var and check if
you can see it in the remote host in the same path.

On Fri, Apr 15, 2011 at 4:05 PM, Mike Putter
  wrote:

Got some progress here:


qemu: could not open disk image /srv/cloud/one/var//8/images/disk.0: No
such file or directory

Indeed: the XML file is called deployment.0
Don't know why it created the file as disk.0 ...

Moreover, I could get the image running directly in the node by invoking:

virsh --connect qemu:///system create deployment.0
Domain one-8 created from deployment.0

(off course after editting the deployment.0 file changing disk.0 to
deployment.0)

So, it seems it's possible to get it going. Now I have to figure out how
to
teach OpenNebula to create a proper deployment file !
Where is this file generated ?


On 04/15/2011 01:13 PM, Mike Putter wrote:

Thanks for your swift reply: the output of
/var/log/libvirt/qemu/one-8.log
reads:

LC_ALL=C
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin
/usr/bin/kvm -S -M pc
-0.12 -cpu qemu32 -enable-kvm -m 64 -smp 1 -name one-8 -uuid
a0a30e17-c21d-6e28-39bb-aed8df76c2b
4 -nographic -chardev
socket,id=monitor,path=/var/lib/libvirt/qemu/one-8.monitor,server,nowait
-
monitor chardev:monitor -no-acpi -boot c -drive
file=/srv/cloud/one/var//8/images/disk.0,if=ide,
index=0,boot=on,format=raw -net
nic,macaddr=02:00:c0:a8:01:0b,vlan=0,name=nic.0 -net tap,fd=38,v
lan=0,name=tap.0 -serial none -parallel none -usb
open /dev/kvm: No such file or directory
Could not initialize KVM, will disable KVM support
qemu: could not open disk image /srv/cloud/one/var//8/images/disk.0: No
such file or directory


Is it possible to have a fall back to qemu if the VT-x instruction set
is
absent ?
It looks like qemu is try

Re: [one-users] Ganglia reports

2011-04-27 Thread Craig Dawson
Thanks Javier,

Thanks for the explanation.  I was under the impression that the virtual 
machine information would also be graphed.  What is the purpose of the 
OPENNEBULA_VM_INFORMATION metric?  Is it so that you can pull this information 
from Ganglia using another tool?  Thanks again!

Craig

-Original Message-
From: Javier Fontan [mailto:jfon...@gmail.com] 
Sent: Wednesday, April 27, 2011 11:23 AM
To: Craig Dawson
Cc: users@lists.opennebula.org
Subject: Re: [one-users] Ganglia reports

Yikes! I've misreaded the email. The VM information is not directly parseable 
by ganglia so it cannot be used to draw graphics or to get notifications on VM 
activity. There are two ways to add VM information from my point of view, one 
is to create a virtual ganglia host per VM and add the information there (I see 
it a bit hackish but maybe the cleanest). The other is to create new parameters 
per VM/monitoring value pair in the physical host it is running it, something 
like OPENNEBULA_VM_85_CPU, OPENNEBULA_VM_85_FREEMEMORY and so on. I see this 
technique ugly and non scalable.

Do you see any other way to do this?

On Tue, Apr 26, 2011 at 11:29 AM, Javier Fontan  wrote:
> That weird string in OPENNEBULA_VMS_INFORMATION is normal, is a
> yaml-base64 representation of the VMS info. Can you send me that 
> string from one of your hosts, maybe there is something wrong in the 
> monitoring scripts.
>
> On Thu, Apr 21, 2011 at 7:51 PM, Craig Dawson  wrote:
>> I just installed OpenNebula 2.2 and I wanted to get Ganglia reporting 
>> set up.  I was able to get Ganglia running on each of my host 
>> machines.  The host are all reporting in and I'm able to see all of the 
>> graphs per host.
>> I'm running RHEL 6 on the hypervisor nodes and using KVM for my 
>> guests.  I attempted to set up the reporting for my guest machines as 
>> described here:
>> http://opennebula.org/documentation:rel2.2:ganglia
>>
>> When I look at my Ganglia reports, I don't see any of the guests 
>> showing up.  I am running gmetric out of cron every minute.  I 
>> noticed after I set this up, there is now a 
>> OPENNEBULA_VMS_INFORMATION metric, but when I click on this, I only 
>> see the base64 encoded string for each host. Is there some other 
>> process that is supposed to grab the information from Ganglia and 
>> generate the graphs?  I'm very new to OpenNebula and Ganglia, so any help in 
>> identifing where I should look next would be greatly appreciated.  Thanks!
>>
>> Craig Dawson
>>
>> ___
>> Users mailing list
>> Users@lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>
>
>
> --
> Javier Fontan, Grid & Virtualization Technology Engineer/Researcher 
> DSA Research Group: http://dsa-research.org Globus GridWay 
> Metascheduler: http://www.GridWay.org OpenNebula Virtual 
> Infrastructure Engine: http://www.OpenNebula.org
>



--
Javier Fontan, Grid & Virtualization Technology Engineer/Researcher DSA 
Research Group: http://dsa-research.org Globus GridWay Metascheduler: 
http://www.GridWay.org OpenNebula Virtual Infrastructure Engine: 
http://www.OpenNebula.org


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


Re: [one-users] OpenNebula 2.2 not respecting network range?

2011-04-27 Thread Lars Kellogg-Stedman
> reserved by the network operations group.  Is my only solution to
> manually create leases using the "onevnet addlease" command?

Well, shoot.  I can't manually add leases to a RANGED network, so this
solution is out, too.

-- 
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] OpenNebula Express Addons

2011-04-27 Thread Adrian Reza
Hi all,

I have some issues during OpenNebula installation with Express addons. After
finishing installation on front node, I checked there was no /cloud/one
directory on /srv/ although the installer script set installation to
/srv/cloud/one although OpenNebula daemon succesfully started.

And I still didn't know how to execute generated node-install.sh script from
frontnode to install it at each worker nodes. Sorry, I am newbie to linux
command and opennebula. Hope someone can help my problems. Thanks.

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


Re: [one-users] OpenNebula 2.2 not respecting network range?

2011-04-27 Thread Lars Kellogg-Stedman
> The NETWORK_SIZE is used to compute the network mask for 202 addresses
> (including network and broadcast)

Interesting.  The documentation says:

- NETWORK_ADDRESS: Base network address to generate IP addresses
- NETWORK_SIZE: Number of hosts that can be connected using this
network. It can be defined either using a number or a network class (B
or C).

This suggests to me that ONE starts allocating addresses at
NETWORK_ADDRESS and continues up to NETWORK_ADDRESS + NETWORK_SIZE.
Since this isn't the case...how do I define a /24 network in which the
first N addresses are not available?  In my situation, .1 - .10 are
reserved by the network operations group.  Is my only solution to
manually create leases using the "onevnet addlease" command?  Is there
a way to automate this when a new network is created?  Because I will
need this behavior for every network I create, regardless of the size
of the network.

Thanks,

-- 
Lars Kellogg-Stedman 
Senior Technologist
Harvard University SEAS
Academic and Research Computing (ARC)
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] OpenNebula 2.2 not respecting network range?

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

The NETWORK_SIZE is used to compute the network mask for 202 addresses
(including network and broadcast) you need 8 bits so 24 bits for the network
mask. This gives you a network 10.243.19.0/24, so the first IP
is 10.243.19.1and OpenNebula will give you IPs from 10.243.19.1 to
10.243.19.200

Cheers

Ruben

On Wed, Apr 27, 2011 at 5:08 PM, Lars Kellogg-Stedman  wrote:

> Hello all,
>
> I have a network defined like this:
>
>  NAME="Cloud Private"
>  TYPE=RANGED
>  BRIDGE=br619
>  GATEWAY=10.243.19.1
>  NETWORK_ADDRESS=10.243.19.20
>  NETWORK_SIZE=200
>
> I would expect this to allocate addresses in the range 10.243.19.20 -
> 10.243.19.220.  However, if I create a VM from this description:
>
>  CPU = 1
>  MEMORY = 1024
>  DISK = [ image = "Basic Server" ]
>  NIC = [ NETWORK = "Cloud Private" ]
>  GRAPHICS = [
>  type = "vnc",
>  listen = "0.0.0.0"
>  ]
>
> It gets a lease for 10.243.19.1:
>
>  $ onevnet show 'Cloud Private'
>  VIRTUAL NETWORK 1 INFORMATION
>  ID:   : 1
>  UID:  : 0
>  PUBLIC: N
>
>  VIRTUAL NETWORK TEMPLATE
>  BRIDGE=br619
>  GATEWAY=10.243.19.1
>  NAME=Cloud Private
>  NETWORK_ADDRESS=10.243.19.20
>  NETWORK_SIZE=200
>  TYPE=RANGED
>
>  LEASES INFORMATION
>  LEASE=[ IP=10.243.19.1, MAC=5e:a5:0a:f3:13:01, USED=1, VID=13 ]
>
> How do I fix this?  Do I simply not understand how ranged networks
> work?  Thanks for your help,
>
> --
> Lars Kellogg-Stedman 
> Senior Technologist
> Harvard University SEAS
> Academic and Research Computing (ARC)
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



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

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


Re: [one-users] How to boot from .img

2011-04-27 Thread Amit Soni
What is the architecture of the Ubuntu 9.10 image. I has one similar
problem. If the architecture of the OS on the img file is other than
i686 you have to manually specify it in the template file. Look at the
thread: 
http://lists.opennebula.org/pipermail/users-opennebula.org/2011-April/004909.html

Amit

On Wed, Apr 27, 2011 at 6:13 PM, Javier Fontan  wrote:
> I really have no idea what could be happening. Can you check that the
> file copied in the node //images/disk.0 is the same as
> the original one. Maybe the copy is not correct. Also check the
> permissions.
>
> Also execute a "file" command to that image to check if it is a qcow image.
>
> On Thu, Apr 7, 2011 at 4:37 AM, Khoa Nguyen  wrote:
>> hi all
>> I have just created a .img file which contains ubuntu.  On cluster node, It
>> runs when  i type " sudo qemu -m 512 -hda ubuntu.img -boot c . But
>> I try to create a VM  from ubuntu.img  on front end but it display :
>>
>> ata0 master: QEMU HARDDISK ATA-7 Hard-Disk
>> ata1 master: QEMU DVD-ROM...
>> booting from Hard Disk
>> Noot failed: not a bootable disk
>> Fatal: no bootable
>>
>> File template:
>>
>>
>> NAME   = ubuntu9.10
>> CPU    = 1
>> MEMORY = 1024
>> #OS  = [ BOOT   = hd ]
>>
>>
>>
>> DISK   = [
>>   type        = "os",
>>   source   = "/srv/cloud/images/ubuntu/ubuntu.img",
>>   target   = "hda",
>>   readonly = "no" ]
>>
>>
>> NIC    = [ NETWORK = "Small network" ]
>>
>> FEATURES=[ acpi="no" ]
>>
>>
>> GRAPHICS = [
>>   type = "vnc",
>>   listen = "localhost",
>>   port = "5903"]
>>
>> It's created by file template which similar with ttylinux.img but can't
>> boot. Anybody know? please help me.
>> thank you.
>>
>> --
>> 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
>>
>>
>
>
>
> --
> Javier Fontan, Grid & Virtualization Technology Engineer/Researcher
> DSA Research Group: http://dsa-research.org
> Globus GridWay Metascheduler: http://www.GridWay.org
> OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



-- 
Amit Soni
Email-id: get.amits...@gmail.com, get.amits...@hotmail.com
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Ganglia reports

2011-04-27 Thread Javier Fontan
Yikes! I've misreaded the email. The VM information is not directly
parseable by ganglia so it cannot be used to draw graphics or to get
notifications on VM activity. There are two ways to add VM information
from my point of view, one is to create a virtual ganglia host per VM
and add the information there (I see it a bit hackish but maybe the
cleanest). The other is to create new parameters per VM/monitoring
value pair in the physical host it is running it, something like
OPENNEBULA_VM_85_CPU, OPENNEBULA_VM_85_FREEMEMORY and so on. I see
this technique ugly and non scalable.

Do you see any other way to do this?

On Tue, Apr 26, 2011 at 11:29 AM, Javier Fontan  wrote:
> That weird string in OPENNEBULA_VMS_INFORMATION is normal, is a
> yaml-base64 representation of the VMS info. Can you send me that
> string from one of your hosts, maybe there is something wrong in the
> monitoring scripts.
>
> On Thu, Apr 21, 2011 at 7:51 PM, Craig Dawson  wrote:
>> I just installed OpenNebula 2.2 and I wanted to get Ganglia reporting set
>> up.  I was able to get Ganglia running on each of my host machines.  The
>> host are all reporting in and I’m able to see all of the graphs per host.
>> I’m running RHEL 6 on the hypervisor nodes and using KVM for my guests.  I
>> attempted to set up the reporting for my guest machines as described here:
>> http://opennebula.org/documentation:rel2.2:ganglia
>>
>> When I look at my Ganglia reports, I don’t see any of the guests showing
>> up.  I am running gmetric out of cron every minute.  I noticed after I set
>> this up, there is now a OPENNEBULA_VMS_INFORMATION metric, but when I click
>> on this, I only see the base64 encoded string for each host. Is there some
>> other process that is supposed to grab the information from Ganglia and
>> generate the graphs?  I’m very new to OpenNebula and Ganglia, so any help in
>> identifing where I should look next would be greatly appreciated.  Thanks!
>>
>> Craig Dawson
>>
>> ___
>> Users mailing list
>> Users@lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>
>
>
> --
> Javier Fontan, Grid & Virtualization Technology Engineer/Researcher
> DSA Research Group: http://dsa-research.org
> Globus GridWay Metascheduler: http://www.GridWay.org
> OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org
>



-- 
Javier Fontan, Grid & Virtualization Technology Engineer/Researcher
DSA Research Group: http://dsa-research.org
Globus GridWay Metascheduler: http://www.GridWay.org
OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] How to boot from .img

2011-04-27 Thread Javier Fontan
I really have no idea what could be happening. Can you check that the
file copied in the node //images/disk.0 is the same as
the original one. Maybe the copy is not correct. Also check the
permissions.

Also execute a "file" command to that image to check if it is a qcow image.

On Thu, Apr 7, 2011 at 4:37 AM, Khoa Nguyen  wrote:
> hi all
> I have just created a .img file which contains ubuntu.  On cluster node, It
> runs when  i type " sudo qemu -m 512 -hda ubuntu.img -boot c . But
> I try to create a VM  from ubuntu.img  on front end but it display :
>
> ata0 master: QEMU HARDDISK ATA-7 Hard-Disk
> ata1 master: QEMU DVD-ROM...
> booting from Hard Disk
> Noot failed: not a bootable disk
> Fatal: no bootable
>
> File template:
>
>
> NAME   = ubuntu9.10
> CPU    = 1
> MEMORY = 1024
> #OS  = [ BOOT   = hd ]
>
>
>
> DISK   = [
>   type        = "os",
>   source   = "/srv/cloud/images/ubuntu/ubuntu.img",
>   target   = "hda",
>   readonly = "no" ]
>
>
> NIC    = [ NETWORK = "Small network" ]
>
> FEATURES=[ acpi="no" ]
>
>
> GRAPHICS = [
>   type = "vnc",
>   listen = "localhost",
>   port = "5903"]
>
> It's created by file template which similar with ttylinux.img but can't
> boot. Anybody know? please help me.
> thank you.
>
> --
> 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
>
>



-- 
Javier Fontan, Grid & Virtualization Technology Engineer/Researcher
DSA Research Group: http://dsa-research.org
Globus GridWay Metascheduler: http://www.GridWay.org
OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Authentication ldap and authdb issues

2011-04-27 Thread Javier Fontan
The addons were recently updated to be 2.2 compatible. Anyway, I think
they were already compatible with 2.2 release.

As Gian Umberto says you should protect the password files with file
system permissions. Anyway, we are looking into more secure auth
methods for ldap.

On Tue, Apr 12, 2011 at 9:53 AM, Steffen Neumann  wrote:
> Hi,
>
> On Mon, 2011-04-11 at 22:54 +0530, Madhurranjan Mohaan wrote:
>> I am trying to use the ldap add on to integrate the setup with ldap
>
> I have some followup questions:
>
> 1) The documentation suggests that LDAP integration was created
>   for the 2.0 release: documentation:archives:rel2.0:ldap
>   I assume it still (is supposed to) work with 2.2 ?
>
> 2) The user should add its credentials to $ONE_AUTH file
>   (usually $HOME/.one/one_auth) in this fashion:
>
>        user_dn:plain:user_password
>
>   Does that mean the users have to put their passwds
>   in plain text into their homedir ?? This would be
>   a gaping security hole.
>
> 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
>



-- 
Javier Fontan, Grid & Virtualization Technology Engineer/Researcher
DSA Research Group: http://dsa-research.org
Globus GridWay Metascheduler: http://www.GridWay.org
OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] OpenNebula 2.2 not respecting network range?

2011-04-27 Thread Lars Kellogg-Stedman
Hello all,

I have a network defined like this:

  NAME="Cloud Private"
  TYPE=RANGED
  BRIDGE=br619
  GATEWAY=10.243.19.1
  NETWORK_ADDRESS=10.243.19.20
  NETWORK_SIZE=200

I would expect this to allocate addresses in the range 10.243.19.20 -
10.243.19.220.  However, if I create a VM from this description:

  CPU = 1
  MEMORY = 1024
  DISK = [ image = "Basic Server" ]
  NIC = [ NETWORK = "Cloud Private" ]
  GRAPHICS = [
  type = "vnc",
  listen = "0.0.0.0"
  ]

It gets a lease for 10.243.19.1:

  $ onevnet show 'Cloud Private'
  VIRTUAL NETWORK 1 INFORMATION
  ID:   : 1
  UID:  : 0
  PUBLIC: N

  VIRTUAL NETWORK TEMPLATE
  BRIDGE=br619
  GATEWAY=10.243.19.1
  NAME=Cloud Private
  NETWORK_ADDRESS=10.243.19.20
  NETWORK_SIZE=200
  TYPE=RANGED

  LEASES INFORMATION
  LEASE=[ IP=10.243.19.1, MAC=5e:a5:0a:f3:13:01, USED=1, VID=13 ]

How do I fix this?  Do I simply not understand how ranged networks
work?  Thanks for your help,

-- 
Lars Kellogg-Stedman 
Senior Technologist
Harvard University SEAS
Academic and Research Computing (ARC)
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Authentication ldap and authdb issues

2011-04-27 Thread Javier Fontan
1) The database auth.db is generated if it does not exist, that is the
normal procedure the first time it is started.

2) There's a missing gem, and unfortunately is not in the documentation:

$ sudo gem install sequel

That should solve the problem

On Mon, Apr 11, 2011 at 7:24 PM, Madhurranjan Mohaan
 wrote:
> Hi All,
>
> I am trying to use the ldap add on to integrate the setup with ldap but then
> came back to the basic simple setup and wanted to get the ssh setup running
> according to the documentation.
>
> The documentation says:
>
> 1. Default configuration will use sqlite database located at
> $ONE_LOCATION/var/auth.db  But i can't find any auth.db that is present in
> this location.
>
> 2. I created a dummy user and when I run "oneauth key" there after I create
> that user in the system to pass the ssh key , I get the following error :
>
> /srv/cloud/one/bin/oneauth:37:in `require': no such file to load -- sequel
> (LoadError)
>     from /srv/cloud/one/bin/oneauth:37
>
> which seems to be an issue with ruby package that i need to fix.
>
> 3.  If I eventually get Ldap to work with open nebula,  will the users be
> able to login through the sunstone gui ?
>
> Any help is much appreciated.
>
> thanks
>
> Ranjan
>
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>



-- 
Javier Fontan, Grid & Virtualization Technology Engineer/Researcher
DSA Research Group: http://dsa-research.org
Globus GridWay Metascheduler: http://www.GridWay.org
OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


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

2011-04-27 Thread Tino Vazquez
Hi Tim,

Did you restart oned?

If so, please send the error message, it may be a little different.

Regards,

-Tino

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



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


Re: [one-users] OpenNebula KVM livemigration problem

2011-04-27 Thread Javier Fontan
There's a problem with the protocol in the default kvmrc file. Change
in remotes/vmm/kvm/kvmrc the line:

export QEMU_PROTOCOL=qemu

to

export QEMU_PROTOCOL=qemu+ssh

After that issue an onehost sync so that file is updated in the next
monitoring cycle to the nodes, that should solve the problem.

It happens because for libvirt the default communication protocol is
tls so for a remote host qemu is qemu+tls.


On Thu, Apr 14, 2011 at 6:59 PM, Michael W. Lucas
 wrote:
> Hi,
>
> I'm attempting to replace my ON 1.4 install with 2.2 on Ubuntu 10.10.
> I've removed a couple worker nodes from the 1.4 cluster, and have them
> running as a test cluster.  Everything seems to work except live
> migration.  Basic connectivity works, as I can submit, deploy, etc, my
> virtual machines.
>
> Using the same compute nodes with ON 1.4, I could livemigrate back and
> forth without trouble.  On 2.2, though, it fails.  oned.log shows:
>
> Thu Apr 14 12:53:03 2011 [VMM][D]: Message received: MIGRATE FAILURE 0 error: 
> Cannot access CA certificate '/etc/pki/CA/cacert.pem': No such file or 
> directory
>
> I've seen where other people have had this problem before, but I can
> livemigrate with virsh without difficulty.  I would think the PKI
> setting needs to be in OpenNebula somewhere.  Any suggestions where to
> look?
>
> Thanks,
> ==ml
>
> --
> Michael W. Lucas
> http://www.MichaelWLucas.com/, http://blather.MichaelWLucas.com/
> Latest book: Network Flow Analysis http://www.networkflowanalysis.com/
> mwlu...@blackhelicopters.org, Twitter @mwlauthor
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



-- 
Javier Fontan, Grid & Virtualization Technology Engineer/Researcher
DSA Research Group: http://dsa-research.org
Globus GridWay Metascheduler: http://www.GridWay.org
OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] ttylinux fails to start

2011-04-27 Thread Javier Fontan
Have you checked that the directory you are sharing is the same one as
the var dir?

On Fri, Apr 15, 2011 at 4:53 PM, Mike Putter  
wrote:
> On the cluster frontend (as oneadmin):
>
> oneadmin@voyager:~/var$ touch test
> oneadmin@voyager:~/var$ ls -lAF
> total 456
> drwxrwxrwx 2 oneadmin cloud   4096 2011-04-12 14:28 0/
> drwxrwxrwx 2 oneadmin cloud   4096 2011-04-12 15:02 1/
> drwxrwxrwx 2 oneadmin cloud   4096 2011-04-12 15:57 2/
> drwxrwxrwx 2 oneadmin cloud   4096 2011-04-13 14:10 3/
> drwxrwxrwx 2 oneadmin cloud   4096 2011-04-13 14:19 4/
> drwxrwxrwx 2 oneadmin cloud   4096 2011-04-13 17:21 5/
> drwxrwxrwx 2 oneadmin cloud   4096 2011-04-14 14:45 6/
> drwxrwxrwx 2 oneadmin cloud   4096 2011-04-14 15:26 7/
> drwxrwxrwx 2 oneadmin cloud   4096 2011-04-14 15:54 8/
> -rw-r--r-- 1 oneadmin cloud    648 2011-04-15 15:57 config
> drwxrws--T 2 oneadmin cloud   4096 2011-04-07 22:06 images/
> -rw-r- 1 oneadmin cloud      0 2011-04-15 15:57 .lock
> -rw-r--r-- 1 oneadmin cloud  31744 2011-04-15 16:39 one.db
> -rw-r--r-- 1 oneadmin cloud  20940 2011-04-15 16:47 oned.log
> -rw-r--r-- 1 oneadmin cloud      5 2011-04-15 15:57 oned.pid
> -rw--- 1 oneadmin cloud 321865 2011-04-15 16:47 one_xmlrpc.log
> drwxr-xr-x 4 oneadmin cloud   4096 2011-04-07 22:06 remotes/
> -rw-r--r-- 1 oneadmin cloud  21614 2011-04-15 16:47 sched.log
> -rw-r--r-- 1 oneadmin cloud      5 2011-04-15 15:57 sched.pid
> -rw-r--r-- 1 oneadmin cloud      0 2011-04-15 16:47 test
>
>
>
> This is what I see at the node:
>
> administrator@wws-vmhost01:/srv/cloud/one/var$ ls -lAF
> total 36
> drwxr-xr-x 3 oneadmin cloud 4096 2011-04-12 14:28 0/
> drwxr-xr-x 3 oneadmin cloud 4096 2011-04-12 15:02 1/
> drwxr-xr-x 3 oneadmin cloud 4096 2011-04-12 15:57 2/
> drwxr-xr-x 3 oneadmin cloud 4096 2011-04-13 14:10 3/
> drwxr-xr-x 3 oneadmin cloud 4096 2011-04-13 14:18 4/
> drwxr-xr-x 3 oneadmin cloud 4096 2011-04-13 17:21 5/
> drwxr-xr-x 3 oneadmin cloud 4096 2011-04-14 14:44 6/
> drwxr-xr-x 3 oneadmin cloud 4096 2011-04-14 15:26 7/
> drwxr-xr-x 3 oneadmin cloud 4096 2011-04-14 15:53 8/
>
>
> Can't see the test file ...
> What action could I take ?
>
>
>
> On 04/15/2011 04:27 PM, Javier Fontan wrote:
>>
>> Don't do that, the disk.0 that is written in the deployment file is
>> the actual disk copied by the TM. It seems that you are using tm_nfs
>> but the shared storage is not mounted in the correct path in the
>> remote node. Try creating a file in /srv/cloud/one/var and check if
>> you can see it in the remote host in the same path.
>>
>> On Fri, Apr 15, 2011 at 4:05 PM, Mike Putter
>>  wrote:
>>>
>>> Got some progress here:
>>>
 qemu: could not open disk image /srv/cloud/one/var//8/images/disk.0: No
 such file or directory
>>>
>>> Indeed: the XML file is called deployment.0
>>> Don't know why it created the file as disk.0 ...
>>>
>>> Moreover, I could get the image running directly in the node by invoking:
>>>
>>> virsh --connect qemu:///system create deployment.0
>>> Domain one-8 created from deployment.0
>>>
>>> (off course after editting the deployment.0 file changing disk.0 to
>>> deployment.0)
>>>
>>> So, it seems it's possible to get it going. Now I have to figure out how
>>> to
>>> teach OpenNebula to create a proper deployment file !
>>> Where is this file generated ?
>>>
>>>
>>> On 04/15/2011 01:13 PM, Mike Putter wrote:

 Thanks for your swift reply: the output of
 /var/log/libvirt/qemu/one-8.log
 reads:

 LC_ALL=C
 PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin
 /usr/bin/kvm -S -M pc
 -0.12 -cpu qemu32 -enable-kvm -m 64 -smp 1 -name one-8 -uuid
 a0a30e17-c21d-6e28-39bb-aed8df76c2b
 4 -nographic -chardev
 socket,id=monitor,path=/var/lib/libvirt/qemu/one-8.monitor,server,nowait
 -
 monitor chardev:monitor -no-acpi -boot c -drive
 file=/srv/cloud/one/var//8/images/disk.0,if=ide,
 index=0,boot=on,format=raw -net
 nic,macaddr=02:00:c0:a8:01:0b,vlan=0,name=nic.0 -net tap,fd=38,v
 lan=0,name=tap.0 -serial none -parallel none -usb
 open /dev/kvm: No such file or directory
 Could not initialize KVM, will disable KVM support
 qemu: could not open disk image /srv/cloud/one/var//8/images/disk.0: No
 such file or directory


 Is it possible to have a fall back to qemu if the VT-x instruction set
 is
 absent ?
 It looks like qemu is trying ...


 On 04/15/2011 01:01 PM, Javier Fontan wrote:
>
> Probably the problem is the support for virtualization. To be sure you
> can check in the node /var/log/libvirt/qemu/one-.log.
>
> On Tue, Apr 12, 2011 at 3:31 PM, Mike
> Putter
>  wrote:
>>
>> Hi,
>>
>> I followed the example of creating a ttylinux VM.
>>
>> The VM starts, boots and eventually fails.
>>
>> The error log reads:
>>
>> Tue Apr 12 15:02:23 2011 [DiM][I]: New VM state is ACTIVE.
>> Tue Apr 12 15:02:23 2011 [LCM][I]: New VM state is PROL

Re: [one-users] There has no parameter to define subnet mask in Virtual Network template.

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

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

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

Regards,
Carlos.

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

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


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

> I think the "255.255.255.0" is not suitable for the "B" type network.
>
>
> wen.y...@cs2c.com.cn wrote:
>
>>
>> In script vmcontexttty ,the subnet mask of virtual machine is setted as
>> "255.255.255.0". If the subnet mask of physical PC isn't equal to
>> "255.255.255.0", then the physical PC can communicate with virtual machine
>> or not?
>>
>>
>> For example:
>>
>> The physical PC's IP is "10.1.29.105", subnet mask is "255.255.0.0".
>>
>> The virtual machine's IP is "10.1.29.106", subnet mask is "255.255.255.0".
>>
>> The physical PC ping the virtual machine failure.
>>
>>
>> I set virtual machine's subnet mask as "255.255.0.0" by using VNC, then
>> The physical PC ping the virtual machine success.
>>
>> 
>>
>> ___
>> Users mailing list
>> Users@lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Can I add my own scripts ?

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

This guide might help you:
http://opennebula.org/documentation:rel2.2:sd

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


2011/4/22 liudewei 

>  Configuration Interface
>
> The Transfer Manager is configured in the $ONE_LOCATION/etc/oned.conffile, see
> the Daemon Configuration 
> file.
> Being flexible, the TM is always the same program, and different
> configurations are achieved by changing the configuration file. This file
> regulates the assignment between actions, like CLONE or LN, and scripts,
> effectively changing the semantics of the actions understood by the TM.
>
> TM_MAD = [
> name   = "tm_nfs",
> executable = "one_tm",
> arguments  = "",
> default= "
> Current OpenNebula release contains two set of scripts for the two
> scenarios described above, Shared - NFS (
> $ONE_LOCATION/etc/tm_nfs/tm_nfs.conf) or the Non Shared SSH TM (
> $ONE_LOCATION/etc/tm_ssh/tm_ssh.conf). Each different TM will have their
> own directory inside $ONE_LOCATION/etc.
>
> Lets see a sample line from the Shared - NFS configuration file:
>
> ...
> CLONE   = nfs/tm_clone.sh
> ...
>
> Basically, the TM here is being told that whenever it receives a clone
> action it should call the tm_clone.sh script with the received parameters.
> For more information on modifying and extending these scripts see Customizing
> and 
> Extending.
>
> ==
> ask:
> the "Customizing and 
> Extending.
> " can't visit by browser?
>
> I may be to modify OpenNebula underlying code  Realize my function。
> Can I add my own scripts eg:tm_mv_1.sh?,In case
> of, What I need to do things and  make its modification effect ?
>
> Thanks!
> Regars!
> david2011-04-22
> --
> liudewei
>
> ---
> Confidentiality Notice: The information contained in this e-mail and any
> accompanying attachment(s)
> is intended only for the use of the intended recipient and may be
> confidential and/or privileged of
> Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader
> of this communication is
> not the intended recipient, unauthorized use, forwarding, printing,
> storing, disclosure or copying
> is strictly prohibited, and may be unlawful.If you have received this
> communication in error,please
> immediately notify the sender by return e-mail, and delete the original
> message and all copies from
> your system. Thank you.
>
> ---
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Regular users can not change their own password

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

Check this two links:
http://opennebula.org/documentation:rel2.2:users
http://opennebula.org/documentation:rel2.2:auth

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


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

> Regular users can not change their own password.
>
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Regular user can not register on opennebula

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


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

> if a regular user want to register on opennebula by sunstone, there is no
> interface of XML-RPC to use.
>
> I think a regular user can register on opennebula. when he registered on
> opennebula,the method isEnabled()  is false.
> Then oneadmin can enabled the user. Of course ,there is no enable user
> method currently.
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] how to disabled a user?

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

The 'enabled' attribute for users had a meaning in previous versions.
But right now I think you can just forget about it.

We'll check if it is safe to remove it completely in the next releases.

Regards,
Carlos.

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


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

> In java API,There is a class named User that has a method named
> isEnabled().
> I want to know oneadmin how to disabled a regular user ?
>
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] OpenNebula and ESXI 4.1

2011-04-27 Thread Tino Vazquez
Hi Cesar,

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

Regards,

-Tino

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


On Wed, Apr 27, 2011 at 2:55 PM, César Carrasco Mosquera <
ccarra...@csi.uned.es> wrote:

>  Dear all,
>
> I'm trying to deploy a cluster using Opennebula at the front end and ESXI
> at the compute nodes. Although I've found many emails in the mailing lists
> about how to make Opennebula and ESXI work together, I've not been able to
> find any manual on how to do this from scratch.
>
> This is, I have the Opennebula machine installed, and the ESXI compute
> node as well, but I don't know what to do to make them work toghether.
>
> Could you please give me some help?
>
> Best regards,
>
> --
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


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

2011-04-27 Thread Tino Vazquez
Hi,

You need to set a valid user in the ESX hypervisor, _not_ a opennebula
or linux user.

Regards,

-Tino

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



On Wed, Apr 27, 2011 at 3:03 PM, Hoang Dinh Phuc  wrote:
> Hello Tino,
>
> Here is the log you need:
>
> $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb vmware
> ---
> INIT
> INIT SUCCESS - -
> ---
> MONITOR 0 esxsrv -
>
> LOG - 0 Command execution fail: /srv/cloud/one/var/remotes//im/run_probes
> vmware esxsrv
> LOG - 0 STDERR follows.
> LOG - 0 /srv/cloud/one/lib/ruby/vmwarelib.rb:26: warning: already
> initialized constant ONE_LOCATION
> LOG - 0 /srv/cloud/one/lib/ruby/vmwarelib.rb:32: warning: already
> initialized constant RUBY_LIB_LOCATION
> LOG - 0 [VMWARE] cmd failed [/srv/cloud/one/bin/tty_expect -u root -p pass
> virsh -c esx://esxsrv/?no_verify=1 --readonly nodeinfo]. Stderr:  pass
> LOG - 0
> LOG - 0 error: internal error Could not find compute resource '��� � ���
> []Ít&'
> LOG - 0 error: failed to connect to the hypervisor
> LOG - 0 . Stdout: ExitCode: 1
> LOG - 0 ./vmware.rb:65: private method `split' called for 1:Fixnum
> (NoMethodError)
> LOG - 0 Error executing vmware.rb
> LOG - 0 ExitCode: 1
> MONITOR FAILURE 0 Could not monitor host esxsrv.
> Exception `Interrupt' at /srv/cloud/one/lib/ruby/ActionManager.rb:168 -
> /srv/cloud/one/lib/ruby/ActionManager.rb:168:in `wait': Interrupt
>     from /srv/cloud/one/lib/ruby/ActionManager.rb:168:in `start_listener'
>     from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in `synchronize'
>     from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in `start_listener'
>     from /srv/cloud/one/lib/ruby/OpenNebulaDriver.rb:73:in `start_driver'
>     from /srv/cloud/one/lib/mads/one_im_sh.rb:85
> And the second:
>
> virsh -c esx://esxsrv/?no_verify=1
> Enter username for esxsrv [root]: oneadmin
> Enter oneadmin's password for esxsrv:
> error: internal error HTTP response code 500 for call to 'Login'. Fault:
> ServerFaultCode - Cannot complete login due to an incorrect user name or
> password.
> error: failed to connect to the hypervisor
>
> Do i have to reinstall OpenNebula (2.2) to fix these problems?
>
> Thanks & Regards
> On 27 April 2011 17:24, Tino Vazquez  wrote:
>>
>> Dear Hoang,
>>
>> comments inline,
>>
>> On Wed, Apr 27, 2011 at 12:12 PM, Hoang Dinh Phuc 
>> wrote:
>> > Hi Tino,
>> >
>> > I've change the USERNAME="root" and PASSWORD="pass" . Then i test:
>> >
>> > $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb
>>
>> This should be
>>
>>  $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb vmware
>>
>> > 
>> > INIT
>> > INIT SUCCESS - -
>> > -
>> > MONITOR 0 esxsrv -
>> > MONITOR SUCCESS 0
>> > (Ctrl-C)
>> > Exception `Interrupt' at /srv/cloud/one/lib/ruby/ActionManager.rb:168 -
>> > /srv/cloud/one/lib/ruby/ActionManager.rb:168:in `wait': Interrupt
>> >     from /srv/cloud/one/lib/ruby/ActionManager.rb:168:in
>> > `start_listener'
>> >     from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in `synchronize'
>> >     from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in
>> > `start_listener'
>> >     from /srv/cloud/one/lib/ruby/OpenNebulaDriver.rb:73:in
>> > `start_driver'
>> >     from /srv/cloud/one/lib/mads/one_im_sh.rb:85
>> >
>> > Then. I use the command to test to connect to ESX Server:
>> > $ virsh -c esx://root@esxsrv/?no_verify=1
>>
>> This should be
>>
>>  $ virsh -c esx://esxsrv/?no_verify=1
>>
>> > Enter root's password for esxsrv:
>> > error: internal error Could not find compute resource '��� � ��� []Ít&'
>> > error: failed to connect to the hypervisor
>> >
>> > It can't connect to esx server
>> >
>> > Then, i add esx host to opennebula by command:
>> > $ onehost create esxsrv im_vmware vmm_vmware tm_vmware
>> >
>> > But it make error state, and here is the oned.log:
>> > Wed Apr 27 17:01:14 2011 [InM][I]:
>> > Wed Apr 27 17:01:14 2011 [InM][I]: error: internal error Could not find
>> > compute resource '<8b>U^H<83>ø^A<89>^B^YÀ<83>Ä^T[]Ã<8d>t&'
>> > Wed Apr 27 17:01:14 2011 [InM][I]: error: failed to connect to the
>> > hypervisor
>> > Wed Apr 27 17:01:14 2011 [InM][I]: . Stdout: ExitCode: 1
>> > Wed Apr 27 17:01:14 2011 [InM][I]: ./vmware.rb:65: private method
>> > `split'
>> > called for 1:Fixnum (NoMethodError)
>> > Wed Apr 27 17:01:14 2011 [InM][I]: Error executing vmware.rb
>> > Wed Apr 27 17:01:14 2011 [InM][I]: ExitCode: 1
>> > Wed Apr 27 17:01:14 2011 [InM][E]: Error monitoring host 5 : MONITOR
>> > FAILURE
>> > 5 Could not monitor host esxsrv.
>> >
>> > Please help me to resolve this problems
>> >
>> > Thanks
>> > On 27 April 2011 16:58, Tino Vazquez  wrote:
>> >>
>> >> Deawr Hong,
>> >>
>> >> Yes, you have to set in USERNAME and PASSWORD valid credentials to
>> >> access the ESX hypervisor.
>> >>
>> >> Regards,
>> >>
>> >> -Tino
>> >>
>> >> --
>> >> Constantino Vázquez Blanco, MSc
>> >> OpenNebula Major Contributor
>> >> www.OpenNebula.org | @tinova79
>> >>
>> >>
>> >>
>
>
___
U

Re: [one-users] Users Digest, Vol 38, Issue 107

2011-04-27 Thread Tino Vazquez
ceives the calls and checks if the SOURCE
>> > exists in parameters of the image template. If it does not exists,
>> > opennebula assign a string to the SOURCE with the SHA1 digesting of
>> > "uid:name", otherwise do nothing to the SOURCE. Then, inserts a image
>> > record into the DB.
>> >
>> > 2. Then sunstone-server sends "one.image.info" to
>> > opennebula to retrieve the initialized infomation by step 1, mainly the
>> > value of SOURCE.
>> >
>> > 3. Suntone-server starts to judge the branches by PATH,
>> > SOURCE, SIZE, FSTYPE and TYPE. When there only exists the SOURCE, it
>> > will
>> > do nothing. (For example, if the PATH exists and SOURCE not exists, it
>> > will
>> > do copy the PATH file to the SOURCE file path, and etc.)
>> >
>> > 4. If former
>> > steps have no errors, sunstone-server sends "one.image.enable" to
>> > opennebula, it just update the record in DB and do nothing about the
>> > SOURCE. Otherwise, it sends "one.image.delete" to opennebula and delete
>> > the
>> > record in DB.
>> >
>> > So, if just specify the SOURCE to create an image, the
>> > operation make no sense. So, I think the SOURCE input should be removed
>> > in
>> > web pages of sunstone-server .
>> >
>> > If I have mistakes, please send me the
>> > error correction. Thanks. :-)
>> >
>> >
>> > ___
>> > Users mailing list
>> > Users@lists.opennebula.org
>> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>> >
>> >
>> -- next part --
>> An HTML attachment was scrubbed...
>> URL:
>> <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110427/e6c13bdc/attachment-0001.htm>
>>
>> --
>>
>> Message: 2
>> Date: Wed, 27 Apr 2011 08:36:27 -0400
>> From: Tim Dunlevy 
>> To: Tino Vazquez 
>> Cc: "users@lists.opennebula.org" 
>> Subject: Re: [one-users] Asking about VMWARE ESX and OpenNebula
>> Message-ID:
>>
>>  <951eaaa951e3ad4b82b5b30aa2a0af2b01d78395e...@commitchs1.commitent.com>
>>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>> Same error after changing the line to below.
>>
>> -Original Message-
>> From: Tino Vazquez [mailto:tinov...@gmail.com]
>> Sent: Wednesday, April 27, 2011 5:49 AM
>> To: Tim Dunlevy
>> Cc: users@lists.opennebula.org
>> Subject: Re: [one-users] Asking about VMWARE ESX and OpenNebula
>>
>> Hi Tim,
>>
>> This looks like a bug. Could you change line 116 of
>> $ONE_LOCATION/lib/ruby/OpenNebula/XMLUtils.rb to:
>>
>>           self.each(filter.to_s) { |e|  ids_array << e.text }
>>
>> and try again. If this works, please come back and i'll open a ticket to
>> get it fix in future OpenNebula releases.
>>
>> Regards,
>>
>> -Tino
>>
>> --
>> Constantino V?zquez Blanco | dsa-research.org/tinova Virtualization
>> Technology Engineer / Researcher OpenNebula Toolkit | opennebula.org
>>
>>
>>
>> On Tue, Apr 26, 2011 at 9:03 PM, Tim Dunlevy 
>> wrote:
>> > FYI -
>> > Ruby is version 1.8.7
>> >
>> > ___
>> > Users mailing list
>> > Users@lists.opennebula.org
>> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>> >
>>
>>
>> --
>>
>> Message: 3
>> Date: Wed, 27 Apr 2011 14:55:24 +0200
>> From: C?sar Carrasco Mosquera 
>> To: users@lists.opennebula.org
>> Subject: [one-users] OpenNebula and ESXI 4.1
>> Message-ID: <4db8123c.5070...@csi.uned.es>
>> Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
>>
>> Dear all,
>>
>> I'm trying to deploy a cluster using Opennebula at the front end and ESXI
>> at the compute nodes. Although I've found many emails in the mailing lists
>> about how to make Opennebula and ESXI work together, I've not been able to
>> find any manual on how to do this from scratch.
>>
>> This is, I have the Opennebula machine installed, and the ESXI compute
>> node as well, but I don't know what to do to make them work toghether.
>>
>> Could you please give me some help?
>>
>> Best regards,
>>
>> --
>> -- next part --
>> An HTML attachment was scrubbed...
>> URL:
>> <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110427/903fff0a/attachment.htm>
>> -- next part --
>> A non-text attachment was scrubbed...
>> Name: firma-correo-electronico.gif
>> Type: image/gif
>> Size: 13605 bytes
>> Desc: not available
>> URL:
>> <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110427/903fff0a/attachment.gif>
>>
>> --
>>
>> ___
>> Users mailing list
>> Users@lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>> End of Users Digest, Vol 38, Issue 107
>> **
>
>
>
> --
> ---
> F:  Hoang Dinh Phuc
> E:  hdp...@gmail.com
> M: +84909398700
>
>
> ___
> 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] Users Digest, Vol 38, Issue 107

2011-04-27 Thread Hoang Dinh Phuc
tone-server sends "one.image.enable" to
> > opennebula, it just update the record in DB and do nothing about the
> > SOURCE. Otherwise, it sends "one.image.delete" to opennebula and delete
> the
> > record in DB.
> >
> > So, if just specify the SOURCE to create an image, the
> > operation make no sense. So, I think the SOURCE input should be removed
> in
> > web pages of sunstone-server .
> >
> > If I have mistakes, please send me the
> > error correction. Thanks. :-)
> >
> >
> > ___
> > Users mailing list
> > Users@lists.opennebula.org
> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> >
> >
> -- next part --
> An HTML attachment was scrubbed...
> URL: <
> http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110427/e6c13bdc/attachment-0001.htm
> >
>
> --
>
> Message: 2
> Date: Wed, 27 Apr 2011 08:36:27 -0400
> From: Tim Dunlevy 
> To: Tino Vazquez 
> Cc: "users@lists.opennebula.org" 
> Subject: Re: [one-users] Asking about VMWARE ESX and OpenNebula
> Message-ID:
><
> 951eaaa951e3ad4b82b5b30aa2a0af2b01d78395e...@commitchs1.commitent.com>
>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Same error after changing the line to below.
>
> -Original Message-
> From: Tino Vazquez [mailto:tinov...@gmail.com]
> Sent: Wednesday, April 27, 2011 5:49 AM
> To: Tim Dunlevy
> Cc: users@lists.opennebula.org
> Subject: Re: [one-users] Asking about VMWARE ESX and OpenNebula
>
> Hi Tim,
>
> This looks like a bug. Could you change line 116 of
> $ONE_LOCATION/lib/ruby/OpenNebula/XMLUtils.rb to:
>
>   self.each(filter.to_s) { |e|  ids_array << e.text }
>
> and try again. If this works, please come back and i'll open a ticket to
> get it fix in future OpenNebula releases.
>
> Regards,
>
> -Tino
>
> --
> Constantino V?zquez Blanco | dsa-research.org/tinova Virtualization
> Technology Engineer / Researcher OpenNebula Toolkit | opennebula.org
>
>
>
> On Tue, Apr 26, 2011 at 9:03 PM, Tim Dunlevy 
> wrote:
> > FYI -
> > Ruby is version 1.8.7
> >
> > ___
> > Users mailing list
> > Users@lists.opennebula.org
> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> >
>
>
> --
>
> Message: 3
> Date: Wed, 27 Apr 2011 14:55:24 +0200
> From: C?sar Carrasco Mosquera 
> To: users@lists.opennebula.org
> Subject: [one-users] OpenNebula and ESXI 4.1
> Message-ID: <4db8123c.5070...@csi.uned.es>
> Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
>
> Dear all,
>
> I'm trying to deploy a cluster using Opennebula at the front end and ESXI
> at the compute nodes. Although I've found many emails in the mailing lists
> about how to make Opennebula and ESXI work together, I've not been able to
> find any manual on how to do this from scratch.
>
> This is, I have the Opennebula machine installed, and the ESXI compute
> node as well, but I don't know what to do to make them work toghether.
>
> Could you please give me some help?
>
> Best regards,
>
> --
> -- next part --
> An HTML attachment was scrubbed...
> URL: <
> http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110427/903fff0a/attachment.htm
> >
> -- next part --
> A non-text attachment was scrubbed...
> Name: firma-correo-electronico.gif
> Type: image/gif
> Size: 13605 bytes
> Desc: not available
> URL: <
> http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110427/903fff0a/attachment.gif
> >
>
> --
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
> End of Users Digest, Vol 38, Issue 107
> **
>



-- 
---
F:  Hoang Dinh Phuc
E:  hdp...@gmail.com
M: +84909398700
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


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

2011-04-27 Thread Hoang Dinh Phuc
Hello Tino,

Here is the log you need:

$ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb vmware
---
INIT
INIT SUCCESS - -
---
MONITOR 0 esxsrv -

LOG - 0 Command execution fail: /srv/cloud/one/var/remotes//im/run_probes
vmware esxsrv
LOG - 0 STDERR follows.
LOG - 0 /srv/cloud/one/lib/ruby/vmwarelib.rb:26: warning: already
initialized constant ONE_LOCATION
LOG - 0 /srv/cloud/one/lib/ruby/vmwarelib.rb:32: warning: already
initialized constant RUBY_LIB_LOCATION
LOG - 0 [VMWARE] cmd failed [/srv/cloud/one/bin/tty_expect -u root -p pass
virsh -c esx://esxsrv/?no_verify=1 --readonly nodeinfo]. Stderr:  pass
LOG - 0
LOG - 0 error: internal error Could not find compute resource '��� � ���
[]Ít&'
LOG - 0 error: failed to connect to the hypervisor
LOG - 0 . Stdout: ExitCode: 1
LOG - 0 ./vmware.rb:65: private method `split' called for 1:Fixnum
(NoMethodError)
LOG - 0 Error executing vmware.rb
LOG - 0 ExitCode: 1
MONITOR FAILURE 0 Could not monitor host esxsrv.
Exception `Interrupt' at /srv/cloud/one/lib/ruby/ActionManager.rb:168 -
/srv/cloud/one/lib/ruby/ActionManager.rb:168:in `wait': Interrupt
from /srv/cloud/one/lib/ruby/ActionManager.rb:168:in `start_listener'
from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in `synchronize'
from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in `start_listener'
from /srv/cloud/one/lib/ruby/OpenNebulaDriver.rb:73:in `start_driver'
from /srv/cloud/one/lib/mads/one_im_sh.rb:85
And the second:

virsh -c esx://esxsrv/?no_verify=1
Enter username for esxsrv [root]: oneadmin
Enter oneadmin's password for esxsrv:
error: internal error HTTP response code 500 for call to 'Login'. Fault:
ServerFaultCode - Cannot complete login due to an incorrect user name or
password.
error: failed to connect to the hypervisor

Do i have to reinstall OpenNebula (2.2) to fix these problems?

Thanks & Regards
On 27 April 2011 17:24, Tino Vazquez  wrote:

> Dear Hoang,
>
> comments inline,
>
> On Wed, Apr 27, 2011 at 12:12 PM, Hoang Dinh Phuc 
> wrote:
> > Hi Tino,
> >
> > I've change the USERNAME="root" and PASSWORD="pass" . Then i test:
> >
> > $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb
>
> This should be
>
>  $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb vmware
>
> > 
> > INIT
> > INIT SUCCESS - -
> > -
> > MONITOR 0 esxsrv -
> > MONITOR SUCCESS 0
> > (Ctrl-C)
> > Exception `Interrupt' at /srv/cloud/one/lib/ruby/ActionManager.rb:168 -
> > /srv/cloud/one/lib/ruby/ActionManager.rb:168:in `wait': Interrupt
> > from /srv/cloud/one/lib/ruby/ActionManager.rb:168:in `start_listener'
> > from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in `synchronize'
> > from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in `start_listener'
> > from /srv/cloud/one/lib/ruby/OpenNebulaDriver.rb:73:in `start_driver'
> > from /srv/cloud/one/lib/mads/one_im_sh.rb:85
> >
> > Then. I use the command to test to connect to ESX Server:
> > $ virsh -c esx://root@esxsrv/?no_verify=1
>
> This should be
>
>  $ virsh -c esx://esxsrv/?no_verify=1
>
> > Enter root's password for esxsrv:
> > error: internal error Could not find compute resource '��� � ��� []Ít&'
> > error: failed to connect to the hypervisor
> >
> > It can't connect to esx server
> >
> > Then, i add esx host to opennebula by command:
> > $ onehost create esxsrv im_vmware vmm_vmware tm_vmware
> >
> > But it make error state, and here is the oned.log:
> > Wed Apr 27 17:01:14 2011 [InM][I]:
> > Wed Apr 27 17:01:14 2011 [InM][I]: error: internal error Could not find
> > compute resource '<8b>U^H<83>ø^A<89>^B^YÀ<83>Ä^T[]Ã<8d>t&'
> > Wed Apr 27 17:01:14 2011 [InM][I]: error: failed to connect to the
> > hypervisor
> > Wed Apr 27 17:01:14 2011 [InM][I]: . Stdout: ExitCode: 1
> > Wed Apr 27 17:01:14 2011 [InM][I]: ./vmware.rb:65: private method `split'
> > called for 1:Fixnum (NoMethodError)
> > Wed Apr 27 17:01:14 2011 [InM][I]: Error executing vmware.rb
> > Wed Apr 27 17:01:14 2011 [InM][I]: ExitCode: 1
> > Wed Apr 27 17:01:14 2011 [InM][E]: Error monitoring host 5 : MONITOR
> FAILURE
> > 5 Could not monitor host esxsrv.
> >
> > Please help me to resolve this problems
> >
> > Thanks
> > On 27 April 2011 16:58, Tino Vazquez  wrote:
> >>
> >> Deawr Hong,
> >>
> >> Yes, you have to set in USERNAME and PASSWORD valid credentials to
> >> access the ESX hypervisor.
> >>
> >> Regards,
> >>
> >> -Tino
> >>
> >> --
> >> Constantino Vázquez Blanco, MSc
> >> OpenNebula Major Contributor
> >> www.OpenNebula.org | @tinova79
> >>
> >>
> >>
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] OpenNebula and ESXI 4.1

2011-04-27 Thread César Carrasco Mosquera


  
  
Dear all,

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

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

Could you please give me some help?

Best regards,

-- 
  
  

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


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

2011-04-27 Thread Tim Dunlevy
Same error after changing the line to below.

-Original Message-
From: Tino Vazquez [mailto:tinov...@gmail.com] 
Sent: Wednesday, April 27, 2011 5:49 AM
To: Tim Dunlevy
Cc: users@lists.opennebula.org
Subject: Re: [one-users] Asking about VMWARE ESX and OpenNebula

Hi Tim,

This looks like a bug. Could you change line 116 of 
$ONE_LOCATION/lib/ruby/OpenNebula/XMLUtils.rb to:

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

and try again. If this works, please come back and i'll open a ticket to get it 
fix in future OpenNebula releases.

Regards,

-Tino

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



On Tue, Apr 26, 2011 at 9:03 PM, Tim Dunlevy  wrote:
> FYI -
> Ruby is version 1.8.7
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Does the SOURCE make no sense when creating an image in opennebula-2.2.0

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

You are right about the steps made by the ruby OCA and OpenNebula daemon.
And indeed, it makes no sense to specify only a SOURE attribute *if it is a
file path*.

But you can still take advantage of the SOURCE if you use an http:// url.
This can be used to bypass the local Image Repository and store some of the
Image files remotely.

Anyway, this isn't the typical scenario, and maybe it still makes sense to
remove the SOURCE option from the Suntone wizard.

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


On Wed, Apr 27, 2011 at 2:41 AM,  wrote:

>
>
> Hello,
>
> When creating an image by sunstone-server, I find that the
> SOURCE makes no sense. So I go to the source code both in Ruby and
> opennebula, the SOURCE is only valid when using the PATH or SIZE(with
> FSTYPE).
>
> In my opinion, the whole image creation consists of four steps:
>
>
> 1. Sunstone-server sends "one.image.allocate" by using Ruby to
> opennebula. The opennebula receives the calls and checks if the SOURCE
> exists in parameters of the image template. If it does not exists,
> opennebula assign a string to the SOURCE with the SHA1 digesting of
> "uid:name", otherwise do nothing to the SOURCE. Then, inserts a image
> record into the DB.
>
> 2. Then sunstone-server sends "one.image.info" to
> opennebula to retrieve the initialized infomation by step 1, mainly the
> value of SOURCE.
>
> 3. Suntone-server starts to judge the branches by PATH,
> SOURCE, SIZE, FSTYPE and TYPE. When there only exists the SOURCE, it will
> do nothing. (For example, if the PATH exists and SOURCE not exists, it will
> do copy the PATH file to the SOURCE file path, and etc.)
>
> 4. If former
> steps have no errors, sunstone-server sends "one.image.enable" to
> opennebula, it just update the record in DB and do nothing about the
> SOURCE. Otherwise, it sends "one.image.delete" to opennebula and delete the
> record in DB.
>
> So, if just specify the SOURCE to create an image, the
> operation make no sense. So, I think the SOURCE input should be removed in
> web pages of sunstone-server .
>
> If I have mistakes, please send me the
> error correction. Thanks. :-)
>
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


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

2011-04-27 Thread Tino Vazquez
Dear Hoang,

comments inline,

On Wed, Apr 27, 2011 at 12:12 PM, Hoang Dinh Phuc  wrote:
> Hi Tino,
>
> I've change the USERNAME="root" and PASSWORD="pass" . Then i test:
>
> $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb

This should be

 $ ruby -dw $ONE_LOCATION/lib/mads/one_im_sh.rb vmware

> 
> INIT
> INIT SUCCESS - -
> -
> MONITOR 0 esxsrv -
> MONITOR SUCCESS 0
> (Ctrl-C)
> Exception `Interrupt' at /srv/cloud/one/lib/ruby/ActionManager.rb:168 -
> /srv/cloud/one/lib/ruby/ActionManager.rb:168:in `wait': Interrupt
>     from /srv/cloud/one/lib/ruby/ActionManager.rb:168:in `start_listener'
>     from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in `synchronize'
>     from /srv/cloud/one/lib/ruby/ActionManager.rb:166:in `start_listener'
>     from /srv/cloud/one/lib/ruby/OpenNebulaDriver.rb:73:in `start_driver'
>     from /srv/cloud/one/lib/mads/one_im_sh.rb:85
>
> Then. I use the command to test to connect to ESX Server:
> $ virsh -c esx://root@esxsrv/?no_verify=1

This should be

 $ virsh -c esx://esxsrv/?no_verify=1

> Enter root's password for esxsrv:
> error: internal error Could not find compute resource '��� � ��� []Ít&'
> error: failed to connect to the hypervisor
>
> It can't connect to esx server
>
> Then, i add esx host to opennebula by command:
> $ onehost create esxsrv im_vmware vmm_vmware tm_vmware
>
> But it make error state, and here is the oned.log:
> Wed Apr 27 17:01:14 2011 [InM][I]:
> Wed Apr 27 17:01:14 2011 [InM][I]: error: internal error Could not find
> compute resource '<8b>U^H<83>ø^A<89>^B^YÀ<83>Ä^T[]Ã<8d>t&'
> Wed Apr 27 17:01:14 2011 [InM][I]: error: failed to connect to the
> hypervisor
> Wed Apr 27 17:01:14 2011 [InM][I]: . Stdout: ExitCode: 1
> Wed Apr 27 17:01:14 2011 [InM][I]: ./vmware.rb:65: private method `split'
> called for 1:Fixnum (NoMethodError)
> Wed Apr 27 17:01:14 2011 [InM][I]: Error executing vmware.rb
> Wed Apr 27 17:01:14 2011 [InM][I]: ExitCode: 1
> Wed Apr 27 17:01:14 2011 [InM][E]: Error monitoring host 5 : MONITOR FAILURE
> 5 Could not monitor host esxsrv.
>
> Please help me to resolve this problems
>
> Thanks
> On 27 April 2011 16:58, Tino Vazquez  wrote:
>>
>> Deawr Hong,
>>
>> Yes, you have to set in USERNAME and PASSWORD valid credentials to
>> access the ESX hypervisor.
>>
>> Regards,
>>
>> -Tino
>>
>> --
>> Constantino Vázquez Blanco, MSc
>> OpenNebula Major Contributor
>> www.OpenNebula.org | @tinova79
>>
>>
>>
>> On Wed, Apr 27, 2011 at 11:53 AM, Hoang Dinh Phuc 
>> wrote:
>> > Hi Tino,
>> >
>> > Here is the content of $ONE_LCATION/etc/vmwarerc
>> >
>> >
>> > LIBVIRT_URI   = "esx://@HOST@/?no_verify=1"
>> > QEMU_PROTOCOL = "qemu"
>> >
>> > # Username and password of the VMware hypervisor
>> > USERNAME  = "oneadmin"
>> > PASSWORD  = ""
>> >
>> > # Loading the vmware library for mads
>> > # Please leave this uncommented
>> > load ENV['ONE_LOCATION'] + "/lib/ruby/vmwarelib.rb"
>> >
>> > ENV['LANG']='C'
>> >
>> > Do i have to change any information?
>> > Regards
>> >
>> > On 27 April 2011 16:50, Tino Vazquez  wrote:
>> >>
>> >> Dear Hoang,
>> >>
>> >> You need to set the ESX user credentials in $ONE_LOCATION/etc/vmwarerc.
>> >>
>> >> Regards,
>> >>
>> >> -Tino
>> >>
>> >> --
>> >> Constantino Vázquez Blanco, MSc
>> >> OpenNebula Major Contributor
>> >> www.OpenNebula.org | @tinova79
>> >>
>> >>
>> >>
>> >> On Wed, Apr 27, 2011 at 3:05 AM, Hoang Dinh Phuc 
>> >> wrote:
>> >> > Hi Tino Vazquez,
>> >> >
>> >> > here is the output of tree structure of $ONE_LOCATION/var:
>> >> > $ tree $ONE_LOCATION/var
>> >> > |-- config
>> >> > |-- images
>> >> > |   |-- 28c86878bdc6af8c34dd94efcf31c15ee6eeb2a1
>> >> > |   |-- 567196a1f80db4234d62b83bc6a0b80d0fa99824
>> >> > |   `-- 8625d68b699fd30e64360471eb2c38fed47fcfb6
>> >> > |-- one_xmlrpc.01.log
>> >> > |-- one_xmlrpc.log
>> >> > |-- oned.01.log
>> >> > |-- oned.log
>> >> > |-- oned.pid
>> >> > |-- remotes
>> >> > |   |-- im
>> >> > |   |   |-- ganglia.d
>> >> > |   |   |   `-- ganglia_probe
>> >> > |   |   |-- kvm.d
>> >> > |   |   |   |-- architecture.sh
>> >> > |   |   |   |-- cpu.sh
>> >> > |   |   |   |-- kvm.rb
>> >> > |   |   |   `-- name.sh
>> >> > |   |   |-- run_probes
>> >> > |   |   |-- vmware.d
>> >> > |   |   |   `-- vmware.rb
>> >> > |   |   `-- xen.d
>> >> > |   |   |-- architecture.sh
>> >> > |   |   |-- cpu.sh
>> >> > |   |   |-- name.sh
>> >> > |   |   `-- xen.rb
>> >> > |   `-- vmm
>> >> > |   |-- kvm
>> >> > |   |   |-- cancel
>> >> > |   |   |-- deploy
>> >> > |   |   |-- kvmrc
>> >> > |   |   |-- migrate
>> >> > |   |   |-- poll
>> >> > |   |   |-- poll_local
>> >> > |   |   |-- restore
>> >> > |   |   |-- save
>> >> > |   |   `-- shutdown
>> >> > |   |-- vmware
>> >> > |   |   |-- cancel
>> >> > |   |   |-- checkpoint
>> >> > |   |   |-- deploy
>> >> > |   |   |-- migrate
>> >> > |   |   |-- poll
>> >> > |   |   |-- restore
>> >> > |   |   |-- save
>> >> > |   |   `-- shutdown
>> >> > 

Re: [one-users] error at GPG key installation

2011-04-27 Thread Steffen Neumann
Hi,

that's probably not the right list for these questions, 
maybe better look for some CentOS specific forums.

Yours,
Steffen

On Wed, 2011-04-27 at 11:36 +0530, soge.geo...@wipro.com wrote:
> Hi,
> 
> 
> Am installing OPENNEBULA for the first time in CENTOS,I have installed
> Fedora Extras rebuild Repository and Misc Packages rebuild Repository.
> By the help of http://centos.karan.org/ site, but for running GPG key
> from centos terminals am getting an error.
> Code and the error are the following 
> rpm --import http://centos.karan.org/RPM-GPG-KEY-karan.org.txt
> 
> error:http://centos.karan.org/RPM-GPG-KEY-karan.org.txt:import read
> failed(-1).
> 
>  
> 
> Please kindly help me for debugging this error.
> 
>  
> 
> Thanks and Regards,
> 
>  Soge George
> 
>  
> 
>  
> 
> 
> Please do not print this email unless it is absolutely necessary. 
> 
> The information contained in this electronic message and any
> attachments to this message are intended for the exclusive use of the
> addressee(s) and may contain proprietary, confidential or privileged
> information. If you are not the intended recipient, you should not
> disseminate, distribute or copy this e-mail. Please notify the sender
> immediately and destroy all copies of this message and any
> attachments. 
> 
> WARNING: Computer viruses can be transmitted via email. The recipient
> should check this email and any attachments for the presence of
> viruses. The company accepts no liability for any damage caused by any
> virus transmitted by this email. 
> 
> www.wipro.com
> 
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

-- 
IPB HalleAG Massenspektrometrie & Bioinformatik
Dr. Steffen Neumann  http://www.IPB-Halle.DE
Weinberg 3   http://msbi.bic-gh.de
06120 Halle  Tel. +49 (0) 345 5582 - 1470
  +49 (0) 345 5582 - 0
sneumann(at)IPB-Halle.DE Fax. +49 (0) 345 5582 - 1409


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


Re: [one-users] Asking about onevm migrate command

2011-04-27 Thread Steffen Neumann
Hi,

On Wed, 2011-04-27 at 16:00 +0700, Hoang Dinh Phuc wrote:
> I'm using OpenNebula 2.2, and 2 kvm server (Ubuntu 10.10).
Can you be a bit more specific ? Do you have a shared NFS installation,
or ssh to migrate images ?

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] Host hooks aren't triggered

2011-04-27 Thread Tino Vazquez
Hi Zaina,

>From your last mail, I think the problem is solved. The expected
behavior is for the VMs to go into pending, then is the scheduler taks
to place the VMs, if this fails could be for lack of capacity, but not
related to the error host hook, no need to further debugging.

Regards,

-Tino

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



On Mon, Apr 25, 2011 at 6:28 PM, Tino Vazquez  wrote:
> Hi Zaina,
>
> With the "-2" option, this should work as expected. Ive opened a
> ticket [1] to fix this in future releases.
>
> About it not being working yet, could you please add the following
> debug info to the script?
>
> --
>        if mode == "-r"
>            my_file.puts "Resubmitting VM with id #{vm_id}"
>            vm.resubmit
>        elsif mode == "-d"
>            vm.finalize
>        end
> --
>
> thanks for all the help debugging this!!!
>
> Regards,
>
> -Tino
>
> [1] http://dev.opennebula.org/issues/585
>
> --
> Constantino Vázquez Blanco | dsa-research.org/tinova
> Virtualization Technology Engineer / Researcher
> OpenNebula Toolkit | opennebula.org
>
>
>
> On Thu, Apr 14, 2011 at 12:52 PM, Zaina AFOULKI
>  wrote:
>> Hi Tino,
>>
>> I have changed the line as you indicated, and it doesn't change anything...
>>
>> But, I've tried to replace the line with:
>> vms = VirtualMachinePool.new(client, -2)
>> and the VM goes in pending state. However the VM isn't resubmitted to the
>> scheduler (Haizea)
>>
>> By the way, oned is running as oneadmin.
>>
>> Here is the /tmp/remove_me.txt file (this time, it isn't empty ;P):
>>
>> OpenNebula host has failed 31
>> 
>>  
>>    3378
>>    1
>>    orange
>>    orange-ar2
>>    130281
>>    3
>>    3
>>    130245
>>    0
>>    one-3378
>>    0
>>    0
>>    0
>>    0
>>    0
>>    
>>      
>>      
>>        
>>        
>>        
>>      
>>      
>>        
>>      
>>      
>>        
>>        
>>        
>>      
>>      
>>      
>>      
>>        
>>        
>>        
>>        
>>        
>>      
>>      
>>        
>>        
>>      
>>      
>>        
>>        
>>      
>>      
>>    
>>    
>>      0
>>      node1
>>      29
>>      130275
>>      0
>>      130275
>>      130280
>>      130280
>>      0
>>      0
>>      0
>>      0
>>    
>>  
>>  
>>    3379
>>    1
>>    orange
>>    orange-ar2
>>    130295
>>    3
>>    3
>>    130246
>>    0
>>    one-3379
>>    0
>>    0
>>    0
>>    0
>>    0
>>    
>>      
>>      
>>        
>>        
>>        
>>      
>>      
>>        
>>      
>>      
>>        
>>        
>>        
>>      
>>      
>>      
>>      
>>        
>>        
>>        
>>        
>>        
>>      
>>      
>>        
>>        
>>      
>>      
>>        
>>        
>>      
>>      
>>    
>>    
>>      0
>>      node2
>>      31
>>      130276
>>      0
>>      130276
>>      130283
>>      130283
>>      0
>>      0
>>      0
>>      0
>>    
>>  
>> 
>> OpenNebula vms info
>> OpenNebula host  Array
>> Array
>> OpenNebula vms array if
>> OpenNebula vm_id 1
>> OpenNebula vms info return code
>> nil
>>
>> Thanks again, Tino!
>>
>> --
>> Zaina
>>
>> On Wed, 13 Apr 2011 16:27:17 +0200, Tino Vazquez wrote:
>>>
>>> Hi Zaina,
>>>
>>> I think we have a bug here. Could you please try the changing following:
>>>
>>> vms = VirtualMachinePool.new(client)
>>>
>>> to
>>>
>>> vms = VirtualMachinePool.new(client, -1)
>>>
>>> Regards,
>>>
>>> -Tino
>>>
>>> --
>>> Constantino Vázquez Blanco | dsa-research.org/tinova
>>> Virtualization Technology Engineer / Researcher
>>> OpenNebula Toolkit | opennebula.org
>>>
>>>
>>>
>>> On Tue, Apr 12, 2011 at 5:21 PM, Tino Vazquez  wrote:

 Hi,

 Just to confirm, are you running "oned" as root or as oneadmin?

 Regards,

 -Tino

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



 On Tue, Apr 12, 2011 at 3:19 PM, Zaina AFOULKI
  wrote:
>
> Hi,
>
> I have two VMs running with onevm list. But after I added the lines you
> indicated at the end of the file I get:
>
> OpenNebula vms info return code
> nil
>
> Not sure what's wrong here...
> Thanks a lot for your help Tino.
>
> --
> Zaina
>
> On Tue, 12 Apr 2011 13:44:30 +0200, Tino Vazquez wrote:
>>
>> Hi Zaina,
>>
>> Let's see why the "vms.info" is failing, please add the following to
>> the file:
>>
>> --
>> rc = vms.info
>>
>> my_file.puts "OpenNebula vms info return code"
>> my_file.puts rc
>> --
>>
>> Regards,
>>
>> -Tino
>>
>> --
>> Constantino Vázquez Blanco, MSc
>> OpenNebula Major Contributor
>> www.OpenNebula.org | @tinova79
>>
>>
>>
>> On Tue, Apr 12, 2011 at 1:

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

2011-04-27 Thread Tino Vazquez
Deawr Hong,

Yes, you have to set in USERNAME and PASSWORD valid credentials to
access the ESX hypervisor.

Regards,

-Tino

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



On Wed, Apr 27, 2011 at 11:53 AM, Hoang Dinh Phuc  wrote:
> Hi Tino,
>
> Here is the content of $ONE_LCATION/etc/vmwarerc
>
>
> LIBVIRT_URI   = "esx://@HOST@/?no_verify=1"
> QEMU_PROTOCOL = "qemu"
>
> # Username and password of the VMware hypervisor
> USERNAME  = "oneadmin"
> PASSWORD  = ""
>
> # Loading the vmware library for mads
> # Please leave this uncommented
> load ENV['ONE_LOCATION'] + "/lib/ruby/vmwarelib.rb"
>
> ENV['LANG']='C'
>
> Do i have to change any information?
> Regards
>
> On 27 April 2011 16:50, Tino Vazquez  wrote:
>>
>> Dear Hoang,
>>
>> You need to set the ESX user credentials in $ONE_LOCATION/etc/vmwarerc.
>>
>> Regards,
>>
>> -Tino
>>
>> --
>> Constantino Vázquez Blanco, MSc
>> OpenNebula Major Contributor
>> www.OpenNebula.org | @tinova79
>>
>>
>>
>> On Wed, Apr 27, 2011 at 3:05 AM, Hoang Dinh Phuc  wrote:
>> > Hi Tino Vazquez,
>> >
>> > here is the output of tree structure of $ONE_LOCATION/var:
>> > $ tree $ONE_LOCATION/var
>> > |-- config
>> > |-- images
>> > |   |-- 28c86878bdc6af8c34dd94efcf31c15ee6eeb2a1
>> > |   |-- 567196a1f80db4234d62b83bc6a0b80d0fa99824
>> > |   `-- 8625d68b699fd30e64360471eb2c38fed47fcfb6
>> > |-- one_xmlrpc.01.log
>> > |-- one_xmlrpc.log
>> > |-- oned.01.log
>> > |-- oned.log
>> > |-- oned.pid
>> > |-- remotes
>> > |   |-- im
>> > |   |   |-- ganglia.d
>> > |   |   |   `-- ganglia_probe
>> > |   |   |-- kvm.d
>> > |   |   |   |-- architecture.sh
>> > |   |   |   |-- cpu.sh
>> > |   |   |   |-- kvm.rb
>> > |   |   |   `-- name.sh
>> > |   |   |-- run_probes
>> > |   |   |-- vmware.d
>> > |   |   |   `-- vmware.rb
>> > |   |   `-- xen.d
>> > |   |   |-- architecture.sh
>> > |   |   |-- cpu.sh
>> > |   |   |-- name.sh
>> > |   |   `-- xen.rb
>> > |   `-- vmm
>> > |   |-- kvm
>> > |   |   |-- cancel
>> > |   |   |-- deploy
>> > |   |   |-- kvmrc
>> > |   |   |-- migrate
>> > |   |   |-- poll
>> > |   |   |-- poll_local
>> > |   |   |-- restore
>> > |   |   |-- save
>> > |   |   `-- shutdown
>> > |   |-- vmware
>> > |   |   |-- cancel
>> > |   |   |-- checkpoint
>> > |   |   |-- deploy
>> > |   |   |-- migrate
>> > |   |   |-- poll
>> > |   |   |-- restore
>> > |   |   |-- save
>> > |   |   `-- shutdown
>> > |   `-- xen
>> > |   |-- cancel
>> > |   |-- deploy
>> > |   |-- migrate
>> > |   |-- poll
>> > |   |-- poll_local
>> > |   |-- restore
>> > |   |-- save
>> > |   |-- shutdown
>> > |   `-- xenrc
>> > |-- sched.log
>> > |-- sched.pid
>> > `-- sunstone.log
>> >
>> > and here is the next log
>> >
>> > $ONE_LOCATION/lib/mads/one_im_sh vmware
>> > INIT
>> > INIT SUCCESS - -
>> > MONITOR 0 esxsrv -
>> > LOG - 0 Command execution fail:
>> > /srv/cloud/one/var/remotes//im/run_probes
>> > vmware esxsrv
>> > LOG - 0 STDERR follows.
>> > LOG - 0 /srv/cloud/one/lib/ruby/vmwarelib.rb:26: warning: already
>> > initialized constant ONE_LOCATION
>> > LOG - 0 /srv/cloud/one/lib/ruby/vmwarelib.rb:32: warning: already
>> > initialized constant RUBY_LIB_LOCATION
>> > LOG - 0 [VMWARE] cmd failed [/srv/cloud/one/bin/tty_expect -u oneadmin
>> > -p
>> > virsh -c esx://esxsrv/?no_verify=1 --readonly nodeinfo]. Stderr: .
>> > Stdout:
>> > /srv/cloud/one/bin/tty_expect: invalid option -- c
>> > LOG - 0 Wrong option. Check usage
>> > LOG - 0
>> > LOG - 0 myexpect [-h] <-p password> <-u username> 
>> > LOG - 0
>> > LOG - 0 SYNOPSIS
>> > LOG - 0 Wraps the execution of a command and sends username & password
>> > LOG - 0
>> > LOG - 0 OPTIONS
>> > LOG - 0 -h    prints this help.
>> > LOG - 0 -p    the password
>> > LOG - 0 -u    the username
>> > LOG - 0     complete virsh command
>> > LOG - 0 ExitCode: 255
>> > LOG - 0 ./vmware.rb:65: private method `split' called for 255:Fixnum
>> > (NoMethodError)
>> > LOG - 0 Error executing vmware.rb
>> > LOG - 0 ExitCode: 1
>> > MONITOR FAILURE 0 Could not monitor host esxsrv.
>> >
>> >
>> > Regards
>> >
>> > On 26 April 2011 23:16, Tino Vazquez  wrote:
>> >>
>> >> Hi,
>> >>
>> >> The commands should work without modification (note that they should
>> >> be run from inside the vmware addon installation folder), although
>> >> your modification should also work.
>> >>
>> >> Could you send the output of
>> >>
>> >> --
>> >> $ tree $ONE_LOCATION/var
>> >> --
>> >>
>> >> and
>> >>
>> >> --
>> >> $ $ONE_LOCATION/lib/mads/one_im_sh vmware
>> >> INIT
>> >> MONITOR 0  -
>> >> --
>> >>
>> >> Regards,
>> >>
>> >> -Tino
>> >>
>> >> --
>> >> Constantino Vázquez Blanco, MSc
>> >> OpenNebula Major Contributor
>> >> www.OpenNebula.org | @tinova79
>> >>
>> >>
>> >>
>> >> On Tue, Apr 26, 2011 at 6:09 PM, Hoang Dinh Phuc 
>> >> wrote:
>> >> > Hi,
>> >> >
>> >> > Is any mis

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

2011-04-27 Thread Hoang Dinh Phuc
Hi Tino,

Here is the content of $ONE_LCATION/etc/vmwarerc


LIBVIRT_URI   = "esx://@HOST@/?no_verify=1"
QEMU_PROTOCOL = "qemu"

# Username and password of the VMware hypervisor
USERNAME  = "oneadmin"
PASSWORD  = ""

# Loading the vmware library for mads
# Please leave this uncommented
load ENV['ONE_LOCATION'] + "/lib/ruby/vmwarelib.rb"

ENV['LANG']='C'

Do i have to change any information?
Regards

On 27 April 2011 16:50, Tino Vazquez  wrote:

> Dear Hoang,
>
> You need to set the ESX user credentials in $ONE_LOCATION/etc/vmwarerc.
>
> Regards,
>
> -Tino
>
> --
> Constantino Vázquez Blanco, MSc
> OpenNebula Major Contributor
> www.OpenNebula.org | @tinova79
>
>
>
> On Wed, Apr 27, 2011 at 3:05 AM, Hoang Dinh Phuc  wrote:
> > Hi Tino Vazquez,
> >
> > here is the output of tree structure of $ONE_LOCATION/var:
> > $ tree $ONE_LOCATION/var
> > |-- config
> > |-- images
> > |   |-- 28c86878bdc6af8c34dd94efcf31c15ee6eeb2a1
> > |   |-- 567196a1f80db4234d62b83bc6a0b80d0fa99824
> > |   `-- 8625d68b699fd30e64360471eb2c38fed47fcfb6
> > |-- one_xmlrpc.01.log
> > |-- one_xmlrpc.log
> > |-- oned.01.log
> > |-- oned.log
> > |-- oned.pid
> > |-- remotes
> > |   |-- im
> > |   |   |-- ganglia.d
> > |   |   |   `-- ganglia_probe
> > |   |   |-- kvm.d
> > |   |   |   |-- architecture.sh
> > |   |   |   |-- cpu.sh
> > |   |   |   |-- kvm.rb
> > |   |   |   `-- name.sh
> > |   |   |-- run_probes
> > |   |   |-- vmware.d
> > |   |   |   `-- vmware.rb
> > |   |   `-- xen.d
> > |   |   |-- architecture.sh
> > |   |   |-- cpu.sh
> > |   |   |-- name.sh
> > |   |   `-- xen.rb
> > |   `-- vmm
> > |   |-- kvm
> > |   |   |-- cancel
> > |   |   |-- deploy
> > |   |   |-- kvmrc
> > |   |   |-- migrate
> > |   |   |-- poll
> > |   |   |-- poll_local
> > |   |   |-- restore
> > |   |   |-- save
> > |   |   `-- shutdown
> > |   |-- vmware
> > |   |   |-- cancel
> > |   |   |-- checkpoint
> > |   |   |-- deploy
> > |   |   |-- migrate
> > |   |   |-- poll
> > |   |   |-- restore
> > |   |   |-- save
> > |   |   `-- shutdown
> > |   `-- xen
> > |   |-- cancel
> > |   |-- deploy
> > |   |-- migrate
> > |   |-- poll
> > |   |-- poll_local
> > |   |-- restore
> > |   |-- save
> > |   |-- shutdown
> > |   `-- xenrc
> > |-- sched.log
> > |-- sched.pid
> > `-- sunstone.log
> >
> > and here is the next log
> >
> > $ONE_LOCATION/lib/mads/one_im_sh vmware
> > INIT
> > INIT SUCCESS - -
> > MONITOR 0 esxsrv -
> > LOG - 0 Command execution fail: /srv/cloud/one/var/remotes//im/run_probes
> > vmware esxsrv
> > LOG - 0 STDERR follows.
> > LOG - 0 /srv/cloud/one/lib/ruby/vmwarelib.rb:26: warning: already
> > initialized constant ONE_LOCATION
> > LOG - 0 /srv/cloud/one/lib/ruby/vmwarelib.rb:32: warning: already
> > initialized constant RUBY_LIB_LOCATION
> > LOG - 0 [VMWARE] cmd failed [/srv/cloud/one/bin/tty_expect -u oneadmin -p
> > virsh -c esx://esxsrv/?no_verify=1 --readonly nodeinfo]. Stderr: .
> Stdout:
> > /srv/cloud/one/bin/tty_expect: invalid option -- c
> > LOG - 0 Wrong option. Check usage
> > LOG - 0
> > LOG - 0 myexpect [-h] <-p password> <-u username> 
> > LOG - 0
> > LOG - 0 SYNOPSIS
> > LOG - 0 Wraps the execution of a command and sends username & password
> > LOG - 0
> > LOG - 0 OPTIONS
> > LOG - 0 -hprints this help.
> > LOG - 0 -pthe password
> > LOG - 0 -uthe username
> > LOG - 0 complete virsh command
> > LOG - 0 ExitCode: 255
> > LOG - 0 ./vmware.rb:65: private method `split' called for 255:Fixnum
> > (NoMethodError)
> > LOG - 0 Error executing vmware.rb
> > LOG - 0 ExitCode: 1
> > MONITOR FAILURE 0 Could not monitor host esxsrv.
> >
> >
> > Regards
> >
> > On 26 April 2011 23:16, Tino Vazquez  wrote:
> >>
> >> Hi,
> >>
> >> The commands should work without modification (note that they should
> >> be run from inside the vmware addon installation folder), although
> >> your modification should also work.
> >>
> >> Could you send the output of
> >>
> >> --
> >> $ tree $ONE_LOCATION/var
> >> --
> >>
> >> and
> >>
> >> --
> >> $ $ONE_LOCATION/lib/mads/one_im_sh vmware
> >> INIT
> >> MONITOR 0  -
> >> --
> >>
> >> Regards,
> >>
> >> -Tino
> >>
> >> --
> >> Constantino Vázquez Blanco, MSc
> >> OpenNebula Major Contributor
> >> www.OpenNebula.org | @tinova79
> >>
> >>
> >>
> >> On Tue, Apr 26, 2011 at 6:09 PM, Hoang Dinh Phuc 
> wrote:
> >> > Hi,
> >> >
> >> > Is any mistake in your command? I've change the path like this:
> >> >
> >> > $ mkdir -p $ONE_LOCATION/var/remotes/im/vmware.d && cp -r
> >> > $ONE_LOCATION/lib/remotes/im/vmware.d/*
> >> > $ONE_LOCATION/var/remotes/im/vmware.d
> >> >
> >> > and
> >> >
> >> > $ mkdir -p $ONE_LOCATION/var/remotes/vmm/vmware && cp -r
> >> > $ONE_LOCATION/lib/remotes/vmm/vmware/*
> >> > $ONE_LOCATION/var/remotes/vmm/vmware
> >> >
> >> > But it still get the error.
> >> >
> >> > Regards
> >> >
> >> > On 26 April 2011 

Re: [one-users] file ~/.ssh/config

2011-04-27 Thread Carlos Martín Sánchez
Hi. Yes, that's a file you have to configure manually.
Its reference:
$ man ssh_config

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


On Tue, Apr 19, 2011 at 2:45 PM, Marco Mirabile  wrote:

> a question
> the file "~/.ssh/config"
> I don't understand to configure the file "~/.ssh/config"
> how to set it?
> is it manual configuration ?
>
> in the exeples I saw this congigure
>
>
> $ cat ~/.ssh/config
> Host *
> StrictHostKeyChecking no
>
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


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

2011-04-27 Thread Tino Vazquez
Dear Hoang,

You need to set the ESX user credentials in $ONE_LOCATION/etc/vmwarerc.

Regards,

-Tino

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



On Wed, Apr 27, 2011 at 3:05 AM, Hoang Dinh Phuc  wrote:
> Hi Tino Vazquez,
>
> here is the output of tree structure of $ONE_LOCATION/var:
> $ tree $ONE_LOCATION/var
> |-- config
> |-- images
> |   |-- 28c86878bdc6af8c34dd94efcf31c15ee6eeb2a1
> |   |-- 567196a1f80db4234d62b83bc6a0b80d0fa99824
> |   `-- 8625d68b699fd30e64360471eb2c38fed47fcfb6
> |-- one_xmlrpc.01.log
> |-- one_xmlrpc.log
> |-- oned.01.log
> |-- oned.log
> |-- oned.pid
> |-- remotes
> |   |-- im
> |   |   |-- ganglia.d
> |   |   |   `-- ganglia_probe
> |   |   |-- kvm.d
> |   |   |   |-- architecture.sh
> |   |   |   |-- cpu.sh
> |   |   |   |-- kvm.rb
> |   |   |   `-- name.sh
> |   |   |-- run_probes
> |   |   |-- vmware.d
> |   |   |   `-- vmware.rb
> |   |   `-- xen.d
> |   |   |-- architecture.sh
> |   |   |-- cpu.sh
> |   |   |-- name.sh
> |   |   `-- xen.rb
> |   `-- vmm
> |   |-- kvm
> |   |   |-- cancel
> |   |   |-- deploy
> |   |   |-- kvmrc
> |   |   |-- migrate
> |   |   |-- poll
> |   |   |-- poll_local
> |   |   |-- restore
> |   |   |-- save
> |   |   `-- shutdown
> |   |-- vmware
> |   |   |-- cancel
> |   |   |-- checkpoint
> |   |   |-- deploy
> |   |   |-- migrate
> |   |   |-- poll
> |   |   |-- restore
> |   |   |-- save
> |   |   `-- shutdown
> |   `-- xen
> |   |-- cancel
> |   |-- deploy
> |   |-- migrate
> |   |-- poll
> |   |-- poll_local
> |   |-- restore
> |   |-- save
> |   |-- shutdown
> |   `-- xenrc
> |-- sched.log
> |-- sched.pid
> `-- sunstone.log
>
> and here is the next log
>
> $ONE_LOCATION/lib/mads/one_im_sh vmware
> INIT
> INIT SUCCESS - -
> MONITOR 0 esxsrv -
> LOG - 0 Command execution fail: /srv/cloud/one/var/remotes//im/run_probes
> vmware esxsrv
> LOG - 0 STDERR follows.
> LOG - 0 /srv/cloud/one/lib/ruby/vmwarelib.rb:26: warning: already
> initialized constant ONE_LOCATION
> LOG - 0 /srv/cloud/one/lib/ruby/vmwarelib.rb:32: warning: already
> initialized constant RUBY_LIB_LOCATION
> LOG - 0 [VMWARE] cmd failed [/srv/cloud/one/bin/tty_expect -u oneadmin -p
> virsh -c esx://esxsrv/?no_verify=1 --readonly nodeinfo]. Stderr: . Stdout:
> /srv/cloud/one/bin/tty_expect: invalid option -- c
> LOG - 0 Wrong option. Check usage
> LOG - 0
> LOG - 0 myexpect [-h] <-p password> <-u username> 
> LOG - 0
> LOG - 0 SYNOPSIS
> LOG - 0 Wraps the execution of a command and sends username & password
> LOG - 0
> LOG - 0 OPTIONS
> LOG - 0 -h    prints this help.
> LOG - 0 -p    the password
> LOG - 0 -u    the username
> LOG - 0     complete virsh command
> LOG - 0 ExitCode: 255
> LOG - 0 ./vmware.rb:65: private method `split' called for 255:Fixnum
> (NoMethodError)
> LOG - 0 Error executing vmware.rb
> LOG - 0 ExitCode: 1
> MONITOR FAILURE 0 Could not monitor host esxsrv.
>
>
> Regards
>
> On 26 April 2011 23:16, Tino Vazquez  wrote:
>>
>> Hi,
>>
>> The commands should work without modification (note that they should
>> be run from inside the vmware addon installation folder), although
>> your modification should also work.
>>
>> Could you send the output of
>>
>> --
>> $ tree $ONE_LOCATION/var
>> --
>>
>> and
>>
>> --
>> $ $ONE_LOCATION/lib/mads/one_im_sh vmware
>> INIT
>> MONITOR 0  -
>> --
>>
>> Regards,
>>
>> -Tino
>>
>> --
>> Constantino Vázquez Blanco, MSc
>> OpenNebula Major Contributor
>> www.OpenNebula.org | @tinova79
>>
>>
>>
>> On Tue, Apr 26, 2011 at 6:09 PM, Hoang Dinh Phuc  wrote:
>> > Hi,
>> >
>> > Is any mistake in your command? I've change the path like this:
>> >
>> > $ mkdir -p $ONE_LOCATION/var/remotes/im/vmware.d && cp -r
>> > $ONE_LOCATION/lib/remotes/im/vmware.d/*
>> > $ONE_LOCATION/var/remotes/im/vmware.d
>> >
>> > and
>> >
>> > $ mkdir -p $ONE_LOCATION/var/remotes/vmm/vmware && cp -r
>> > $ONE_LOCATION/lib/remotes/vmm/vmware/*
>> > $ONE_LOCATION/var/remotes/vmm/vmware
>> >
>> > But it still get the error.
>> >
>> > Regards
>> >
>> > On 26 April 2011 22:20, Tino Vazquez  wrote:
>> >>
>> >> Dear Hoang,
>> >>
>> >> My apologies, the test i was asking for was not complete (it was
>> >> lacking a paramenter to the mad).
>> >>
>> >> In any case, I think the problem may be in the way ONE 2.0+ handles
>> >> the remotes. The VMware Addon only copies to
>> >> $ONE_LOCATION/lib/remotes, when it should copy also to
>> >> $ONE_LOCATION/var. I've opened a ticket [1] to keep track of the
>> >> solution.
>> >>
>> >> Meanwhile, a workaround is to issue the following from the VMware
>> >> Addon installation directory:
>> >>
>> >> $ mkdir -p $ONE_LOCATION/var/remotes/im/vmware.d && cp -r im/remotes/*
>> >> $ONE_LOCATION/var/remotes/im/vmware.d
>> >> $ mkdir -p $ONE_LOCATION/var/remotes/vmm/vmware && cp -r vmm/remotes/*
>> >> $ONE_LOCATION/var/remotes/

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

2011-04-27 Thread Tino Vazquez
Hi Tim,

This looks like a bug. Could you change line 116 of
$ONE_LOCATION/lib/ruby/OpenNebula/XMLUtils.rb to:

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

and try again. If this works, please come back and i'll open a ticket
to get it fix in future OpenNebula releases.

Regards,

-Tino

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



On Tue, Apr 26, 2011 at 9:03 PM, Tim Dunlevy  wrote:
> FYI -
> Ruby is version 1.8.7
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] CDROM doesn't mount for KVM virts?

2011-04-27 Thread Tino Vazquez
Dear Rich,

You can try changing line 390 of src/vmm/LibVirtDriverKVM.cc

   file << "\t\t" << endl;

you will need to compile, install and run OpenNebula again.

If this works, please come back and we will evaluate the possibility
of having type of cdrom as a variable in the VM template.

Regards,

-Tino

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



On Thu, Apr 21, 2011 at 9:25 AM, Whiffen, Richard
 wrote:
> Ok, with the 'restart trick' that Héctor provided I was able to narrow down
> my problem.
> If the XML says this:
>                  
>                         
>                         
>                         
>                         
>                 
> It doesn't work.  But if I change it to device='disk' it works correctly.
>                  
>                         
>                         
>                         
>                         
>                 
> Is there a way I can change the script or ruby code that sets that value to
> device='cdrom' so it will be device=disk instead?  I still have to get to
> the bottom of why cdrom doesn't work for me.
> libvirt-0.6.3-33.el5 and qemu-0.10.5-1.el5.2 if anyone has any ideas.
> Rich
>
> --
> Rich Whiffen
> richard_whif...@cable.comcast.com
> AIM: richwhiffen
> Yahoo: richwhiffen
> Phone: 202-449-1312
> From: Rich Whiffen 
> Date: Mon, 18 Apr 2011 16:46:57 -0400
> To: "users@lists.opennebula.org" 
> Subject: CDROM doesn't mount for KVM virts?
>
> I'm making pretty good strides at understanding OpenNebula, but it seems the
> more a learn, the more I discover I don't understand.  Here's the next area
> I'm hoping someone can point me in the right direction again.  The context
> cdrom device is never getting mounted on my virts, so things like the
> hostname are never being set.  I can see it's defined:
> root     11229     1  6 16:02 ?        00:00:42 /usr/bin/kvm -S -M rhel5.4.0
> -m 32768 -smp 4 -name one-58 -uuid 4bae869f-3e93-1e4a-0224-2c01cf4610fd
> -no-kvm-pit-reinjection -monitor pty -pidfile
> /var/run/libvirt/qemu//one-58.pid -no-acpi -boot c -drive
> file=/srv/cloud/one/var/58/images/disk.0,if=ide,index=0,boot=on,format=qcow2
> -drive
> file=/srv/cloud/one/var/58/images/disk.1,if=ide,media=cdrom,index=1,format=raw
> -net nic,macaddr=02:00:c0:a8:a8:02,vlan=0 -net
> tap,fd=18,script=,vlan=0,ifname=vnet1 -serial none -parallel none -usb -vnc
> localhost:58
> -drive
> file=/srv/cloud/one/var/58/images/disk.1,if=ide,media=cdrom,index=1,format=raw
>
> The deploy.0 says:
>                  
>                         
>                         
>                         
>                         
>                 
> I also see this device being created in the oned log but /dev/sdb doesn't
> show up as a device on the machine via fdisk or other methods.   So there's
> something off about either my virts or the disk definition in the deploy.0.
>  Not sure how to troubleshoot this.    One thing that would be helpful to
> me, would be a way to manually envoke a virt the same way oned does.  How
> can I run the one/vmm/kvm/deploy commands by hand so I could kill and
> relauch the kvm processes?  (It's a pain to wait for the control box to SCP
> the 60gb disk.0 file).
> Cheers,
> Rich
>
> ___
> 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] Asking about onevm migrate command

2011-04-27 Thread Hoang Dinh Phuc
Hello all,
I'm using OpenNebula 2.2, and 2 kvm server (Ubuntu 10.10).
When i deploy VMs to each KVM Server. It's running fine. But when i want to
migrate (onevm migrate) a vm in one KVM Server to another KVM Server, it
can't change to state running, it's in boot state.

Thanks and Regards
---
F:  Hoang Dinh Phuc
E:  hdp...@gmail.com
M: +84909398700
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] onevm saveas command

2011-04-27 Thread Prakhar Srivastava
Hi,
When I run the command,
  onevm saves VMID DISKID IMAGENAME
the image of the disk is successfully saved upon shutdown of the VM, however
the the file with a hash string name in (/srv/cloud/one/var/images) is not
created. So when I use the image in any VM, it compains that the file cannot
be found in /srv/cloud/one/var/images.
Tue Apr 26 20:59:36 2011 [LCM][I]: New VM state is SHUTDOWN
Tue Apr 26 20:59:44 2011 [LCM][I]: New VM state is EPILOG
Tue Apr 26 21:01:15 2011 [TM][I]: tm_mv.sh: Moving
/srv/cloud/one/var//90/images/disk.0
Tue Apr 26 21:01:15 2011 [TM][I]: tm_mv.sh: Executed "/usr/bin/ssh box1
mkdir -p /srv/cloud/one/var/90".
Tue Apr 26 21:01:15 2011 [TM][I]: tm_mv.sh: Executed "/usr/bin/scp -r
192.168.145.116:/srv/cloud/one/var//90/images/disk.0
box1:/srv/cloud/one/var/90/disk.0".
Tue Apr 26 21:01:15 2011 [TM][I]: tm_mv.sh: Executed "/usr/bin/ssh
192.168.145.116 rm -rf /srv/cloud/one/var//90/images/disk.0".
Tue Apr 26 21:01:16 2011 [TM][I]: tm_delete.sh: Deleting
/srv/cloud/one/var//90/images
Tue Apr 26 21:01:16 2011 [TM][I]: tm_delete.sh: Executed "/usr/bin/ssh
192.168.145.116 rm -rf /srv/cloud/one/var//90/images".
Tue Apr 26 21:01:16 2011 [DiM][I]: New VM state is DONE



Isn't the image supposed to be registered during the save process.
Anyhow I am able to use the image by using a template file providing the
source as the disk image saved and then registering it with a different
name.

Please advice.

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


Re: [one-users] OCCI compute creation problem

2011-04-27 Thread Florin Antonescu
I found the issue, thank you for helping me finding it.
The VM template contained this:

NAME   = "MyCompute"
  DISK = [ IMAGE_ID = 2  ]

  NIC = [ NETWORK_ID = 0  ]

INSTANCE_TYPE = tinyCPU= 0.1
MEMORY = 64

Due to the fact that the tiny.erb did not contain an emty line, the instance
type and the CPU parameter were mixed.
I can now move on, as I am able to create compute instances over OCCI

Best regards

On Tue, Apr 26, 2011 at 6:54 PM, Daniel Molina wrote:

> In the previous mail you were getting the following error:
> [VirtualMachineAllocate] Error trying to PARSE VM TEMPLATE Returned
> error code [1].. Reason: syntax error, unexpected EQUAL, expecting
> $end or VARIABLE at line 26, columns 377:383
>
> In the last mail the error is on the template section instead of the
> allocate one. Did you change anything?
>
> Try f.puts template.message instead of  f.puts template to check the error.
>
> On 26 April 2011 18:40, Florin Antonescu 
> wrote:
> > I added the following code to OCCIServer.rb:
> >  # --- Generate the template and Allocate the new Instance ---
> > template = vm.to_one_template
> > File.open("/tmp/occi.template.txt", "w") do |f|
> > f.puts template
> > end
> > and the output was:
> > $ cat /tmp/occi.template.txt
> > #
> > 500
> > in the Java client I get a HTTP 500 error code with the message: Wrong
> type!
> > The file common.erb contains:
> > $ cat /srv/cloud/one/etc/occi_templates/common.erb
> > #
> > # This template is processed by the OCCI Server to include specific data
> for
> > the
> > # instance, you should not need to modify the ruby code.
> > # You can add common attributes for your cloud templates (e.g. OS)
> > #
> > NAME   = "<%= @vm_info['NAME'] %>"
> > <% @vm_info.each('DISK') do |disk| %>
> > <% if disk.attr('STORAGE','href') %>
> >   DISK = [ IMAGE_ID = <%= disk.attr('STORAGE','href').split('/').last
> %>
> >]
> > <% end %>
> > <% end %>
> > <% @vm_info.each('NIC') do |nic| %>
> > <% if nic.attr('NETWORK','href') %>
> >   NIC = [ NETWORK_ID = <%= nic.attr('NETWORK','href').split('/').last
> %>
> >   <% if nic['IP'] %>
> >   ,IP = <%= nic['IP'] %>
> >   <% end %>
> >   ]
> > <% end %>
> > <% end %>
> > <% if @vm_info.has_elements?('CONTEXT') %>
> > CONTEXT = [
> > <% first = true %>
> > <% @vm_info.each('CONTEXT/*') do |cont| %>
> > <% if cont.text %>
> > <% if first %>
> > <%= cont.name %> = "<%= cont.text %>"
> > <% first = false %>
> > <% else %>
> > ,<%= cont.name %> = "<%= cont.text %>"
> > <% end %>
> > <% end %>
> > <% end %>
> > ]
> > <% end %>
> > INSTANCE_TYPE = <%= @vm_info['INSTANCE_TYPE']%>
> > Any suggestion about how to proceed?
> >
> > On Tue, Apr 26, 2011 at 4:31 PM, Daniel Molina 
> > wrote:
> >>
> >> Hi,
> >>
> >> Would you mind to send the content of the common.erb file inside the
> >> occi_templates folder and the template that is built by OCCI (line 162
> >> inside the OCCIServer.rb file, you can write that variable into a
> >> file).
> >>
> >> Regards.
> >>
> >>
> >> On 17 April 2011 16:07, Florin Antonescu 
> >> wrote:
> >> > Hi there!
> >> > I am having a bit of a problem with creating compute instances both
> >> > command
> >> > line using occi-compute and from a Java client, maybe someone can give
> >> > me a
> >> > hint. I am using OpenNebula 2.2 on top of Ubuntu Desktop 10.10.
> >> > Both command line client and Java client work for creating
> blockstorage
> >> > images, so I don't think authentication is a problem.
> >> > If I try to create the VM from command line using
> >> > $ occi-compute create compute.xml -D --url
> http://192.168.141.129:5000
> >> > I get the following error message:
> >> > [VirtualMachineAllocate] Error trying to PARSE VM TEMPLATE Returned
> >> > error
> >> > code [1].. Reason: syntax error, unexpected EQUAL, expecting $end or
> >> > VARIABLE at line 26, columns 377:383
> >> > The compute.xml file contains: $ cat compute.xml
> >> > 
> >> > MyCompute
> >> > tiny
> >> > 
> >> > http://192.168.141.129:5000/storage/0"/>
> >> > DISK
> >> > hda
> >> > 
> >> > 
> >> > http://192.168.141.129:5000/network/5"/>
> >> > 
> >> > 
> >> > If I try to create the same instance from the Java client i receive
> this
> >> > error message: Wrong type!
> >> > The storage image exists and has this description: $ oneimage show 0
> >> > IMAGE  INFORMATION
> >> > ID : 0
> >> > NAME   : ttylinux
> >> > TYPE   : OS
> >> > REGISTER TIME  : 04/08 21:19:30
> >> > PUBLIC : Yes
> >> > PERSISTENT : No
> >> > SOURCE :
> >> > /srv/cloud/one/var//images/42f54d261985fd2b5941566878dbb03fc1e6b399
> >> > STATE  : rdy
> >> > RUNNING_VMS: 0
> >> > IMAGE TEMPLATE
> >> > BUS=IDE
> >> > DESCRIPTION=Minimalist Linux d