Re: [one-users] VM stuck in boot state

2011-05-18 Thread Karthik Mallavarapu
Hi Javier,

There is no kvm version mismatch. I had to downgrade libvirt installation
from 0.9 to 0.8 in order to fix the migrate issue.
Thanks a lot.

Regards,
Karthik

On Wed, May 18, 2011 at 6:53 PM, Javier Fontan  wrote:

> Could this be the problem?
>
> https://bugs.launchpad.net/ubuntu/+source/kvm/+bug/244467
>
> Also, is kvm the same version in both hosts. Maybe a kvm version
> mismatch can cause that problem.
>
> On Thu, May 12, 2011 at 2:26 PM, Karthik Mallavarapu
>  wrote:
> > Hello Javier,
> > The issue comes when we try to migrate a VM onto this particular node. I
> > could deploy the VM successfully now because I had rebooted the
> problematic
> > node machine earlier. But now when I tried to migrate a VM from another
> node
> > to this particular node, the VM gets stuck in BOOT state. The following
> is
> > the log of that particular VM.
> > 2011-05-12 15:16:38.216: starting up
> > LC_ALL=C
> PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
> > /usr/bin/kvm -S -M pc-0.12 -enable-kvm -m 600 -smp
> > 1,sockets=1,cores=1,threads=1 -name one-75 -uuid
> > 71849f73-851b-53f9-0176-a26de9466338 -nographic -nodefaults -chardev
> >
> socket,id=charmonitor,path=/var/lib/libvirt/qemu/one-75.monitor,server,nowait
> > -mon chardev=charmonitor,id=monitor,mode=readline -rtc base=utc -boot c
> > -device lsi,id=scsi0,bus=pci.0,addr=0x3 -drive
> >
> file=/srv/cloud/one/var//75/images/disk.0,if=none,id=drive-scsi0-0-0,boot=on,format=qcow2
> > -device
> scsi-disk,bus=scsi0.0,scsi-id=0,drive=drive-scsi0-0-0,id=scsi0-0-0
> > -device rtl8139,vlan=0,id=net0,mac=02:00:c0:a8:02:0b,bus=pci.0,addr=0x2
> -net
> > tap,fd=19,vlan=0,name=hostnet0 -usb -incoming fd:15 -device
> > virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4
> > qemu: warning: error while loading state for instance 0x0 of device 'ram'
> > load of migration failed
> > And then I had disabled all the other nodes except for the problematic
> node
> > and deployed a VM after this migration issue. The VM again gets stuck in
> > BOOT state and strangely there is no log file created for the new VM. It
> is
> > now very clear that there is an issue with migration and it is causing
> even
> > the other VMs to fail.
> > Any idea why this might happen or what the error means.
> > I really appreciate your time and help. Thanks a lot.
> > Regards,
> > Karthik
> >
> > On Thu, May 12, 2011 at 2:32 PM, Javier Fontan 
> wrote:
> >>
> >> Can you check /var/log/libvirt/qemu/one-54.log? There should be some
> info
> >> there.
> >>
> >> On Tue, May 10, 2011 at 5:26 PM, Karthik Mallavarapu
> >>  wrote:
> >> > Hello All,
> >> > I have an opennebula installation with 1 frontend and two nodes. The
> >> > base OS
> >> > is ubuntu 10.10 64 bit edition. When I try to deploy a VM using the
> >> > command
> >> > onevm create ubuntu.template the VM gets deployed successfully on one
> >> > node
> >> > but it gets stuck in BOOT state on the other node. I am enclosing
> >> > the log file and deployment.0 file of that VM and transcript of the
> log
> >> > from
> >> > $ONE_LOCATION/var/oned.log.
> >> >
> >> > vm.log
> >> > Tue May 10 18:01:54 2011 [DiM][I]: New VM state is ACTIVE.
> >> > Tue May 10 18:01:54 2011 [LCM][I]: New VM state is PROLOG.
> >> > Tue May 10 18:01:54 2011 [VM][I]: Virtual Machine has no context
> >> > Tue May 10 18:01:55 2011 [TM][I]: tm_clone.sh:
> >> > cloud-3:/srv/cloud/images/ubuntu/ubu64.img
> >> > 192.168.2.5:/srv/cloud/one/var//54/images/disk.0
> >> > Tue May 10 18:01:55 2011 [TM][I]: tm_clone.sh: DST:
> >> > /srv/cloud/one/var//54/images/disk.0
> >> > Tue May 10 18:01:55 2011 [TM][I]: tm_clone.sh: Creating directory
> >> > /srv/cloud/one/var//54/images
> >> > Tue May 10 18:01:55 2011 [TM][I]: tm_clone.sh: Executed "mkdir -p
> >> > /srv/cloud/one/var//54/images".
> >> > Tue May 10 18:01:55 2011 [TM][I]: tm_clone.sh: Executed "chmod a+w
> >> > /srv/cloud/one/var//54/images".
> >> > Tue May 10 18:01:55 2011 [TM][I]: tm_clone.sh: Cloning
> >> > /srv/cloud/images/ubuntu/ubu64.img
> >> > Tue May 10 18:01:55 2011 [TM][I]: tm_clone.sh: Executed "cp -r
> >> > /srv/cloud/images/ubuntu/ubu64.img
> >> > /srv/cloud/one/var//54/images/disk.0".
> >> > Tue May 10 18:01:55 2011 [TM][I]: tm_clone.sh: Executed "chmod a+rw
> >> > /srv/cloud/one/var//54/images/disk.0".
> >> > Tue May 10 18:01:57 2011 [LCM][I]: New VM state is BOOT
> >> > Tue May 10 18:01:57 2011 [VMM][I]: Generating deployment file:
> >> > /srv/cloud/one/var/54/deployment.0
> >> > deployment.0
> >> > 
> >> > one-54
> >> > 614400
> >> > 
> >> > hvm
> >> > 
> >> > 
> >> > 
> >> > /usr/bin/kvm
> >> > 
> >> >  >> > file='/srv/cloud/one/var//54/images/disk.0'/>
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >>

