[one-users] opennebula 4.2 and esxi 5.1 vm create error

2013-11-15 Thread hansz
Fri Nov 15 16:00:41 2013 [DiM][I]: New VM state is ACTIVE.
Fri Nov 15 16:00:41 2013 [LCM][I]: New VM state is PROLOG.
Fri Nov 15 16:11:37 2013 [LCM][I]: New VM state is BOOT
Fri Nov 15 16:11:37 2013 [VMM][I]: Generating deployment file: 
/var/lib/one/vms/21/deployment.0
Fri Nov 15 16:11:37 2013 [VMM][I]: Successfully execute network driver 
operation: pre.
Fri Nov 15 16:11:42 2013 [VMM][I]: Command execution fail: 
/var/lib/one/remotes/vmm/vmware/deploy '/var/lib/one/vms/21/deployment.0' 
'esxinode1' 21 esxinode1
Fri Nov 15 16:11:42 2013 [VMM][E]: deploy: Error executing: virsh -c 
'esx://esxinode1/?no_verify=1auto_answer=1' define 
/var/lib/one/vms/21/deployment.0 err: ExitCode: 255
Fri Nov 15 16:11:42 2013 [VMM][I]: out:
Fri Nov 15 16:11:42 2013 [VMM][I]: ExitCode: 255
Fri Nov 15 16:11:42 2013 [VMM][I]: Failed to execute virtualization driver 
operation: deploy.
Fri Nov 15 16:11:42 2013 [VMM][E]: Error deploying virtual machine
Fri Nov 15 16:11:42 2013 [DiM][I]: New VM state is FAILED___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Create Swap locally

2013-11-15 Thread Ruben S. Montero
Hi

This could be done by modifying the mkswap script from the shared driver.
As you'll see it is just calling mkimage, so you either use that script for
mkswap with the following modifications, or update mkimage so the changes
will affect to all volatile disks. So my proposal would be:

1.- Create a local storage area in the hosts e.g. /var/scratch
2.- Update the scrtip to create the volumes in that directory
3.- Link the file in /var/scratch to the path currently used in mkimage
4.- Update the delete script so when a file linked to /var/scratch is
deleted it'll follow the link.

Good luck,

Ruben

PS: OpenNebula 4.4 does also report storage size for system DS and
considers the space left to make scheduling decisions. To apply this to 4.4
it'd need to update the monitor_ds.sh probe to report the size of
/var/scratch.


On Thu, Nov 14, 2013 at 11:08 PM, Alberto Picón Couselo
alpic...@gmail.comwrote:

  Hello everybody,

 Is it possible to add a swap file to a VM template that is located/created
 on the fly using the local filesystem of the hypervisor?.

 I think that this feature could improve performance a lot. Sometimes is
 impossible to avoid VMs to write to swap and currently all the swap files
 are mounted over NFS using 0 datastore.

 Can you please give me a clue to achieve this feature?

 Best Regards,
 Alberto Picón



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




-- 
-- 
Ruben S. Montero, PhD
Project co-Lead and Chief Architect
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | rsmont...@opennebula.org | @OpenNebula
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] LCM Unknown state.

2013-11-15 Thread Carlos Martín Sánchez
Hi,

On Wed, Nov 13, 2013 at 4:43 PM, Ionut Popovici io...@hackaserver.comwrote:

 Qestion it is posible to be limited by sqlite .. because after 44 VM's on
 a host  it happen to see random vm's  on UNKNOWN state but the machine is
 fine and runing fine .
 Is someting about monitoring.


Sqlite shouldn't be the cause. Which OpenNebula version are you running? Do
you get any error messages in oned.log or the individual vm log before the
VM state is changes to unknown?


 If i prepare mysql backend and will restart oned on mysql .. it will
 install database on sql server and runnit as before ?


No, it will bootstrap a clean database.


Regards
--
Carlos Martín, MSc
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org http://www.opennebula.org/ | cmar...@opennebula.org |
@OpenNebula http://twitter.com/opennebula
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Sunstone image upload not working - images not in tmpdir

