Re: [one-users] VM remains in status BOOT

2014-01-23 Thread Daems Dirk
Hi Tino,

Thanks to your help I was able to figure out what caused these problems. In the 
vmwarerc file I didn't add single quotes around the esx://... URL ...
After adding them, the VM is deployed successfully. I didn't notice any errors 
in the oned.log file though, possibly because I didn't wait for a timeout to 
occur?

Anyway, your help was highly appreciated!

Best regards,
Dirk

-Original Message-
From: Tino Vazquez [mailto:cvazq...@c12g.com]
Sent: dinsdag 21 januari 2014 12:55
To: Daems Dirk
Cc: users@lists.opennebula.org
Subject: Re: [one-users] VM remains in status BOOT

Hi Dirk,

So libvirt looks to be working. Weird, sure there are no more error messages in 
the log files?

Let's see if the VMware deploy works correctly in your front-end (may be 
missing dependecies). For that, please poweroff VM 38, and run the following in 
the front-end:

 $ /var/lib/one/remotes/vmm/vmware/deploy
/var/lib/one/vms/38/deployment.0  devmesx1.intern.vgt.vito.be 38

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 Mon, Jan 20, 2014 at 3:49 PM, Daems Dirk dirk.da...@vito.be wrote:
 Hi Tino,

 In the mean time I deployed and undeployed some VMs, so the ID used is now 38 
 instead of 26.
 If I execute the commands using the virsh shell, the VM gets deployed in 
 VMWare and I can see it running in the vSphere client.
 See below:

 virsh # define /var/lib/one/vms/38/deployment.0 Domain one-38 defined
 from /var/lib/one/vms/38/deployment.0

 virsh # start one-38
 Domain one-38 started

 Best regards,
 Dirk
 
 From: Tino Vazquez [cvazq...@c12g.com]
 Sent: Monday, January 20, 2014 3:27 PM
 To: Daems Dirk
 Cc: users@lists.opennebula.org
 Subject: Re: [one-users] VM remains in status BOOT

 Hi Dirk,

 Excellent, let's see what happens when libvirt is invoked directly. As
 oneadmin, in the front-end:

  $ virsh -c
 esx://devmesx1.intern.vgt.vito.be/?no_verify=1auto_answer=1
 define /var/lib/one/vms/26/deployment.0

 and then

  $ virsh -c
 esx://devmesx1.intern.vgt.vito.be/?no_verify=1auto_answer=1
 start one-26

 Best 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, Jan 20, 2014 at 11:08 AM, Daems Dirk dirk.da...@vito.be wrote:
 Hi Tino,



 The deployment file is created.

 See the contents below:



 domain type='vmware'

 nameone-26/name

 memory524288/memory

 os

 type arch='i686'hvm/type

 /os

 devices

 disk type='file' device='disk'

 source file='[135] 26/disk.0/disk.vmdk'/

 target dev='hda'/

 /disk

 disk type='file' device='cdrom'

 source file='[135] 26/disk.1.iso'/

 target dev='hdb'/

 readonly/

 /disk

 interface type='bridge'

 source bridge='one-pg-7'/

 mac address='02:00:c0:a8:0a:e5'/

 /interface

 /devices

 /domain



 Best regards,

 Dirk

 

 From: Tino Vazquez [cvazq...@c12g.com]

 Sent: Monday, January 20, 2014 11:04 AM

 To: Daems Dirk

 Cc: users@lists.opennebula.org

 

Re: [one-users] Monitoring of a host can fail during a VM shutdown

2014-01-23 Thread Javier Fontan
Here it is http://dev.opennebula.org/issues/2630