Re: [one-users] OCA XML-RPC output

2011-05-18 Thread Florin Antonescu
I am also interested in this topic as I am trying to do the same task for
research project GEYSERS.

On Wed, May 18, 2011 at 6:36 PM, Gian Uberto Lauri  wrote:

> Hello all,
>
>  I am  writing an  OCCI implementation that  accepts OVF  for the
>  Venus-C  research project.  This implementation  parses OVF  and
>  uses  the  extracted informatios  to  build  the input  fir  the
>  appropriate OCA api.
>
>  /compute  works  using  OCA  allocate(), now  I  am  working  on
>  /compute/[id] that will use OCA info(). This call returns an XML
>  that I have to translate into an OVF.
>
>  I choosed to parse this XML using xjc to compile xsd definitions
>  into Java classes.
>
>  I downloaded the xsd from the hyperlink in the XML-RPC page, but
>  the definition for  VMs (i.e. the answer of the  info() OCA api)
>  is too  coares, and I  need to parse at  least some of  the tags
>  inside the  tag to get finer grained informations.
>
>  So I have to change the xsd I downloaded.
>
>  This lead to this question: May I assume that tag order is fixed
>  inside   ?  so that the content may  be defined by a
>   ?
>
>  And does  this hold even  for the  content of ,   and
>  ?
>
>  Common sense says  that Ruby should not  execute its instruction
>  out of order, so the order is fixed and some elements may or may
>  not appear,  but the  order should not  change. Can  you confirm
>  this ?
>
>  Thank you in advance.
>
> --
> ing. Gian Uberto Lauri
> Ricercatore / Reasearcher
> Laboratorio Ricerca e Sviluppo / Research & Development Lab.
> Area Calcolo Distribuito / Distributed Computation Area
>
> gianuberto.la...@eng.it
>
> Engineering Ingegneria Informatica spa
> Corso Stati Uniti 23/C, 35127 Padova (PD)
>
> Tel. +39-049.8283.571 | main(){printf(&unix["\021%six\012\0"],
> Fax  +39-049.8283.569 |(unix)["have"]+"fun"-0x60);}
> Skype: gian.uberto.lauri  |  David Korn, AT&T Bell Labs
> http://www.eng.it |  ioccc best One Liner,
> 1987
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] OCA XML-RPC output

2011-05-18 Thread Gian Uberto Lauri
Hello all, 

  I am  writing an  OCCI implementation that  accepts OVF  for the
  Venus-C  research project.  This implementation  parses OVF  and
  uses  the  extracted informatios  to  build  the input  fir  the
  appropriate OCA api.

  /compute  works  using  OCA  allocate(), now  I  am  working  on
  /compute/[id] that will use OCA info(). This call returns an XML
  that I have to translate into an OVF.

  I choosed to parse this XML using xjc to compile xsd definitions
  into Java classes.

  I downloaded the xsd from the hyperlink in the XML-RPC page, but
  the definition for  VMs (i.e. the answer of the  info() OCA api)
  is too  coares, and I  need to parse at  least some of  the tags
  inside the  tag to get finer grained informations.

  So I have to change the xsd I downloaded.

  This lead to this question: May I assume that tag order is fixed
  inside   ?  so that the content may  be defined by a
   ?

  And does  this hold even  for the  content of ,   and
  ?

  Common sense says  that Ruby should not  execute its instruction
  out of order, so the order is fixed and some elements may or may
  not appear,  but the  order should not  change. Can  you confirm
  this ?

  Thank you in advance.

