[one-users] KVM Driver+One4.+Centos6.4

2013-10-18 Thread Anoop Mohan
Hi Team,

Could someone shed some light into the configuration of vmm_exec_kvm.conf .
I'm using KVM Driver with OVS on ONE4.2
My default content is as below
[root@opennebula qemu]# egrep -v '^(#|$)'
/etc/one/vmm_exec/vmm_exec_kvm.conf
EMULATOR = /usr/libexec/qemu-kvm
OS   = [ boot = hd, arch = i686 ]
FEATURES = [ PAE = no, ACPI = yes ]
DISK = [ driver = raw , cache = none]


I'm using Image
http://cloud.centos.org/i/one/c6-x86_64-20121130-1.qcow2.gz.I'm
wondering whether the
Inputs which we provide from Sunstone to create Image , Templates , VM's
matches with the configuration in vmm_exec_kvm.conf
In that case how would I set vmm_exec_kvm.conf or the above is good enough
to start a VM.

Below I mentioned the Errors throwing when Instantiate a VM. Also provided
the other details

http://pastebin.com/QWr0U7pw


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


Re: [one-users] OpenNebula 4.4(?)

2013-10-18 Thread Tino Vazquez
Hi Michael,

The beta version of OpenNebula 4.4 is due in one week. The single
quote issue would be resolved (we would love to hear your feedback on
this as soon as it is out), RbVmomi in place and multiple system ds
support.

We would appreciate it if you could elaborate a bit more on your plans
regarding windows contextualization.

Best,

-Tino
--
OpenNebula - Flexible Enterprise Cloud Made Simple

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

--
Confidentiality Warning: The information contained in this e-mail and
any accompanying documents, unless otherwise expressly indicated, is
confidential and privileged, and is intended solely for the person
and/or entity to whom it is addressed (i.e. those identified in the
To and cc box). They are the property of C12G Labs S.L..
Unauthorized distribution, review, use, disclosure, or copying of this
communication, or any part thereof, is strictly prohibited and may be
unlawful. If you have received this e-mail in error, please notify us
immediately by e-mail at ab...@c12g.com and delete the e-mail and
attachments and any copy from your system. C12G thanks you for your
cooperation.


On Thu, Oct 17, 2013 at 2:58 PM, Michael Curran
michael.cur...@connectsolutions.com wrote:
 Is there any expected release date for this yet? I have a fully functional
 POC that handles *nix and windows, but cannot contextualize windows because
 of the single quotes around variables in the context.sh ... Which I was told
 would be resolved in the next release, along with the move away from libvirt
 to rbvmomi for accessing the cIpher and multiple system datastores support.

 Any news would help me while wee start build of an OpenStack poc for
 comparison against

 Sent from my Android phone using TouchDown (www.nitrodesk.com)

 ___
 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] Error: Failed to create domain from

2013-10-18 Thread Carlos Martín Sánchez
Hi,

On Fri, Oct 18, 2013 at 1:26 AM, Marius Corici mar...@corici.ro wrote:

 and /var/log/libvirt/qemu/one-172.log shows:

 cache=none: could not open disk image
 /var/lib/one//datastores/0/172/disk.0: Invalid argument
 2013-10-16 19:48:08.122+: shutting down

 Have no idea what next. :-/


Can you check if that file is accessible by oneadmin in the host machine?

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


