Re: [one-users] Restarting a vm instance after shutdown?

2011-05-24 Thread Lars Kellogg-Stedman
Steffen, Tino,

Thank you both for your answers.  Using persistent disk images (or the
"save as" feature) helps a little bit, but what I was really hoping
for was a model in which:

(a) A vm instance would start with its own copy of a disk image.
(b) Shutdown would not delete the image.
(c) Some command (restart, or resubmit, or something) would allow one
to restore a vm instance that had been shut down.
(d) Disk data would only be discarded with an explicit "delete".

Ideally, this would be controlled at the virtual machine level, not
the disk image level.  That is, one would set the "don't delete on
shutdown" option on the vm instance.

The problem with "persistent" images is that -- as far as I can tell
-- the vm instance references the image in the repository directly,
rather than getting "private" persistent *copy* of the image.  The
problem with "saving" a vm instance is that it doesn't really address
the problem of, "whoops, I typed the wrong vm id and shutdown the
wrong system".  It also forces the template description file to become
more important, since the "recovery" process is to create a new
virtual machine instance, rather than rebooting the old one.

I have seen several similar questions on the list from folks looking
for a way to support persistent virtual machines, so it looks as if
this is a model for which there is some demand.  For those of you
familiar with the codebase, does this look as if it would be hard to
implement?  If I wanted to implement it myself, should I be looked at
the 2.4 code?  We're running 2.2 locally, but I understand that 2.4 is
on the horizon.

-- 
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] live-/migration not working, uknown error

2011-05-24 Thread Adnan Pasic
Hi,

first of all, thanks for your help Steffen. Unfortunately, I already found
this particular page and tried what was written there, but nevertheless it
still wouldn't work.

Any other ideas???

 

Regards!

Adnan Pasic

 

Von: Neumann, Steffen [mailto:sneum...@ipb-halle.de] 
Gesendet: Dienstag, 24. Mai 2011 16:59
An: Adnan Pasic; users@lists.opennebula.org
Betreff: RE: [one-users] live-/migration not working, uknown error

 

Hi,

check out the list archives:
http://lists.opennebula.org/htdig.cgi/users-opennebula.org/2011-April/005013
.html

Steffen

  _  

From: users-boun...@lists.opennebula.org
[users-boun...@lists.opennebula.org] on behalf of Adnan Pasic
[pq...@yahoo.de]
Sent: 24 May 2011 14:47
To: users@lists.opennebula.org
Subject: [one-users] live-/migration not working, uknown error

Update: Okay, the issue with "virsh list" is gone. But still the problem
with migration / live migration pertains. 

Do you have to do some extra steps for live migration to work? Do you need
to create TLS keys or something, or is the standard tutorial enough for
everything to work?

 

The error still says: 

[VMM] [E]: Error saving VM state, error: Failed to save domain one-26 to
/srv/cloud/one/var//26/images/checkpoint

 

It seems the folder checkpoint can't get created, or the creation of the
folder is missing somewhere in the scripts, because when I browse through to
the folder /images there is no checkpoint folder inside.

 

I hope those infos are sufficient to narrow down the possible mistakes?

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


[one-users] access just created vm

2011-05-24 Thread samuel
Dear all,

First of all congratulations for this projects, I've just started using it
and looks really promising.

I've created the simple controller+2nodes following the website
documentation (opennebula version 2.2) and the basics seems to work (at
cluster level): that is I can create hosts and nets. I'm also using the web
front-end sunstone and really simplifies the managing of the underlying
structure.

The problem I'm facing is accessing the just created virtual machines.
I've downloaded  a qcow2 debian instance from
http://people.debian.org/~aurel32/qemu/amd64/ and used the next template to
create a virtual machine:

NAME=debian.squeeze.qcow2
MEMORY=1025
CPU=0.5

OS = [
 BOOT="hd",
 ROOT="hda"
 ]

DISK = [
 TYPE= "disk",
 DRIVER="qcow2",
 SOURCE =
"/srv/cloud/images/qcow/debian_squeeze_amd64_standard.qcow2",
 TARGET = "hda",
 CLONE = "no",
 SAVE = "no"
 ]


 GRAPHICS = [TYPE = "vnc", LISTEN = "0.0.0.0", port="5901"]
 NIC= [ NETWORK = "control" ]

 FEATURES=[ acpi="no" ]

The virtual machine is created (appears as running in the web interface) and
from the command line I can see the vm running:
onevm show 26
VIRTUAL MACHINE 26
INFORMATION
ID : 26
NAME   : debian.squeeze.qcow2
STATE  : ACTIVE
LCM_STATE  : RUNNING
START TIME : 05/24 18:20:18
END TIME   : -
DEPLOY ID: : one-26