2013-11-15 Thread Stefan Kooman
Quoting Stefan Kooman (ste...@bit.nl):
 
 I've tried this and that works, i.e. the image gets uploaded and stored
 in /mnt/sunstone_upload directory. However, something goes wrong copying
 the file to the datastore. The file is empty (0 bytes). Here some logging:
Answering myself here. This turns out te be a permissions problem.
www-data user creates the uploaded image with 600 permissions as user
www-data. oned is unable to read that file, does create the file but it
is empty. oned logs the following:

Fri Nov 15 15:18:06 2013 [ImM][I]: Copying
/mnt/sunstone_upload/sunstone-upload20131115-17163-lj1x9r to repository
fo
r image 31
Fri Nov 15 15:18:06 2013 [ReM][D]: Req:560 UID:0 ImageAllocate result
SUCCESS, 31
Fri Nov 15 15:18:06 2013 [ReM][D]: Req:8720 UID:0 ImageInfo invoked, 31
Fri Nov 15 15:18:06 2013 [ReM][D]: Req:8720 UID:0 ImageInfo result
SUCCESS, IMAGEID31/IDU...
Fri Nov 15 15:18:06 2013 [ImM][I]: Image copied and ready to use.

It shouldn't report it's able to copy the file if it isn't. Somehow oned
manages to report file size (Size in sunstone) to be 16MB (instead of
232M). It would be safer to md5sum the image before the copy and
after. Only if the hashes are equal it should report succes. 

The more I think of it the more I think sunstone can better be run as
user oneadmin instead of www-data. Makes life easier in most places.

Shall I file a bug report?

Kind regards,

Stefan

P.s. Thanks for fixing the bugs anyway, you guys are doing a great job!

-- 
| BIT BV  http://www.bit.nl/Kamer van Koophandel 09090351
| GPG: 0xD14839C6   +31 318 648 688 / i...@bit.nl


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


Re: [one-users] opennebula 4.2 and esxi 5.1 vm create error

2013-11-15 Thread Tino Vazquez
Hi,

What is the template of the VM? OpenNebula version? We need more info
to be able to provide a proper answer.

Regards,

-Tino
--
Constantino Vázquez Blanco, PhD, MSc
Senior Infrastructure Architect at C12G Labs
www.OpenNebula.org | @tinova79  | es.linkedin.com/in/tinova


On Fri, Nov 15, 2013 at 9:17 AM, hansz hanshizhun...@126.com wrote:
 Fri Nov 15 16:00:41 2013 [DiM][I]: New VM state is ACTIVE.
 Fri Nov 15 16:00:41 2013 [LCM][I]: New VM state is PROLOG.
 Fri Nov 15 16:11:37 2013 [LCM][I]: New VM state is BOOT
 Fri Nov 15 16:11:37 2013 [VMM][I]: Generating deployment file:
 /var/lib/one/vms/21/deployment.0
 Fri Nov 15 16:11:37 2013 [VMM][I]: Successfully execute network driver
 operation: pre.
 Fri Nov 15 16:11:42 2013 [VMM][I]: Command execution fail:
 /var/lib/one/remotes/vmm/vmware/deploy '/var/lib/one/vms/21/deployment.0'
 'esxinode1' 21 esxinode1
 Fri Nov 15 16:11:42 2013 [VMM][E]: deploy: Error executing: virsh -c
 'esx://esxinode1/?no_verify=1auto_answer=1' define
 /var/lib/one/vms/21/deployment.0 err: ExitCode: 255
 Fri Nov 15 16:11:42 2013 [VMM][I]: out:
 Fri Nov 15 16:11:42 2013 [VMM][I]: ExitCode: 255
 Fri Nov 15 16:11:42 2013 [VMM][I]: Failed to execute virtualization driver
 operation: deploy.
 Fri Nov 15 16:11:42 2013 [VMM][E]: Error deploying virtual machine
 Fri Nov 15 16:11:42 2013 [DiM][I]: New VM state is FAILED



 ___
 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] VM in Opennebula for OpenVZ failed

2013-11-15 Thread Catalina Quinde
Hi, friends,

Please help me,

I'm trying to deploy a VM from OpenNebula to a node with OpenVZ hypervisor,
but status is failed

1. This is the template file:

REQUIREMENTS=ID=\3\
CONTEXT=[NETWORK=YES,SSH_PUBLIC_KEY=$USER[SSH_PUBLIC_KEY]]
OS=[ARCH=x86_64,BOOT=hd]
CPU=1
DISK=[IMAGE_ID=15]
NIC=[NETWORK_ID=4]
MEMORY=512
GRAPHICS=[PORT=5900,LISTEN=0.0.0.0,TYPE=VNC]


2. The status of the picture for DISK is Rdy

3.. The 39.log file in / var / log / one contains
oneadmin@ubuntuOpNeb:~$ cat /var/log/one/39.log
Fri Nov 15 10:38:01 2013 [DiM][I]: New VM state is ACTIVE.
Fri Nov 15 10:38:01 2013 [LCM][I]: New VM state is PROLOG.
Fri Nov 15 10:38:29 2013 [LCM][I]: New VM state is BOOT
Fri Nov 15 10:38:29 2013 [VMM][I]: Generating deployment file:
/var/lib/one/vms/39/deployment.0
Fri Nov 15 10:38:29 2013 [VMM][I]: ExitCode: 0
Fri Nov 15 10:38:29 2013 [VMM][I]: Successfully execute network driver
operation: pre.
Fri Nov 15 10:38:29 2013 [VMM][I]: Command execution fail: cat  EOT |
/var/tmp/one/vmm/ovz/deploy '/var/lib/one/datastores/0/39/deployment.0'
'ubuntu' 39 ubuntu
Fri Nov 15 10:38:29 2013 [VMM][I]: bas h: /var/tmp/one/vmm/ovz/deploy:
/bin/env: bad interpreter: No such file or directory
Fri Nov 15 10:38:29 2013 [VMM][I]: ExitCode: 126
Fri Nov 15 10:38:29 2013 [VMM][I]: Failed to execute virtualization driver
operation: deploy.
Fri Nov 15 10:38:29 2013 [VMM][E]: Error deploying virtual machine
Fri Nov 15 10:38:29 2013 [DiM][I]: New VM state is FAILED

Please help me, do not find much information opennebula with openvz.

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


Re: [one-users] Sunstone image upload not working - images not in tmpdir

2013-11-15 Thread Daniel Molina
On 15 November 2013 15:30, Stefan Kooman ste...@bit.nl wrote:

 Quoting Stefan Kooman (ste...@bit.nl):

  I've tried this and that works, i.e. the image gets uploaded and stored
  in /mnt/sunstone_upload directory. However, something goes wrong copying
  the file to the datastore. The file is empty (0 bytes). Here some
 logging:
 Answering myself here. This turns out te be a permissions problem.
 www-data user creates the uploaded image with 600 permissions as user
 www-data. oned is unable to read that file, does create the file but it
 is empty. oned logs the following:

 Fri Nov 15 15:18:06 2013 [ImM][I]: Copying
 /mnt/sunstone_upload/sunstone-upload20131115-17163-lj1x9r to repository
 fo
 r image 31
 Fri Nov 15 15:18:06 2013 [ReM][D]: Req:560 UID:0 ImageAllocate result
 SUCCESS, 31
 Fri Nov 15 15:18:06 2013 [ReM][D]: Req:8720 UID:0 ImageInfo invoked, 31
 Fri Nov 15 15:18:06 2013 [ReM][D]: Req:8720 UID:0 ImageInfo result
 SUCCESS, IMAGEID31/IDU...
 Fri Nov 15 15:18:06 2013 [ImM][I]: Image copied and ready to use.

 It shouldn't report it's able to copy the file if it isn't. Somehow oned
 manages to report file size (Size in sunstone) to be 16MB (instead of
 232M). It would be safer to md5sum the image before the copy and
 after. Only if the hashes are equal it should report succes.

 The more I think of it the more I think sunstone can better be run as
 user oneadmin instead of www-data. Makes life easier in most places.

 Shall I file a bug report?


Yes, please.



 Kind regards,

 Stefan

 P.s. Thanks for fixing the bugs anyway, you guys are doing a great job!