On Fri, Oct 18, 2013 at 1:26 AM, Marius Corici mar...@corici.ro wrote:

  Hey Martin,

 Thanks for suggestions. Checked the details from [1] and seems to be as it
 should.

 libvirt.log shows:

 2013-10-16 19:48:08.121+: 8722: error : qemuMonitorIORead:522 : Unable
 to read from monitor: Connection reset by peer

 and /var/log/libvirt/qemu/one-172.log shows:

 2013-10-16 19:47:54.709+: starting up
 LC_ALL=C
 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 HOME=/root
 USER=root
 LOGNAME=root
 QEMU_AUDIO_DRV=none /usr/bin/kvm -S -M pc-1.1 -enable-kvm -m 512 -smp 1,
 sockets=1,
 cores=1,
 threads=1 -name one-172 -uuid 9aa233d8-51c5-f8ea-39a4-62fe7c3e71de
 -no-user-config -nodefaults -chardev socket,
 id=charmonitor,
 path=/var/lib/libvirt/qemu/one-172.monitor,
 server,
 nowait -mon chardev=charmonitor,
 id=monitor,
 mode=control -rtc base=utc -no-shutdown -device piix3-usb-uhci,
 id=usb,
 bus=pci.0,
 addr=0x1.0x2 -drive file=/var/lib/one//datastores/0/172/disk.0,
 if=none,
 id=drive-virtio-disk0,
 format=qcow2,
 cache=none -device virtio-blk-pci,scsi=off,
 bus=pci.0,
 addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,
 bootindex=1 -drive file=/var/lib/one//datastores/0/172/disk.2,
 if=none,
 id=drive-ide0-0-0,
 readonly=on,
 format=raw -device ide-cd,
 bus=ide.0,
 unit=0,
 drive=drive-ide0-0-0,
 id=ide0-0-0 -drive file=/var/lib/one//datastores/0/172/disk.1,
 if=none,
 id=drive-ide0-0-1,
 format=raw,
 cache=none -device ide-hd,
 bus=ide.0,
 unit=1,
 drive=drive-ide0-0-1,
 id=ide0-0-1 -netdev tap,
 fd=34,
 id=hostnet0 -device rtl8139,
 netdev=hostnet0,
 id=net0,
 mac=02:00:0a:c2:00:05,
 bus=pci.0,
 addr=0x3 -vnc 10.255.254.2:172 -vga cirrus -device virtio-balloon-pci,
 id=balloon0,
 bus=pci.0,
 addr=0x5
 kvm: -drive file=/var/lib/one//datastores/0/172/disk.0,
 if=none,
 id=drive-virtio-disk0,
 format=qcow2,
 cache=none: could not open disk image
 /var/lib/one//datastores/0/172/disk.0: Invalid argument
 2013-10-16 19:48:08.122+: shutting down

 Have no idea what next. :-/



 On 10/16/2013 04:49 PM, Carlos Martín Sánchez wrote:

 Hi,

  First make sure the required configuration [1] is in place.
 Then take a look at the libvirt log files, they may contain more
 information: /var/log/libvirt/libvirtd.log and
 /var/log/libvirt/qemu/one-id.log

  Regards

  [1] http://opennebula.org/documentation:rel4.2:kvmg#configuration

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


 On Tue, Oct 15, 2013 at 7:58 PM, Marius Corici mar...@corici.ro wrote:

  Hi everybody,

 I'm new here and you're my The Last Stand solution. What's the story:

 When I try to create a VM from my app, I receive this error:


 Tue Oct 15 16:00:22 2013 [DiM][I]: New VM state is ACTIVE.
 Tue Oct 15 16:00:22 2013 [LCM][I]: New VM state is PROLOG.
 Tue Oct 15 16:00:25 2013 [LCM][I]: New VM state is BOOT
 Tue Oct 15 16:00:25 2013 [VMM][I]: Generating deployment file:
 /var/lib/one/vms/169/deployment.0
 Tue Oct 15 16:00:25 2013 [VMM][I]: ExitCode: 0
 Tue Oct 15 16:00:25 2013 [VMM][I]: Successfully execute network driver
 operation: pre.
 Tue Oct 15 16:00:38 2013 [VMM][I]: Command execution fail: cat  EOT |
 /var/tmp/one/vmm/kvm/deploy '/var/lib/one//datastores/0/169/deployment.0' '
 domain.com' 169 domain.com
 Tue Oct 15 16:00:38 2013 [VMM][I]: error: Failed to create domain from
 /var/lib/one//datastores/0/169/deployment.0
 Tue Oct 15 16:00:38 2013 [VMM][I]: error: Unable to read from monitor:
 Connection reset by peer
 Tue Oct 15 16:00:38 2013 [VMM][E]: Could not create domain from
 /var/lib/one//datastores/0/169/deployment.0
 Tue Oct 15 16:00:38 2013 [VMM][I]: ExitCode: 255
 Tue Oct 15 16:00:38 2013 [VMM][I]: Failed to execute virtualization
 driver operation: deploy.
 Tue Oct 15 16:00:38 2013 [VMM][E]: Error deploying virtual machine: Could
 not create domain from /var/lib/one//datastores/0/169/deployment.0
 Tue Oct 15 16:00:41 2013 [DiM][I]: New VM state is FAILED

  I have OpenNebula 4.2 on Debian, and I don't know where else to look for
 an answer.

 Thank you

 Marius

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




___
Users mailing list

Re: [one-users] Error: Failed to create domain from

2013-10-18 Thread Ionut Popovici

Hi let me answer to that !!
The image on that they try to instantiate is a raw image.
And they use and template that instantiate the immage as qcow2 .. i 
don't think is posible that.
Why is that becase i personaly make the images .. but they don't listen 
me i already told the like 5 time .. your webinterface that instatiate 
the machine use as template qcow2 driver and that won't work.
So for all to understand .. the Machine already run a bunch of VM's .. 
the only machines that won't work  are  they try instantiate trou 
RPC-xml from other webinterface.



On 10/18/2013 12:20 PM, Carlos Martín Sánchez wrote:

Hi,

On Fri, Oct 18, 2013 at 1:26 AM, Marius Corici mar...@corici.ro 
mailto:mar...@corici.ro wrote:


and /var/log/libvirt/qemu/one-172.log shows:

cache=none: could not open disk image
/var/lib/one//datastores/0/172/disk.0: Invalid argument
2013-10-16 19:48:08.122+: shutting down

Have no idea what next. :-/


Can you check if that file is accessible by oneadmin in the host machine?

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



On Fri, Oct 18, 2013 at 1:26 AM, Marius Corici mar...@corici.ro 
mailto:mar...@corici.ro wrote:


Hey Martin,

Thanks for suggestions. Checked the details from [1] and seems to
be as it should.

libvirt.log shows:

2013-10-16 19:48:08.121+: 8722: error : qemuMonitorIORead:522
: Unable to read from monitor: Connection reset by peer

and /var/log/libvirt/qemu/one-172.log shows:

2013-10-16 19:47:54.709+: starting up
LC_ALL=C
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
HOME=/root
USER=root
LOGNAME=root
QEMU_AUDIO_DRV=none /usr/bin/kvm -S -M pc-1.1 -enable-kvm -m 512
-smp 1,
sockets=1,
cores=1,
threads=1 -name one-172 -uuid 9aa233d8-51c5-f8ea-39a4-62fe7c3e71de
-no-user-config -nodefaults -chardev socket,
id=charmonitor,
path=/var/lib/libvirt/qemu/one-172.monitor,
server,
nowait -mon chardev=charmonitor,
id=monitor,
mode=control -rtc base=utc -no-shutdown -device piix3-usb-uhci,
id=usb,
bus=pci.0,
addr=0x1.0x2 -drive file=/var/lib/one//datastores/0/172/disk.0,
if=none,
id=drive-virtio-disk0,
format=qcow2,

cache=none -device virtio-blk-pci,scsi=off,
bus=pci.0,
addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,
bootindex=1 -drive file=/var/lib/one//datastores/0/172/disk.2,
if=none,
id=drive-ide0-0-0,
readonly=on,
format=raw -device ide-cd,
bus=ide.0,
unit=0,
drive=drive-ide0-0-0,
id=ide0-0-0 -drive file=/var/lib/one//datastores/0/172/disk.1,
if=none,
id=drive-ide0-0-1,
format=raw,
cache=none -device ide-hd,
bus=ide.0,
unit=1,
drive=drive-ide0-0-1,
id=ide0-0-1 -netdev tap,
fd=34,
id=hostnet0 -device rtl8139,
netdev=hostnet0,
id=net0,
mac=02:00:0a:c2:00:05,
bus=pci.0,
addr=0x3 -vnc 10.255.254.2:172 http://10.255.254.2:172 -vga
cirrus -device virtio-balloon-pci,
id=balloon0,
bus=pci.0,
addr=0x5
kvm: -drive file=/var/lib/one//datastores/0/172/disk.0,
if=none,
id=drive-virtio-disk0,
format=qcow2,

cache=none: could not open disk image
/var/lib/one//datastores/0/172/disk.0: Invalid argument
2013-10-16 19:48:08.122+: shutting down

Have no idea what next. :-/



On 10/16/2013 04:49 PM, Carlos Martín Sánchez wrote:

Hi,

First make sure the required configuration [1] is in place.
Then take a look at the libvirt log files, they may contain more
information: /var/log/libvirt/libvirtd.log and
/var/log/libvirt/qemu/one-id.log

Regards

[1] http://opennebula.org/documentation:rel4.2:kvmg#configuration

--
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


On Tue, Oct 15, 2013 at 7:58 PM, Marius Corici mar...@corici.ro
mailto:mar...@corici.ro wrote:

Hi everybody,

I'm new here and you're my The Last Stand solution. What's
the story:

When I try to create a VM from my app, I receive this error:


Tue Oct 15 16:00:22 2013 [DiM][I]: New VM state is ACTIVE.
Tue Oct 15 16:00:22 2013 [LCM][I]: New VM state is PROLOG.
Tue Oct 15 16:00:25 2013 [LCM][I]: New VM state is BOOT
Tue Oct 15 16:00:25 2013 [VMM][I]: Generating deployment
file: /var/lib/one/vms/169/deployment.0
Tue Oct 15 16:00:25 2013 [VMM][I]: ExitCode: 0
Tue Oct 15 16:00:25 2013 [VMM][I]: Successfully execute
network driver operation: 

[one-users] Error: [E]: [UserPoolInfo] User couldn't be authenticated, aborting call

2013-10-18 Thread Juan José Fuentes
Hi,

Today I've had a great idea, I've changed the password of the serveradmin user, 
instantly everything start failing...

According the documentation the password of the serveradmin user is generated 
randomly the first time opennebula is started, so I how could I fix it?!!

Thank you,

Juan José Fuentes
SIGMA Gestión Universitaria
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Error: [E]: [UserPoolInfo] User couldn't be authenticated, aborting call

2013-10-18 Thread Daniel Molina
Hi,


On 18 October 2013 12:52, Juan José Fuentes
juanjose.fuen...@sigmaaie.orgwrote:

 Hi,

 ** **

 Today I’ve had a great idea, I’ve changed the password of the serveradmin
 user, instantly everything start failing…

 ** **

 According the documentation the password of the serveradmin user is
 generated randomly the first time opennebula is started, so I how could I
 fix it?!!


When your change the serveradmin password you have to update the config
files (sunstone_auth, ec2_auth) in the /var/lib/one/.one/ directory.
http://opennebula.org/documentation:rel4.2:cloud_auth#configure

Cheers


 

 ** **

 Thank you,

 ** **

 Juan José Fuentes

 SIGMA Gestión Universitaria

 ___
 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] OpenNebula 4.4(?)

2013-10-18 Thread Martin Alfke
Hi Tino,

many thanks for the update.

@Michael:

we run ONE 4.2 using Windows contextualisation without troubles (Network 
settings and RDP enabling) for Win7 and Win8.

Kind regards,

Martin