VIRTUAL MACHINE
MONITORING
NET_TX : 0
NET_RX : 0
USED MEMORY: 0
USED CPU   : 0

VIRTUAL MACHINE
TEMPLATE
CPU=0.5
DISK=[
  CLONE=no,
  DISK_ID=0,
  DRIVER=qcow2,
  SAVE=no,
  SOURCE=/srv/cloud/images/qcow/debian_squeeze_amd64_standard.qcow2,
  TARGET=hda,
  TYPE=disk ]
FEATURES=[
  ACPI=no ]
GRAPHICS=[
  LISTEN=0.0.0.0,
  PORT=5901,
  TYPE=vnc ]
MEMORY=1025
NAME=debian.squeeze.qcow2
NIC=[
  BRIDGE=vbr0,
  IP=192.168.50.5,
  MAC=02:00:c0:a8:32:05,
  NETWORK=control,
  NETWORK_ID=2 ]
OS=[
  BOOT=hd,
  ROOT=hda ]
VMID=26

The problems is that  I can not acces the console via virsh:
virsh # list
 Id Nombre   Estado
--
 16 one-17   en pausa
 21 one-22   en pausa
 23 one-26   ejecutando

virsh # console 23
No existe una terminal disponible para el dominio


neither to the VNC access:

$vncviewer 192.168.50.5

Tue May 24 18:21:02 2011
 main:unable to connect to host: No route to host (113)

>From the nodes or the controller doing a mtr,ping, nmap it appears as if
there is no route to the new IP 192.168.50.5 but the problem is that I don't
know what can be wrong. Anyone can point to any documentation or how to
debug the connection?

I've also tried to create images from iso files but I'm not 100% sure I've
done it right. Is there any documentation about how to create virtual
machine from a .iso linux or windows burned CD?


Thanks a lot in advance and apologies for the size of this email.

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


[one-users] Time when a VM is enqueued scheduler.

2011-05-24 Thread Carlos Fernández Iglesias

Hello,

Does someone know if opennebula stores the time when a VM is enqueued in 
the scheduler?, not the time when it's executed in the host.


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


Re: [one-users] live-/migration not working, uknown error

2011-05-24 Thread Neumann, Steffen
Hi,

check out the list archives:
http://lists.opennebula.org/htdig.cgi/users-opennebula.org/2011-April/005013.html

Steffen


From: users-boun...@lists.opennebula.org [users-boun...@lists.opennebula.org] 
on behalf of Adnan Pasic [pq...@yahoo.de]
Sent: 24 May 2011 14:47
To: users@lists.opennebula.org
Subject: [one-users] live-/migration not working, uknown error

Update: Okay, the issue with "virsh list" is gone. But still the problem with 
migration / live migration pertains.
Do you have to do some extra steps for live migration to work? Do you need to 
create TLS keys or something, or is the standard tutorial enough for everything 
to work?

The error still says:
[VMM] [E]: Error saving VM state, error: Failed to save domain one-26 to 
/srv/cloud/one/var//26/images/checkpoint

It seems the folder checkpoint can't get created, or the creation of the folder 
is missing somewhere in the scripts, because when I browse through to the 
folder /images there is no checkpoint folder inside.

I hope those infos are sufficient to narrow down the possible mistakes?
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Opennebula as a virtual infrastructure Management tool

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

On Tue, May 24, 2011 at 1:19 PM, Oualid Nouri wrote:

> Question: Is it possible to deploy(install)and manage these Servers in a
> central repository and having this repository accessed by hypervisors
> without copying the whole virtual machine image when starting or stopping a
> virtual server with opennebula?
>


The Image Repository [1] takes care of the image files. If the storage is
shared (e.g. NFS), and the Images are marked as persistent [2], then the
file in the repository is used rather than cloned.



 Regards,

Carlos.


[1] http://opennebula.org/documentation:rel2.2:img_guide

[2]
http://opennebula.org/documentation:rel2.2:img_guide#making_images_persistent

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


On Tue, May 24, 2011 at 1:19 PM, Oualid Nouri wrote:

> Hello to all,
>
> I have looked in the documentation anb on the web but didn’t find a clear
> answer to my questions or at least I didn't understood the whole concept of
> opennebula.
>
> My Plan and Question
>
> I am looking for an administrator friendly open source management tool for
> virtual infrastructures.
>
> With the SUNSTONE web frontend there is a user friendly administrative tool
> to opennebula.
>
>
>
> I want to be able to manage a fixed but expandable set of virtual Servers,
> not just workloads in a cloud.
>
> Let’s say one File Server and one Mail Server (windows or linux) for the
> beginning.
>
> After some time a third, fourth or more might be deployed.
>
> I know that this is possible.
>
> I'm not interested  to just quickly deploy virgin virtual machine images
> and then destroy them after usage.
>
> Because the virtual machines will host user data I want to keep them.
>
>
>
> Question: Is it possible to deploy(install)and manage these Servers in a
> central repository and having this repository accessed by hypervisors
> without copying the whole virtual machine image when starting or stopping a
> virtual server with opennebula?
>
>
>
> If there is already one answer or hints please let me know.
>
>
>
>
>
> Regards
>
>
>
> O. Nouri
>
>
>
>
>
> ___
> 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] live-/migration not working, uknown error

