Re: [one-users] ttylinux via ssh not accessible any more after migrate / suspend -> resume

2010-09-03 Thread Jaime Melis
Hi Viktor,

that's a very interesting problem. Let's check if it's related to the
bridge. Start the vm and execute 'brctl show' on one host. Migrate it
to another host and execute 'brctl show' on that second host. Compare
those outputs and check if libvirt/kvm is correctly attaching the
network interface to the bridge.

cheers,
Jaime

On Fri, Sep 3, 2010 at 12:54 AM, Viktor Mauch  wrote:
> hello javier,
>
> one more time,
>
> I'm now working with OpenNebula 2.0beta with the KVM Hypervisor (head node
> and cluster nodes are based on 10.04). I tried to play with the supported
> ttylinux image form the ONE website. Starting the machine and login via ssh
> is no problem. After Stop -> Resume the machine is still available via
> network.
>
> But if I perform a migration of the the machine or suspend -> resume, the
> network conncetion is gone (ping / ssh find no aim). I looked via VNC into
> the VM, and everything looks ok, the eth0 device is still configured right,
> but also no possibility to ping something others outside the VM. Restarting
> of the network did not solve the problem. The log files are clear. All
> physical hosts are in the same switch.
>
> Does anyone have an idee what goes wrong??
>
> Greets
>
> Viktor
>
>
> Am 30.08.2010 11:32, schrieb Javier Fontan:
>>
>> Hello,
>>
>> Can you try to access it by other means to check if there is something
>> broken in the VM? If you are using xen you should be able to access it
>> using "xm console" from the physical node. With KVM you can add VNC
>> access to it.
>>
>> If the machine seems to be in good shape there can also be some
>> problem in the network relearning where the machine is. Are both
>> physical hosts in the same switch?
>>
>> Bye
>>
>>
>> On Mon, Aug 30, 2010 at 12:56 AM, Viktor Mauch  wrote:
>>>
>>> Hello,
>>>
>>> I use ONE 1.4 with a shared NFS and play a litle bit with the ttylinux
>>> image
>>> which automatically configures the eth0 device during booting.
>>>
>>> The VM is accessible via SSH and everything looks fine. After
>>> livemigration,
>>> normal migration or suspend->resume the ssh connection is no longer
>>> available:
>>>
>>> $ ssh r...@vm_ip
>>> ssh: connect to host VM_IP port 22: No route to host
>>>
>>>
>>> Greets
>>>
>>> Viktor
>>>
>>>
>>>
>>> ___
>>> 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] What kinds of shared storage are you using?

2010-09-03 Thread Ignacio M. Llorente
Dear Szekelyi,

You could consider to contribute the new driver to our ecosystem
and/or write a post in our blog describing your customization.

Thanks!

On Fri, Sep 3, 2010 at 1:07 AM, Andreas Ntaflos  wrote:
> On Friday 03 September 2010 00:28:23 Székelyi Szabolcs wrote:
>> We're using iSCSI targets directly (one target per vm), automatically
>> created and initialized (cloned) from images on vm deploy. Althogh
>> the target is based on IET behind gigabit links, it works quite
>> well: we haven't done performance benchmarks (yet), but the
>> installation time of virtual machines is kinda same than on real
>> hardware.
>
> That sounds interesting and very similar to what we hope to achieve
> using OpenNebula and a central storage server (as I've posted a few
> hours ago, not realising this thread here is very similar in nature).
>
>> We developed a custom TM driver for this, because this approach makes
>> live migration trickier, since just before live migration the target
>> host needs to log in to the iSCSI target hosting the disks of the
>> vm, and this is something ONE can't do, so we used libvirt hooks to
>> do this -- works like a charm. Libvirt hooks are also good for
>> reattaching virtual machines to their virtual networks on live
>> migration -- again something ONE doesn't do.
>
> Would you care to go into a little detail regarding your custom TM
> driver? Maybe even post the sources? I'd be very interested in learning
> more about your approach to this.
>
> Thanks!
>
> Andreas
> --
> Andreas Ntaflos
>
> GPG Fingerprint: 6234 2E8E 5C81 C6CB E5EC  7E65 397C E2A8 090C A9B4
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>



-- 
Ignacio M. Llorente, Full Professor (Catedratico):
http://dsa-research.org/llorente
DSA Research Group:  web http://dsa-research.org and blog
http://blog.dsa-research.org
OpenNebula Open Source Toolkit for Cloud Computing: http://www.OpenNebula.org
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] What kinds of shared storage are you using?