On Oct 18, 2013, at 11:05 AM, Tino Vazquez cvazq...@c12g.com wrote:

 Hi Michael,
 
 The beta version of OpenNebula 4.4 is due in one week. The single
 quote issue would be resolved (we would love to hear your feedback on
 this as soon as it is out), RbVmomi in place and multiple system ds
 support.
 
 We would appreciate it if you could elaborate a bit more on your plans
 regarding windows contextualization.
 
 Best,
 
 -Tino
 --
 OpenNebula - Flexible Enterprise Cloud Made Simple
 
 --
 Constantino Vázquez Blanco, PhD, MSc
 Senior Infrastructure Architect at C12G Labs
 www.c12g.com | @C12G | es.linkedin.com/in/tinova
 
 --
 Confidentiality Warning: The information contained in this e-mail and
 any accompanying documents, unless otherwise expressly indicated, is
 confidential and privileged, and is intended solely for the person
 and/or entity to whom it is addressed (i.e. those identified in the
 To and cc box). They are the property of C12G Labs S.L..
 Unauthorized distribution, review, use, disclosure, or copying of this
 communication, or any part thereof, is strictly prohibited and may be
 unlawful. If you have received this e-mail in error, please notify us
 immediately by e-mail at ab...@c12g.com and delete the e-mail and
 attachments and any copy from your system. C12G thanks you for your
 cooperation.
 
 
 On Thu, Oct 17, 2013 at 2:58 PM, Michael Curran
 michael.cur...@connectsolutions.com wrote:
 Is there any expected release date for this yet? I have a fully functional
 POC that handles *nix and windows, but cannot contextualize windows because
 of the single quotes around variables in the context.sh ... Which I was told
 would be resolved in the next release, along with the move away from libvirt
 to rbvmomi for accessing the cIpher and multiple system datastores support.
 
 Any news would help me while wee start build of an OpenStack poc for
 comparison against
 
 Sent from my Android phone using TouchDown (www.nitrodesk.com)
 
 ___
 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] OpenNebula 4.4(?)

2013-10-18 Thread Michael Curran
You automate the hostname, assign IP( not dhcp), and join an AD domain during 
system instantiation?

Sent from my Android phone using TouchDown (www.nitrodesk.com)

-Original Message-
From: Martin Alfke [tux...@gmail.com]
Received: Friday, 18 Oct 2013, 6:40am
CC: users [users@lists.opennebula.org]
Subject: Re: [one-users] OpenNebula 4.4(?)

Hi Tino,

many thanks for the update.

@Michael:

we run ONE 4.2 using Windows contextualisation without troubles (Network 
settings and RDP enabling) for Win7 and Win8.

Kind regards,

Martin