2011-05-24 Thread Adnan Pasic
Update: Okay, the issue with "virsh list" is gone. But still the problem with 
migration / live migration pertains. 

Do you have to do some extra steps for live migration to work? Do you need to 
create TLS keys or something, or is the standard tutorial enough for everything 
to work?

The error still says: 

[VMM] [E]: Error saving VM state, error: Failed to save domain one-26 to 
/srv/cloud/one/var//26/images/checkpoint

It seems the folder checkpoint can't get created, or the creation of the folder 
is missing somewhere in the scripts, because when I browse through to the 
folder /images there is no checkpoint folder inside.

I hope those infos are sufficient to narrow down the possible mistakes?
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Opennebula as a virtual infrastructure Management tool

2011-05-24 Thread Oualid Nouri
Hello to all,
I have looked in the documentation anb on the web but didn't find a clear 
answer to my questions or at least I didn't understood the whole concept of 
opennebula.
My Plan and Question
I am looking for an administrator friendly open source management tool for 
virtual infrastructures.
With the SUNSTONE web frontend there is a user friendly administrative tool to 
opennebula.

I want to be able to manage a fixed but expandable set of virtual Servers, not 
just workloads in a cloud.
Let's say one File Server and one Mail Server (windows or linux) for the 
beginning.
After some time a third, fourth or more might be deployed.
I know that this is possible.
I'm not interested  to just quickly deploy virgin virtual machine images and 
then destroy them after usage.
Because the virtual machines will host user data I want to keep them.

Question: Is it possible to deploy(install)and manage these Servers in a 
central repository and having this repository accessed by hypervisors without 
copying the whole virtual machine image when starting or stopping a virtual 
server with opennebula?

If there is already one answer or hints please let me know.


Regards

O. Nouri


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


[one-users] live-/migration not working, uknown error

2011-05-24 Thread Adnan Pasic
Hello everybody,
a new day, a new issue :)
I was able to successfully create my cloud and connect the clusternodes to my 
front-end. Even the test-VM "ttylinux" is running as expected on one of the 
nodes. Or so it seems... 

The problem I am having right now is, that when I start a migration or 
live-migration I get the following errors:

Tue May 24 12:58:32 2011 [LCM][I]: New VM state is MIGRATE
Tue May 24 12:58:33 2011 [VMM][I]: Command execution fail: 'if [ -x 
"/var/tmp/one/vmm/kvm/migrate" ]; then /var/tmp/one/vmm/kvm/migrate one-16 
192.168.0.3; else  exit 42; fi'
Tue May 24 12:58:33 2011 [VMM][I]: STDERR follows.
Tue May 24 12:58:33 2011 [VMM][I]: error: Unknown failure
Tue May 24 12:58:33 2011 [VMM][I]: ExitCode: 1
Tue May 24 12:58:33 2011 [VMM][E]: Error live-migrating VM, error: Unknown 
failure
Tue May 24 12:58:33 2011 [LCM][I]: Fail to life migrate VM. Assuming that the 
VM is still RUNNING (will poll VM).
Tue May 24 12:58:34 2011 [VMM][D]: Monitor Information:
CPU   : 6
Memory: 65536
Net_TX: 0
Net_RX: 6657
Tue May 24 13:01:16 2011 [LCM][I]: New VM state is SAVE_MIGRATE
Tue May 24 13:01:17 2011 [VMM][I]: Command execution fail: 'if [ -x 
"/var/tmp/one/vmm/kvm/save" ]; then /var/tmp/one/vmm/kvm/save one-16 
/srv/cloud/one/var//16/images/checkpoint; else  
exit 42; fi'
Tue May 24 13:01:17 2011 [VMM][I]: STDERR follows.
Tue May 24 13:01:17 2011 [VMM][I]: error: Failed to save domain one-16 to 
/srv/cloud/one/var//16/images/checkpoint
Tue May 24 13:01:17 2011 [VMM][I]: error: unable to set ownership of 
'/srv/cloud/one/var//16/images/checkpoint' to user 0:0: Operation not permitted
Tue May 24 13:01:17 2011 [VMM][I]: ExitCode: 1
Tue May 24 13:01:17 2011 [VMM][E]: Error saving VM state, error: Failed to save 
domain one-16 to /srv/cloud/one/var//16/images/checkpoint
Tue May 24 13:01:17 2011 [LCM][I]: Fail to save VM state while migrating. 
Assuming that the VM is still RUNNING (will poll VM).
Tue May 24 13:01:17 2011 [VMM][I]: VM running but new state from monitor is 
PAUSED.
Tue May 24 13:01:17 2011 [LCM][I]: VM is suspended.
Tue May 24 13:01:17 2011 [DiM][I]: New VM state is SUSPENDED