On Wed, Jan 22, 2014 at 10:56 PM, Nicolas Bélan nicolas.be...@gmail.com wrote:
 Hello,

 got something similar on one 4.2:
 Wed Jan 22 13:16:09 2014 [InM][I]: Monitoring host gimli02 (1)
 Wed Jan 22 13:16:14 2014 [InM][I]: Command execution fail: 'if [ -x
 /var/tmp/one/im/run_probes ]; then /var/t
 mp/one/im/run_probes kvm 1 gimli02; else
 exit 42; fi'
 Wed Jan 22 13:16:14 2014 [InM][I]: error: failed to get domain 'one-305'
 Wed Jan 22 13:16:14 2014 [InM][I]: error: Domaine non trouvé : no domain
 with matching name 'one-305'
 Wed Jan 22 13:16:14 2014 [InM][I]: ../../vmm/kvm/poll:70:in
 `get_vm_info': undefined method `[]' for nil:NilCla
 ss (NoMethodError)
 Wed Jan 22 13:16:14 2014 [InM][I]: from ../../vmm/kvm/poll:68:in `each'
 Wed Jan 22 13:16:14 2014 [InM][I]: from ../../vmm/kvm/poll:68:in
 `get_vm_info'
 Wed Jan 22 13:16:14 2014 [InM][I]: from ../../vmm/kvm/poll:35:in
 `get_all_vm_info'
 Wed Jan 22 13:16:14 2014 [InM][I]: from ../../vmm/kvm/poll:401:in
 `print_all_vm_template'
 Wed Jan 22 13:16:14 2014 [InM][I]: from ../../vmm/kvm/poll:440
 Wed Jan 22 13:16:14 2014 [InM][E]: Error executing poll.sh
 Wed Jan 22 13:16:14 2014 [InM][I]: ExitCode: 1
 Wed Jan 22 13:16:14 2014 [ONE][E]: Error monitoring Host gimli02 (1):
 Error executing poll.sh

 The problem appeares while deploying and removing 4 VMs in oneFlow. So,
 It looks like the problem of Daniel.

 The problem raise a full VM reset of the running vms on the HV.

 Do you have any bug id linked for this PR ?

 Thanks,
 Nicolas.

 Le 08/01/2014 11:17, Javier Fontan a écrit :
 This is a bug indeed. It can also fail in other cases like VM crash or
 migration.

 Open that bug and we will look into it. When you see those crashes it
 is safe to open a bug.

 On Wed, Dec 11, 2013 at 3:30 PM, Daniel Dehennin
 daniel.dehen...@baby-gnu.org wrote:
 Hello,

 On a ONE 4.2, we just encountered an transiant issue:

 [InM][I]: Monitoring host grichka (9)
 [InM][I]: Command execution fail: 'if [ -x /var/tmp/one/im/run_probes 
 ]; then /var/tmp/one/im/run_probes kvm 9 grichka; else exit 42; fi'
 [InM][I]: error: failed to get domain 'one-1547'
 [InM][I]: error: Domain not found: no domain with matching name 
 'one-1547'
 [InM][I]: ../../vmm/kvm/poll:70:in `block in get_vm_info': undefined 
 method `[]' for nil:NilClass (NoMethodError)
 [InM][I]: from ../../vmm/kvm/poll:68:in `each'
 [InM][I]: from ../../vmm/kvm/poll:68:in `get_vm_info'
 [InM][I]: from ../../vmm/kvm/poll:35:in `get_all_vm_info'
 [InM][I]: from ../../vmm/kvm/poll:401:in `print_all_vm_template'
 [InM][I]: from ../../vmm/kvm/poll:440:in `main'
 [InM][E]: Error executing poll.sh
 [InM][I]: ExitCode: 1
 [ONE][E]: Error monitoring Host grichka (9): Error executing poll.sh


 It looks like something list all the running VM and then call
 “get_vm_info” for each one.

 This result in an error if the VM disappears in the meantime, because of
 a shutdown for example.

 Is this something plausible, in which case I'll open an issue on the bug
 tracker?

 Regards.

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

 ___
 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



-- 
Javier Fontán Muiños
Developer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | @OpenNebula | github.com/jfontan
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] ESXi image datastore (default) not working?

2014-01-23 Thread Tino Vazquez
Hi Davide,

You need to rename datastore1 to just 1 in the ESX.

Also, please update datastore 0 and 1 BASE_PATH in OpenNebula to
/vmfs/volumes:

$ onedatastore update 0
SHARED=YES
TM_MAD=vmfs
TYPE=SYSTEM_DS
BASE_PATH=/vmfs/volumes

$ onedatastore update 1
TM_MAD=vmfs
DS_MAD=vmfs
BASE_PATH=/vmfs/volumes
CLONE_TARGET=SYSTEM
DISK_TYPE=FILE
LN_TARGET=NONE
TYPE=IMAGE_DS
BRIDGE_LIST=esx-ip

Hope it helps,

-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 Wed, Jan 22, 2014 at 6:53 PM, Davide Papini dado...@gmail.com wrote:
 I sent earlier the same email without subject, I apologize for that, I am
 resending the same one with a subject now.

 I have a problem downloading images from marketplace and I think it is due
 to the fact that openebula cannot interface with esxi.

 I use opennebula 4.4 and esxi5.1 (fresh install)

 When I try to import an image from the marketplace I get a space error.
 I tryed to tell opennebula to skip free space check and then I get another
 error:

 ERROR Wed Jan 22 16:01:54 2014 : Error copying image in the datastore: Error
 copying /var/lib/one/tmp/eba28569ed15dbf0bbe425d431683657 to
 /var/lib/one//datastores/1/eba28569ed15dbf0bbe425d431683657 through SCP

 could someone please help me with that?

 I think the problem is in the vmfs datastore configuration.

 to configure opennebula I used the guide at:

 http://docs.opennebula.org/stable/design_and_installation/quick_starts/qs_centos_vmware.html#qs-centos-vmware

 what troubles me is that I think opennebula tries to write on
 /vmfs/volumes/1 instead that /vmfs/volumes/datastore1 (on the esxi machine)



 the output of  onedatastore show 1 -x is:


 DATASTORE
   ID1/ID
   UID0/UID
   GID0/GID
   UNAMEoneadmin/UNAME
   GNAMEoneadmin/GNAME
   NAMEdefault/NAME
   PERMISSIONS
 OWNER_U1/OWNER_U
 OWNER_M1/OWNER_M
 OWNER_A0/OWNER_A
 GROUP_U1/GROUP_U
 GROUP_M0/GROUP_M
 GROUP_A0/GROUP_A
 OTHER_U1/OTHER_U
 OTHER_M0/OTHER_M
 OTHER_A0/OTHER_A
   /PERMISSIONS
   DS_MADvmfs/DS_MAD
   TM_MADvmfs/TM_MAD
   BASE_PATH/var/lib/one//datastores/1/BASE_PATH
   TYPE0/TYPE
   DISK_TYPE0/DISK_TYPE
   CLUSTER_ID-1/CLUSTER_ID
   CLUSTER/
   TOTAL_MB0/TOTAL_MB
   FREE_MB0/FREE_MB
   USED_MB31/USED_MB
   IMAGES
 ID0/ID
   /IMAGES
   TEMPLATE
 BRIDGE_LIST![CDATA[10.202.20.13]]/BRIDGE_LIST
 CLONE_TARGET![CDATA[SYSTEM]]/CLONE_TARGET
 DATASTORE_CAPACITY_CHECK![CDATA[NO]]/DATASTORE_CAPACITY_CHECK
 DISK_TYPE![CDATA[FILE]]/DISK_TYPE
 DS_MAD![CDATA[vmfs]]/DS_MAD
 LN_TARGET![CDATA[NONE]]/LN_TARGET
 TM_MAD![CDATA[vmfs]]/TM_MAD
 TYPE![CDATA[IMAGE_DS]]/TYPE
   /TEMPLATE
 /DATASTORE

 ___
 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 remains in status BOOT

2014-01-23 Thread Tino Vazquez
Hi Dirk,

Excellent news ;) Probably the error wasn't showing for lack of time,
I will investigate further though to get a better feedback to users.

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, Jan 23, 2014 at 9:41 AM, Daems Dirk dirk.da...@vito.be wrote:
 Hi Tino,

 Thanks to your help I was able to figure out what caused these problems. In 
 the vmwarerc file I didn't add single quotes around the esx://... URL ...
 After adding them, the VM is deployed successfully. I didn't notice any 
 errors in the oned.log file though, possibly because I didn't wait for a 
 timeout to occur?

 Anyway, your help was highly appreciated!

 Best regards,
 Dirk

 -Original Message-
 From: Tino Vazquez [mailto:cvazq...@c12g.com]
 Sent: dinsdag 21 januari 2014 12:55
 To: Daems Dirk
 Cc: users@lists.opennebula.org
 Subject: Re: [one-users] VM remains in status BOOT

 Hi Dirk,

 So libvirt looks to be working. Weird, sure there are no more error messages 
 in the log files?

 Let's see if the VMware deploy works correctly in your front-end (may be 
 missing dependecies). For that, please poweroff VM 38, and run the following 
 in the front-end:

  $ /var/lib/one/remotes/vmm/vmware/deploy
 /var/lib/one/vms/38/deployment.0  devmesx1.intern.vgt.vito.be 38

 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 Mon, Jan 20, 2014 at 3:49 PM, Daems Dirk dirk.da...@vito.be wrote:
 Hi Tino,

 In the mean time I deployed and undeployed some VMs, so the ID used is now 
 38 instead of 26.
 If I execute the commands using the virsh shell, the VM gets deployed in 
 VMWare and I can see it running in the vSphere client.
 See below:

 virsh # define /var/lib/one/vms/38/deployment.0 Domain one-38 defined
 from /var/lib/one/vms/38/deployment.0

 virsh # start one-38
 Domain one-38 started

 Best regards,
 Dirk
 
 From: Tino Vazquez [cvazq...@c12g.com]
 Sent: Monday, January 20, 2014 3:27 PM
 To: Daems Dirk
 Cc: users@lists.opennebula.org
 Subject: Re: [one-users] VM remains in status BOOT

 Hi Dirk,

 Excellent, let's see what happens when libvirt is invoked directly. As
 oneadmin, in the front-end:

  $ virsh -c
 esx://devmesx1.intern.vgt.vito.be/?no_verify=1auto_answer=1
 define /var/lib/one/vms/26/deployment.0

 and then

  $ virsh -c
 esx://devmesx1.intern.vgt.vito.be/?no_verify=1auto_answer=1
 start one-26

 Best 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 

Re: [one-users] Safe Live Migration

2014-01-23 Thread Javier Fontan
Migration is done using this command (KVM) in the host where the VM is
running (/var/lib/one/remotes/vmm/kvm/migrate):

virsh --connect $LIBVIRT_URI migrate --live $deploy_id
$QEMU_PROTOCOL://$dest_host/system

With the default configuration the migration data then will be sent to
$dest_host using unencrypted tcp sockets. In case the interface for
$dest_host IP is not used for the VM bridge then it will be only used
for ssh connections, migrations and maybe storage (depends on the
configuration).

In case you want to use an interface only for migration you may want
to create a new network (attached to a new interface) and add a suffix
to the host names. For example:

192.168.10.15 host01
10.0.0.15 host01.migration

And change the migration command to something like this:

virsh --connect $LIBVIRT_URI migrate --live $deploy_id
$QEMU_PROTOCOL://$dest_host.migration/system

To encrypt data you'd better check libvirt documentation on how to use
tls for connections. It will require generating certificates and
configuration in libvirt, not only QEMU_PROTOCOL modification.

On Mon, Jan 20, 2014 at 8:38 PM, Igor Laskovy igor.lask...@gmail.com wrote:
 Hello list,

 Could anybody clarify how to separate live migration traffic to dedicated
 interface?

 --
 Igor Laskovy
 facebook.com/igor.laskovy
 studiogrizzly.com

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




-- 
Javier Fontán Muiños
Developer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | @OpenNebula | github.com/jfontan
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Closing OpenNebula 4.4 Cycle, Planning for 4.6

2014-01-23 Thread Tino Vazquez
Hi Shankhadeep,

We've already closed the roadmap for 4.6, but please consider open a
feature request in dev.opennebula.org and we'll do our best to include
it for the next release.

Best 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 Thu, Jan 23, 2014 at 5:24 AM, Shankhadeep Shome shank15...@gmail.com wrote:
 Could you guys consider pulling in the hyper-v libvirt tag support for
 sunstone that one of users contributed a patch for few weeks back? Anything
 that improves Windows guest performance on kvm is very much appreciated, at
 least by me

 hyperv

 relaxed state='on'/

 vapic state='on'/

 spinlocks state='on' retries='4096'/

 /hyperv




 On Tue, Jan 21, 2014 at 10:21 AM, Ruben S. Montero
 rsmont...@opennebula.org wrote:

 Hi

 First, we'd like to thank you all the comments and feedback for OpenNebula
 4.6. We really appreciate it :) Our goal for 4.6 is two-fold: improve
 federation module (aka ozones) and improve OpenNebula usability (based on
 OpenNebula user comments received during the last releases).

 It's been always difficult to prioritize the new features considering the
 limited time-frame of a release, so we tried to balance the effort and
 number of features. The complete list of features is here [1].

 About the specific requests in this thread. In 4.6, We are going for:

 - #2568 Support for RBD Format 2 images
 - #1727 Patch for one.image.resize to resize image
 - #1818 Support for IP reservations along with #2545 Decorrelate
 networks TYPE and IP management
 - #1696  Add the ability to select datastore for Clone operation as a
 previous step for #2417 “Move images between datastores”. #2417 requires
 preserving the ID, so let see if we can easily get both
 - #2453 Add hostname configuration to contexualization
 - #2048. Instantiate to persistent
 - #2648: ACL edit/view wizard
 - #2649: sunstone, occi, econe, novncserver ability to log to syslog
 server

 These issues have been moved to the backlog, with a high priority to
 consider them for 4.8, complete backlog [2]:
 - oneacct extended to the webinterface. This is issue #1607, in this
 release we are going for #1484 (output in csv format of accounting data)
 - over-committing memory (ram) to VMs just like how you can set over
 commit in CPU. This is issue #1328
 - One feature I would like to see would be a recycle bin this has been
 merge with #2412 Ability to lock VM from accidental actions
 - #2560 Re-read oned.conf on reload
 - #2651 Implement mailbox to prevent vm from running twice.

 Again thanks for the feedback.

 Cheers

 PS: A more prosaic form of this mail has been published in the blog [3]

 [1] http://dev.opennebula.org/projects/opennebula/issues?query_id=45
 [2] http://dev.opennebula.org/projects/opennebula/issues?query_id=46
 [3] http://opennebula.org/blueprints-for-opennebula-4-6/



 On Fri, Jan 17, 2014 at 8:41 PM, Karsten Nielsen kars...@unity3d.com
 wrote:

 Hi,

 I would like to have support for docker.io that would be awesome.

 Thanks,
 - Karsten


 On 09/01/14 17:44, Tino Vazquez wrote:

 Dear users,

 Having released OpenNebula 4.4 Retina and closed its release cycle, it
 is time to open a new one for the next release.

 We have identified the issues [1] (bugs + features) we deem important
 for the release, and we have including in that list the features that
 didn't make it in OpenNebula 4.4 in the end.

 As discussed with the OpenNebula Conf attendees (see? you need to come
 next year ;) ), we want to give our users the chance to shape the
 roadmap for the upcoming OpenNebula 4.6. We invite you to submit your
 comments on the roadmap via email (ideally within this thread, but
 feel free to open a new one if you think it is necessary to discuss
 any particular topic). This valuable input will be used to shape the
 short-term roadmap with the features that will be part of the release
 cycle.

 The ideal process of the discussion would be for any person interested
 in discussing a feature request to search first if there is already a
 similar one in the OpenNebula development portal [2]. If no similar
 request is found, please open one describing as best as you can 

Re: [one-users] Unable to attach raw disk to vm

2014-01-23 Thread Javier Fontan
Disk attach can only be done with virtio and SCSI disks. IDE is not supported.

On Wed, Jan 22, 2014 at 6:25 PM, Marco Lanzotti - AD Glamor
marco.lanzo...@adglamor.com wrote:
 Hi all, I'm unable to attach a row device to a running vm.

 log:

 Wed Jan 22 16:59:21 2014 [VMM][D]: Message received: LOG I 27
 Successfully execute transfer manager driver operation: tm_attach.

 Wed Jan 22 16:59:22 2014 [VMM][D]: Message received: LOG I 27 Command
 execution fail: /var/tmp/one/vmm/kvm/attach_disk 'one-27'
 '/var/lib/one//datastores/0/27/disk.3' 'hdd' '3' 'PFZ[...]Pg==' 27 metal10

 Wed Jan 22 16:59:22 2014 [VMM][D]: Message received: LOG E 27
 attach_disk: Command virsh --connect qemu:///system attach-device
 one-27 /var/lib/one//datastores/0/27/disk.3.attach failed: error:
 Failed to attach device from /var/lib/one//datastores/0/27/disk.3.attach

 Wed Jan 22 16:59:22 2014 [VMM][D]: Message received: LOG I 27 error:
 Unable to allow access for disk path
 /var/lib/one//datastores/0/27/disk.3: No such file or directory

 Wed Jan 22 16:59:22 2014 [VMM][D]: Message received: LOG E 27 Could not
 attach /var/lib/one//datastores/0/27/disk.3 (hdd) to one-27

 Wed Jan 22 16:59:22 2014 [VMM][D]: Message received: LOG I 27 ExitCode: 1

 Wed Jan 22 16:59:22 2014 [VMM][D]: Message received: LOG I 27 Failed to
 execute virtualization driver operation: attach_disk.

 Wed Jan 22 16:59:22 2014 [VMM][D]: Message received: ATTACHDISK FAILURE
 27 Could not attach /var/lib/one//datastores/0/27/disk.3 (hdd) to one-27


 some informations:


 ~$ oneimage show 23
 IMAGE 23
 INFORMATION
 ID : 23
 NAME   : vdb01.data
 USER   : oneadmin
 GROUP  : oneadmin
 DATASTORE  : ceph
 TYPE   : DATABLOCK
 REGISTER TIME  : 01/22 14:27:49
 PERSISTENT : Yes
 SOURCE : one/one-23
 FSTYPE : ext4
 SIZE   : 100G
 STATE  : rdy
 RUNNING_VMS: 0

 PERMISSIONS

 OWNER  : um-
 GROUP  : ---
 OTHER  : ---

 IMAGE
 TEMPLATE
 DEV_PREFIX=hd

 VIRTUAL MACHINES


 ~$ onevm show 27
 VIRTUAL MACHINE 27
 INFORMATION
 ID  : 27
 NAME: vdb01
 USER: oneadmin
 GROUP   : oneadmin
 STATE   : ACTIVE
 LCM_STATE   : RUNNING
 RESCHED : No
 HOST: metal10
 START TIME  : 01/22 13:43:37
 END TIME: -
 DEPLOY ID   : one-27

 VIRTUAL MACHINE
 MONITORING
 USED MEMORY : 25G
 USED CPU: 0
 NET_RX  : 65.8M
 NET_TX  : 2.4M

 PERMISSIONS

 OWNER   : um-
 GROUP   : ---
 OTHER   : ---

 VM
 DISKS

  ID TARGET IMAGE   TYPE SAVE SAVE_AS
   0 hdavdb01   rbd   YES   -
   1 hdc10G swap   NO   -

 VM
 NICS

  ID NETWORK  VLAN BRIDGE   IP  MAC
   0 Private Networkno lan0 XXX.XXX.XXX.51  02:00:c0:a8:bf:33
fe80::400:c0ff:fea8:bf33

 VIRTUAL MACHINE
 HISTORY
 SEQ HOSTACTION   REAS   START
 TIME PROLOG
   0 metal10 none none  01/22 13:43:40   0d 03h37m
 0h00m04s

 USER
 TEMPLATE
 CLUSTER_100=100
 ERROR=Wed Jan 22 16:59:22 2014 : Error attaching new VM Disk: Could not
 attach /var/lib/one//datastores/0/27/disk.3 (hdd) to one-27
 SCHED_REQUIREMENTS=CLUSTER_ID=\100\

 VIRTUAL MACHINE
 TEMPLATE
 AUTOMATIC_REQUIREMENTS=CLUSTER_ID = 100
 CONTEXT=[
   DISK_ID=2,
   ETH0_DNS=XXX.XXX.XXX.1 XXX.XXX.XXX.2,
   ETH0_IP=XXX.XXX.XXX.51,
   ETH0_MASK=255.255.255.0,
   ETH0_NETWORK=XXX.XXX.XXX.0,
   NETWORK=YES,
   TARGET=hdb ]
 CPU=8
 FEATURES=[
   ACPI=yes,
   PAE=no ]
 GRAPHICS=[
   LISTEN=0.0.0.0,
   PORT=5927,
   TYPE=VNC ]
 MEMORY=25600
 OS=[
   ARCH=x86_64,
   BOOT=hd ]
 TEMPLATE_ID=12
 VCPU=8
 VMID=27


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



-- 
Javier Fontán Muiños
Developer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | @OpenNebula | github.com/jfontan
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] HA hook and -p n flag

2014-01-23 Thread Igor Laskovy
Is this a bug? If so, please give it High priority.

Thu Jan 23 18:20:25 2014 [HKM][D]: Message received: LOG I 9 Command
execution fail: /var/lib/one/remotes//hooks/ft/host_error.rb 9 -r -p 3
Thu Jan 23 18:20:25 2014 [HKM][D]: Message received: LOG I 9
/var/lib/one/remotes//hooks/ft/host_error.rb:101:in `*': nil can't be
coerced into Fixnum (TypeError)
Thu Jan 23 18:20:25 2014 [HKM][D]: Message received: LOG I 9 from
/var/lib/one/remotes//hooks/ft/host_error.rb:101
Thu Jan 23 18:20:25 2014 [HKM][D]: Message received: LOG I 9 ExitCode: 1
Thu Jan 23 18:20:25 2014 [HKM][D]: Message received: EXECUTE FAILURE 9
error: -