On Oct 18, 2013, at 11:05 AM, Tino Vazquez cvazq...@c12g.com wrote:

 Hi Michael,

 The beta version of OpenNebula 4.4 is due in one week. The single
 quote issue would be resolved (we would love to hear your feedback on
 this as soon as it is out), RbVmomi in place and multiple system ds
 support.

 We would appreciate it if you could elaborate a bit more on your plans
 regarding windows contextualization.

 Best,

 -Tino
 --
 OpenNebula - Flexible Enterprise Cloud Made Simple

 --
 Constantino Vázquez Blanco, PhD, MSc
 Senior Infrastructure Architect at C12G Labs
 www.c12g.comhttp://www.c12g.com | @C12G | es.linkedin.com/in/tinova

 --
 Confidentiality Warning: The information contained in this e-mail and
 any accompanying documents, unless otherwise expressly indicated, is
 confidential and privileged, and is intended solely for the person
 and/or entity to whom it is addressed (i.e. those identified in the
 To and cc box). They are the property of C12G Labs S.L..
 Unauthorized distribution, review, use, disclosure, or copying of this
 communication, or any part thereof, is strictly prohibited and may be
 unlawful. If you have received this e-mail in error, please notify us
 immediately by e-mail at ab...@c12g.com and delete the e-mail and
 attachments and any copy from your system. C12G thanks you for your
 cooperation.


 On Thu, Oct 17, 2013 at 2:58 PM, Michael Curran
 michael.cur...@connectsolutions.com wrote:
 Is there any expected release date for this yet? I have a fully functional
 POC that handles *nix and windows, but cannot contextualize windows because
 of the single quotes around variables in the context.sh ... Which I was told
 would be resolved in the next release, along with the move away from libvirt
 to rbvmomi for accessing the cIpher and multiple system datastores support.

 Any news would help me while wee start build of an OpenStack poc for
 comparison against

 Sent from my Android phone using TouchDown 
 (www.nitrodesk.comhttp://www.nitrodesk.com)

 ___
 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
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Ubuntu Cloud Images

2013-10-18 Thread Tobias Brunner

Hi everyone,

Does anyone have experience in using the Ubuntu Cloud Images found on 
http://cloud-images.ubuntu.com/ with OpenNebula? How can they be used in 
OpenNebula as guest image? There seems to be no documentation for these 
kind of images...


Cheers,
Tobias

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


[one-users] Booting VM from CD Image

2013-10-18 Thread Christoph Pleger
Hello,

I am using OpenNebula 3.8 with KVM virtualization. In sunstone, I
registered an image for a cdrom. sunstone shows the following image
information:

 ID 167
NameUbuntu 9.10 CD
Datastore   default
Owner   linux
Group   users
TypeCDROM
Register time   16:27:24 10/18/2013
Persistent  no
Source  /var/lib/one/datastores/1/df3a93a824a3df4cfa828471dc034246
Path/var/tmp/thin-body20131018-7588-qfm4nh-0
Filesystem type --
Size (Mb)   691
State   USED
Running #VMS1
Permissions
 Owner  um-
 Group  ---
 Other

and the following image template:

TARGET  sr0
DRIVER  raw
DEV_PREFIX  sr
DESCRIPTION Ubuntu 9.10 CD


After registering the cdrom image, I created a VM Template and included in
it a section for the cdrom. That section looks like this:

DISK=[
  DRIVER=raw,
  IMAGE=Ubuntu 9.10 CD,
  IMAGE_UNAME=linux,
  TARGET=sr0 ]

This prevents the VM from starting successfully (without that section, the
VM goes to state RUNNING). The error log is:

 Fri Oct 18 16:31:30 2013 [VMM][I]: Command execution fail: cat  EOT |
/var/tmp/one/vmm/kvm/deploy /var/lib/one//datastores/0/1319/deployment.0
cloudhost05 1319 cloudhost05
Fri Oct 18 16:31:30 2013 [VMM][I]: error: Failed to create domain from
/var/lib/one//datastores/0/1319/deployment.0
Fri Oct 18 16:31:30 2013 [VMM][I]: error: An error occurred, but the cause
is unknown

As you can see, the error message is not really helpful.

What can I do? Do I have to change entries in my image template or my VM
template?

Regards
  Christoph

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


Re: [one-users] Some questions about overcommitment in OpenNebula 4.2 using KVM

2013-10-18 Thread Gerry O'Brien

On 16/10/2013 20:40, Michał Madziar wrote:

On 2013-10-16 21:00, Gerry O'Brien wrote:

On 16/10/2013 17:19, Michał Madziar wrote:

On 2013-10-16 14:42, Gerry O'Brien wrote:

Hi,

  Do you know if the CPU parameter has any effect on the amount of
real cpu used, e.g. if I set the CPU parameter to 0.1 will this limit
the actual cpu usage?

libvirt uses cgroups, so yes, it does.

cgroups do not seem to be enabled with kvm. Am I correct in assuming
this?

Check if /sys/fs/cgroup/cpu/libvirt/qemu/ exists and it's contents, if
cgroups are used cpu quotas can be checked with:
find /sys/fs/cgroup/cpu/libvirt/qemu/ -name cpu.shares -exec echo '{}'
\; -exec cat '{}' \;


  Also, can the monitor driver be  configured to report multiples of
memory and allow memory overcommitment in the same way?

Just assign whatever you want to $total_memory in kvm.rb, but keep in
mind that if ballooned/deduplicated pages will start to differ either
swap will be used (which will probably kill the host) or oomkiller will
kick in.

Example:
$total_cpu = 2000
$free_cpu = $total_cpu - $used_cpu
$total_memory = $total_memory.to_i+$free_memory.to_i
$free_memory = $total_memory - $used_memory.to_i
print_info(HYPERVISOR,kvm)
#...

Dashboard charts will look strange but it seems to work.


Hi,

This didn't work for me. I'm running 4.2. The scheduler has a capacity
test (see below). Any idea where the code for get_requirements lives?

I didn't touch the scheduler, just patched the reporting script.
On my system it exists in ~oneadmin/remotes/im/kvm.d/kvm.rb and is
copied by ON (idr when exactly - restart?)  to /var/tmp/one/im/kvm.d/ on
every host in cluster.
I just added above lines near the end of script - before printing,
copied it manually and about minute later changes were visible in chart.


Hi,
This file get copied over to the host when oned is restarted. If 
you run it on the host it reports the increased memory size. However, 
the scheduler seems to ignore this. I'm running version 4.2. Is that 
what you are running?
 
___

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



--
Gerry O'Brien

Systems Manager
School of Computer Science and Statistics
Trinity College Dublin
Dublin 2
IRELAND

00 353 1 896 1341

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


Re: [one-users] migrate vm live error

2013-10-18 Thread Tino Vazquez
Hi,

Any luck disabling SELinux?

Regards,

-Tino
--
OpenNebula - Flexible Enterprise Cloud Made Simple

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

--
Confidentiality Warning: The information contained in this e-mail and
any accompanying documents, unless otherwise expressly indicated, is
confidential and privileged, and is intended solely for the person
and/or entity to whom it is addressed (i.e. those identified in the
To and cc box). They are the property of C12G Labs S.L..
Unauthorized distribution, review, use, disclosure, or copying of this
communication, or any part thereof, is strictly prohibited and may be
unlawful. If you have received this e-mail in error, please notify us
immediately by e-mail at ab...@c12g.com and delete the e-mail and
attachments and any copy from your system. C12G thanks you for your
cooperation.


On Mon, Oct 14, 2013 at 1:28 PM, Tino Vazquez cvazq...@c12g.com wrote:
 Hi,

 Things look better with :datacenter:ha-datacenter


 On Fri, Oct 11, 2013 at 4:18 AM, hansz hanshizhun...@126.com wrote:
 Fri Oct 11 09:42:51 2013 [VMM][I]: out: internal error curl_easy_perform()
 returned an error: Couldn't connect to server (7) : couldn't connect to host

 Are you using SELinux? could you try disabling it and try again?

 You can disable it with 'setenforce 0'.

 Regards,

 -Tino


 --
 OpenNebula - Flexible Enterprise Cloud Made Simple

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

 --
 Confidentiality Warning: The information contained in this e-mail and
 any accompanying documents, unless otherwise expressly indicated, is
 confidential and privileged, and is intended solely for the person
 and/or entity to whom it is addressed (i.e. those identified in the
 To and cc box). They are the property of C12G Labs S.L..
 Unauthorized distribution, review, use, disclosure, or copying of this
 communication, or any part thereof, is strictly prohibited and may be
 unlawful. If you have received this e-mail in error, please notify us
 immediately by e-mail at ab...@c12g.com and delete the e-mail and
 attachments and any copy from your system. C12G thanks you for your
 cooperation.
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Ubuntu Cloud Images

2013-10-18 Thread Ricardo Duarte
Hi,

I tried and they work.


Assuming you are using a KVM hypervisor, you will need:

- A serial port on your VM [1]. 
- DHCP on the network (just do a static One Mac to IP)
- Opennebula-metadata server [2]

They will work without any changes afterwards, and you can even use cloud-init 
to contextualize them.

If you need more than  the 2GB they have, just increase the size of the qcow2. 

qemu-img resize filename [+ | -]sizeNo need to change the filesystem inside of 
it. Cloud-init will increase the size of the ext fs to the qcow size.

Regards,
Ricardo

[1] Add the following as raw


serial type='pty'
  target port='0'/
/serial
console type='pty'
  target type='serial' port='0'/
/console

[2] https://bitbucket.org/ricardoduarte/opennebula-metadata

 Date: Fri, 18 Oct 2013 16:51:39 +0200
 From: tob...@tobru.ch
 To: users@lists.opennebula.org
 Subject: [one-users] Ubuntu Cloud Images
 
 Hi everyone,
 
 Does anyone have experience in using the Ubuntu Cloud Images found on 
 http://cloud-images.ubuntu.com/ with OpenNebula? How can they be used in 
 OpenNebula as guest image? There seems to be no documentation for these 
 kind of images...
 
 Cheers,
 Tobias
 
 ___
 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] KVM Driver+One4.+Centos6.4