As you can see in the log, I first tried to do a live-migration and then a 
normal migration right afterwards. unfortunately, both tries ended 
unsuccessfully.
I was searching for an error, but all I could find was one strange thing: When 
I initiate a "virsh list" on the node where the VM is running, I don't get any 
results.
Could this be the problem? And if so, how could I resolve it???


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


Re: [one-users] FOG and OpenNebula ec2 interface

2011-05-24 Thread Daniel Molina
Hi,

Maybe the problem is related to the format of the password. There is a
ticket regarding this issue:
http://dev.opennebula.org/issues/618

The econe tools use the plain password, on the other hand external
tools have to use the sha1 passowrd. In the next release the sha1
password will be used for all the tools.

Would you mind to try if using the sha1 password fixes the problem.

Regards.

On 20 May 2011 20:07, Aaron Baer  wrote:
> Has anyone had luck using the fog cloud services library AWS provider
> with OpenNebula? If so did it entail modification? If not is there are
> known reason why OpenNebula's ec2 api is not compatible?
>
> My tests so far have left me with a re-occurring error
> ERROR: Fog::Service::Error: AuthFailure => AWS was not able to
> validate the provided access credentials
>
> The OpenNebula shipped econe tools connect to my configured API
> interface without error so I know my services are functioning as
> intended.
>
> A-
> ---
> Aaron Baer
> aa...@slyness.org
> http://www.slyness.org/
> ___
> 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] Help needed in understand virtual bridges

2011-05-24 Thread Adnan Pasic
Hello together,
thanks for your help. Unfortunately, I made a rookie mistake - I didn't 
understand that in the virtual-network template I need to set the bridge that 
was created on the CLUSTER-NODES!!! All I had to do now is find out the correct 
name of the libvirt-created bridge (virbr0) and now the VM's are finally 
running :)

Thanks a bunch for your help!




Von: Jaime Melis 
An: Adnan Pasic 
Cc: "users@lists.opennebula.org" 
Gesendet: 12:51 Dienstag, 24.Mai 2011 
Betreff: Re: [one-users] Help needed in understand virtual bridges

Hi Adnan,

The required bridge setup is actually quite straight-forward. I'll
assume you want to connect your VMs to the same network your eth0 is
connected to. The following commands should be executed on the worker
nodes.

brctl addbr br0
ifconfig eth0 0.0.0.0 up
brctl addif br0 eth0
ifconfig br0 

Don't do this over an ssh connection since you will get disconnected.

That's quick recipe to make it work, but you should read documents on
bridging, especially to make the persistent, each distro has its own
mechanism:
http://wiki.debian.org/BridgeNetworkConnections
http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge
(extensive)

regards,
Jaime