--
ing. Gian Uberto Lauri
Ricercatore / Reasearcher
Laboratorio Ricerca e Sviluppo / Research & Development Lab.
Area Calcolo Distribuito / Distributed Computation Area

gianuberto.la...@eng.it

Engineering Ingegneria Informatica spa
Corso Stati Uniti 23/C, 35127 Padova (PD) 

Tel. +39-049.8283.571 | main(){printf(&unix["\021%six\012\0"], 
Fax  +39-049.8283.569 |(unix)["have"]+"fun"-0x60);}   
Skype: gian.uberto.lauri  |  David Korn, AT&T Bell Labs 

http://www.eng.it |  ioccc best One Liner, 1987 

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


Re: [one-users] XML-RPC Disk information

2011-05-18 Thread Florin Antonescu
I am using version 2.2.

On Wed, May 18, 2011 at 2:46 PM, Javier Fontan  wrote:

> What version are you using? Stock OpenNebula does not push information
> about disk space but certainly it can be added.
>
> Also all the CLI tools use the XMLRPC interface so you should get the
> same information using both XMLPRC or CLI. The problem you are facing
> is that onehost show is one.host.info call. The call one.hostpool.info
> is used for onehost list.
>
> On Tue, May 17, 2011 at 2:42 PM, Florin Antonescu
>  wrote:
> > I am trying to use the XML-RPC interface for getting information about
> > available host computers and about their available disk space. I have
> found
> > that XML-RPC one.hostpool.info command should return for each host the
> > amount of free/available/used disk space, however, the returned value is
> > always 0. So I have added a new probe that should produce the FREESPACE
> and
> > USEDSPACE attributes. These seems to work when invoking command line
> utility
> > 'onehost show' but not when using the XML-RPC interface. Can anyone give
> me
> > a hint about what should I modify in order for the XML-RPC
> > 'one.hostpool.info' command to work. Also, it would be nice if this
> could be
> > fixed in the next OpenNebula release.
> > Best regards,
> > Florian
> > ___
> > 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] VM stuck in boot state

2011-05-18 Thread Javier Fontan
Could this be the problem?

https://bugs.launchpad.net/ubuntu/+source/kvm/+bug/244467

Also, is kvm the same version in both hosts. Maybe a kvm version
mismatch can cause that problem.

On Thu, May 12, 2011 at 2:26 PM, Karthik Mallavarapu
 wrote:
> Hello Javier,
> The issue comes when we try to migrate a VM onto this particular node. I
> could deploy the VM successfully now because I had rebooted the problematic
> node machine earlier. But now when I tried to migrate a VM from another node
> to this particular node, the VM gets stuck in BOOT state. The following is
> the log of that particular VM.
> 2011-05-12 15:16:38.216: starting up
> LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
> /usr/bin/kvm -S -M pc-0.12 -enable-kvm -m 600 -smp
> 1,sockets=1,cores=1,threads=1 -name one-75 -uuid
> 71849f73-851b-53f9-0176-a26de9466338 -nographic -nodefaults -chardev
> socket,id=charmonitor,path=/var/lib/libvirt/qemu/one-75.monitor,server,nowait
> -mon chardev=charmonitor,id=monitor,mode=readline -rtc base=utc -boot c
> -device lsi,id=scsi0,bus=pci.0,addr=0x3 -drive
> file=/srv/cloud/one/var//75/images/disk.0,if=none,id=drive-scsi0-0-0,boot=on,format=qcow2
> -device scsi-disk,bus=scsi0.0,scsi-id=0,drive=drive-scsi0-0-0,id=scsi0-0-0
> -device rtl8139,vlan=0,id=net0,mac=02:00:c0:a8:02:0b,bus=pci.0,addr=0x2 -net
> tap,fd=19,vlan=0,name=hostnet0 -usb -incoming fd:15 -device
> virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4
> qemu: warning: error while loading state for instance 0x0 of device 'ram'
> load of migration failed
> And then I had disabled all the other nodes except for the problematic node
> and deployed a VM after this migration issue. The VM again gets stuck in
> BOOT state and strangely there is no log file created for the new VM. It is
> now very clear that there is an issue with migration and it is causing even
> the other VMs to fail.
> Any idea why this might happen or what the error means.
> I really appreciate your time and help. Thanks a lot.
> Regards,
> Karthik
>
> On Thu, May 12, 2011 at 2:32 PM, Javier Fontan  wrote:
>>
>> Can you check /var/log/libvirt/qemu/one-54.log? There should be some info
>> there.
>>
>> On Tue, May 10, 2011 at 5:26 PM, Karthik Mallavarapu
>>  wrote:
>> > Hello All,
>> > I have an opennebula installation with 1 frontend and two nodes. The
>> > base OS
>> > is ubuntu 10.10 64 bit edition. When I try to deploy a VM using the
>> > command
>> > onevm create ubuntu.template the VM gets deployed successfully on one
>> > node
>> > but it gets stuck in BOOT state on the other node. I am enclosing
>> > the log file and deployment.0 file of that VM and transcript of the log
>> > from
>> > $ONE_LOCATION/var/oned.log.
>> >
>> > vm.log
>> > Tue May 10 18:01:54 2011 [DiM][I]: New VM state is ACTIVE.
>> > Tue May 10 18:01:54 2011 [LCM][I]: New VM state is PROLOG.
>> > Tue May 10 18:01:54 2011 [VM][I]: Virtual Machine has no context
>> > Tue May 10 18:01:55 2011 [TM][I]: tm_clone.sh:
>> > cloud-3:/srv/cloud/images/ubuntu/ubu64.img
>> > 192.168.2.5:/srv/cloud/one/var//54/images/disk.0
>> > Tue May 10 18:01:55 2011 [TM][I]: tm_clone.sh: DST:
>> > /srv/cloud/one/var//54/images/disk.0
>> > Tue May 10 18:01:55 2011 [TM][I]: tm_clone.sh: Creating directory
>> > /srv/cloud/one/var//54/images
>> > Tue May 10 18:01:55 2011 [TM][I]: tm_clone.sh: Executed "mkdir -p
>> > /srv/cloud/one/var//54/images".
>> > Tue May 10 18:01:55 2011 [TM][I]: tm_clone.sh: Executed "chmod a+w
>> > /srv/cloud/one/var//54/images".
>> > Tue May 10 18:01:55 2011 [TM][I]: tm_clone.sh: Cloning
>> > /srv/cloud/images/ubuntu/ubu64.img
>> > Tue May 10 18:01:55 2011 [TM][I]: tm_clone.sh: Executed "cp -r
>> > /srv/cloud/images/ubuntu/ubu64.img
>> > /srv/cloud/one/var//54/images/disk.0".
>> > Tue May 10 18:01:55 2011 [TM][I]: tm_clone.sh: Executed "chmod a+rw
>> > /srv/cloud/one/var//54/images/disk.0".
>> > Tue May 10 18:01:57 2011 [LCM][I]: New VM state is BOOT
>> > Tue May 10 18:01:57 2011 [VMM][I]: Generating deployment file:
>> > /srv/cloud/one/var/54/deployment.0
>> > deployment.0
>> > 
>> >         one-54
>> >         614400
>> >         
>> >                 hvm
>> >                 
>> >         
>> >         
>> >                 /usr/bin/kvm
>> >                 
>> >                         > > file='/srv/cloud/one/var//54/images/disk.0'/>
>> >                         
>> >                         
>> >                 
>> >                 
>> >                         
>> >                         
>> >                 
>> >         
>> >         
>> >                 
>> >         
>> > 
>> > /srv/cloud/one/var/oned.log
>> > Tue May 10 18:01:54 2011 [DiM][D]: Deploying VM 54
>> > Tue May 10 18:01:55 2011 [TM][D]: Message received: LOG - 54
>> > tm_clone.sh:
>> > cloud-3:/srv/cloud/images/ubuntu/ubu64.img
>> > 192.168.2.5:/srv/cloud/one/var//54/images/disk.0
>> > Tue May 10 18:01:55 2011 [TM][D]: Message received: LOG - 54
>> > tm_clone.sh:
>> > DST: /srv/cloud/one/var//54/images/disk.0
>> 

Re: [one-users] Mounting on NFS

2011-05-18 Thread Ruben Diez

Try to change the /etc/exports from
/srv/cloud 
xx.yy.z.0/255.255.255.0(rw,fsid=0,nohide,sync,root_squash,no_subtree_check)

to

/srv/cloud xx.yy.z.0/24(rw,fsid=0,nohide,sync,root_squash,no_subtree_check)


Regards

Rui Esteves escribió:

Hi
I have a test environment with 2 computers and I am having difficulty 
to mount the /srv/cloud directory.
The front-end has Ubuntu server with static IP xx.yy.z.15, and the 
node has Ubuntu Desktop with dynamic IP but at this moment being 
xx.yy.z.100