2013-10-18 Thread Carlos Martín Sánchez
Hi,

On Fri, Oct 18, 2013 at 10:55 AM, Anoop Mohan linux.an...@gmail.com wrote:

 Hi Team,

 Could someone shed some light into the configuration of vmm_exec_kvm.conf
 . I'm using KVM Driver with OVS on ONE4.2
 My default content is as below
 [root@opennebula qemu]# egrep -v '^(#|$)'
 /etc/one/vmm_exec/vmm_exec_kvm.conf
 EMULATOR = /usr/libexec/qemu-kvm
 OS   = [ boot = hd, arch = i686 ]
 FEATURES = [ PAE = no, ACPI = yes ]
 DISK = [ driver = raw , cache = none]



 I'm using Image
 http://cloud.centos.org/i/one/c6-x86_64-20121130-1.qcow2.gz .I'm
 wondering whether the
 Inputs which we provide from Sunstone to create Image , Templates , VM's
 matches with the configuration in vmm_exec_kvm.conf
 In that case how would I set vmm_exec_kvm.conf or the above is good enough
 to start a VM.


Except for EMULATOR, the other attributes are the default values for the VM
template attributes of the same name. You can find more information here
[1] [2]

Regards

[1] http://opennebula.org/documentation:rel4.2:template
[2] http://opennebula.org/documentation:rel4.2:kvmg#kvm_specific_attributes

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


On Fri, Oct 18, 2013 at 10:55 AM, Anoop Mohan linux.an...@gmail.com wrote:

 Hi Team,

 Could someone shed some light into the configuration of vmm_exec_kvm.conf
 . I'm using KVM Driver with OVS on ONE4.2
 My default content is as below
 [root@opennebula qemu]# egrep -v '^(#|$)'
 /etc/one/vmm_exec/vmm_exec_kvm.conf
 EMULATOR = /usr/libexec/qemu-kvm
 OS   = [ boot = hd, arch = i686 ]
 FEATURES = [ PAE = no, ACPI = yes ]
 DISK = [ driver = raw , cache = none]


 I'm using Image
 http://cloud.centos.org/i/one/c6-x86_64-20121130-1.qcow2.gz .I'm
 wondering whether the
 Inputs which we provide from Sunstone to create Image , Templates , VM's
 matches with the configuration in vmm_exec_kvm.conf
 In that case how would I set vmm_exec_kvm.conf or the above is good enough
 to start a VM.

 Below I mentioned the Errors throwing when Instantiate a VM. Also
 provided  the other details

 http://pastebin.com/QWr0U7pw


 --
 Thanks  Regards,
 Anoop Mohan

 ___
 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] Booting VM from CD Image

2013-10-18 Thread Tino Vazquez
Hi,

Could you please send us through the contents of the deployment file?
It should be in the front-end, under