Thanks to your great feedback



 --
 | BIT BV  http://www.bit.nl/Kamer van Koophandel 09090351
 | GPG: 0xD14839C6   +31 318 648 688 / i...@bit.nl

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (GNU/Linux)

 iF4EAREIAAYFAlKGL+4ACgkQTyGgYdFIOcbGxAD9HVvaDxj8T4eVz3iAGrIPocij
 3vLYcoyeX/G2hkegc/oBAMasaCvcRI/Sie0wK0+Ke1ixzcZ1moqDmkgS7b0dnZgP
 =5vls
 -END PGP SIGNATURE-




-- 
--
Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Apache Passenger APT repository for Ubuntu/Debian

2013-11-15 Thread Daniel Molina
Thanks for the info, Stefan.

So from your previous emails, I think we should recommend running sunstone
as oneadmin in the documentation. This way, we will fix the permission
issues with the novnc_token folder and the temp files created when
uploading a file. Also we should export the TMPDIR var in the
config.ruscript instead of using sunstone-server for this. Am I
missing anything
else?

Cheers


On 14 November 2013 09:28, Stefan Kooman ste...@bit.nl wrote:

 Hi list,

 For those of you running sunstone with Apache passenger on Ubuntu/Debian
 and looking for latest and greatest Apache Passenger packages: Phusion
 has put up a APT repository [1]. I can confirm that sunstone runs great
 with passenger 4.0.23

 FYI,

 Cheers,

 Stefan

 [1]:

 http://blog.phusion.nl/2013/09/11/debian-and-ubuntu-packages-for-phusion-passenger/

 P.s. I am in no way affiliated to Phusion.


 --
 | BIT BV  http://www.bit.nl/Kamer van Koophandel 09090351
 | GPG: 0xD14839C6   +31 318 648 688 / i...@bit.nl

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (GNU/Linux)

 iF4EAREIAAYFAlKEiZAACgkQTyGgYdFIOcbicAEAkD7PzFh1Ch1NYzfO55XRYucL
 xQFizzanebpqHIgo+bUA/2lNkG6Zmh52zVs/KQVuWICR2t0WXah34sTIXeP0UqFs
 =D31g
 -END PGP SIGNATURE-

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




-- 
--
Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] LCM Unknown state.

2013-11-15 Thread Ionut Popovici
Thank you for answer .. but i resolve the problem. The problem was 
limitation of SQLite .. if u use in production i recommand MYSQL or 
POSTGRESQL ... Because sqlite can't use more that worker / database. 
When is write someting it lock databse and unlock .. but if u use remote 
API xml it may get stuck.


Now i'm on mysql backend and evreything is fine :D
On 11/15/2013 4:09 PM, Carlos Martín Sánchez wrote:

Hi,

On Wed, Nov 13, 2013 at 4:43 PM, Ionut Popovici io...@hackaserver.com 
mailto:io...@hackaserver.com wrote:


Qestion it is posible to be limited by sqlite .. because after 44
VM's on a host  it happen to see random vm's  on UNKNOWN state but
the machine is fine and runing fine .
Is someting about monitoring.


Sqlite shouldn't be the cause. Which OpenNebula version are you 
running? Do you get any error messages in oned.log or the individual 
vm log before the VM state is changes to unknown?


If i prepare mysql backend and will restart oned on mysql .. it
will install database on sql server and runnit as before ?


No, it will bootstrap a clean database.


Regards
--
Carlos Martín, MSc
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org http://www.opennebula.org/|cmar...@opennebula.org 
mailto:cmar...@opennebula.org|@OpenNebula 
http://twitter.com/opennebula


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


Re: [one-users] VM in Opennebula for OpenVZ failed

2013-11-15 Thread Catalina Quinde
Hi Nikolay

I use http://wiki.opennebula.org/openvz4opennebula, this guide helped me
installed  openvz for opennebula

Regards, Caty

Hi Matias,

I should have typed inadvertently space