On Tue, May 24, 2011 at 11:54 AM, Adnan Pasic  wrote:
> Here is the problem I'm having, and as can be seen obviously the virtual
> bridge is creating this error, so please tell me what to do? Do I need to
> create a virtual bridge on my front-end? And how can I do this?
> Tue May 24 11:46:31 2011 [DiM][D]: Deploying VM 7
> Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_clone.sh:
> nebula1:/srv/cloud/one/one-templates/ttylinux.img
> 192.168.0.2:/srv/cloud/one/var//7/images/disk.0
>
> Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_clone.sh:
> DST: /srv/cloud/one/var//7/images/disk.0
>
> Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_clone.sh:
> Creating directory /srv/cloud/one/var//7/images
>
> Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_clone.sh:
> Executed "mkdir -p /srv/cloud/one/var//7/images".
>
> Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_clone.sh:
> Executed "chmod a+w /srv/cloud/one/var//7/images".
>
> Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_clone.sh:
> Cloning /srv/cloud/one/one-templates/ttylinux.img
>
> Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_clone.sh:
> Executed "cp -r /srv/cloud/one/one-templates/ttylinux.img
> /srv/cloud/one/var//7/images/disk.0".
>
> Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_clone.sh:
> Executed "chmod a+rw /srv/cloud/one/var//7/images/disk.0".
>
> Tue May 24 11:46:31 2011 [TM][D]: Message received: TRANSFER SUCCESS 7 -
>
> Tue May 24 11:46:31 2011 [VMM][D]: Message received: LOG - 7 Command
> execution fail: 'if [ -x "/var/tmp/one/vmm/kvm/deploy" ]; then
> /var/tmp/one/vmm/kvm/deploy /srv/cloud/one/var//7/images/deployment.0;
> else  exit 42; fi'
>
> Tue May 24 11:46:31 2011 [VMM][D]: Message received: LOG - 7 STDERR follows.
>
> Tue May 24 11:46:31 2011 [VMM][D]: Message received: LOG - 7 error: Failed
> to create domain from /srv/cloud/one/var//7/images/deployment.0
>
> Tue May 24 11:46:31 2011 [VMM][D]: Message received: LOG - 7 error: Failed
> to add tap interface to bridge 'br0': No such device
>
> Tue May 24 11:46:31 2011 [VMM][D]: Message received: LOG - 7 ExitCode: 255
>
> Tue May 24 11:46:31 2011 [VMM][D]: Message received: DEPLOY FAILURE 7 error:
> Failed to create domain from /srv/cloud/one/var//7/images/deployment.0
>
> Tue May 24 11:46:31 2011 [VMM][D]: Message received: error: Failed to add
> tap interface to bridge 'br0': No such device
>
> Tue May 24 11:46:31 2011 [VMM][D]: Message received: ExitCode: 255
>
> Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_delete.sh:
> Deleting /srv/cloud/one/var//7/images
>
> Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_delete.sh:
> Executed "rm -rf /srv/cloud/one/var//7/images".
>
> Tue May 24 11:46:31 2011 [TM][D]: Message received: TRANSFER SUCCESS 7 -
>
>
>
> 
> Von: Adnan Pasic 
> An: "users@lists.opennebula.org" 
> Gesendet: 16:38 Montag, 23.Mai 2011
> Betreff: [one-users] Help needed in understand virtual bridges
>
> Hello,
> this could very likely be my last question regarding opennebula, because if
> I get this to work, my opennebula should finally start running. The question
> I have is - how do I really set up this virtual network?
> I have a front-end PC, and two clusters (with IP-addresses: 192.168.0.1 ,
> and .2, .3 respectively) and now everything is set. Even the command
> "onehost list" shows me the clusters as being discovered and connected.
> Currently I have only two interfaces in my front-end, eth0 (connecting the
> PCs over a local network) and the lo-interface.
> Can you now please tell me how I can create this virtual bridge, needed f

Re: [one-users] Help needed in understand virtual bridges

2011-05-24 Thread Jaime Melis
Hi Adnan,

The required bridge setup is actually quite straight-forward. I'll
assume you want to connect your VMs to the same network your eth0 is
connected to. The following commands should be executed on the worker
nodes.

brctl addbr br0
ifconfig eth0 0.0.0.0 up
brctl addif br0 eth0
ifconfig br0 

Don't do this over an ssh connection since you will get disconnected.

That's quick recipe to make it work, but you should read documents on
bridging, especially to make the persistent, each distro has its own
mechanism:
http://wiki.debian.org/BridgeNetworkConnections
http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge
(extensive)

regards,
Jaime