/var/lib/one/vms/vid/deployment.0

Regards,

-Tino

--
OpenNebula - Flexible Enterprise Cloud Made Simple

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

--
Confidentiality Warning: The information contained in this e-mail and
any accompanying documents, unless otherwise expressly indicated, is
confidential and privileged, and is intended solely for the person
and/or entity to whom it is addressed (i.e. those identified in the
To and cc box). They are the property of C12G Labs S.L..
Unauthorized distribution, review, use, disclosure, or copying of this
communication, or any part thereof, is strictly prohibited and may be
unlawful. If you have received this e-mail in error, please notify us
immediately by e-mail at ab...@c12g.com and delete the e-mail and
attachments and any copy from your system. C12G thanks you for your
cooperation.


On Fri, Oct 18, 2013 at 4:55 PM, Christoph Pleger
christoph.ple...@cs.tu-dortmund.de wrote:
 Hello,

 I am using OpenNebula 3.8 with KVM virtualization. In sunstone, I
 registered an image for a cdrom. sunstone shows the following image
 information:

  ID 167
 NameUbuntu 9.10 CD
 Datastore   default
 Owner   linux
 Group   users
 TypeCDROM
 Register time   16:27:24 10/18/2013
 Persistent  no
 Source  /var/lib/one/datastores/1/df3a93a824a3df4cfa828471dc034246
 Path/var/tmp/thin-body20131018-7588-qfm4nh-0
 Filesystem type --
 Size (Mb)   691
 State   USED
 Running #VMS1
 Permissions
  Owner  um-
  Group  ---
  Other

 and the following image template:

 TARGET  sr0
 DRIVER  raw
 DEV_PREFIX  sr
 DESCRIPTION Ubuntu 9.10 CD


 After registering the cdrom image, I created a VM Template and included in
 it a section for the cdrom. That section looks like this:

 DISK=[
   DRIVER=raw,
   IMAGE=Ubuntu 9.10 CD,
   IMAGE_UNAME=linux,
   TARGET=sr0 ]

 This prevents the VM from starting successfully (without that section, the
 VM goes to state RUNNING). The error log is:

  Fri Oct 18 16:31:30 2013 [VMM][I]: Command execution fail: cat  EOT |
 /var/tmp/one/vmm/kvm/deploy /var/lib/one//datastores/0/1319/deployment.0
 cloudhost05 1319 cloudhost05
 Fri Oct 18 16:31:30 2013 [VMM][I]: error: Failed to create domain from
 /var/lib/one//datastores/0/1319/deployment.0
 Fri Oct 18 16:31:30 2013 [VMM][I]: error: An error occurred, but the cause
 is unknown

 As you can see, the error message is not really helpful.

 What can I do? Do I have to change entries in my image template or my VM
 template?

 Regards
   Christoph

 ___
 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] Lecture about OpenNebula

2013-10-18 Thread Daniel Dehennin
Daniel Dehennin daniel.dehen...@baby-gnu.org writes:

 I'm making a 20mn slideshow about OpenNebula at my work.

[...]

Hello,

I would like to thank you very much, the presentation of our feedback on
the few months with OpenNebula 3.8 was a success.

Everybody was very interested.

The most asked question was “How to migrate our vSphere to OpenNebula?”

As we do not manage the proprietary solution and missing ressources[1],
we could not give much response but “It looks to one target of
OpenNebula, we need to make some tests”.

I'll build a handout of our slides[2] to give more documentation than
just slides and give you URLs of them if anybody is interested.

I'm sorry! I was a “little” in the hurry with the surprise of ONE
presentation and failed netiquette as a newbie on this mailing-list
by not introducing myself.

Here is the correction of my miss-behaviour:

Quick and dirty personal curriculum vitae:

I started computing in around 1999, thanks to Free Software and I'm more
a sysadmin than a coder. Well, I like coding my configurations[3] ;-)

I started to work in computing in 2003 as sysadmin.

I'm interested in ONE for two reasons:

1. personally to manage my home servers (single node). virt-manager was
   no more an option ;-)

2. professionally, I'm working for the french ministry of National
   Education[4] in a group providing Free as in Freedom solution for
   schools, named EOLE[5]

At work, we investigate to install a 2 or 3 nodes ONE in schools,
sometime to replace single nodes ESXi, and federate all the nebulas to
make a single portal and deploy new VM remotely.

As I said, we are just starting, we installed a two nodes 3.8 ONE few
months ago to QA tests for our solutions replacing the “unusable for us”
vCenter Lab Manager and get some feedbacks.

Now the test is successful, we will switch to 4.2 in a week or two.

Regards.

Footnotes: 
[1]  Financial and humans

[2]  in french

[3]  thanks CFEngine, Puppet and the last I'm interested in but did not
 get the time to learn: SaltStack

[4]  https://en.wikipedia.org/wiki/Ministry_of_National_Education_%28France%29

[5]  https://fr.wikipedia.org/wiki/EOLE_%28Linux%29

-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x7A6FE2DF


pgpQzo6mWx3FR.pgp
Description: PGP signature
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Booting VM from CD Image

2013-10-18 Thread Daniel Dehennin
Christoph Pleger christoph.ple...@cs.tu-dortmund.de writes:

 Hello,