-- 
Igor Laskovy
facebook.com/igor.laskovy
studiogrizzly.com
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] ESXi image datastore (default) not working?

2014-01-23 Thread Tino Vazquez
Hi Davide,

I think I got confused by this sentence:

 opennebula tries to write on /vmfs/volumes/1 instead that 
 /vmfs/volumes/datastore1

If you have datastore 1 mounted on the ESX, then you should already
have  /vmfs/volumes/1 in the ESX, and it is OK for OpenNebula to write
on it.

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 Thu, Jan 23, 2014 at 11:45 AM, Davide Papini dado...@gmail.com wrote:
 Hi Tino, Thanks for the fast answer,

 do I also need to keep the NFS FrontEnd resources mounted on the esxi?
 Specifically:

 /var/lib/one/datastores/0
 /var/lib/one/datastores/1

 I guess I have to delete the last one otherwise is going o conflict, should
 I delete also the first one?

 Thanks




 On Thu, Jan 23, 2014 at 10:03 AM, Tino Vazquez cvazq...@c12g.com wrote:

 Hi Davide,

 You need to rename datastore1 to just 1 in the ESX.

 Also, please update datastore 0 and 1 BASE_PATH in OpenNebula to
 /vmfs/volumes:

 $ onedatastore update 0
 SHARED=YES
 TM_MAD=vmfs
 TYPE=SYSTEM_DS
 BASE_PATH=/vmfs/volumes

 $ onedatastore update 1
 TM_MAD=vmfs
 DS_MAD=vmfs
 BASE_PATH=/vmfs/volumes
 CLONE_TARGET=SYSTEM
 DISK_TYPE=FILE
 LN_TARGET=NONE
 TYPE=IMAGE_DS
 BRIDGE_LIST=esx-ip

 Hope it helps,

 -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 Wed, Jan 22, 2014 at 6:53 PM, Davide Papini dado...@gmail.com wrote:
  I sent earlier the same email without subject, I apologize for that, I
  am
  resending the same one with a subject now.
 
  I have a problem downloading images from marketplace and I think it is
  due
  to the fact that openebula cannot interface with esxi.
 
  I use opennebula 4.4 and esxi5.1 (fresh install)
 
  When I try to import an image from the marketplace I get a space error.
  I tryed to tell opennebula to skip free space check and then I get
  another
  error:
 
  ERROR Wed Jan 22 16:01:54 2014 : Error copying image in the datastore:
  Error
  copying /var/lib/one/tmp/eba28569ed15dbf0bbe425d431683657 to
  /var/lib/one//datastores/1/eba28569ed15dbf0bbe425d431683657 through SCP
 
  could someone please help me with that?
 
  I think the problem is in the vmfs datastore configuration.
 
  to configure opennebula I used the guide at:
 
 
  http://docs.opennebula.org/stable/design_and_installation/quick_starts/qs_centos_vmware.html#qs-centos-vmware
 
  what troubles me is that I think opennebula tries to write on
  /vmfs/volumes/1 instead that /vmfs/volumes/datastore1 (on the esxi
  machine)
 
 
 
  the output of  onedatastore show 1 -x is:
 
 
  DATASTORE