2010-09-03 Thread Székelyi Szabolcs
On Friday 03 September 2010 14.54.06 Ignacio M. Llorente wrote:
> You could consider to contribute the new driver to our ecosystem
> and/or write a post in our blog describing your customization.

Our development is sponsored by the state, thus everything we develop will be 
open sourced, and so, it'd be an honour to contribute this to the OpenNebula 
ecosystem.

This is an ongoing development, and the TM driver is just a small part of it. 
On the other hand, in our environment it has been quite stable for a couple of 
weeks now, so I think it's time to do an alpha release.

I'll use the weekend to gather all its dependencies, wrap it up and write some 
docs about it. Expect a release in the beginning of next week.

Thank you for your interest.

Cheers,
-- 
cc

> On Fri, Sep 3, 2010 at 1:07 AM, Andreas Ntaflos  
wrote:
> > On Friday 03 September 2010 00:28:23 Székelyi Szabolcs wrote:
> >> We're using iSCSI targets directly (one target per vm), automatically
> >> created and initialized (cloned) from images on vm deploy. Althogh
> >> the target is based on IET behind gigabit links, it works quite
> >> well: we haven't done performance benchmarks (yet), but the
> >> installation time of virtual machines is kinda same than on real
> >> hardware.
> > 
> > That sounds interesting and very similar to what we hope to achieve
> > using OpenNebula and a central storage server (as I've posted a few
> > hours ago, not realising this thread here is very similar in nature).
> > 
> >> We developed a custom TM driver for this, because this approach makes
> >> live migration trickier, since just before live migration the target
> >> host needs to log in to the iSCSI target hosting the disks of the
> >> vm, and this is something ONE can't do, so we used libvirt hooks to
> >> do this -- works like a charm. Libvirt hooks are also good for
> >> reattaching virtual machines to their virtual networks on live
> >> migration -- again something ONE doesn't do.
> > 
> > Would you care to go into a little detail regarding your custom TM
> > driver? Maybe even post the sources? I'd be very interested in learning
> > more about your approach to this.
> > 
> > Thanks!
> > 
> > Andreas
> > --
> > Andreas Ntaflos
> > 
> > GPG Fingerprint: 6234 2E8E 5C81 C6CB E5EC  7E65 397C E2A8 090C A9B4
> > 
> > ___
> > 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] SnapShot/Save a VM with OpenNebula2.0

2010-09-03 Thread ravi.krishna
Hi All



I am using OpenNebula 2.0beta with ESXI 4.1.



Can I take the snapshot of a VM using OpenNebula??



Or Can I use "onevm saveas" command to take the Snapshot or save the
Current state of a VM.



If possible, Please let me know how to do it.



Thanks In advance

Ravi


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


Re: [one-users] What kinds of shared storage are you using?

2010-09-03 Thread Ignacio M. Llorente
Happy to read this, please see the details at
http://www.opennebula.org/community:ecosystem and you can get an
account in our blog by sending an email to Borja at
,

Thanks!

2010/9/3 Székelyi Szabolcs :
> On Friday 03 September 2010 14.54.06 Ignacio M. Llorente wrote:
>> You could consider to contribute the new driver to our ecosystem
>> and/or write a post in our blog describing your customization.
>
> Our development is sponsored by the state, thus everything we develop will be
> open sourced, and so, it'd be an honour to contribute this to the OpenNebula
> ecosystem.
>
> This is an ongoing development, and the TM driver is just a small part of it.
> On the other hand, in our environment it has been quite stable for a couple of
> weeks now, so I think it's time to do an alpha release.
>
> I'll use the weekend to gather all its dependencies, wrap it up and write some
> docs about it. Expect a release in the beginning of next week.
>
> Thank you for your interest.
>
> Cheers,
> --
> cc
>
>> On Fri, Sep 3, 2010 at 1:07 AM, Andreas Ntaflos 
> wrote:
>> > On Friday 03 September 2010 00:28:23 Székelyi Szabolcs wrote:
>> >> We're using iSCSI targets directly (one target per vm), automatically
>> >> created and initialized (cloned) from images on vm deploy. Althogh
>> >> the target is based on IET behind gigabit links, it works quite
>> >> well: we haven't done performance benchmarks (yet), but the
>> >> installation time of virtual machines is kinda same than on real
>> >> hardware.
>> >
>> > That sounds interesting and very similar to what we hope to achieve
>> > using OpenNebula and a central storage server (as I've posted a few
>> > hours ago, not realising this thread here is very similar in nature).
>> >
>> >> We developed a custom TM driver for this, because this approach makes
>> >> live migration trickier, since just before live migration the target
>> >> host needs to log in to the iSCSI target hosting the disks of the
>> >> vm, and this is something ONE can't do, so we used libvirt hooks to
>> >> do this -- works like a charm. Libvirt hooks are also good for
>> >> reattaching virtual machines to their virtual networks on live
>> >> migration -- again something ONE doesn't do.
>> >
>> > Would you care to go into a little detail regarding your custom TM
>> > driver? Maybe even post the sources? I'd be very interested in learning
>> > more about your approach to this.
>> >
>> > Thanks!
>> >
>> > Andreas
>> > --
>> > Andreas Ntaflos
>> >
>> > GPG Fingerprint: 6234 2E8E 5C81 C6CB E5EC  7E65 397C E2A8 090C A9B4
>> >
>> > ___
>> > Users mailing list
>> > Users@lists.opennebula.org
>> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