Hello,


[...]

 After registering the cdrom image, I created a VM Template and included in
 it a section for the cdrom. That section looks like this:

 DISK=[
   DRIVER=raw,
   IMAGE=Ubuntu 9.10 CD,
   IMAGE_UNAME=linux,
   TARGET=sr0 ]

 This prevents the VM from starting successfully (without that section, the
 VM goes to state RUNNING). The error log is:

  Fri Oct 18 16:31:30 2013 [VMM][I]: Command execution fail: cat  EOT |
 /var/tmp/one/vmm/kvm/deploy /var/lib/one//datastores/0/1319/deployment.0
 cloudhost05 1319 cloudhost05
 Fri Oct 18 16:31:30 2013 [VMM][I]: error: Failed to create domain from
 /var/lib/one//datastores/0/1319/deployment.0
 Fri Oct 18 16:31:30 2013 [VMM][I]: error: An error occurred, but the cause
 is unknown

I got issue with ISO too, when I set my datastore with TM_MAD=qcow2,
the VM could not boot, even when they are in raw mode.

I use a dedicated TM_MAD=shared datastore for ISO and everything is
fine.

IIRC, the TM_MAD=qcow2 make use qemu-img backingstore option which is
incompatible with raw images, right?

Regards.
-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x7A6FE2DF


pgptGqeZVlRgY.pgp
Description: PGP signature
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Some questions about overcommitment in OpenNebula 4.2 using KVM

2013-10-18 Thread Michał Madziar
On 2013-10-18 17:36, Gerry O'Brien wrote:
 On 16/10/2013 20:40, Michał Madziar wrote:
 On 2013-10-16 21:00, Gerry O'Brien wrote:
 On 16/10/2013 17:19, Michał Madziar wrote: _requirements lives?
 I didn't touch the scheduler, just patched the reporting script.
 On my system it exists in ~oneadmin/remotes/im/kvm.d/kvm.rb and is
 copied by ON (idr when exactly - restart?)  to /var/tmp/one/im/kvm.d/ on
 every host in cluster.
 I just added above lines near the end of script - before printing,
 copied it manually and about minute later changes were visible in chart.

 Hi,
 This file get copied over to the host when oned is restarted. If
 you run it on the host it reports the increased memory size. However,
 the scheduler seems to ignore this. I'm running version 4.2. Is that
 what you are running?
Remember that values reported to ON must be consistent - total == free +
used or ON will ignore them.

That how it's look like on our system:
http://img822.imageshack.us/img822/1152/n5g6.png
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Ubuntu Cloud Images

2013-10-18 Thread Tobias Brunner

Hi,

Thanks for the fast reply.


Assuming you are using a KVM hypervisor,


Yes, I'm using KVM with libivrt.


you will need:

- A serial port on your VM [1].
- DHCP on the network (just do a static One Mac to IP)
- Opennebula-metadata server [2]

They will work without any changes afterwards, and you can even use
cloud-init to contextualize them.

If you need more than the 2GB they have, just increase the size of the
qcow2.

qemu-img resize filename [+ | -]size
No need to change the filesystem inside of it. Cloud-init will
increase the size of the ext fs to the qcow size.


I've tried to get it running using your hints, but I seem to miss 
several things. Here's what I did until now:


* Installed and started opennebula-metadata server. Verified that it's 
running:
oneadmin 11123  0.0  1.3 179076 26812 ?Sl   21:01   0:02 ruby 
/usr/lib/one/ruby/cloud/metadata/metadata-server.rb
tcp0  0 0.0.0.0:87750.0.0.0:*   
LISTEN  11123/ruby


* Downloaded 
http://cloud-images.ubuntu.com/saucy/current/saucy-server-cloudimg-amd64-disk1.img


* Imported the .img file into the image store: oneimage create -d 101 
--name saucy-cloud-amd64 --path 
/tmp/saucy-server-cloudimg-amd64-disk1.img --type OS


* Created a template:

CONTEXT=[
  NETWORK=YES ]
CPU=1
DISK=[
  IMAGE_ID=41 ]
GRAPHICS=[
  LISTEN=0.0.0.0,
  TYPE=VNC ]
MEMORY=1024
NIC=[
  NETWORK_ID=0 ]
OS=[
  ARCH=x86_64 ]
RAW=[
  DATA=serial type='pty'target port='0'//serialconsole 
type='pty'target type='serial' port='0'//console,

  TYPE=kvm ]

* Instantied a VM with this template: onetemplate instantiate 19 --name 
ucitest


The VM is now running and booted from the cloud image (I see this using 
the VNC console). But:
* Looking at the generated libvirt XML, the two parameters serial and 
console are missing. What could be wrong with the template?
* The VM seems not to get data from the metadata server. How does the VM 
find the metadata server? The DHCP server assigned an IP to this VM and 
the IP is pingable. But how does the VM know the IP to contact for the 
metadata? Are there any other parameters which must be passed on? How 
can I set a password to log into the VM?


Some other questions: Could the disk be automatically resized using 
http://dev.opennebula.org/issues/1727? Will the metadata server find 
it's way into the opennebula distribution?


Thanks for clarifying things...

Cheers,
Tobias

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