ID1/ID
UID0/UID
GID0/GID
UNAMEoneadmin/UNAME
GNAMEoneadmin/GNAME
NAMEdefault/NAME
PERMISSIONS
  OWNER_U1/OWNER_U
  OWNER_M1/OWNER_M
  OWNER_A0/OWNER_A
  GROUP_U1/GROUP_U
  GROUP_M0/GROUP_M
  GROUP_A0/GROUP_A
  OTHER_U1/OTHER_U
  OTHER_M0/OTHER_M
  OTHER_A0/OTHER_A
/PERMISSIONS
DS_MADvmfs/DS_MAD
TM_MADvmfs/TM_MAD
BASE_PATH/var/lib/one//datastores/1/BASE_PATH
TYPE0/TYPE
DISK_TYPE0/DISK_TYPE
CLUSTER_ID-1/CLUSTER_ID
CLUSTER/
TOTAL_MB0/TOTAL_MB
FREE_MB0/FREE_MB
USED_MB31/USED_MB
IMAGES
  ID0/ID
/IMAGES
TEMPLATE
  BRIDGE_LIST![CDATA[10.202.20.13]]/BRIDGE_LIST
  CLONE_TARGET![CDATA[SYSTEM]]/CLONE_TARGET
  

Re: [one-users] Unable to attach raw disk to vm

2014-01-23 Thread Marco Lanzotti - AD Glamor
On 23/01/2014 11:26, Javier Fontan wrote:
 Disk attach can only be done with virtio and SCSI disks. IDE is not supported.



It's a virtual datablock on ceph filesystem, not an IDE disk.

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


Re: [one-users] Safe Live Migration

2014-01-23 Thread Igor Laskovy
Thanks you Javier for this hint! This is what I was looking for.


On Thu, Jan 23, 2014 at 6:10 PM, Javier Fontan jfon...@opennebula.orgwrote:

 Migration is done using this command (KVM) in the host where the VM is
 running (/var/lib/one/remotes/vmm/kvm/migrate):

 virsh --connect $LIBVIRT_URI migrate --live $deploy_id
 $QEMU_PROTOCOL://$dest_host/system

 With the default configuration the migration data then will be sent to
 $dest_host using unencrypted tcp sockets. In case the interface for
 $dest_host IP is not used for the VM bridge then it will be only used
 for ssh connections, migrations and maybe storage (depends on the
 configuration).

 In case you want to use an interface only for migration you may want
 to create a new network (attached to a new interface) and add a suffix
 to the host names. For example:

 192.168.10.15 host01
 10.0.0.15 host01.migration

 And change the migration command to something like this:

 virsh --connect $LIBVIRT_URI migrate --live $deploy_id
 $QEMU_PROTOCOL://$dest_host.migration/system

 To encrypt data you'd better check libvirt documentation on how to use
 tls for connections. It will require generating certificates and
 configuration in libvirt, not only QEMU_PROTOCOL modification.

 On Mon, Jan 20, 2014 at 8:38 PM, Igor Laskovy igor.lask...@gmail.com
 wrote:
  Hello list,
 
  Could anybody clarify how to separate live migration traffic to dedicated
  interface?
 
  --
  Igor Laskovy
  facebook.com/igor.laskovy
  studiogrizzly.com
 
  ___
  Users mailing list
  Users@lists.opennebula.org
  http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
 



 --
 Javier Fontán Muiños
 Developer
 OpenNebula - The Open Source Toolkit for Data Center Virtualization
 www.OpenNebula.org | @OpenNebula | github.com/jfontan