Thanks, Caty.


 Message: 4
 Date: Fri, 15 Nov 2013 21:33:26 +0400
 From: kna...@gmail.com
 To: users@lists.opennebula.org
 Subject: Re: [one-users] VM in Opennebula for OpenVZ failed
 Message-ID: 52865ae6.6040...@gmail.com
 Content-Type: text/plain; charset=UTF-8; format=flowed

 Catalina Quinde wrote on 15/11/13 20:23:
  Please help me, do not find much information opennebula with openvz.
 Hi, Caty!

 What openvz driver are you using?
 I am using that one [1].
 [1] https://bitbucket.org/hpcc_kpi/opennebula-openvz/wiki/Home

 Regards,
 Nikolay.

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



 --

 Message: 5
 Date: Fri, 15 Nov 2013 19:33:46 +0100
 From: Matthias Albert matthias.alb...@inovex.de
 To: Users@lists.opennebula.org
 Subject: Re: [one-users] VM in Opennebula for OpenVZ failed
 Message-ID: 3eec3c36-afae-4791-a789-6eef91e3d...@inovex.de
 Content-Type: text/plain; charset=iso-8859-1

 Hi Caty,

 it seems that there is only a small typo.

  Fri Nov 15 10:38:29 2013 [VMM][I]: bas h: /var/tmp/one/vmm/ovz/deploy:
 /bin/env: bad interpreter: No such file or directory

 There is a space between bas and h. Should be bash

 Cheers,

 Matthias

 Am 15.11.2013 um 17:23 schrieb Catalina Quinde catalinaqui...@gmail.com:

  Hi, friends,
 
  Please help me,
 
  I'm trying to deploy a VM from OpenNebula to a node with OpenVZ
 hypervisor, but status is failed
 
  1. This is the template file:
 
  REQUIREMENTS=ID=\3\
  CONTEXT=[NETWORK=YES,SSH_PUBLIC_KEY=$USER[SSH_PUBLIC_KEY]]
  OS=[ARCH=x86_64,BOOT=hd]
  CPU=1
  DISK=[IMAGE_ID=15]
  NIC=[NETWORK_ID=4]
  MEMORY=512
  GRAPHICS=[PORT=5900,LISTEN=0.0.0.0,TYPE=VNC]
 
 
  2. The status of the picture for DISK is Rdy
 
  3.. The 39.log file in / var / log / one contains
  oneadmin@ubuntuOpNeb:~$ cat /var/log/one/39.log
  Fri Nov 15 10:38:01 2013 [DiM][I]: New VM state is ACTIVE.
  Fri Nov 15 10:38:01 2013 [LCM][I]: New VM state is PROLOG.
  Fri Nov 15 10:38:29 2013 [LCM][I]: New VM state is BOOT
  Fri Nov 15 10:38:29 2013 [VMM][I]: Generating deployment file:
 /var/lib/one/vms/39/deployment.0
  Fri Nov 15 10:38:29 2013 [VMM][I]: ExitCode: 0
  Fri Nov 15 10:38:29 2013 [VMM][I]: Successfully execute network driver
 operation: pre.
  Fri Nov 15 10:38:29 2013 [VMM][I]: Command execution fail: cat  EOT |
 /var/tmp/one/vmm/ovz/deploy '/var/lib/one/datastores/0/39/deployment.0'
 'ubuntu' 39 ubuntu
  Fri Nov 15 10:38:29 2013 [VMM][I]: bas h: /var/tmp/one/vmm/ovz/deploy:
 /bin/env: bad interpreter: No such file or directory
  Fri Nov 15 10:38:29 2013 [VMM][I]: ExitCode: 126
  Fri Nov 15 10:38:29 2013 [VMM][I]: Failed to execute virtualization
 driver operation: deploy.
  Fri Nov 15 10:38:29 2013 [VMM][E]: Error deploying virtual machine
  Fri Nov 15 10:38:29 2013 [DiM][I]: New VM state is FAILED
 
  Please help me, do not find much information opennebula with openvz.
 
  Regards, Caty
  ___
  Users mailing list
  Users@lists.opennebula.org
  http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

 -- next part --
 A non-text attachment was scrubbed...
 Name: signature.asc
 Type: application/pgp-signature
 Size: 495 bytes
 Desc: Message signed with OpenPGP using GPGMail
 URL: 
 http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131115/942ec4c4/attachment.pgp
 

 --

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


 End of Users Digest, Vol 69, Issue 63
 *

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