On Front-end:
1- sudo mkdir -p /srv/cloud/
2- sudo groupadd -g 1 cloud
3- sudo useradd -u 1 -g cloud -m oneadmin -d /srv/cloud/one -s 
/bin/bash

4- sudo passwd oneadmin
5- sudo chown -R oneadmin:cloud /srv/cloud/
6- sudo vi /etc/exports:
/srv/cloud 
xx.yy.z.0/255.255.255.0(rw,fsid=0,nohide,sync,root_squash,no_subtree_check) 


7- sudo /etc/init.d/nfs-kernel-server start
8- su -l oneadmin
9- ssh-keygen
10- cat ~/.ssh/id_rsa.pub > ~/.ssh/authorized_keys
11- echo "StrictHostKeyChecking no" > ~/.ssh/config
12- < Installed the Opennebula (2.2) >
13- ./install.sh -u oneadmin -g cloud -d /srv/cloud/one
14- cat ~/.bash_profile
export ONE_LOCATION=/srv/cloud/one
export ONE_AUTH=$ONE_LOCATION/.one/one_auth
export ONE_XMLRPC=http://localhost:2633/RPC2
export PATH=$ONE_LOCATION/bin:/usr/local/bin:/var/lib/gems/1.8/bin/:$PATH
15- source ~/.bash_profile
16- mkdir ~/.one
17- echo "oneadmin:password" > ~/.one/one_auth
18- vi ~/etc/oned.conf

19- one start

At the node:
20- < Added the following line at the end of /etc/fstab >
xx.yy.z.15:/srv/cloud /srv/cloud nfs defaults 0 0
21- sudo mkdir -p /srv/cloud

Now I am unable to mount it.
- If I mount from the node (sudo mount /srv/cloud) I get the error:
mount.nfs: access denied by server while mounting xx.yy.z.15:/srv/cloud
-If I mount from the Front-end (sudo mount -t nfs 
xx.yy.z.100:/srv/cloud /srv/cloud) I get the error:

mount.nfs: Connection timed out


What might I be missing here?

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] cannot use a iso based cdrom in vmware

2011-05-18 Thread Tino Vazquez
Hi Carlos,

Ok, I think I have a better understanding of the problem now. I've
opened a ticket [1] since this is definitely a bug.

Let's try the following to see if we got it right:

  * Change line 222 with

 file << "\t\t\tget_oid()
<< "/images/disk."  << i << ".iso'/>"  << endl;

   * Copy the attached tm_clone.sh to $ONE_LOCATION/lib/tm_commands/nfs

Recompile and try again, many thanks again for the feedback. If this
works I'll add the changes both to the core and the VMware addon.

Regards,

-Tino

[1] http://dev.opennebula.org/issues/649
--
Constantino Vázquez Blanco, MSc
OpenNebula Major Contributor
www.OpenNebula.org | @tinova79