-- 
Ignacio M. Llorente, Full Professor (Catedratico):
http://dsa-research.org/llorente
DSA Research Group:  web http://dsa-research.org and blog
http://blog.dsa-research.org
OpenNebula Open Source Toolkit for Cloud Computing: http://www.OpenNebula.org
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Open Nebula unable to delete the snapshot of a VM

2010-09-03 Thread Italo Madalozo
Hi Jaime,

# lvs
  LV   VG Attr   LSize  OriginSnap%  Move Log Copy%  Convert
  debian   images owi-a-  2.00G
  lv-one-102-0 images swi-ao  1.00G windows01  19.70
  lv-one-103-0 images swi-ao  1.00G windows01  18.20
  lv-one-104-0 images swi-ao  1.00G windows01  20.63
  lv-one-105-0 images swi-ao  1.00G windows01  18.01
  lv-one-106-0 images swi-ao  1.00G debian  0.89
  lv-one-107-0 images swi-ao  1.00G debian  0.86
  lv-one-83-0  images swi-a-  1.00G debian  0.23
  lv-one-84-0  images swi-a-  1.00G debian  0.62
  lv-one-85-0  images swi-a-  1.00G debian  0.61
  lv-one-86-0  images swi-a-  1.00G debian  0.63
  lv-one-87-0  images swi-a-  1.00G debian  0.63
  lv-one-88-0  images swi-a-  1.00G debian  0.62
  lv-one-89-0  images swi-a-  1.00G debian  0.61
  lv-one-90-0  images swi-ao  1.00G debian  1.21
  lv-one-94-0  images swi-a-  1.00G windows01   0.23
  lv-one-97-0  images swi-ao  1.00G debian  1.20
  windows01images owi-a- 11.00G

#vgs
  VG #PV #LV #SN Attr   VSize   VFree
  images   1  18  16 wz--n- 463.84G 434.84G

Regards

Italo
On 2 September 2010 16:26, Jaime Melis  wrote:

> Can you also paste the output of 'vgs' ?
>
> On Thu, Sep 2, 2010 at 6:23 PM, Jaime Melis  wrote:
> > Hi Italo,
> >
> > that is weird. Can you paste the output of 'lvs' ?
> >
> > regards,
> > Jaime
> >
> > On Thu, Sep 2, 2010 at 6:16 PM, Italo Madalozo 
> wrote:
> >> Hi Jaime,
> >> thanks for the reply. /images is not a path it is the name of the VG,
> first
> >> I tried /dev/images and it did not work, when I change to /images it
> works.
> >> But it can not delete the snapshots afterwards.
> >> Cheers
> >> Italo
> >>
> >> On 2 September 2010 15:59, Jaime Melis  wrote:
> >>>
> >>> Hi Italo,
> >>>
> >>> it looks like $VG_NAME contains "/images", but it shouldn't be a path,
> >>> it should be the name of the volume group that LVM uses to create LVs.
> >>>
> >>> Try changing that to "images", by editing tm_lvmrc.
> >>>
> >>> cheers,
> >>> Jaime
> >>>
> >>> On Wed, Sep 1, 2010 at 5:30 PM, Italo Madalozo <
> italo.madal...@gmail.com>
> >>> wrote:
> >>> > Hi,
> >>> > I have been trying Open Nebula for a  couple of weeks now and so far
> it
> >>> > works great, one of the complex steps of building the cloud is the
> >>> > storage.
> >>> > After reading about LVM on the website and then from the mailing list
> I
> >>> > managed to get it working , VG_NAME=/images, and now I can instance
> many
> >>> > virtual machines to the pool within seconds or minutes without having
> >>> >  to
> >>> > clone (wasting storage) the images or wasting bandwidth  transferring
> >>> > from
> >>> > the front end to the nodes.
> >>> > Now the problem I am facing is that the lvm/tm_delete.sh script can't
> >>> > manage
> >>> > to delete the snapshots created by lvm/clone.sh. I have tried onevm
> $ID
> >>> > delete,shutdown and cancel as recommended in a previous thread but
> none
> >>> > of
> >>> > them worked.
> >>> > This is the log output:
> >>> > Wed Sep  1 16:20:47 2010 [InM][I]: Monitoring host 192.168.1.4 (5)
> >>> > Wed Sep  1 16:20:47 2010 [VMM][D]: Message received: LOG - 62 Driver
> >>> > command
> >>> > for 62 cancelled
> >>> > Wed Sep  1 16:20:47 2010 [TM][D]: Message received: LOG - 62 Command
> >>> > execution fail: /srv/cloud/one/lib/tm_commands/lvm/tm_delete.sh
> >>> > 192.168.1.4:/srv/cloud/one/var/62/images
> >>> > Wed Sep  1 16:20:47 2010 [TM][D]: Message received: LOG - 62 STDERR
> >>> > follows.
> >>> > Wed Sep  1 16:20:47 2010 [TM][D]: Message received: LOG - 62 ERROR
> >>> > MESSAGE
> >>> > --8<--
> >>> > Wed Sep  1 16:20:47 2010 [TM][D]: Message received: LOG - 62
> "/images":
> >>> > Invalid path for Logical Volume
> >>> > Wed Sep  1 16:20:47 2010 [TM][D]: Message received: LOG - 62
> "/images/":
> >>> > Invalid path for Logical Volume
> >>> > Wed Sep  1 16:20:47 2010 [TM][D]: Message received: LOG - 62 ERROR
> >>> > MESSAGE
> >>> > -->8--
> >>> > Wed Sep  1 16:20:47 2010 [TM][D]: Message received: LOG - 62
> ExitCode: 5
> >>> > Wed Sep  1 16:20:47 2010 [TM][D]: Message received: LOG - 62
> >>> > tm_delete.sh:
> >>> > Deleting remote LVs
> >>> > Wed Sep  1 16:20:47 2010 [TM][D]: Message received: LOG - 62
> >>> > tm_delete.sh:
> >>> > ERROR: Command "ssh 192.168.1.4 sudo lvremove -f $(echo
> /images/$(sudo
> >>> > lvs
> >>> > --noheadings /images|awk '{print $1}'|grep lv-one-62))" failed.
> >>> > Wed Sep  1 16:20:47 2010 [TM][D]: Message received: LOG - 62
> >>> > tm_delete.sh:
> >>> > ERROR:   "/images": Invalid path for Logical Volume
> >>> > Wed Sep  1 16:20:47 2010 [TM][D]: Message received: LOG - 62
> "/images/":
> >>> > Invalid path for Logical Volume
> >>> > Wed Sep  1 16:20:47 2010 [TM][D]: Message received: TRANSFER FAILURE
> 62
> >>> > "/images": Invalid path for Logical Volume
> >>> > Wed Sep  1 16:20:47 2010 [TM][D]: Message received:   "/images/":
> >>> > Invalid
> >>> > path for Logical Volume
> >>> > Wed Sep  1 16:20:48 2010 [VMM][D]: Mes

Re: [one-users] Open Nebula unable to delete the snapshot of a VM

2010-09-03 Thread Jaime Melis
Hi Italo,

as you see, the VG_NAME is "images", not "/images".

Can you confirm that you have set:

VG_NAME=images

(and not: VG_NAME=/images)

in $ONE_LOCATION/etc/tm_lvm/tm_lvmrc

If you haven't done it, please do it, because it's the correct value.
If something else fails after that let's debug that other thing.

Cheers,
Jaime