-- 
Igor Laskovy
facebook.com/igor.laskovy
studiogrizzly.com
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Unable to attach raw disk to vm

2014-01-23 Thread Javier Fontan
--8--
Wed Jan 22 16:59:22 2014 [VMM][D]: Message received: LOG I 27 Command
execution fail: /var/tmp/one/vmm/kvm/attach_disk 'one-27'
'/var/lib/one//datastores/0/27/disk.3' 'hdd' '3' 'PFZ[...]Pg==' 27 metal10
--8--

The device you're trying to attach is 'hdd'. That's an IDE disk in my book.

virtio starts with 'vd' and scsi with 'sd'.



On Thu, Jan 23, 2014 at 12:22 PM, Marco Lanzotti - AD Glamor
marco.lanzo...@adglamor.com wrote:
 On 23/01/2014 11:26, Javier Fontan wrote:
 Disk attach can only be done with virtio and SCSI disks. IDE is not 
 supported.



 It's a virtual datablock on ceph filesystem, not an IDE disk.

 Bye,
 Marco



-- 
Javier Fontán Muiños
Developer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | @OpenNebula | github.com/jfontan
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] ESXi image datastore (default) not working?

2014-01-23 Thread Tino Vazquez
Hi Davide,

Apologies, my mistake. Updating the BASE_PATH of a datastore is still
not possible, but will in 4.6 [1]. To correctly use datastore 0 and 1,
you need to set the following in oned.conf:

---
DATASTORE_LOCATION  = /vmfs/volumes
DATASTORE_BASE_PATH = /vmfs/volumes


Otherwise, DS 0 and 1 will have /var/lib/one as BASE_PATH, and they
won't be fit for ESX usage. There are various solutions to this
problems, the most immediate on is to create two new datastores in
OpenNebula (100 for system and 101 for images), export them via
NFS and mount them in the ESX host as 100 and 101. Template for
the new datastores:

ds_100.template

SHARED=YES
TM_MAD=vmfs
TYPE=SYSTEM_DS
BASE_PATH=/vmfs/volumes

ds_101.template

TM_MAD=vmfs
DS_MAD=vmfs
BASE_PATH=/vmfs/volumes
CLONE_TARGET=SYSTEM
DISK_TYPE=FILE
LN_TARGET=NONE
TYPE=IMAGE_DS
BRIDGE_LIST=esx-ip

Let me know if this alleviates the problem.

Regards,

-Tino

[1] 
http://docs.opennebula.org/stable/design_and_installation/quick_starts/qs_centos_vmware.html
--
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, Jan 23, 2014 at 12:33 PM, Davide Papini dado...@gmail.com wrote:
 Hi Tino

 There is something I do not understand, there are two BASE_PATH attributes
 and they differ:

 BASE_PATH/var/lib/one//datastores/1/BASE_PATH


 TEMPLATE
 BASE_PATH![CDATA[/vmfs/volumes]]/BASE_PATH
 /TEMPLATE

 it seems I cannot get rid of the first one.

 perhaps that is the problem?




 On Thu, Jan 23, 2014 at 10:45 AM, Davide Papini dado...@gmail.com wrote:

 Hi Tino, Thanks for the fast answer,

 do I also need to keep the NFS FrontEnd resources mounted on the esxi?
 Specifically:

 /var/lib/one/datastores/0
 /var/lib/one/datastores/1

 I guess I have to delete the last one otherwise is going o conflict,
 should I delete also the first one?

 Thanks




 On Thu, Jan 23, 2014 at 10:03 AM, Tino Vazquez cvazq...@c12g.com wrote:

 Hi Davide,

 You need to rename datastore1 to just 1 in the ESX.

 Also, please update datastore 0 and 1 BASE_PATH in OpenNebula to
 /vmfs/volumes:

 $ onedatastore update 0
 SHARED=YES
 TM_MAD=vmfs
 TYPE=SYSTEM_DS
 BASE_PATH=/vmfs/volumes

 $ onedatastore update 1
 TM_MAD=vmfs
 DS_MAD=vmfs
 BASE_PATH=/vmfs/volumes
 CLONE_TARGET=SYSTEM
 DISK_TYPE=FILE
 LN_TARGET=NONE
 TYPE=IMAGE_DS
 BRIDGE_LIST=esx-ip

 Hope it helps,

 -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 Wed, Jan 22, 2014 at 6:53 PM, Davide Papini dado...@gmail.com wrote:
  I sent earlier the same email without subject, I apologize for that, I
  am
  resending the same one with a subject now.
 
  I have a problem downloading images from marketplace and I think it is
  due
  to the fact that openebula cannot interface with esxi.
 
  I use opennebula 4.4 and esxi5.1 (fresh install)
 
  When I try to import an image from the marketplace I get a space error.
  I tryed to tell opennebula to skip free space check and then I get
  another
  error:
 
  ERROR Wed Jan 22 16:01:54 2014 : Error copying image in the datastore:
  Error
  copying /var/lib/one/tmp/eba28569ed15dbf0bbe425d431683657 to
  /var/lib/one//datastores/1/eba28569ed15dbf0bbe425d431683657 through SCP
 
  could someone please help me with that?
 
  I think the problem is in the vmfs datastore configuration.
 
  to 

Re: [one-users] ESXi image datastore (default) not working?

2014-01-23 Thread Tino Vazquez
Hi,

The existing DS 1 can be left unused. To change the BASE_PATH you will
need to directly change the DB.