On Tue, May 17, 2011 at 5:32 PM, Carlos A.  wrote:
> Sorry,
>
> I provided you with wrong information
>
> --cut here
>
> 
> one-567
> 1
> 262144
> 
> hvm
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> --cut here
>
>
> $ ls -l /var/lib/vmware/VirtualMachines/567/images
> total 738176
> -rw-r--r-- 1 oneadmin oneadmin 755144704 2011-05-17 17:21 disk.0
>
> In fact, the "disk.0" is the iso file. Now
>
> $ /srv/cloud/one/bin/tty_expect -u myadmin -p XX virsh -c
> gsx://myhost?no_verify=1 define /srv/cloud/one/var/567/deployment.0
>
> provides an error that is not related to the cdrom file but to the fact that
> I am not providing a disk for the VM (I am just testing)
>
> Now the problem is about the name of the file
>
> Regards.
>
> El 17/05/2011 17:16, Tino Vazquez escribió:
>>
>> Hi Carlos,
>>
>> Couple of questions:
>>
>>  * What are the contents of
>> /var/lib/vmware/VirtualMachines/566/images/disk.0?
>>
>>  * I take it that /tmp/iso is a file, could you rename it to
>> "something.iso" and try again?
>>
>> Regards,
>>
>> -Tino
>>
>> --
>> Constantino Vázquez Blanco | dsa-research.org/tinova
>> Virtualization Technology Engineer / Researcher
>> OpenNebula Toolkit | opennebula.org
>>
>>
>>
>> On Tue, May 17, 2011 at 5:12 PM, Carlos A.  wrote:
>>>
>>> Hi,
>>>
>>> for generated domain:
>>> --cut here
>>> 
>>> one-566
>>> 1
>>> 262144
>>> 
>>> hvm
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> --cut here
>>>
>>> now I get the next error:
>>>
>>> $ /srv/cloud/one/bin/tty_expect -u myadmin -p XX virsh -c
>>> gsx://myhost?no_verify=1 define /srv/cloud/one/var/566/deployment.0
>>>
>>> error: Failed to define domain from /srv/cloud/one/var/566/deployment.0
>>> error: internal error Image file for IDE cdrom 'hda' has unsupported
>>> suffix,
>>> expecting '.iso'
>>>
>>> The files have been properly copied but in fact they have a name other
>>> than
>>> *.iso. What I have in the VMWare repository is
>>>
>>> myadmin@myhost:/var/lib/vmware/VirtualMachines/566/images$ ls -l
>>> total 4
>>> drwxrwxrwx 2 myadmin myadmin 4096 2011-05-17 17:03 disk.0
>>>
>>> As you can see cdrom file types are not properly copied.
>>>
>>> It seems to be easy to find a workaround (just rename the file in case
>>> that
>>> it is a cdrom type), but also use the proper file name. But currently
>>> vmware
>>> files are transfered in a different way (they are stored into folders to
>>> deal with parted disk files).
>>>
>>> Regards,
>>> Carlos A.
>>>
>>> El 17/05/2011 15:33, Tino Vazquez escribió:

 Hi Carlos,

 thanks for your feedback! This looks like a bug. Could you please try
 changing src/vmm/LibVirtDriverVMware.cc:

    * add this include at the beginning

 #include

    * replace line 222 (file<<    "\t\t\t"<<    endl;)  with the following:

             file<<    "\t\t\t>>> vm->get_oid()
                  <<    "/images/"<<    basename((char
 *)source.c_str())<<
  "'/>"<<    endl;


 You will need to recompile ONE and restart it.

 If this works, please come back and I'll open a ticket and fix this
 issue in the repo.

 Regards,

 -Tino

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



 On Tue, May 17, 2011 at 1:04 PM, Carlos A.    wrote:
>
> A template like this
>
> ---cut here---
>
> NAME = vm-vmware
>
> VCPU    = 1
> MEMORY = 512
> OS = [ ARCH = "i686" ]
>
> DISK = [
>        source = "/tmp/iso" ,
>        target="hda",
>        bus="ide",
>        type="cdrom"
> ]
>
> ---cut here---
>
> generates a deployment file like this one
>
> ---cut here---
>
> 
> one-559
> 1
> 524288
> 
> hvm
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> ---cut here---
>
> The problem is the line that states    while
> i

[one-users] Mounting on NFS

2011-05-18 Thread Rui Esteves

Hi
I have a test environment with 2 computers and I am having difficulty  
to mount the /srv/cloud directory.
The front-end has Ubuntu server with static IP xx.yy.z.15, and the  
node has Ubuntu Desktop with dynamic IP but at this moment being  
xx.yy.z.100

On Front-end:
1- sudo mkdir -p /srv/cloud/
2- sudo groupadd -g 1 cloud
3- sudo useradd -u 1 -g cloud -m oneadmin -d /srv/cloud/one -s /bin/bash
4- sudo passwd oneadmin
5- sudo chown -R oneadmin:cloud /srv/cloud/
6- sudo vi /etc/exports:
  /srv/cloud  
xx.yy.z.0/255.255.255.0(rw,fsid=0,nohide,sync,root_squash,no_subtree_check)

7- sudo /etc/init.d/nfs-kernel-server start
8- su -l oneadmin
9- ssh-keygen
10- cat ~/.ssh/id_rsa.pub > ~/.ssh/authorized_keys
11- echo "StrictHostKeyChecking no" > ~/.ssh/config
12- < Installed the Opennebula (2.2) >
13- ./install.sh -u oneadmin -g cloud -d /srv/cloud/one
14- cat ~/.bash_profile
  export ONE_LOCATION=/srv/cloud/one
  export ONE_AUTH=$ONE_LOCATION/.one/one_auth
  export ONE_XMLRPC=http://localhost:2633/RPC2
  export  
PATH=$ONE_LOCATION/bin:/usr/local/bin:/var/lib/gems/1.8/bin/:$PATH

15- source ~/.bash_profile
16- mkdir ~/.one
17- echo "oneadmin:password" > ~/.one/one_auth
18- vi ~/etc/oned.conf
 related lines>

19- one start

At the node:
20-  < Added the following line at the end of /etc/fstab >
  xx.yy.z.15:/srv/cloud /srv/cloud nfs defaults 0 0
21- sudo mkdir -p /srv/cloud