On Fri, Sep 3, 2010 at 6:31 PM, Italo Madalozo  wrote:
> Hi Jaime,
> # lvs
>   LV           VG     Attr   LSize  Origin    Snap%  Move Log Copy%  Convert
>   debian       images owi-a-  2.00G
>   lv-one-102-0 images swi-ao  1.00G windows01  19.70
>   lv-one-103-0 images swi-ao  1.00G windows01  18.20
>   lv-one-104-0 images swi-ao  1.00G windows01  20.63
>   lv-one-105-0 images swi-ao  1.00G windows01  18.01
>   lv-one-106-0 images swi-ao  1.00G debian      0.89
>   lv-one-107-0 images swi-ao  1.00G debian      0.86
>   lv-one-83-0  images swi-a-  1.00G debian      0.23
>   lv-one-84-0  images swi-a-  1.00G debian      0.62
>   lv-one-85-0  images swi-a-  1.00G debian      0.61
>   lv-one-86-0  images swi-a-  1.00G debian      0.63
>   lv-one-87-0  images swi-a-  1.00G debian      0.63
>   lv-one-88-0  images swi-a-  1.00G debian      0.62
>   lv-one-89-0  images swi-a-  1.00G debian      0.61
>   lv-one-90-0  images swi-ao  1.00G debian      1.21
>   lv-one-94-0  images swi-a-  1.00G windows01   0.23
>   lv-one-97-0  images swi-ao  1.00G debian      1.20
>   windows01    images owi-a- 11.00G
> #vgs
>   VG     #PV #LV #SN Attr   VSize   VFree
>   images   1  18  16 wz--n- 463.84G 434.84G
> Regards
> Italo
> On 2 September 2010 16:26, Jaime Melis  wrote:
>>
>> Can you also paste the output of 'vgs' ?
>>
>> On Thu, Sep 2, 2010 at 6:23 PM, Jaime Melis  wrote:
>> > Hi Italo,
>> >
>> > that is weird. Can you paste the output of 'lvs' ?
>> >
>> > regards,
>> > Jaime
>> >
>> > On Thu, Sep 2, 2010 at 6:16 PM, Italo Madalozo
>> >  wrote:
>> >> Hi Jaime,
>> >> thanks for the reply. /images is not a path it is the name of the VG,
>> >> first
>> >> I tried /dev/images and it did not work, when I change to /images it
>> >> works.
>> >> But it can not delete the snapshots afterwards.
>> >> Cheers
>> >> Italo
>> >>
>> >> On 2 September 2010 15:59, Jaime Melis  wrote:
>> >>>
>> >>> Hi Italo,
>> >>>
>> >>> it looks like $VG_NAME contains "/images", but it shouldn't be a path,
>> >>> it should be the name of the volume group that LVM uses to create LVs.
>> >>>
>> >>> Try changing that to "images", by editing tm_lvmrc.
>> >>>
>> >>> cheers,
>> >>> Jaime
>> >>>
>> >>> On Wed, Sep 1, 2010 at 5:30 PM, Italo Madalozo
>> >>> 
>> >>> wrote:
>> >>> > Hi,
>> >>> > I have been trying Open Nebula for a  couple of weeks now and so far
>> >>> > it
>> >>> > works great, one of the complex steps of building the cloud is the
>> >>> > storage.
>> >>> > After reading about LVM on the website and then from the mailing
>> >>> > list I
>> >>> > managed to get it working , VG_NAME=/images, and now I can instance
>> >>> > many
>> >>> > virtual machines to the pool within seconds or minutes without
>> >>> > having
>> >>> >  to
>> >>> > clone (wasting storage) the images or wasting bandwidth
>> >>> >  transferring
>> >>> > from
>> >>> > the front end to the nodes.
>> >>> > Now the problem I am facing is that the lvm/tm_delete.sh script
>> >>> > can't
>> >>> > manage
>> >>> > to delete the snapshots created by lvm/clone.sh. I have tried onevm
>> >>> > $ID
>> >>> > delete,shutdown and cancel as recommended in a previous thread but
>> >>> > none
>> >>> > of
>> >>> > them worked.
>> >>> > This is the log output:
>> >>> > Wed Sep  1 16:20:47 2010 [InM][I]: Monitoring host 192.168.1.4 (5)
>> >>> > Wed Sep  1 16:20:47 2010 [VMM][D]: Message received: LOG - 62 Driver
>> >>> > command
>> >>> > for 62 cancelled
>> >>> > Wed Sep  1 16:20:47 2010 [TM][D]: Message received: LOG - 62 Command
>> >>> > execution fail: /srv/cloud/one/lib/tm_commands/lvm/tm_delete.sh
>> >>> > 192.168.1.4:/srv/cloud/one/var/62/images
>> >>> > Wed Sep  1 16:20:47 2010 [TM][D]: Message received: LOG - 62 STDERR
>> >>> > follows.
>> >>> > Wed Sep  1 16:20:47 2010 [TM][D]: Message received: LOG - 62 ERROR
>> >>> > MESSAGE
>> >>> > --8<--
>> >>> > Wed Sep  1 16:20:47 2010 [TM][D]: Message received: LOG - 62
>> >>> > "/images":
>> >>> > Invalid path for Logical Volume
>> >>> > Wed Sep  1 16:20:47 2010 [TM][D]: Message received: LOG - 62
>> >>> > "/images/":
>> >>> > Invalid path for Logical Volume
>> >>> > Wed Sep  1 16:20:47 2010 [TM][D]: Message received: LOG - 62 ERROR
>> >>> > MESSAGE
>> >>> > -->8--
>> >>> > Wed Sep  1 16:20:47 2010 [TM][D]: Message received: LOG - 62
>> >>> > ExitCode: 5
>> >>> > Wed Sep  1 16:20:47 2010 [TM][D]: Message received: LOG - 62
>> >>> > tm_delete.sh:
>> >>> > Deleting remote LVs
>> >>> > Wed Sep  1 16:20:47 2010 [TM][D]: Message received: LOG - 62
>> >>> > tm_delete.sh:
>> >>> > ERROR: Command "ssh 192.168.1.4 sudo lvremove -f $(echo
>> >>> > /images/$(sudo
>> >>> > lvs
>> >>> > --noheadings /images|awk '{print $1}'|grep

Re: [one-users] Fwd: Register VM for ESX 4.1

2010-09-03 Thread Tino Vazquez
Hi Jonathan,

Have you set the OpenNebula local path that is mounted as datastore1
in the ESX in

* $ONE_LOCATION/etc/tm_vmware/tm_vmwarerc --> variable DATASTORE_PATH

?

Regards,

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



On Thu, Sep 2, 2010 at 6:05 PM, Jonathan Kelley  wrote:
>
> Hi Tino,
> I think I am getting a little farther in that I was trying to use the onevm
> create  instead of registering (which worked but not sure it helps).
> However it fails to create the vm and I find this message in the
> vmm_vmware.log:
> [02.09.2010 11:57:44] Failed deploying VM 1 into
> 12core.x.com.Reason:/export/vg0-lv0/1/deployment.0 (No such file or
> directory)
> with these messages in the oned.log:
> Thu Sep  2 11:57:43 2010 [DiM][D]: Deploying VM 1
> Thu Sep  2 11:57:43 2010 [ReM][D]: VirtualMachinePoolInfo method invoked
> Thu Sep  2 11:57:43 2010 [TM][D]: Message received: TRANSFER SUCCESS 1 -
> Thu Sep  2 11:57:44 2010 [VMM][D]: Message received: DEPLOY FAILURE 1 Failed
> deploying VM in host 12core.boston.vm-labs.com.
> Thu Sep  2 11:57:44 2010 [TM][D]: Message received: LOG - 1 tm_delete.sh:
> Deleting
> Thu Sep  2 11:57:44 2010 [TM][D]: Message received: LOG - 1 tm_delete.sh:
> Executed "rm -rf
> /export/vg0-lv0/one-12core.x.com:/export/vg0-lv0/1/images".
> Thu Sep  2 11:57:44 2010 [TM][D]: Message received: TRANSFER SUCCESS 1 -
> Any tips with these messages?
> I have a single NFS mount on the ESX host as datastore1 and is a local path
> to the OpenNebula front-end.
> -Jon
>
>
> On Thu, Sep 2, 2010 at 11:39 AM, Jonathan Kelley 
> wrote:
>>
>> Hi Tino,
>> Thanks for the quick reply.
>>  How do you specify a VM PATH though as my VM has 5-6 associated files?
>> Here is the example given:
>>
>> NAME  = "Ubuntu Web Development"
>> PATH  = /home/one_user/images/ubuntu_desktop.img
>> PUBLIC= YES
>> DESCRIPTION   = "Ubuntu 10.04 desktop for Web Development students.
>> Contains the pdf lessons and exercises as well as all the necessary
>> programming tools and testing frameworks."
>>
>> For my Windows XP I have two disk files so how do I specify two files in
>> the PATH field? Or do I specify the vmx file?
>> Thanks again,
>> -Jon
>>
>> On Thu, Sep 2, 2010 at 11:29 AM, Tino Vazquez  wrote:
>>>
>>> Hi Jonathan,
>>>
>>> The way to use the image catalog is to upload individual images, each
>>> of them requiring an image template [1].
>>>
>>> One registered, a VM can use an image by just referencing the image's
>>> name (same as the VirtualNetwork from your template, using just the
>>> name "VMWareNET").
>>>
>>> Regards,
>>>
>>> -Tino
>>>
>>> [1] http://opennebula.org/documentation:rel2.0:img_template
>>> --
>>> Constantino Vázquez Blanco | dsa-research.org/tinova
>>> Virtualization Technology Engineer / Researcher
>>> OpenNebula Toolkit | opennebula.org
>>>
>>>
>>>
>>> On Thu, Sep 2, 2010 at 4:57 PM, Jonathan Kelley 
>>> wrote:
>>> > Hello,
>>> > I am trying to register my VM to use with OpenNebula and ESX 4.1.
>>> > I copied the VM folder to the shared nfs storage and then have tried to
>>> > create a template for this vm but I am not sure I have it right:
>>> > r...@:/srv/cloud/one# cat /export/vg0-lv0/WinXP.template
>>> > NAME=VMwareVM
>>> > MEMORY=256
>>> > CPU=1
>>> > NIC=[NETWORK="VMWareNet"]
>>> > DISK=[ source="/export/vg0-lv0/WinXP_32bit_Dev",
>>> >        clone="yes",
>>> >        save="no"]
>>> > However when I run the register command I get image not present
>>> > messages:
>>> > r...@:/export/vg0-lv0# /srv/cloud/one/bin/oneimage register
>>> > ./WinXP.template
>>> > Error: Image not present, aborting.
>>> >
>>> > It is not quite clear to me what the template should look like and how
>>> > to
>>> > register an existing VMware VM.
>>> > Thanks,
>>> > Jon
>>> >
>>> > ___
>>> > 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


[one-users] OpenNebula and Ubuntu Feisty

2010-09-03 Thread Nelson Mimura Gonzalez
Hi all,

I'm installing OpenNebula using some tutorials:

[1] http://www.opennebula.org/documentation:archives:tp2:qg
[2] http://www.opennebula.org/documentation:rel1.4:xeng
[3] https://help.ubuntu.com/community/OpenNebula
[4] http://www.opennebula.org/documentation:rel1.4:cg

The front end is running Ubuntu Lucid (10.04) and everything went fine, but
the node is running Ubuntu Feisty (7.04, mainly because of Xen). The problem
is: the package opennebula-node is not officially available for Feisty (I
think the oldest Ubuntu version that has official OpenNebula packages is
Hardy (8.04)).

I would like to know what this package opennebula-node really does. I mean,
if it is a package that only creates some directories and sets up the
oneadmin user, I can do that manually. If not (if there are binaries
installed, for example), then I will have to make up a more sophisticated
workaround.

Thanks in advance,

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


Re: [one-users] OpenNebula and Ubuntu Feisty

2010-09-03 Thread Nelson Mimura Gonzalez
Just FYI, I already set up SSH, NIS and NFS both at the front end and the
node, and I also installed, configured and tested Xen at the node.

I think that the only thing to be done at the node is to create the user
oneadmin. But if you see [1] this is not necessary, as long as the /home
directory (where SSH permissions are put) is shared through NFS. So the
question persists: what does the installation of opennebula-node do?
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Hook for VM becoming UNKNOWN state

2010-09-03 Thread Shi Jin
Hi, there,

I would like to have a hook to run a script when the user shuts down the VM 
from inside the OS. When that happens, the VMState=ACTIVE and 
LCM_STATE=UNKNOWN. Is it possible to add this to the hook system of OpenNebula? 
Otherwise, which code should I look for to add some custom code after it gets 
into UNKNOWN?

Thanks a lot.

--
Shi Jin, PhD


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


Re: [one-users] What kinds of shared storage are you using?

2010-09-03 Thread Slava Yanson
We are using GlusterFS and it works great :) With some tweaking we were able
to average around 90-120 megabits per second on reads and 25-35 megabits per
second on writes. Configuration is as follows:

2 file servers:
- Supermicro server motherboard with Intel Atom D510
- 4GB DDR2 RAM
- 6 x Western Digital RE3 500GB hard drives
- Ubuntu 10.04 x64 (on a 2GB USB stick)
- RAID 10

File servers are set up with replication and we have a total of 1.5TB of
storage dedicated to virtual machine storage with ability to grow it to
petabytes on demand - just add more nodes!


Slava Yanson, CTO
Killer Beaver, LLC

w: www.killerbeaver.net
c: (323) 963-4787
aim/yahoo/skype: urbansoot

Follow us on Facebook: http://fb.killerbeaver.net/
Follow us on Twitter: http://twitter.com/thekillerbeaver


On Wed, Sep 1, 2010 at 8:48 PM, Huang Zhiteng  wrote:

> Hi all,
>
> In my open nebula 2.0b testing, I found NFS performance was unacceptable
> (too bad).  I haven't done any tuning or optimization to NFS yet but I doubt
> if tuning can solve the problem.  So I'd like to know what kind of shared
> storage you are using.  I thought about Global File System v2 (GFSv2).
> GFSv2 does performs much better (near native performance) but there's limit
> of 32 nodes and setting up GFS is complex. So more important question, how
> can shared storage scales to > 100 node cloud?  Or this question should be
> for > 100 node cloud, what kind of storage system should be used?   Please
> give any suggestion or comments.  If you have already implement/deploy such
> an environment, it'd be great if you can share some best practice.
>
> --
> Below there's some details about my setup and issue:
>
> 1 front-end, 6 nodes.  All machines are two socket Intel Xeon x5570 2.93Ghz
> (16 threads in total), with 12GB memory.  There's one SATA RAID 0 box (630GB
> capacity) connected to front-end.  Network is 1Gb Ethernet.
>
> OpenNebula 2.0b was installed to /srv/cloud/one on front-end and then
> exported via NFSv4.  Also front-end exports RAID 0 partition to
> /srv/cloud/one/var/images.
>
> The Prolog stage of Creating VM always caused frond-end machine almost
> freeze (slow response to input, even OpenNebula command would timeout) in my
> setup.  I highly suspect the root cause is poor performance NFS.
> --
> Regards
> Huang Zhiteng
>
> ___
> 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] Hook for VM becoming UNKNOWN state