On Tue, May 24, 2011 at 11:54 AM, Adnan Pasic  wrote:
> Here is the problem I'm having, and as can be seen obviously the virtual
> bridge is creating this error, so please tell me what to do? Do I need to
> create a virtual bridge on my front-end? And how can I do this?
> Tue May 24 11:46:31 2011 [DiM][D]: Deploying VM 7
> Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_clone.sh:
> nebula1:/srv/cloud/one/one-templates/ttylinux.img
> 192.168.0.2:/srv/cloud/one/var//7/images/disk.0
>
> Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_clone.sh:
> DST: /srv/cloud/one/var//7/images/disk.0
>
> Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_clone.sh:
> Creating directory /srv/cloud/one/var//7/images
>
> Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_clone.sh:
> Executed "mkdir -p /srv/cloud/one/var//7/images".
>
> Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_clone.sh:
> Executed "chmod a+w /srv/cloud/one/var//7/images".
>
> Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_clone.sh:
> Cloning /srv/cloud/one/one-templates/ttylinux.img
>
> Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_clone.sh:
> Executed "cp -r /srv/cloud/one/one-templates/ttylinux.img
> /srv/cloud/one/var//7/images/disk.0".
>
> Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_clone.sh:
> Executed "chmod a+rw /srv/cloud/one/var//7/images/disk.0".
>
> Tue May 24 11:46:31 2011 [TM][D]: Message received: TRANSFER SUCCESS 7 -
>
> Tue May 24 11:46:31 2011 [VMM][D]: Message received: LOG - 7 Command
> execution fail: 'if [ -x "/var/tmp/one/vmm/kvm/deploy" ]; then
> /var/tmp/one/vmm/kvm/deploy /srv/cloud/one/var//7/images/deployment.0;
> else  exit 42; fi'
>
> Tue May 24 11:46:31 2011 [VMM][D]: Message received: LOG - 7 STDERR follows.
>
> Tue May 24 11:46:31 2011 [VMM][D]: Message received: LOG - 7 error: Failed
> to create domain from /srv/cloud/one/var//7/images/deployment.0
>
> Tue May 24 11:46:31 2011 [VMM][D]: Message received: LOG - 7 error: Failed
> to add tap interface to bridge 'br0': No such device
>
> Tue May 24 11:46:31 2011 [VMM][D]: Message received: LOG - 7 ExitCode: 255
>
> Tue May 24 11:46:31 2011 [VMM][D]: Message received: DEPLOY FAILURE 7 error:
> Failed to create domain from /srv/cloud/one/var//7/images/deployment.0
>
> Tue May 24 11:46:31 2011 [VMM][D]: Message received: error: Failed to add
> tap interface to bridge 'br0': No such device
>
> Tue May 24 11:46:31 2011 [VMM][D]: Message received: ExitCode: 255
>
> Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_delete.sh:
> Deleting /srv/cloud/one/var//7/images
>
> Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_delete.sh:
> Executed "rm -rf /srv/cloud/one/var//7/images".
>
> Tue May 24 11:46:31 2011 [TM][D]: Message received: TRANSFER SUCCESS 7 -
>
>
>
> 
> Von: Adnan Pasic 
> An: "users@lists.opennebula.org" 
> Gesendet: 16:38 Montag, 23.Mai 2011
> Betreff: [one-users] Help needed in understand virtual bridges
>
> Hello,
> this could very likely be my last question regarding opennebula, because if
> I get this to work, my opennebula should finally start running. The question
> I have is - how do I really set up this virtual network?
> I have a front-end PC, and two clusters (with IP-addresses: 192.168.0.1 ,
> and .2, .3 respectively) and now everything is set. Even the command
> "onehost list" shows me the clusters as being discovered and connected.
> Currently I have only two interfaces in my front-end, eth0 (connecting the
> PCs over a local network) and the lo-interface.
> Can you now please tell me how I can create this virtual bridge, needed for
> our virtual machines? And is this the bridge that needs to be mentioned in
> the network-template file?
> Thank you!
> Best regards,
> Adnan
> ___
> 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
>
>


-- 
Jaime Melis, Cloud Technology Engineer/Researcher
Major Contributor
OpenNebula - The Op

Re: [one-users] Running FE as Xen dom0/domU?

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


On Mon, May 23, 2011 at 4:09 PM, Richard Palmer
wrote:

>The servers are all fairly powerful so I don't want to waste one
> just
>running the FE on it. Can I run the FE code in dom0 (in Xen) and
>also add the same server as a host to Nebula?. Or would it be better
>to create a domU just to run the FE code in, but still add the host
>to Nebula ?.
>

The FE can be added as a Host just fine.
We would advise to install OpenNebula in dom0, since there's no clear
advantage to an installation inside a VM. It will save you some network
configuration, and you avoid a possible performance downgrade.


You may however have some good reasons to install OpeNebula in a domU.
For instance, your servers may have an old OS and you find it difficult to
install the required dependencies. In that case a virtualized recent
distribution will be easier to set-up. Or if you have big plans for your
domU OpenNebula like migration to new HW, or High Availability setups.

In that case, keep in mind that the VM must be able to see the other Hosts
in your network, attaching its interfaces to a bridge in the private
physical interface. You should also configure an external NFS server.

   Can (or should) long running servers be managed through Nebula ? E.g.
>a blog server. I'd like to have a single view of all the servers
>so creating them all via Nebula would be useful, but perhaps it's
>not really meant for this.
>

Yes, OpenNebula can and should manage all VMs, because it assumes exclusive
usage of the physical resources, and managing VMs manually may lead to IP
collisions.

Moreover, OpenNebula is well suited for long running servers. You can take
advantage of the Fault Tolerance features [1] to resubmit a crashed VM, or
even resubmit the VM in another Host if the first one fails. And, if the
server running OpenNebula fails, it will continue the monitoring and
management of the VMs when it is restarted.


   Can any requirements beyond memory and disc be specified for an
>instance ?. E.g. must have access to tape library attached to only
>one of the hosts.
>

You can define any placement requirement. If you need a specific Host,
REQUIREMENTS = "NAME = myhost"

or you can group some Hosts in clusters [3], and require the VM to be
deployed in any of them:
REQUIREMENTS = "CLUSTER = development"


Best regards,
Carlos.

[1] http://opennebula.org/documentation:rel2.2:ftguide
[2] http://opennebula.org/documentation:rel2.2:template#placement_section
[3] http://opennebula.org/documentation:rel2.2:cluster_guide
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org  | cmar...@opennebula.org


On Mon, May 23, 2011 at 4:09 PM, Richard Palmer
wrote:

> Dear list,
>
>I'm planning on a open nebula setup on some hardware we have
>(not necessarily the hardware we *need*, but I'm hoping nebula will
>let us make the best use of it). But I have some questions:
>
>The servers are all fairly powerful so I don't want to waste one
> just
>running the FE on it. Can I run the FE code in dom0 (in Xen) and
>also add the same server as a host to Nebula?. Or would it be better
>to create a domU just to run the FE code in, but still add the host
>to Nebula ?.
>
>Can (or should) long running servers be managed through Nebula ?
> E.g.
>a blog server. I'd like to have a single view of all the servers
>so creating them all via Nebula would be useful, but perhaps it's
>not really meant for this.
>
>Can any requirements beyond memory and disc be specified for an
>instance ?. E.g. must have access to tape library attached to only
>one of the hosts.
>
> Many thanks,
>
> Richard
>
> --
> Richard Palmer  | Centre for E-Research
>|  King's College London
> richard.d.pal...@kcl.ac.uk  |
> Tel: 0207 848 1973   |
> ___
> 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] VM starting fail

2011-05-24 Thread gennaria
Thank you carlos.

I decommented tm_ssh driver and now VM is starting.

Bye bye.

Meph

2011/5/24 Carlos Martín Sánchez 

> Hi Mephysto,
>
> That error is shown when the Core can't find the 'tm_ss' Transfer Manager
> Driver.
> Please make sure that:
>
> - You defined the host with 'tm_ssh' and 'tm_ss' is just a typo in you
> email, as Steffen said. You can check this with onehost show 
>
> - Your /etc/one/one.conf file has the tm_ssh driver uncommented. The
> drivers are loaded at start-up, you have to reset OpenNebula if you make any
> change to oned.conf. Check the first lines of oned.log, the drivers being
> loaded are shown there, and you may find some error messages if something
> went wrong.
>
> 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, May 24, 2011 at 10:15 AM, Steffen Neumann 
> wrote:
>
>> Hi,
>>
>> On Tue, 2011-05-24 at 09:23 +0200, genna...@email.it wrote:
>> > prolog, error getting driver tm_ss
>> This is surely a typo in the mail  ^
>> you did specify tm_ssh ?
>>
>> 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
>>
>
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Help needed in understand virtual bridges

2011-05-24 Thread Adnan Pasic
Here is the problem I'm having, and as can be seen obviously the virtual bridge 
is creating this error, so please tell me what to do? Do I need to create a 
virtual bridge on my front-end? And how can I do this?

Tue May 24 11:46:31 2011 [DiM][D]: Deploying VM 7
Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_clone.sh: 
nebula1:/srv/cloud/one/one-templates/ttylinux.img 
192.168.0.2:/srv/cloud/one/var//7/images/disk.0

Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_clone.sh: DST: 
/srv/cloud/one/var//7/images/disk.0

Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_clone.sh: 
Creating directory /srv/cloud/one/var//7/images

Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_clone.sh: 
Executed "mkdir -p /srv/cloud/one/var//7/images".

Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_clone.sh: 
Executed "chmod a+w /srv/cloud/one/var//7/images".

Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_clone.sh: 
Cloning /srv/cloud/one/one-templates/ttylinux.img

Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_clone.sh: 
Executed "cp -r /srv/cloud/one/one-templates/ttylinux.img 
/srv/cloud/one/var//7/images/disk.0".

Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_clone.sh: 
Executed "chmod a+rw /srv/cloud/one/var//7/images/disk.0".

Tue May 24 11:46:31 2011 [TM][D]: Message received: TRANSFER SUCCESS 7 -

Tue May 24 11:46:31 2011 [VMM][D]: Message received: LOG - 7 Command execution 
fail: 'if [ -x "/var/tmp/one/vmm/kvm/deploy" ]; then 
/var/tmp/one/vmm/kvm/deploy /srv/cloud/one/var//7/images/deployment.0; 
else  exit 42; fi'

Tue May 24 11:46:31 2011 [VMM][D]: Message received: LOG - 7 STDERR follows.

Tue May 24 11:46:31 2011 [VMM][D]: Message received: LOG - 7 error: Failed to 
create domain from /srv/cloud/one/var//7/images/deployment.0

Tue May 24 11:46:31 2011 [VMM][D]: Message received: LOG - 7 error: Failed to 
add tap interface to bridge 'br0': No such device

Tue May 24 11:46:31 2011 [VMM][D]: Message received: LOG - 7 ExitCode: 255

Tue May 24 11:46:31 2011 [VMM][D]: Message received: DEPLOY FAILURE 7 error: 
Failed to create domain from /srv/cloud/one/var//7/images/deployment.0

Tue May 24 11:46:31 2011 [VMM][D]: Message received: error: Failed to add tap 
interface to bridge 'br0': No such device