Now I am unable to mount it.
- If I mount from the node (sudo mount /srv/cloud) I get the error:
 mount.nfs: access denied by server while mounting xx.yy.z.15:/srv/cloud
-If I mount from the Front-end (sudo mount -t nfs  
xx.yy.z.100:/srv/cloud /srv/cloud) I get the error:

 mount.nfs: Connection timed out


What might I be missing here?

Thank you.




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


[one-users] Error monitoring VM, Error executing sudo /usr/sbin/xentop -bi2

2011-05-18 Thread María Pérez

Hi again,

I have another problem with the monitoring of the machines and the 
execution of /var/tmp/one/vmm/xen/poll.


The log file contains the following lines with the error:


Command execution fail: 'if [ -x "/var/tmp/one/vmm/xen/poll" ]; then 
/var/tmp/one/vmm/xen/poll one-28; else  exit 
42; fi'

Wed May 18 14:48:56 2011 [VMM][I]: STDERR follows.
Wed May 18 14:48:56 2011 [VMM][I]: Error executing sudo /usr/sbin/xentop 
-bi2
Wed May 18 14:48:56 2011 [VMM][I]: /var/tmp/one/vmm/xen/poll:186:in 
`[]': can't convert String into Integer (TypeError)
Wed May 18 14:48:56 2011 [VMM][I]: from /var/tmp/one/vmm/xen/poll:186:in 
`get_vm_info'
Wed May 18 14:48:56 2011 [VMM][I]: from /var/tmp/one/vmm/xen/poll:310:in 
`print_one_vm_info'

Wed May 18 14:48:56 2011 [VMM][I]: from /var/tmp/one/vmm/xen/poll:344
Wed May 18 14:48:56 2011 [VMM][I]: ExitCode: 1
Wed May 18 14:48:56 2011 [VMM][E]: Error monitoring VM, Error executing 
sudo /usr/sbin/xentop -bi2



I have tried to execute the commando from the own node to discard 
problems of ssh, but the error message is the same.


I have found the following information

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

but this patches no solved this problem.  I have installed opennebula 
2,2 and the nodes are xen 3.4.3


Any idea? Thank you very much by your attention.

Regards,

María











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


Re: [one-users] XML-RPC Disk information

2011-05-18 Thread Javier Fontan
What version are you using? Stock OpenNebula does not push information
about disk space but certainly it can be added.

Also all the CLI tools use the XMLRPC interface so you should get the
same information using both XMLPRC or CLI. The problem you are facing
is that onehost show is one.host.info call. The call one.hostpool.info
is used for onehost list.

On Tue, May 17, 2011 at 2:42 PM, Florin Antonescu
 wrote:
> I am trying to use the XML-RPC interface for getting information about
> available host computers and about their available disk space. I have found
> that XML-RPC one.hostpool.info command should return for each host the
> amount of free/available/used disk space, however, the returned value is
> always 0. So I have added a new probe that should produce the FREESPACE and
> USEDSPACE attributes. These seems to work when invoking command line utility
> 'onehost show' but not when using the XML-RPC interface. Can anyone give me
> a hint about what should I modify in order for the XML-RPC
> 'one.hostpool.info' command to work. Also, it would be nice if this could be
> fixed in the next OpenNebula release.
> Best regards,
> Florian
> ___
> 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] VM state is UNKNOWN

2011-05-18 Thread María Pérez

Hi,

I have a pair of problems in my installation of opennebula. First it is 
that the VM begins correctly  but soon after they become to unknown 
state. The message at the log (vm.log) is:


VM running but it was not found. Restart and delete actions available or 
try to recover it manually

New VM state is UNKNOWN

I can recovery the VM doing "onevm resubmit" but soon after it returns 
to unknown state, although the machine is perfectly accessible and works 
well.


Somebody has had the same problem? it has solved how it?

Regars,

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


Re: [one-users] Can we use the front end host also to deploy VMs ?

2011-05-18 Thread Carlos Martín Sánchez
Hi,

Since the storage is "shared", you should use the tm_nfs drivers.

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


On Tue, May 17, 2011 at 12:01 PM, Héctor Sanjuán wrote:

> Hi, things should be fine AFAIK, as long as you meet the normal
> requirements (passwordless ssh access etc).
>
> Hector
>
> El 17/05/11 07:44, Madhurranjan Mohaan escribió:
> > Hi,
> >
> > Since the front end machine in my set up has quite a lot of RAM, wanted
> > to know if its fine to deploy VMs on this machine as well . Is there
> > anything that doesn't work with this sort of setup ?
> >
> > thanks
> >
> > Madhurranjan
> >
> >
> >
> > ___
> > Users mailing list
> > Users@lists.opennebula.org
> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
> --
> Héctor Sanjuan
> OpenNebula.org
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Configuration bash_profile on system wide

2011-05-18 Thread Łukasz Grabowski
Hi,
if you have opennebula wide system installed, ONE_LOCATION has to be unset.
Try exporting it like this:
export ONE_LOCATION=

Regards,
Łukasz

2011/5/18 mahirudin alkhoir 

> hai i have a problem with configuration bash_profile on wide system
> 
> in wide system opennebula installed on / directory right??
>
> i am setting bash_profile like  this :
>
> export ONE_LOCATION=/
> export ONE_AUTH=/var/lib/one/.one/one_auth
> export ONE_XMLRPC=http://localhost:2633/RPC2
> export PATH=$ONE_LOCATION/bin:/usr/local/bin:/var/lib/gems/1.8/bin/:$PATH
>
> but when i am start one.. i am getting error..
>
> sed: can't read //etc/oned.conf: No such file or directory
> Can not find PORT in //etc/oned.conf.
>
> the true oned.conf was installed one /etc/one/oned.conf
> isnt with my configuration???
>
>
>
>
> ___
> 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] Configuration bash_profile on system wide

2011-05-18 Thread mahirudin alkhoir
hai i have a problem with configuration bash_profile on wide system

in wide system opennebula installed on / directory right??

i am setting bash_profile like  this :

export ONE_LOCATION=/
export ONE_AUTH=/var/lib/one/.one/one_auth
export ONE_XMLRPC=http://localhost:2633/RPC2
export PATH=$ONE_LOCATION/bin:/usr/local/bin:/var/lib/gems/1.8/bin/:$PATH

but when i am start one.. i am getting error..

sed: can't read //etc/oned.conf: No such file or directory
Can not find PORT in //etc/oned.conf.

the true oned.conf was installed one /etc/one/oned.conf
isnt with my configuration???
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] poll script return value if VM is not running

2011-05-18 Thread Carlos Martín Sánchez
Hi Nikolay,

The core looks for those meaningful attributes and updates them only if they
are present and not equal to '-1', but they are not mandatory.
If any of them is not found, the previous value persist.

I would say that your driver should return all values that can be retrieved
from the hypervisor.


Regards.

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


On Mon, May 16, 2011 at 8:04 PM,  wrote:

> Hi!
>
> I wonder what $ONE_LOCATION/var/remotes/vmm//poll script has to
> return if polling VM is not running (but it can be in one of a,p,d,e state)?
> Should it be just STATE='' or script has to return all
> meaningful for OpenNebula variables (USEDCPU, USEDMEMORY, NETRX and NETTX)?
> If all  variables listed above are mandatory then which values has to be
> assigned to them (0, -, something else or variables shouldn't have any value
> assigned) since they can't be retrieved?
>
> I couldn't find such info in [1].
>
> Thanks!
> Nikolay.
>
> [1] http://opennebula.org/documentation:rel2.2:devel-vmm
> ___
> 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] compile 2.2 on squeeze...

2011-05-18 Thread Thomas Besser
Am Dienstag 17 Mai 2011 17:55:42 schrieb Łukasz Oleś
> Install all dependencies listed in this file:
> http://git.debian.org/?p=pkg-
opennebula/opennebula.git;a=blob;f=debian/control;h=8dbc0761b1f5d81df682ffa2b1c10884d9de69d8;hb=refs/heads/squeeze
> (those from 'Build-Depends')  and it should work.

Thanx, with this detailed list it compiles.

Regards
Thomas

-- 
Karlsruher Institut für Technologie (KIT)
archIT [IT-Management der Fakultät Architektur]
Gebäude 11.40, Raum 010 | Fon +49 721 608 46024
http://www.archIT.uni-karlsruhe.de
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Help to login without asking for a user or password.

2011-05-18 Thread Ruben Diez
First, generate ssh key for use oneadmin and add the public key to 
authorized_keys file:


$ ssh-keygen
Generating public/private rsa key pair.
...
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

You also need to create a ssh configuration file of the oneadmin user 
("/srv/cloud/one/.ssh/config"):


$ cat /srv/cloud/one/.ssh/config

Host *
   StrictHostKeyChecking no


If it not works, be careful with the file permissions of the ssh related 
files



I hope this helps..


Luis G. Alford G. escribió:

hi,

I have finally install the open nebula and it seems to be working just 
fine now I need too add the host that I have as xen server and add it 
to the dashboard .
I have been reading about the configuartion steps and I see that one 
should be able to login ussing ssh without the request for a password. 
any idea on how to do this. ..  waiting for your repley


regards
Luis Alford



___
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