2010-09-03 Thread Ruben S. Montero
Hi,

The other thing we may want to look at is to detect that the VM is
stopped in libvirt and move the VM to shutdown->epilog->done. There is
a ticket for this http://dev.opennebula.org/issues/335

Cheers

Ruben

On Fri, Sep 3, 2010 at 8:13 PM, Shi Jin  wrote:
> Hi, there,
>
> I would like to have a hook to run a script when the user shuts down the VM 
> from inside the OS. When that happens, the VMState=ACTIVE and 
> LCM_STATE=UNKNOWN. Is it possible to add this to the hook system of 
> OpenNebula? Otherwise, which code should I look for to add some custom code 
> after it gets into UNKNOWN?
>
> Thanks a lot.
>
> --
> Shi Jin, PhD
>
>
>
> ___
> 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] Hook for VM becoming UNKNOWN state

2010-09-03 Thread Shi Jin
Thank you. That's useful information. I will keep watching this ticket.

In the same time, could you please point me to the code where a quick hacky
script can be inserted after OpenNebula detects UNKNOWN. Thanks.

Shi
On Fri, Sep 3, 2010 at 3:24 PM, Ruben S. Montero wrote:

> Hi,
>
> The other thing we may want to look at is to detect that the VM is
> stopped in libvirt and move the VM to shutdown->epilog->done. There is
> a ticket for this http://dev.opennebula.org/issues/335
>
> Cheers
>
> Ruben
>
> On Fri, Sep 3, 2010 at 8:13 PM, Shi Jin  wrote:
> > Hi, there,
> >
> > I would like to have a hook to run a script when the user shuts down the
> VM from inside the OS. When that happens, the VMState=ACTIVE and
> LCM_STATE=UNKNOWN. Is it possible to add this to the hook system of
> OpenNebula? Otherwise, which code should I look for to add some custom code
> after it gets into UNKNOWN?
> >
> > Thanks a lot.
> >
> > --
> > Shi Jin, PhD
> >
> >
> >
> > ___
> > 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
>



-- 
Shi Jin, Ph.D.
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org