If you do not have too many resources in OpenNebula, you can stop ONE,
wipe the DB (/var/lib/one/one.db) and start ONE again. Both 0 and
1 datastores will be recreated with the right BASE_PATH (pulled from
the defaults in oned.conf).

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 Thu, Jan 23, 2014 at 12:58 PM, Davide Papini dado...@gmail.com wrote:
 Hi Tino

 Thanks now I understand better. So to be clear I should create two new
 datastores: 100 and 101. What about the already existing 1? how can I revert
 it to the original config?

 (oned.conf I already edited that thanks)

 regards




 On Thu, Jan 23, 2014 at 11:48 AM, Tino Vazquez cvazq...@c12g.com wrote:

 Hi Davide,

 Apologies, my mistake. Updating the BASE_PATH of a datastore is still
 not possible, but will in 4.6 [1]. To correctly use datastore 0 and 1,
 you need to set the following in oned.conf:

 ---
 DATASTORE_LOCATION  = /vmfs/volumes
 DATASTORE_BASE_PATH = /vmfs/volumes
 

 Otherwise, DS 0 and 1 will have /var/lib/one as BASE_PATH, and they
 won't be fit for ESX usage. There are various solutions to this
 problems, the most immediate on is to create two new datastores in
 OpenNebula (100 for system and 101 for images), export them via
 NFS and mount them in the ESX host as 100 and 101. Template for
 the new datastores:

 ds_100.template
 
 SHARED=YES
 TM_MAD=vmfs
 TYPE=SYSTEM_DS
 BASE_PATH=/vmfs/volumes

 ds_101.template
 
 TM_MAD=vmfs
 DS_MAD=vmfs
 BASE_PATH=/vmfs/volumes
 CLONE_TARGET=SYSTEM
 DISK_TYPE=FILE
 LN_TARGET=NONE
 TYPE=IMAGE_DS
 BRIDGE_LIST=esx-ip

 Let me know if this alleviates the problem.

 Regards,

 -Tino

 [1]
 http://docs.opennebula.org/stable/design_and_installation/quick_starts/qs_centos_vmware.html
 --
 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, Jan 23, 2014 at 12:33 PM, Davide Papini dado...@gmail.com wrote:
  Hi Tino
 
  There is something I do not understand, there are two BASE_PATH
  attributes
  and they differ:
 
  BASE_PATH/var/lib/one//datastores/1/BASE_PATH
 
 
  TEMPLATE
  BASE_PATH![CDATA[/vmfs/volumes]]/BASE_PATH
  /TEMPLATE
 
  it seems I cannot get rid of the first one.
 
  perhaps that is the problem?
 
 
 
 
  On Thu, Jan 23, 2014 at 10:45 AM, Davide Papini dado...@gmail.com
  wrote:
 
  Hi Tino, Thanks for the fast answer,
 
  do I also need to keep the NFS FrontEnd resources mounted on the esxi?
  Specifically:
 
  /var/lib/one/datastores/0
  /var/lib/one/datastores/1
 
  I guess I have to delete the last one otherwise is going o conflict,
  should I delete also the first one?
 
  Thanks
 
 
 
 
  On Thu, Jan 23, 2014 at 10:03 AM, Tino Vazquez cvazq...@c12g.com
  wrote:
 
  Hi Davide,
 
  You need to rename datastore1 to just 1 in the ESX.
 
  Also, please update datastore 0 and 1 BASE_PATH in OpenNebula to
  /vmfs/volumes:
 
  $ onedatastore update 0
  SHARED=YES
  TM_MAD=vmfs
  TYPE=SYSTEM_DS
  BASE_PATH=/vmfs/volumes
 
  $ onedatastore update 1
  TM_MAD=vmfs
  DS_MAD=vmfs
  BASE_PATH=/vmfs/volumes
  CLONE_TARGET=SYSTEM
  DISK_TYPE=FILE
  LN_TARGET=NONE
  TYPE=IMAGE_DS
  BRIDGE_LIST=esx-ip
 
  Hope it helps,
 
  -Tino
 
  --
  OpenNebula - 

Re: [one-users] Unable to attach raw disk to vm

2014-01-23 Thread Marco Lanzotti - AD Glamor
On 23/01/2014 12:34, Javier Fontan wrote:
 --8--
 Wed Jan 22 16:59:22 2014 [VMM][D]: Message received: LOG I 27 Command
 execution fail: /var/tmp/one/vmm/kvm/attach_disk 'one-27'
 '/var/lib/one//datastores/0/27/disk.3' 'hdd' '3' 'PFZ[...]Pg==' 27 metal10
 --8--

 The device you're trying to attach is 'hdd'. That's an IDE disk in my book.

 virtio starts with 'vd' and scsi with 'sd'.

If I change prefix to 'sd' I have the same error:


Thu Jan 23 14:10:09 2014 [VMM][D]: Message received: LOG I 27
Successfully execute transfer manager driver operation: tm_attach.

Thu Jan 23 14:10:10 2014 [VMM][D]: Message received: LOG I 27 Command
execution fail: /var/tmp/one/vmm/kvm/attach_disk 'one-27'
'/var/lib/one//datastores/0/27/disk.3' 'sda' '0' 'PFZ[...]EE+' 27 metal10

Thu Jan 23 14:10:10 2014 [VMM][D]: Message received: LOG E 27
attach_disk: Command virsh --connect qemu:///system attach-device
one-27 /var/lib/one//datastores/0/27/disk.3.attach failed: error:
Failed to attach device from /var/lib/one//datastores/0/27/disk.3.attach

Thu Jan 23 14:10:10 2014 [VMM][D]: Message received: LOG I 27 error:
Unable to allow access for disk path
/var/lib/one//datastores/0/27/disk.3: No such file or directory

Thu Jan 23 14:10:10 2014 [VMM][D]: Message received: LOG E 27 Could not
attach /var/lib/one//datastores/0/27/disk.3 (sda) to one-27

Thu Jan 23 14:10:10 2014 [VMM][D]: Message received: LOG I 27 ExitCode: 1

Thu Jan 23 14:10:10 2014 [VMM][D]: Message received: LOG I 27 Failed to
execute virtualization driver operation: attach_disk.

Thu Jan 23 14:10:10 2014 [VMM][D]: Message received: ATTACHDISK FAILURE
27 Could not attach /var/lib/one//datastores/0/27/disk.3 (sda) to one-27


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


[one-users] Sunstone Cloud View -- Networks?

2014-01-23 Thread Campbell, Bill
Hello,

I really like the new Cloud sunstone view, but was wondering if it was
possible to add in the ability to select the network the instance will
connect to, similar to how the image is selectable?

 

  _  

Bill Campbell
Infrastructure Architect




Axcess Financial Services, Inc.
7755 Montgomery Rd., Suite 400
Cincinnati, OH  45236


NOTICE: Protect the information in this message in accordance with the 
company's security policies. If you received this message in error, immediately 
notify the sender and destroy all copies.___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Unable to attach raw disk to vm