Tue May 24 11:46:31 2011 [VMM][D]: Message received: ExitCode: 255

Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_delete.sh: 
Deleting /srv/cloud/one/var//7/images

Tue May 24 11:46:31 2011 [TM][D]: Message received: LOG - 7 tm_delete.sh: 
Executed "rm -rf /srv/cloud/one/var//7/images".

Tue May 24 11:46:31 2011 [TM][D]: Message received: TRANSFER SUCCESS 7 -






Von: Adnan Pasic 
An: "users@lists.opennebula.org" 
Gesendet: 16:38 Montag, 23.Mai 2011 
Betreff: [one-users] Help needed in understand virtual bridges


Hello,
this could very likely be my last question regarding opennebula, because if I 
get this to work, my opennebula should finally start running. The question I 
have is - how do I really set up this virtual network?
I have a front-end PC, and two clusters (with IP-addresses: 192.168.0.1 , and 
.2, .3 respectively) and now everything is set. Even the command "onehost list" 
shows me the clusters as being discovered and connected.
Currently I have only two interfaces in my front-end, eth0 (connecting the PCs 
over a local network) and the lo-interface.

Can you now please tell me how I can create this virtual bridge, needed for our 
virtual machines? And is this the bridge that needs to be mentioned in the 
network-template file?

Thank you!
Best regards,
Adnan
___
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] Keep all the data from host_pool

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

There is no straight-forward way to do this. We don't have configuration
options for DB manipulation.
I think the best workaround is to create a SQL Trigger [1] [2] , that will
copy the rows to be deleted from 'host_pool' to a new table,
'history_host_pool'.

Please be aware of this bug [3], in some rare cases you may have a new Host
using the ID of an old deleted one.


Regards,
Carlos.

[1] http://dev.mysql.com/doc/refman/5.6/en/triggers.html
[2] http://www.sqlite.org/lang_createtrigger.html

[3] http://dev.opennebula.org/issues/566
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org  | cmar...@opennebula.org


2011/5/23 Carlos Fernández Iglesias 

> Hello,
>
> I've noticed that when a host is deleted from opennebula it's information
> is also deleted from the database. This also applies to images, networks and
> users.
>
> For accounting purposes it will be great to have none of the database
> information erased as you may need that info in some scenario, and it may
> not be there.
>
> Is there some way to prevent this from happening?
>
> 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] Any one can help me? PLS...

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

ONE_LOCATION should point to "/srv/cloud/one", you can set it in your
.bashrc
Please check the Basic Configuration documentation [1] for the env.
variables needed.

Regards,
Carlos.

[1] http://opennebula.org/documentation:rel2.2:cg#opennebula_users

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


On Tue, May 24, 2011 at 6:09 AM, soge george  wrote:

> hi,
> I am evaluating Opennebula 2.2. And I  completed installation of opennebula
> in Centos 5.3.I have installed opennebula in " /srv/cloud/one" as
> Selfcontained mode.But i am not understanding how it comes under
> $ONE_LOCATION/.Can any one please help me for making the opennebula
> directories under  $ONE_LOCATION/.
> Is there any configuration i have to do?
>
> Thanks in advance,
> Soge
>
>
> ___
> 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] VM starting fail

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

That error is shown when the Core can't find the 'tm_ss' Transfer Manager
Driver.
Please make sure that:

- You defined the host with 'tm_ssh' and 'tm_ss' is just a typo in you
email, as Steffen said. You can check this with onehost show 

- Your /etc/one/one.conf file has the tm_ssh driver uncommented. The drivers
are loaded at start-up, you have to reset OpenNebula if you make any change
to oned.conf. Check the first lines of oned.log, the drivers being loaded
are shown there, and you may find some error messages if something went
wrong.

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, May 24, 2011 at 10:15 AM, Steffen Neumann wrote:

> Hi,
>
> On Tue, 2011-05-24 at 09:23 +0200, genna...@email.it wrote:
> > prolog, error getting driver tm_ss
> This is surely a typo in the mail  ^
> you did specify tm_ssh ?
>
> 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
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] VM starting fail

2011-05-24 Thread gennaria
Yes Steffen,
it was tm_ssh.

Bye.

Mpeh

On 24 May 2011 10:15, Steffen Neumann  wrote:

> Hi,
>
> On Tue, 2011-05-24 at 09:23 +0200, genna...@email.it wrote:
> > prolog, error getting driver tm_ss
> This is surely a typo in the mail  ^
> you did specify tm_ssh ?
>
> 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] VM starting fail

2011-05-24 Thread Steffen Neumann
Hi,

On Tue, 2011-05-24 at 09:23 +0200, genna...@email.it wrote:
> prolog, error getting driver tm_ss
This is surely a typo in the mail  ^
you did specify tm_ssh ?

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