2014-01-23 Thread Javier Fontan
I stopped reading too soon :(

--8--
Thu Jan 23 14:10:10 2014 [VMM][D]: Message received: LOG E 27
attach_disk: Command virsh --connect qemu:///system attach-device
one-27 /var/lib/one//datastores/0/27/disk.3.attach failed: error:
Failed to attach device from /var/lib/one//datastores/0/27/disk.3.attach

Thu Jan 23 14:10:10 2014 [VMM][D]: Message received: LOG I 27 error:
Unable to allow access for disk path
/var/lib/one//datastores/0/27/disk.3: No such file or directory
--8--

It seems it can not read the image to be attached. I am not used to
ceph datastore but I think that path is not correct. Maybe some other
in the list can tell you more.



On Thu, Jan 23, 2014 at 3:13 PM, Marco Lanzotti - AD Glamor
marco.lanzo...@adglamor.com wrote:
 On 23/01/2014 12:34, Javier Fontan wrote:
 --8--
 Wed Jan 22 16:59:22 2014 [VMM][D]: Message received: LOG I 27 Command
 execution fail: /var/tmp/one/vmm/kvm/attach_disk 'one-27'
 '/var/lib/one//datastores/0/27/disk.3' 'hdd' '3' 'PFZ[...]Pg==' 27 metal10
 --8--

 The device you're trying to attach is 'hdd'. That's an IDE disk in my book.

 virtio starts with 'vd' and scsi with 'sd'.

 If I change prefix to 'sd' I have the same error:


 Thu Jan 23 14:10:09 2014 [VMM][D]: Message received: LOG I 27
 Successfully execute transfer manager driver operation: tm_attach.

 Thu Jan 23 14:10:10 2014 [VMM][D]: Message received: LOG I 27 Command
 execution fail: /var/tmp/one/vmm/kvm/attach_disk 'one-27'
 '/var/lib/one//datastores/0/27/disk.3' 'sda' '0' 'PFZ[...]EE+' 27 metal10

 Thu Jan 23 14:10:10 2014 [VMM][D]: Message received: LOG E 27
 attach_disk: Command virsh --connect qemu:///system attach-device
 one-27 /var/lib/one//datastores/0/27/disk.3.attach failed: error:
 Failed to attach device from /var/lib/one//datastores/0/27/disk.3.attach

 Thu Jan 23 14:10:10 2014 [VMM][D]: Message received: LOG I 27 error:
 Unable to allow access for disk path
 /var/lib/one//datastores/0/27/disk.3: No such file or directory

 Thu Jan 23 14:10:10 2014 [VMM][D]: Message received: LOG E 27 Could not
 attach /var/lib/one//datastores/0/27/disk.3 (sda) to one-27

 Thu Jan 23 14:10:10 2014 [VMM][D]: Message received: LOG I 27 ExitCode: 1

 Thu Jan 23 14:10:10 2014 [VMM][D]: Message received: LOG I 27 Failed to
 execute virtualization driver operation: attach_disk.

 Thu Jan 23 14:10:10 2014 [VMM][D]: Message received: ATTACHDISK FAILURE
 27 Could not attach /var/lib/one//datastores/0/27/disk.3 (sda) to one-27


 Thank you,
 Marco



-- 
Javier Fontán Muiños
Developer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | @OpenNebula | github.com/jfontan
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Unable to attach raw disk to vm

2014-01-23 Thread Campbell, Bill
So I tried this (because I know it was working before) and here's what I
noticed:

1. The 'rbd.attach' file is being placed in the /var/lib/one directory.
Javier, might want to see about getting that moved to the VMID directory
under /var/lib/one/datastores/DSID, might conflict (assume it's a bug)

2. Here's the contents of the rbd.attach:

disk type='network' device='disk'
  driver name='qemu' type='raw' /
  source protocol='rbd' name='rbd/one-20'/
  target dev='vdb'/

/disk

This should work for deployments not utilizing newer libvirt, but for
those newer versions with CephX those parameters may need to be added to
this definition (they'll work either way, the changes that require those
settings in Libvirt is just the order in which it assumes that CephX is
used).  Make sense?

-Original Message-
From: users-boun...@lists.opennebula.org
[mailto:users-boun...@lists.opennebula.org] On Behalf Of Javier Fontan
Sent: Thursday, January 23, 2014 10:51 AM
To: Marco Lanzotti - AD Glamor
Cc: users@lists.opennebula.org
Subject: Re: [one-users] Unable to attach raw disk to vm

I stopped reading too soon :(

--8--
Thu Jan 23 14:10:10 2014 [VMM][D]: Message received: LOG E 27
attach_disk: Command virsh --connect qemu:///system attach-device
one-27 /var/lib/one//datastores/0/27/disk.3.attach failed: error:
Failed to attach device from /var/lib/one//datastores/0/27/disk.3.attach

Thu Jan 23 14:10:10 2014 [VMM][D]: Message received: LOG I 27 error:
Unable to allow access for disk path
/var/lib/one//datastores/0/27/disk.3: No such file or directory
--8--

It seems it can not read the image to be attached. I am not used to ceph
datastore but I think that path is not correct. Maybe some other in the
list can tell you more.



On Thu, Jan 23, 2014 at 3:13 PM, Marco Lanzotti - AD Glamor
marco.lanzo...@adglamor.com wrote:
 On 23/01/2014 12:34, Javier Fontan wrote:
 --8--
 Wed Jan 22 16:59:22 2014 [VMM][D]: Message received: LOG I 27 Command
 execution fail: /var/tmp/one/vmm/kvm/attach_disk 'one-27'
 '/var/lib/one//datastores/0/27/disk.3' 'hdd' '3' 'PFZ[...]Pg==' 27
 metal10
 --8--

 The device you're trying to attach is 'hdd'. That's an IDE disk in my
book.

 virtio starts with 'vd' and scsi with 'sd'.

 If I change prefix to 'sd' I have the same error:


 Thu Jan 23 14:10:09 2014 [VMM][D]: Message received: LOG I 27
 Successfully execute transfer manager driver operation: tm_attach.

 Thu Jan 23 14:10:10 2014 [VMM][D]: Message received: LOG I 27 Command
 execution fail: /var/tmp/one/vmm/kvm/attach_disk 'one-27'
 '/var/lib/one//datastores/0/27/disk.3' 'sda' '0' 'PFZ[...]EE+' 27
 metal10

 Thu Jan 23 14:10:10 2014 [VMM][D]: Message received: LOG E 27
 attach_disk: Command virsh --connect qemu:///system attach-device
 one-27 /var/lib/one//datastores/0/27/disk.3.attach failed: error:
 Failed to attach device from
 /var/lib/one//datastores/0/27/disk.3.attach

 Thu Jan 23 14:10:10 2014 [VMM][D]: Message received: LOG I 27 error:
 Unable to allow access for disk path
 /var/lib/one//datastores/0/27/disk.3: No such file or directory

 Thu Jan 23 14:10:10 2014 [VMM][D]: Message received: LOG E 27 Could
 not attach /var/lib/one//datastores/0/27/disk.3 (sda) to one-27

 Thu Jan 23 14:10:10 2014 [VMM][D]: Message received: LOG I 27
 ExitCode: 1

 Thu Jan 23 14:10:10 2014 [VMM][D]: Message received: LOG I 27 Failed
 to execute virtualization driver operation: attach_disk.

 Thu Jan 23 14:10:10 2014 [VMM][D]: Message received: ATTACHDISK
 FAILURE
 27 Could not attach /var/lib/one//datastores/0/27/disk.3 (sda) to
 one-27


 Thank you,
 Marco



--
Javier Fontán Muiños
Developer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | @OpenNebula | github.com/jfontan
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
NOTICE: Protect the information in this message in accordance with the 
company's security policies. If you received this message in error, immediately 
notify the sender and destroy all copies.
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Unable to attach raw disk to vm

2014-01-23 Thread Marco Lanzotti - AD Glamor
On Thu, Jan 23, 2014 at 12:22 PM, Marco Lanzotti - AD Glamor
marco.lanzo...@adglamor.com wrote:
 It's a virtual datablock on ceph filesystem, not an IDE disk.

I'm using one 4.2, so probably it's a bug
http://dev.opennebula.org/issues/2106

I will try to upgrade to one 4.4

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


[one-users] Confused about VNC ports with the KVM hypervisor

2014-01-23 Thread Gerry O'Brien


Hi,

I'm a little confused about VNC ports with the KVM hypervisor. From 
the documentation excerpt below I would have expected that the KVM would 
have had -vnc 0.0.0.0:7744 instead of -vnc 0.0.0.0:1844. Below is also 
the Sunstone Graphice part of the template for the Vm.
The machine was generated by the OCCI-server. I would like to 
firewall the VM but allow access for ports  5900 so that users can get 
access to the VNC.


What is the real port on the host for KVM with -vnc 0.0.0.0:1844?

   Could someone clarify this for me.

Thanks,
  Gerry




http://docs.opennebula.org/pdf/4.4/opennebula_4.4_user_guide.pdf

Warning:
For KVM hypervisor the port number is a real one, not the VNC port. So 
for VNC port 0 you should

specify 5900, for port 1 is 5901 and so on.


GRAPHICS
LISTEN  0.0.0.0
PORT7744
TYPEvnc






oneadmin 26348 1 39 17:48 ?00:00:27 /usr/bin/kvm -S -M 
pc-1.1 -enable-kvm -m 512 -smp 1,sockets=1,cores=1,threads=1 -name 
one-1844 -uuid e570e501-f90e-fcc3-215c-43d0ba828349 -no-user-config 
-nodefaults -chardev 
socket,id=charmonitor,path=/var/lib/libvirt/qemu/one-1844.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/103/1844/disk.0,if=none,id=drive-ide0-0-0,format=qcow2,cache=none 
-device 
ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 
-netdev tap,fd=23,id=hostnet0 -device 
rtl8139,netdev=hostnet0,id=net0,mac=02:00:0a:3e:00:04,bus=pci.0,addr=0x3 
-vnc 0.0.0.0:1844 -vga cirrus -device 
virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4


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


[one-users] Setting up IPv6..

2014-01-23 Thread David
How do you do it? The documentation is baffling for people new to IPv6.Like 
where do I get the site prefix of my address? global? what's the difference 
between them? Do I use the MAC address in ifconfig? If I have a /64 is my 
network size 64? 
What do I do? How do I set this up correctly?   
  ___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] not difficult questions

2014-01-23 Thread Qiubo Su (David Su)
Dear Tino and OpenNebula Community,

1) can update the TM_MAD for datastore in Sunstone.

2) the content of ds.conf is as below.

NAME = production
DS_MAD = vmware
TM_MAD = shared

do you mean need to update it as below?

NAME = production
DS_MAD = vmfs
TM_MAD = vmfs

if using the 1st ds.conf, it has to manually create the
/var/lib/one/var/datastores/100, so to be able to thin provisioned the
disk.vmdk *(actually the Ubuntu.vmdk file in the package download from
http://www.trendsigma.net/vmware/ubuntu1110t.html
http://www.trendsigma.net/vmware/ubuntu1110t.html)* by running
vmkfstools -username root -password redhat123 -server esxi01 -i '[100]
/images/disk.vmdk' -d thin '[100] /images/disk1.vmdk' in the front end
server? (the name of this experiment is called OpenNebula 3.8.1 and VMware
ESXI 5.0.0 Using shared VMware and ssh transfer drivers).

if using the 2nd ds.conf, can  how can the purpose of the experiment be
achieved?

kind regards,
q.s.

On Wed, Jan 22, 2014 at 11:04 PM, Tino Vazquez cvazq...@c12g.com wrote:

 Hi,

 About 1), do you get the same behaviour if you try and change it
 through Sunstone?

 Regarding 2), can you share the contents of the datastore template
 (ds.conf)? If you want to use VMware datastores, please note that the
 correct name for the TM and DS drivers are 'vmfs'. These drivers
 *won't* create a directory in the front-end since the datastores are
 only present in the ESX hosts.

 Moreover, BASE_PATH in VMware datastores need to be set to /vmfs/volumes.

 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 Sat, Jan 18, 2014 at 6:10 AM, Qiubo Su (David Su) qiub...@gmail.com
 wrote:
  Dear OpenNebula Community,
 
  For 2) problem listed in the below previous email, I created the
 datastore
  manually by running onedatastore create ds.conf and created another one
  from Sunstone, but in both cases, can't see the
  /var/lib/one/var/datastores/101 directory in the file system (../102
  directory in the Sunstone case), even though can see the BASE PATH :
  /var/lib/one/var/datastores/101 when run onedatastore show 101.
 
  It is much appreciated if anyone can help with this, tell me why there is
  this problem and how to fix it? Thank you very much and Have a Great
 Weekend
  !
 
 
 **
 
  Sat Jan 18 17:48:40 2014 [ReM][D]: Req:5712 UID:0 HostPoolInfo invoked
  Sat Jan 18 17:48:40 2014 [ReM][D]: Req:5712 UID:0 HostPoolInfo result
  SUCCESS, HOST_POOLHOSTID...
  Sat Jan 18 17:48:40 2014 [ReM][D]: Req:3376 UID:0 VirtualMachinePoolInfo
  invoked, -2, -1, -1, -1
  Sat Jan 18 17:48:40 2014 [ReM][D]: Req:3376 UID:0 VirtualMachinePoolInfo
  result SUCCESS, VM_POOL/VM_POOL
  Sat Jan 18 17:48:40 2014 [ReM][D]: Req:4704 UID:0 AclInfo invoked
  Sat Jan 18 17:48:40 2014 [ReM][D]: Req:4704 UID:0 AclInfo result SUCCESS,
  ACL_POOLACLID0...
  Sat Jan 18 17:48:43 2014 [AuM][D]: Message received: LOG I 79 ExitCode: 0
 
  Sat Jan 18 17:48:43 2014 [AuM][I]: ExitCode: 0
  Sat Jan 18 17:48:43 2014 [AuM][D]: Message received: AUTHENTICATE
 SUCCESS 79
  -
 
  Sat Jan 18 17:48:43 2014 [ReM][D]: Req:32 UID:0 DatastoreAllocate
 invoked,
  DISK_TYPE=block..., -1
  Sat Jan 18 17:48:43 2014 [ReM][D]: Req:32 UID:0 DatastoreAllocate result
  SUCCESS, 102
  Sat Jan 18 17:48:43 2014 [ReM][D]: Req:6800 UID:0 DatastoreInfo invoked,
 102
  Sat Jan 18 17:48:43 2014 [ReM][D]: Req:6800 UID:0 DatastoreInfo result
  SUCCESS, DATASTOREID102/...
  Sat Jan 18 17:48:45 2014 [ReM][D]: Req:1200 UID:0 DatastorePoolInfo
 invoked
  Sat Jan 18 17:48:45 2014 [ReM][D]: Req:1200 UID:0 DatastorePoolInfo
 result
  SUCCESS, DATASTORE_POOLDAT...
  Sat Jan 18 17:48:51 2014 [ReM][D]: Req:6880 UID:0 TemplatePoolInfo
 invoked,
  -2, -1, -1
  Sat Jan 18 17:48:51 2014 [ReM][D]: Req:6880 UID:0 TemplatePoolInfo result
  SUCCESS, VMTEMPLATE_POOL/V...
  Sat Jan 18 17:49:05 2014 [ReM][D]: Req:5360 UID:0 HostPoolInfo invoked
  Sat Jan 18 17:49:05 2014 [ReM][D]: Req:5360 UID:0 HostPoolInfo result
  SUCCESS, HOST_POOLHOSTID...
  Sat Jan 18 17:49:06 2014 [ReM][D]: Req:3328 UID:0 AclInfo invoked
  Sat Jan 18 17:49:06 

[one-users] OpenNebula 3.8.1 and VMware ESXI 5.0.0 using shared VMware and SSH transfer drivers

2014-01-23 Thread Qiubo Su (David Su)
Dear OpenNebula Community,

I have been using virt-manager *(KVM, QEMU and Libvirtd-0.9.8 installed for
managing VMs)* to manage VMs in the physical server installed OpenNebula
platform. But to experiment OpenNebula 3.8.1 and VMware ESXI 5.0.0 using
shared VMware and SSH transfer drivers, I configured this OpenNebula front
end server to support VMware ESXI 5.0.0 as below:

*Configure Virsh with ESX*

1) root@apt-get install libgnutls-dev libdevmapper-dev libcurl4-gnutls-dev
python-dev libnl-dev libapparmor-dev libxml2

2) Download Libvirt-0.9.10 so that we configure it for ESX support. Untar
it post download and change folder to tarred one.
root@wget http://libvirt.org/sources/libvirt-0.9.10.tar.gz
root@tar xvzf libvirt-0.9.10.tar.gz
root@cd libvirt-0.9.10

3) Configure Libvirt for ESX support with the following commands:
root@ ./configure --with-esx --with-apparmor --sysconfdir=/etc
--libdir=/usr/lib --sbindir=/usr/sbin --datarootdir=/usr/share
--localstatedir=/var --libexecdir=/usr/lib/libvirt
root@ make
root@ make install
root@cp -a examples/apparmor/usr.* /etc/apparmor.d/
root@cp -a examples/apparmor/TEMPLATE /etc/apparmor.d/libvirt/
root@cp -a examples/apparmor/libvirt-qemu /etc/apparmor.d/abstractions/
root@ cat /etc/apparmor.d/usr.sbin.libvirtd
root@cat /etc/apparmor.d/usr.sbin.libvirtd | grep owner
root@/etc/init.d/apparmor restart

After configure Libvirt (libvirtd-0.9.10) for ESX support , can't use
virt-manager anymore (no /var/run/libvirt/libvirt-sock file exists). If
want to use virt-manager again, it seems need to uninstall/clean
libvirtd-0.9.10 and reinstall libvritd-0.9.8 (the one used before install
libvirtd-0.9.10).

 But under /libvirtd-0.9.10 directory, run “make clean/uninstall” and then
run “sudo apt-get install –reinstall qemu-kvm libvirt-bin ubuntu-vm-builder
bridge-utils ruby”, can't get libvirtd-0.9.8 back, can't see
/var/run/libvirt/libvirt-sock file either, even worse, can't find
libvirtd.conf and qemu.conf under /etc/libvirt/ as well. I didn't update
the ~/etc/oned.conf file (after updated it for supporting VMware esxi), is
it necessary to update it?

In this circumstance, how to make the virt-manager available to be used
again as before in this OpenNebula front end server? It will be good to
configure the front end server in a way that support both KVM and VMware
hypervisors at the same time, is this possible?

Thank you very much for your help and Have a great weekend !

Kind regards,
Q.D.S
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org