[one-users] ONE 4.8 - Datastore location

2014-09-17 Thread Anandharaj Subramaniam
Hi,

I have deleted existing default datastores (ID: 0,1,2) and created 2 new 
datastore for image and system with the base path set to NFS mount point. Below 
is the details of the new datastore.

[oneadmin@server ~]$ onedatastore list
  ID NAMESIZE AVAIL CLUSTER  IMAGES TYPE DS   TM
102 ds-sys-nfs-0150G 96%   - 0 sys  -shared
103 ds-img-nfs-01   1.8T 100%  - 2 img  fs   shared
[oneadmin@server ~]$ onedatastore show 102
DATASTORE 102 INFORMATION
ID : 102
NAME   : ds-sys-nfs-01
USER   : oneadmin
GROUP  : oneadmin
CLUSTER: -
TYPE   : SYSTEM
DS_MAD : -
TM_MAD : shared
BASE PATH  : /one/datastores/102
DISK_TYPE  : FILE

DATASTORE CAPACITY
TOTAL: : 50G
FREE:  : 48.2G
USED:  : 0M
LIMIT: : -

PERMISSIONS
OWNER  : um-
GROUP  : u--
OTHER  : ---

DATASTORE TEMPLATE
BASE_PATH=/one/datastores/
SHARED=YES
TM_MAD=shared
TYPE=SYSTEM_DS

IMAGES
[oneadmin@server ~]$ onedatastore show 103
DATASTORE 103 INFORMATION
ID : 103
NAME   : ds-img-nfs-01
USER   : oneadmin
GROUP  : oneadmin
CLUSTER: -
TYPE   : IMAGE
DS_MAD : fs
TM_MAD : shared
BASE PATH  : /one/datastores/103
DISK_TYPE  : FILE

DATASTORE CAPACITY
TOTAL: : 1.8T
FREE:  : 1.8T
USED:  : 399M
LIMIT: : -

PERMISSIONS
OWNER  : um-
GROUP  : u--
OTHER  : ---

DATASTORE TEMPLATE
BASE_PATH=/one/datastores/
CLONE_TARGET=SYSTEM
DISK_TYPE=FILE
DS_MAD=fs
LN_TARGET=NONE
TM_MAD=shared
TYPE=IMAGE_DS

IMAGES
0
1

As we can see, both DS is using new path but the DS capacity info for DS 102 is 
wrong - it displaying the size of /var/lib/one

When I deploy the VM, I got the following error messages.

[root@server one]# tail 0.log
Wed Sep 17 15:03:06 2014 [Z0][DiM][I]: New VM state is ACTIVE.
Wed Sep 17 15:03:06 2014 [Z0][LCM][I]: New VM state is PROLOG.
Wed Sep 17 15:03:06 2014 [Z0][TM][I]: Command execution fail: 
/var/lib/one/remotes/tm/shared/clone 
server.mimos.local:/one/datastores/103/01420afc51ab1be828f0e877cb980113 
server.mimos.local:/var/lib/one//datastores/102/0/disk.1 0 103
Wed Sep 17 15:03:06 2014 [Z0][TM][I]: clone: Cloning 
/var/lib/one/datastores/103/01420afc51ab1be828f0e877cb980113 in 
server.mimos.local:/var/lib/one//datastores/102/0/disk.1
Wed Sep 17 15:03:06 2014 [Z0][TM][E]: clone: Command cd 
/var/lib/one/datastores/102/0; cp 
/var/lib/one/datastores/103/01420afc51ab1be828f0e877cb980113 
/var/lib/one/datastores/102/0/disk.1 failed: Warning: Permanently added 
'server.mimos.local,192.168.254.94' (ECDSA) to the list of known hosts.
Wed Sep 17 15:03:06 2014 [Z0][TM][I]: cp: cannot stat 
'/var/lib/one/datastores/103/01420afc51ab1be828f0e877cb980113': No such file or 
directory
Wed Sep 17 15:03:06 2014 [Z0][TM][E]: Error copying 
server.mimos.local:/one/datastores/103/01420afc51ab1be828f0e877cb980113 to 
server.mimos.local:/var/lib/one//datastores/102/0/disk.1
Wed Sep 17 15:03:06 2014 [Z0][TM][I]: ExitCode: 1
Wed Sep 17 15:03:06 2014 [Z0][TM][E]: Error executing image transfer script: 
Error copying 
server.mimos.local:/one/datastores/103/01420afc51ab1be828f0e877cb980113 to 
server.mimos.local:/var/lib/one//datastores/102/0/disk.1
Wed Sep 17 15:03:06 2014 [Z0][DiM][I]: New VM state is FAILED

From the above message, I can see that it is still referring to /var/lib/one/ 
directory. What I have missed here? The BASE_PATH in DS page is for what 
actually?

Note: Management and Node on the same server.

--
Regards,
Anandharaj



DISCLAIMER:


This e-mail (including any attachments) is for the addressee(s) only and may be 
confidential, especially as regards personal data. If you are not the intended 
recipient, please note that any dealing, review, distribution, printing, 
copying or use of this e-mail is strictly prohibited. If you have received this 
email in error, please notify the sender immediately and delete the original 
message (including any attachments).


MIMOS Berhad is a research and development institution under the purview of the 
Malaysian Ministry of Science, Technology and Innovation. Opinions, conclusions 
and other information in this e-mail that do not relate to the official 
business of MIMOS Berhad and/or its subsidiaries shall be understood as neither 
given nor endorsed by MIMOS Berhad and/or its subsidiaries and neither MIMOS 
Berhad nor its subsidiaries accepts responsibility for the same. All liability 
arising from or in connection with computer viruses and/or corrupted e-mails is 
excluded to the fullest extent permitted by law.


--
-
-
DISCLAIMER:

This e-mail (including any attachments) is for the addressee(s)
only and may contain confidential information. If you are not the
intended recipient, please note 

Re: [one-users] Cloud view and available tabs

2014-09-17 Thread Daniel Molina
Hi,

Those tabs cannot be enabled in the cloud view. The cloud view was
developed for an specific usage model and that functionality was not
included, you can use the user view if you want to customize sunstone for a
custom model.

The only configurable options for cloud view are:

provision_logo: images/one_small_logo.png
enabled_tabs:
provision-tab: true
tabs:
provision-tab:
panel_tabs:
users: false
flows: true
actions:
Template.chmod: false
Template.delete: true
dashboard:
quotas: true
vms: true
vdcquotas: false
vdcvms: false
users:  false

More info
http://docs.opennebula.org/4.8/design_and_installation/building_your_cloud/understand.html
http://docs.opennebula.org/4.8/administration/sunstone_gui/cloud_view.html

Cheers


On 15 September 2014 16:47, Daniel Dehennin daniel.dehen...@baby-gnu.org
wrote:

 Hamada, Ondrej ondrej.ham...@acision.com writes:

  Hi,

 Hello,

  You should edit the file /etc/one/sunstone-views/cloud.yaml and restart
 sunstone.

 I already copy the user.yaml to enable tabs for a group, but the
 cloud.yaml is quite empty and I don't know what could be added.

 I'll try to add the vms-tab...

 Regards.
 --
 Daniel Dehennin
 Récupérer ma clef GPG: gpg --recv-keys 0xCC1E9E5B7A6FE2DF
 Fingerprint: 3E69 014E 5C23 50E8 9ED6  2AAD CC1E 9E5B 7A6F E2DF

 ___
 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.8 Create VM

2014-09-17 Thread Daniel Molina
For the next release we are trying to remove as many modals/dialogs as we
can, and those forms will use the whole window

On 26 August 2014 15:23, PROULX, Lorraine (Lorraine) 
lorraine.pro...@alcatel-lucent.com wrote:

  Hi.



 I have set the dialog width in the function setupCreateVMDialog of
 vms-tab.js to 1%: dialog.width(“1%”);



 With that set, the Create VM window renders OK in Google Chrome on Red Hat
 (except it is a bit large) and still renders OK in Google Chrome on Windows
 and in Firefox.



 I guess this is a workaround for now?



 Thanks, Lorraine



 *From:* Daniel Molina [mailto:dmol...@opennebula.org]
 *Sent:* Monday, August 25, 2014 6:13 AM
 *To:* PROULX, Lorraine (Lorraine)
 *Cc:* users@lists.opennebula.org
 *Subject:* Re: [one-users] Opennebula 4.8 Create VM



 Hi,



 Does it render ok if you resize the window to a larger size?



 Cheers



 On 22 August 2014 20:05, PROULX, Lorraine (Lorraine) 
 lorraine.pro...@alcatel-lucent.com wrote:

 Hi.



 The Create Virtual Machine window does not render properly on Google
 chrome on Red Hat.



 I have included a screen capture of the window.



 The same window renders correctly on Firefox and on Google Chrome on
 Windows.



 Thanks, Lorraine



 [image: Screenshot.png]


 ___
 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




-- 
--
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] oneimage filter by path or source

2014-09-17 Thread Carlos Martín Sánchez
Hi,

On Sat, Sep 13, 2014 at 2:45 PM, Daniel Dehennin 
daniel.dehen...@baby-gnu.org wrote:

 Maxim Terletskiy terlets...@emu.ru writes:

  Is it possible to list images with specific path or source?

 Good afternoon,

 This feature[1] is already registered in the backlog.

 Regards.

 Footnotes:
 [1]  http://dev.opennebula.org/issues/2372


Actually, since the source is not a column, ticket 2372 would not apply.
This would require a more general filter.

Maxim, what would be your use case?
If you need to do a one-time search, you can filter the data through the
api [1] or using xpath:

$ oneimage list -x | xpath  -e
'/IMAGE_POOL/IMAGE[PATH=/tmp/ttylinux.raw]/ID'

Regards.

[1] http://docs.opennebula.org/4.8/integration/system_interfaces/ruby.html

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


Re: [one-users] oneimage filter by path or source

2014-09-17 Thread Daniel Dehennin
Carlos Martín Sánchez cmar...@opennebula.org writes:


[...]

 Actually, since the source is not a column, ticket 2372 would not apply.
 This would require a more general filter.

 Maxim, what would be your use case?
 If you need to do a one-time search, you can filter the data through the
 api [1] or using xpath:

 $ oneimage list -x | xpath  -e
 '/IMAGE_POOL/IMAGE[PATH=/tmp/ttylinux.raw]/ID'

+1

I used the xpath tool from libxml-xpath-perl to make several complicated
XPath queries to find images not used by any templates.

Finaly, I prefer this solution since it's more UNIX' spirit, piping
several simple[1] commands.

Regards.

Footnotes: 
[1]  In term of XPath, simple looks like a joke ;-)

-- 
Daniel Dehennin
Récupérer ma clef GPG: gpg --recv-keys 0xCC1E9E5B7A6FE2DF
Fingerprint: 3E69 014E 5C23 50E8 9ED6  2AAD CC1E 9E5B 7A6F E2DF


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


Re: [one-users] 4.8 with vSphere single node datastores

2014-09-17 Thread Tino Vazquez
Hi Stan,

Strange, does it consistently work now, or are you getting randomly
errors and correct behaviour from the IM driver?

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 16 September 2014 21:35, Stan Yarbrough stan.yarbro...@oriontech.com wrote:
 It works an hour later:

 [oneadmin@otscsfe01 vmware]$ /var/lib/one/remotes/im/vmware.d/vmware.rb 
 itwesx01
 MODELNAME=Intel(R) Xeon(R) CPU   X5680  @ 3.33GHz
 CPUSPEED=3332
 TOTALCPU=1200
 USEDCPU=22.15
 FREECPU=1177.85
 TOTALMEMORY=75486960
 USEDMEMORY=26682368
 FREEMEMORY=48804592
 NETRX=6719
 NETTX=4659
 DS=[ID=ITWESX01-DS01,USED_MB=972,TOTAL_MB=132352,FREE_MB=131380]
 DS=[ID=ITWNTAP01-VOL01,USED_MB=440723,TOTAL_MB=1802240,FREE_MB=1361517]
 DS=[ID=ITWNTAP01-VOL02,USED_MB=266227,TOTAL_MB=1781760,FREE_MB=1515533]
 DS=[ID=OTSCSFE01-DS0,USED_MB=4031,TOTAL_MB=36454,FREE_MB=32423]
 DS=[ID=OTSCSFE01-DS1,USED_MB=4031,TOTAL_MB=36454,FREE_MB=32423]
 VM_POLL=YES
 VM = [ID=-1,DEPLOY_ID=ITWVCSPOOL01,POLL=STATE=a USEDCPU=3.18 
 USEDMEMORY=4241408 NETRX=134 NETTX=2]
 VM = [ID=-1,DEPLOY_ID=OTSCSFE01,POLL=STATE=a USEDCPU=27.16 
 USEDMEMORY=1746944 NETRX=2581 NETTX=604]
 VM = [ID=-1,DEPLOY_ID=ITWVDIESX01,POLL=STATE=a USEDCPU=5.88 
 USEDMEMORY=4382720 NETRX=0 NETTX=175]
 VM = [ID=-1,DEPLOY_ID=Analytics VM,POLL=STATE=a USEDCPU=2.28 
 USEDMEMORY=6758400 NETRX=217 NETTX=1]
 VM = [ID=-1,DEPLOY_ID=ITWVDIESX02,POLL=STATE=a USEDCPU=4.35 
 USEDMEMORY=2658304 NETRX=0 NETTX=42]
 VM = [ID=-1,DEPLOY_ID=ITWFS01,POLL=STATE=a USEDCPU=0.30 USEDMEMORY=4234240 
 NETRX=35 NETTX=0]
 [oneadmin@otscsfe01 vmware]$


 Stan Yarbrough
 Chief Technology Officer
 Orion Technology Services
 704-307-1633
 600 Galleria Parkway SE | Suite 1450
 Atlanta, Georgia 30339
 stan.yarbro...@oriontech.com | www.oriontech.com








 The information transmitted is intended only for the person or entity to 
 which it is addressed and may contain confidential and/or privileged 
 material. Any review, retransmission, dissemination or other use of, or 
 taking of any action in reliance upon, this information by persons or 
 entities other than the intended recipient is prohibited. If you received 
 this in error, please contact the sender and delete the material from any 
 computer.


 -Original Message-
 From: Tino Vazquez [mailto:cvazq...@c12g.com]
 Sent: Tuesday, September 16, 2014 8:28 AM
 To: users; Stan Yarbrough
 Subject: Re: [one-users] 4.8 with vSphere single node datastores

 Hi Stan,

 From the last mail, I think you may be using ESX 5.5, please note that this 
 version is currently not supported by OpenNebula. Having said this, we are in 
 the process of supporting it and there seems to be no many issues, so we can 
 try and fix it in your installation.

 The problem you are experiencing comes from a bad monitoring of the ESX host. 
 Please send us the output of the following command (as oneadmin, in the 
 front-end):

  $  /var/lib/one/remotes/im/vmware.d/vmware.rb hostname-of-esx-server

 Best regards,

 -Tino




 -- Forwarded message --
 From: Stan Yarbrough stan.yarbro...@oriontech.com
 Date: 15 September 2014 20:36
 Subject: RE: [one-users] 4.8 with vSphere single node datastores
 To: Tino Vazquez cvazq...@c12g.com


 I did find one issue.  The UID for ESX servers defaults to 1000 when
 you create the user oneadmin.  The UID for FE is 1001, so icreated a
 dummy user in esx to increase the UID count.  I also reconfigured SSH
 for the hosts so that it will login.  Ensured that oneadmin has access
 to the ESX Shell.  ESX shell and SSH services are running on all
 hosts.

 Nothing different though.


 Stan Yarbrough
 Chief Technology Officer
 Orion Technology Services
 704-307-1633
 600 Galleria Parkway SE | Suite 1450
 Atlanta, Georgia 30339
 stan.yarbro...@oriontech.com | www.oriontech.com








 The information transmitted is intended only for the person or entity
 to which it is addressed and may contain confidential and/or
 privileged material. Any review, retransmission, dissemination or
 other use of, or taking of any action in reliance upon, this
 information by persons or entities other than the intended recipient
 is 

Re: [one-users] 4.8 with vSphere single node datastores

2014-09-17 Thread Tino Vazquez
Hi Stan,

It looks like the driver cannot find the OpenNebula vmware library
(vi_client.rb). Could you confirm that it is indeed present in
/var/lib/one/remotes/vmm/vmware/vi_driver.rb)?

Also, make sure that ONE_LOCATION is not set (echo $ONE_LOCATION).

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 17 September 2014 12:18, Stan Yarbrough stan.yarbro...@oriontech.com wrote:
 Tino:

 It is consistently not working now...  I did a complete reinstallation to 
 ensure that I haven’t missed something.  Could it be a problem with the ruby 
 version?

 [oneadmin@itwcsfe01-inthewoods-local ~]$ ruby -v
 ruby 2.0.0p353 (2013-11-22) [x86_64-linux]

 [oneadmin@itwcsfe01-inthewoods-local ~]$ 
 /var/lib/one/remotes/im/vmware.d/vmware.rb itwesx01
 /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:53:in `require': 
 cannot load such file -- vi_driver (LoadError)
 from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:53:in 
 `require'
 from /var/lib/one/remotes/im/vmware.d/vmware.rb:29:in `main'

 [oneadmin@itwcsfe01-inthewoods-local ~]$ 
 /var/lib/one/remotes/im/vmware.d/vmware.rb itwesx01.intehwoods.local
 /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:53:in `require': 
 cannot load such file -- vi_driver (LoadError)
 from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:53:in 
 `require'
 from /var/lib/one/remotes/im/vmware.d/vmware.rb:29:in `main'

 [oneadmin@itwcsfe01-inthewoods-local ~]$ 
 /var/lib/one/remotes/im/vmware.d/vmware.rb 172.31.34.31
 /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:53:in `require': 
 cannot load such file -- vi_driver (LoadError)
 from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:53:in 
 `require'
 from /var/lib/one/remotes/im/vmware.d/vmware.rb:29:in `main'
 [oneadmin@itwcsfe01-inthewoods-local ~]$

 [oneadmin@itwcsfe01-inthewoods-local ~]$ onedatastore show 0
 DATASTORE 0 INFORMATION
 ID : 0
 NAME   : system
 USER   : oneadmin
 GROUP  : oneadmin
 CLUSTER: -
 TYPE   : SYSTEM
 DS_MAD : -
 TM_MAD : vmfs
 BASE PATH  : /vmfs/volumes/0
 DISK_TYPE  : FILE

 DATASTORE CAPACITY
 TOTAL: : 0M
 FREE:  : 0M
 USED:  : 0M
 LIMIT: : -

 PERMISSIONS
 OWNER  : um-
 GROUP  : u--
 OTHER  : ---

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

 IMAGES

 [oneadmin@itwcsfe01-inthewoods-local ~]$ onedatastore show 1  
   DATASTORE 1 INFORMATION
 ID : 1
 NAME   : default
 USER   : oneadmin
 GROUP  : oneadmin
 CLUSTER: -
 TYPE   : IMAGE
 DS_MAD : vmfs
 TM_MAD : vmfs
 BASE PATH  : /vmfs/volumes/1
 DISK_TYPE  : FILE

 DATASTORE CAPACITY
 TOTAL: : 249M
 FREE:  : 91M
 USED:  : 0M
 LIMIT: : -

 PERMISSIONS
 OWNER  : um-
 GROUP  : u--
 OTHER  : ---

 DATASTORE TEMPLATE
 BASE_PATH=/vmfs/volumes/
 BRIDGE_LIST=itwesx01.inthewoods.local itwesx02.inthewoods.local 
 itwesx03.inthewoods.local itwesx04.inthewoods.local itwesx05.inthewoods.local 
 itwesx06.inthewoods.local
 CLONE_TARGET=SYSTEM
 DISK_TYPE=FILE
 DS_MAD=vmfs
 LN_TARGET=NONE
 TM_MAD=vmfs
 TYPE=IMAGE_DS

 IMAGES





 Stan Yarbrough
 Chief Technology Officer
 Orion Technology Services
 704-307-1633
 600 Galleria Parkway SE | Suite 1450
 Atlanta, Georgia 30339
 stan.yarbro...@oriontech.com | www.oriontech.com








 The information transmitted is intended only for the person or entity to 
 which it is addressed and may contain confidential and/or privileged 
 material. Any review, retransmission, dissemination or other use of, or 
 taking of any action in reliance upon, this information by persons or 
 entities other than the intended recipient is prohibited. If you received 
 this in error, please contact the sender and delete the material from any 
 computer.


 -Original Message-
 From: Tino Vazquez [mailto:cvazq...@c12g.com]
 Sent: Wednesday, September 17, 2014 6:01 AM
 To: Stan Yarbrough
 Cc: users
 

[one-users] Fwd: 4.8 with vSphere single node datastores

2014-09-17 Thread Tino Vazquez
--
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.



-- Forwarded message --
From: Stan Yarbrough stan.yarbro...@oriontech.com
Date: 17 September 2014 12:38
Subject: RE: [one-users] 4.8 with vSphere single node datastores
To: Tino Vazquez cvazq...@c12g.com


I'm not sure if you are asking me to locate vi_client.rb in
vi_driver.rb or just looking for the location of vi_client.rb...

There is no vi_client.rb installed and vi_driver is located in the
path that you provided.  $ONE_LOCATION is not set:

 [oneadmin@itwcsfe01-inthewoods-local vmware]$ locate vi_driver
/usr/lib/one/ruby/vi_driver.rb
/var/lib/one/remotes/vmm/vmware/vi_driver.rb

[oneadmin@itwcsfe01-inthewoods-local vmware]$ locate vi_client

[oneadmin@itwcsfe01-inthewoods-local vmware]$ locate vi_client.rb

[oneadmin@itwcsfe01-inthewoods-local vmware]$ echo $ONE_LOCATION

[oneadmin@itwcsfe01-inthewoods-local vmware]$


Stan Yarbrough
Chief Technology Officer
Orion Technology Services
704-307-1633
600 Galleria Parkway SE | Suite 1450
Atlanta, Georgia 30339
stan.yarbro...@oriontech.com | www.oriontech.com








The information transmitted is intended only for the person or entity
to which it is addressed and may contain confidential and/or
privileged material. Any review, retransmission, dissemination or
other use of, or taking of any action in reliance upon, this
information by persons or entities other than the intended recipient
is prohibited. If you received this in error, please contact the
sender and delete the material from any computer.


-Original Message-
From: Tino Vazquez [mailto:cvazq...@c12g.com]
Sent: Wednesday, September 17, 2014 6:29 AM
To: Stan Yarbrough
Cc: users
Subject: Re: [one-users] 4.8 with vSphere single node datastores

Hi Stan,

It looks like the driver cannot find the OpenNebula vmware library
(vi_client.rb). Could you confirm that it is indeed present in
/var/lib/one/remotes/vmm/vmware/vi_driver.rb)?

Also, make sure that ONE_LOCATION is not set (echo $ONE_LOCATION).

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 17 September 2014 12:18, Stan Yarbrough stan.yarbro...@oriontech.com wrote:
 Tino:

 It is consistently not working now...  I did a complete reinstallation to 
 ensure that I haven’t missed something.  Could it be a problem with the ruby 
 version?

 [oneadmin@itwcsfe01-inthewoods-local ~]$ ruby -v ruby 2.0.0p353
 (2013-11-22) [x86_64-linux]

 [oneadmin@itwcsfe01-inthewoods-local ~]$
 /var/lib/one/remotes/im/vmware.d/vmware.rb itwesx01 
 /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:53:in `require': 
 cannot load such file -- vi_driver (LoadError)
 from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:53:in 
 `require'
 from /var/lib/one/remotes/im/vmware.d/vmware.rb:29:in `main'

 [oneadmin@itwcsfe01-inthewoods-local ~]$
 /var/lib/one/remotes/im/vmware.d/vmware.rb itwesx01.intehwoods.local 
 /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:53:in `require': 
 cannot load such file -- vi_driver (LoadError)
 from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:53:in 
 `require'
 from /var/lib/one/remotes/im/vmware.d/vmware.rb:29:in `main'

 [oneadmin@itwcsfe01-inthewoods-local ~]$
 /var/lib/one/remotes/im/vmware.d/vmware.rb 172.31.34.31 
 

[one-users] Fwd: 4.8 with vSphere single node datastores

2014-09-17 Thread Tino Vazquez
Hi,
.
Yes, that was a typo on my side, it is vi_driver.rb, nor vi_client.

That gem (rbvmomi) is vendorized in OpenNebula, it should be present
in /usr/lib/one/ruby/vendors.

There must be something wrong with your installation, could you share
the platform you are installing it in (ie, the OS installed in the
front-end)? And also, did you install it using packages from the
OpenNebula site, and if so, which version?

Best,

-Tino

-- Forwarded message --
From: Stan Yarbrough stan.yarbro...@oriontech.com
Date: 17 September 2014 12:58
Subject: RE: [one-users] 4.8 with vSphere single node datastores
To: Tino Vazquez cvazq...@c12g.com


I found a dependency to the rbvmomi gem in vi_driver.rb, which was not
installed.  I have installed the gem and the function works.  However,
the df on the system and image volumes still report empty.  Is there a
way to verify that the /vmfs/



In vi_driver:40  require 'rbvmomi'



[oneadmin@itwcsfe01-inthewoods-local vmware]$
/var/lib/one/remotes/im/vmware.d/vmware.rb itwesx01.inthewoods.local

MODELNAME=Intel(R) Xeon(R) CPU   X5680  @ 3.33GHz

CPUSPEED=3332

TOTALCPU=1200

USEDCPU=19.66

FREECPU=1180.34

TOTALMEMORY=75486960

USEDMEMORY=30013440

FREEMEMORY=45473520

NETRX=4234

NETTX=3090

DS=[ID=ITWESX01-DS01,USED_MB=972,TOTAL_MB=132352,FREE_MB=131380]

DS=[ID=ITWNTAP01-VOL01,USED_MB=440723,TOTAL_MB=1802240,FREE_MB=1361517]

DS=[ID=ITWNTAP01-VOL02,USED_MB=266227,TOTAL_MB=1781760,FREE_MB=1515533]

DS=[ID=OTSCSFE01-DS0,USED_MB=4374,TOTAL_MB=38373,FREE_MB=33999]

DS=[ID=OTSCSFE01-DS1,USED_MB=4375,TOTAL_MB=38373,FREE_MB=33998]

VM_POLL=YES

VM = [ID=-1,DEPLOY_ID=ITWVCSPOOL01,POLL=STATE=a USEDCPU=3.15
USEDMEMORY=4241408 NETRX=142 NETTX=40]

VM = [ID=-1,DEPLOY_ID=OTSCSFE01_old,POLL=STATE=d]

VM = [ID=-1,DEPLOY_ID=vShield Manager,POLL=STATE=a USEDCPU=3.72
USEDMEMORY=3542016 NETRX=105 NETTX=3]

VM = [ID=-1,DEPLOY_ID=ITWVDIESX01,POLL=STATE=a USEDCPU=3.24
USEDMEMORY=5820416 NETRX=0 NETTX=45]

VM = [ID=-1,DEPLOY_ID=Analytics VM,POLL=STATE=a USEDCPU=0.69
USEDMEMORY=6864896 NETRX=67 NETTX=0]

VM = [ID=-1,DEPLOY_ID=ITWVDIESX02,POLL=STATE=a USEDCPU=3.42
USEDMEMORY=2662400 NETRX=0 NETTX=40]

VM = [ID=-1,DEPLOY_ID=ITWFS01,POLL=STATE=a USEDCPU=0.18
USEDMEMORY=4234240 NETRX=26 NETTX=0]



[oneadmin@itwcsfe01-inthewoods-local vmware]$ onedatastore list

  ID NAMESIZE AVAIL CLUSTER  IMAGES TYPE DS   TM

   0 system0M - - 0 sys  -vmfs

   1 default 249M 37%   - 0 img  vmfs vmfs

   2 files  37.5G 89%   - 0 fil  fs   ssh

100 Tier1 System  0M - Tier1 0 sys  -vmfs

101 Tier2 System  0M - Tier2 0 sys  -vmfs

102 Tier1 Image D 0M - Tier1 0 img  vmfs vmfs

103 Tier2 Image D 0M - Tier2 0 img  vmfs vmfs



[oneadmin@itwcsfe01-inthewoods-local vmware]$ onedatastore show 0

DATASTORE 0 INFORMATION

ID : 0

NAME   : system

USER   : oneadmin

GROUP  : oneadmin

CLUSTER: -

TYPE   : SYSTEM

DS_MAD : -

TM_MAD : vmfs

BASE PATH  : /vmfs/volumes/0

DISK_TYPE  : FILE



DATASTORE CAPACITY

TOTAL: : 0M

FREE:  : 0M

USED:  : 0M

LIMIT: : -



PERMISSIONS

OWNER  : um-

GROUP  : u--

OTHER  : ---



DATASTORE TEMPLATE

BASE_PATH=/vmfs/volumes/

SHARED=YES

TM_MAD=vmfs

TYPE=SYSTEM_DS



IMAGES







Stan Yarbrough

Chief Technology Officer

Orion Technology Services

704-307-1633

600 Galleria Parkway SE | Suite 1450

Atlanta, Georgia 30339

stan.yarbro...@oriontech.com | www.oriontech.com







The information transmitted is intended only for the person or entity
to which it is addressed and may contain confidential and/or
privileged material. Any review, retransmission, dissemination or
other use of, or taking of any action in reliance upon, this
information by persons or entities other than the intended recipient
is prohibited. If you received this in error, please contact the
sender and delete the material from any computer.



-Original Message-
From: Tino Vazquez [mailto:cvazq...@c12g.com]

Sent: Wednesday, September 17, 2014 6:29 AM
To: Stan Yarbrough
Cc: users
Subject: Re: [one-users] 4.8 with vSphere single node datastores



Hi Stan,



It looks like the driver cannot find the OpenNebula vmware library
(vi_client.rb). Could you confirm that it is indeed present in
/var/lib/one/remotes/vmm/vmware/vi_driver.rb)?



Also, make sure that ONE_LOCATION is not set (echo $ONE_LOCATION).



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 

[one-users] Fwd: Fwd: 4.8 with vSphere single node datastores

2014-09-17 Thread Tino Vazquez
--
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.



-- Forwarded message --
From: Stan Yarbrough stan.yarbro...@oriontech.com
Date: 17 September 2014 13:18
Subject: RE: [one-users] Fwd:  4.8 with vSphere single node datastores
To: Tino Vazquez cvazq...@c12g.com


rbvmomi.rb is there but the function wasn’t finding it.  It is located:

[oneadmin@itwcsfe01-inthewoods-local vmware]$ locate rbvmomi.rb
/usr/lib/one/ruby/vendors/rbvmomi/lib/rbvmomi.rb
/usr/local/share/gems/gems/rbvmomi-1.8.1/lib/rbvmomi.rb

I have installed obennebula from the
CentOS-7-opennebula-4.8.0-1.tar.gz from the /software/ location on the
webpage.

[root@itwcsfe01-inthewoods-local ~]# cat /etc/centos-release
CentOS Linux release 7.0.1406 (Core)

I activated the EPEL and then installed each of the packages using the
package manager.

The following entry from the documentation
(http://docs.opennebula.org/4.8/design_and_installation/building_your_cloud/ignc.html)
did not work failing on the GCC dependency.  However the packages
found the correct compiler.

For CentOS 7:

# cat  EOT  /etc/yum.repos.d/opennebula.repo
[opennebula]
name=opennebula
baseurl=http://downloads.opennebula.org/repo/4.8/CentOS/7/x86_64
enabled=1
gpgcheck=0
EOT
# yum install opennebula-server opennebula-sunstone opennebula-ruby



Stan Yarbrough
Chief Technology Officer
Orion Technology Services
704-307-1633
600 Galleria Parkway SE | Suite 1450
Atlanta, Georgia 30339
stan.yarbro...@oriontech.com | www.oriontech.com








The information transmitted is intended only for the person or entity
to which it is addressed and may contain confidential and/or
privileged material. Any review, retransmission, dissemination or
other use of, or taking of any action in reliance upon, this
information by persons or entities other than the intended recipient
is prohibited. If you received this in error, please contact the
sender and delete the material from any computer.


-Original Message-
From: Users [mailto:users-boun...@lists.opennebula.org] On Behalf Of
Tino Vazquez
Sent: Wednesday, September 17, 2014 7:02 AM
To: users
Subject: [one-users] Fwd: 4.8 with vSphere single node datastores

Hi,
.
Yes, that was a typo on my side, it is vi_driver.rb, nor vi_client.

That gem (rbvmomi) is vendorized in OpenNebula, it should be present
in /usr/lib/one/ruby/vendors.

There must be something wrong with your installation, could you share
the platform you are installing it in (ie, the OS installed in the
front-end)? And also, did you install it using packages from the
OpenNebula site, and if so, which version?

Best,

-Tino

-- Forwarded message --
From: Stan Yarbrough stan.yarbro...@oriontech.com
Date: 17 September 2014 12:58
Subject: RE: [one-users] 4.8 with vSphere single node datastores
To: Tino Vazquez cvazq...@c12g.com


I found a dependency to the rbvmomi gem in vi_driver.rb, which was not
installed.  I have installed the gem and the function works.  However,
the df on the system and image volumes still report empty.  Is there a
way to verify that the /vmfs/



In vi_driver:40  require 'rbvmomi'



[oneadmin@itwcsfe01-inthewoods-local vmware]$
/var/lib/one/remotes/im/vmware.d/vmware.rb itwesx01.inthewoods.local

MODELNAME=Intel(R) Xeon(R) CPU   X5680  @ 3.33GHz

CPUSPEED=3332

TOTALCPU=1200

USEDCPU=19.66

FREECPU=1180.34

TOTALMEMORY=75486960

USEDMEMORY=30013440

FREEMEMORY=45473520

NETRX=4234

NETTX=3090

DS=[ID=ITWESX01-DS01,USED_MB=972,TOTAL_MB=132352,FREE_MB=131380]

DS=[ID=ITWNTAP01-VOL01,USED_MB=440723,TOTAL_MB=1802240,FREE_MB=1361517]

DS=[ID=ITWNTAP01-VOL02,USED_MB=266227,TOTAL_MB=1781760,FREE_MB=1515533]

DS=[ID=OTSCSFE01-DS0,USED_MB=4374,TOTAL_MB=38373,FREE_MB=33999]

DS=[ID=OTSCSFE01-DS1,USED_MB=4375,TOTAL_MB=38373,FREE_MB=33998]

VM_POLL=YES

VM = [ID=-1,DEPLOY_ID=ITWVCSPOOL01,POLL=STATE=a USEDCPU=3.15
USEDMEMORY=4241408 NETRX=142 NETTX=40]

VM = [ID=-1,DEPLOY_ID=OTSCSFE01_old,POLL=STATE=d]

VM = [ID=-1,DEPLOY_ID=vShield Manager,POLL=STATE=a USEDCPU=3.72
USEDMEMORY=3542016 NETRX=105 NETTX=3]

VM = [ID=-1,DEPLOY_ID=ITWVDIESX01,POLL=STATE=a USEDCPU=3.24
USEDMEMORY=5820416 NETRX=0 NETTX=45]

VM = 

Re: [one-users] Fwd: 4.8 with vSphere single node datastores

2014-09-17 Thread Tino Vazquez
Hi,

The installation method seems to be correct. Let's discard other
problems, could you please send us the output of (as root, on the
front-end):

 rpm -V opennebula-server

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 17 September 2014 15:22, Tino Vazquez cvazq...@c12g.com wrote:
 --
 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.



 -- Forwarded message --
 From: Stan Yarbrough stan.yarbro...@oriontech.com
 Date: 17 September 2014 13:18
 Subject: RE: [one-users] Fwd:  4.8 with vSphere single node datastores
 To: Tino Vazquez cvazq...@c12g.com


 rbvmomi.rb is there but the function wasn’t finding it.  It is located:

 [oneadmin@itwcsfe01-inthewoods-local vmware]$ locate rbvmomi.rb
 /usr/lib/one/ruby/vendors/rbvmomi/lib/rbvmomi.rb
 /usr/local/share/gems/gems/rbvmomi-1.8.1/lib/rbvmomi.rb

 I have installed obennebula from the
 CentOS-7-opennebula-4.8.0-1.tar.gz from the /software/ location on the
 webpage.

 [root@itwcsfe01-inthewoods-local ~]# cat /etc/centos-release
 CentOS Linux release 7.0.1406 (Core)

 I activated the EPEL and then installed each of the packages using the
 package manager.

 The following entry from the documentation
 (http://docs.opennebula.org/4.8/design_and_installation/building_your_cloud/ignc.html)
 did not work failing on the GCC dependency.  However the packages
 found the correct compiler.

 For CentOS 7:

 # cat  EOT  /etc/yum.repos.d/opennebula.repo
 [opennebula]
 name=opennebula
 baseurl=http://downloads.opennebula.org/repo/4.8/CentOS/7/x86_64
 enabled=1
 gpgcheck=0
 EOT
 # yum install opennebula-server opennebula-sunstone opennebula-ruby



 Stan Yarbrough
 Chief Technology Officer
 Orion Technology Services
 704-307-1633
 600 Galleria Parkway SE | Suite 1450
 Atlanta, Georgia 30339
 stan.yarbro...@oriontech.com | www.oriontech.com








 The information transmitted is intended only for the person or entity
 to which it is addressed and may contain confidential and/or
 privileged material. Any review, retransmission, dissemination or
 other use of, or taking of any action in reliance upon, this
 information by persons or entities other than the intended recipient
 is prohibited. If you received this in error, please contact the
 sender and delete the material from any computer.


 -Original Message-
 From: Users [mailto:users-boun...@lists.opennebula.org] On Behalf Of
 Tino Vazquez
 Sent: Wednesday, September 17, 2014 7:02 AM
 To: users
 Subject: [one-users] Fwd: 4.8 with vSphere single node datastores

 Hi,
 .
 Yes, that was a typo on my side, it is vi_driver.rb, nor vi_client.

 That gem (rbvmomi) is vendorized in OpenNebula, it should be present
 in /usr/lib/one/ruby/vendors.

 There must be something wrong with your installation, could you share
 the platform you are installing it in (ie, the OS installed in the
 front-end)? And also, did you install it using packages from the
 OpenNebula site, and if so, which version?

 Best,

 -Tino

 -- Forwarded message --
 From: Stan Yarbrough stan.yarbro...@oriontech.com
 Date: 17 September 2014 12:58
 Subject: RE: [one-users] 4.8 with vSphere single node datastores
 To: Tino Vazquez cvazq...@c12g.com


 I found a dependency to the rbvmomi gem in vi_driver.rb, which was not
 installed.  I have installed the 

Re: [one-users] Extra IP's not reachable from outside worl

2014-09-17 Thread Stefan Kooman
Hi Johan,

Quoting Johan Kooijman (m...@johankooijman.com):
 Hi,
 
 I have a VM with 6 IP's. Contextualization configured them for me, it
 works. However: all IP's on interfaced other than eth0, are not
 reachable from the outside world.
 
 When I down the ethX interface, add the IP's as an alias on eth0 and
 send out an arping from eth0, the IP becomes available. Sending the
 arp from the eth1 interface doesn't help.

Do you use OpenvSwitch? Do you have arp cache poisoning prevention
enabled? See /var/lib/one/remotes/vnm/OpenNebulaNetwork.conf. If so,
OpenvSwitch prevents ARP on interfaces other than the one it has
OpenFlow rules configured for. See ovs-ofctl add-flow logging in oned
log to check what ip's have been configured on what interface(s) and/or
check ovs-ofctl dump-flows bridge_name on the hypervisor.

Gr. Stefan



-- 
| BIT BV  http://www.bit.nl/Kamer van Koophandel 09090351
| GPG: 0xD14839C6   +31 318 648 688 / i...@bit.nl
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Error when instantiating template with OS Disk and Datablock - 4.8

2014-09-17 Thread Javier Fontan
When you say datablock you mean that you've created an image and is if
type datablock?

From the logs it says that the driver is qcow2:

format=qcow2,

Can you check that the image is really in qcow2 format?

qemu-img info /var/lib/one//datastores/0/1151/disk.1

If it's not either:

* When creating the datablock specify qcow2 as the FS Type
* Add DRIVER=raw to the image

On Tue, Sep 16, 2014 at 6:32 PM, Robert Tanase robert.tan...@appnor.com wrote:
 Hello One Users,

 I am facing a strange behavior when instantiating a template.

 1) When template contains only the OS disk (qcow2) - VM instances get on
 Active/Running'

 2) When a second disk (Datablock - 1GB - vd - no other settings) - got the
 following error:

 I was trying also with qcow2 Datablock - same result.

 Any help is much appreciated.

 Thank you,
 Robert Tanase

 Tue Sep 16 19:21:26 2014 [DiM][I]: New VM state is ACTIVE.
 Tue Sep 16 19:21:27 2014 [LCM][I]: New VM state is PROLOG.
 Tue Sep 16 19:21:47 2014 [LCM][I]: New VM state is BOOT
 Tue Sep 16 19:21:47 2014 [VMM][I]: Generating deployment file:
 /var/lib/one/vms/1151/deployment.0
 Tue Sep 16 19:21:47 2014 [VMM][I]: ExitCode: 0
 Tue Sep 16 19:21:47 2014 [VMM][I]: Successfully execute network driver
 operation: pre.
 Tue Sep 16 19:21:49 2014 [VMM][I]: Command execution fail: cat  EOT |
 /var/tmp/one/vmm/kvm/deploy '/var/lib/one//datastores/0/1151/deployment.0'
 'bu-mf39071.appnor.net' 1151 bu-mf39071.mydomain.net
 Tue Sep 16 19:21:49 2014 [VMM][I]: setlocale: No such file or directory
 Tue Sep 16 19:21:49 2014 [VMM][I]: error: Failed to create domain from
 /var/lib/one//datastores/0/1151/deployment.0
 Tue Sep 16 19:21:49 2014 [VMM][I]: error: internal error process exited
 while connecting to monitor: kvm: -drive
 file=/var/lib/one//datastores/0/1151/disk.1,if=none,id=drive-ide0-0-1,format=qcow2,cache=none:
 could not open disk image /var/lib/one//datastores/0/1151/disk.1: Invalid
 argument
 Tue Sep 16 19:21:49 2014 [VMM][I]:
 Tue Sep 16 19:21:49 2014 [VMM][E]: Could not create domain from
 /var/lib/one//datastores/0/1151/deployment.0
 Tue Sep 16 19:21:49 2014 [VMM][I]: ExitCode: 255
 Tue Sep 16 19:21:49 2014 [VMM][I]: Failed to execute virtualization driver
 operation: deploy.
 Tue Sep 16 19:21:49 2014 [VMM][E]: Error deploying virtual machine: Could
 not create domain from /var/lib/one//datastores/0/1151/deployment.0
 Tue Sep 16 19:21:49 2014 [DiM][I]: New VM state is FAILED



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




-- 
Javier Fontán Muiños
Developer
OpenNebula - Flexible Enterprise Cloud Made Simple
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] Configuring Ceph datastore 4.6

2014-09-17 Thread Steven Timm


Does anyone have a working Ceph datastore that would
be willing to send me a copy of what the deployment.0 of
your successfully-launched Ceph VM looks like?  Likewise
a ps -ef of the corresponding running KVM process?

We are getting close to being able to launch a virtual machine from
Ceph but it is still not quite clear what libvirt is doing
under the covers to talk to rbd, and if it can be tested manually.

Steve Timm


On Wed, 10 Sep 2014, Steven Timm wrote:


The first and most obvious problem below was that we were running an
old version of qemu-img and qemu-kvm that ships with RHEL6/Centos6/SL6
that doesn't support the rbd format.  We were able to find
a modified version that the Ceph people had back-ported and now
we can import an image into the datastore and have
gotten as far to getting a deployment.0 written on the hypervisor.
It can't contact Ceph as yet, is getting connection refused but
we think that is an authentication issue.

http://ceph.com/packages/qemu-kvm/redhat/x86_64/
is where these packages for 6.2 live.

Hopefully this all gets easier pretty soon now that RedHat has bought Ceph
and all the right packages will be in RHEL7.  Or will they be only 
proprietarily available in Redhat Enterprise Virtualization?  Has anyone 
tried yet?


Steve



On Wed, 10 Sep 2014, Steven Timm wrote:




 I have configured a Ceph datastore on one 4.6 and have gotten as
 far as to get opennebula to accept the datastore.  But when we
 try to do the first oneimage create into the datastore we get the
 following error in oned.log :

 Wed Sep 10 13:10:44 2014 [ImM][I]: Command execution fail:
 /var/lib/one/remotes/datastore/ceph/cp
 
PERTX0RSSVZFUl9BQ1RJT05fREFUQT48SU1BR0U+PElEPjE4PC9JRD48VUlEPjA8L1VJRD48R0lEPjA8L0dJRD48VU5BTUU+b25lYWRtaW48L1VOQU1FPjxHTkFNRT5vbmVhZG1pbjwvR05BTUU+PE5BTUU+Y2VwaHRlc3Q8L05BTUU+PFBFUk1JU1NJT05TPjxPV05FUl9VPjE8L09XTkVSX1U+PE9XTkVSX00+MTwvT1dORVJfTT48T1dORVJfQT4wPC9PV05FUl9BPjxHUk9VUF9VPjA8L0dST1VQX1U+PEdST1VQX00+MDwvR1JPVVBfTT48R1JPVVBfQT4wPC9HUk9VUF9BPjxPVEhFUl9VPjA8L09USEVSX1U+PE9USEVSX00+MDwvT1RIRVJfTT48T1RIRVJfQT4wPC9PVEhFUl9BPjwvUEVSTUlTU0lPTlM+PFRZUEU+MDwvVFlQRT48RElTS19UWVBFPjM8L0RJU0tfVFlQRT48UEVSU0lTVEVOVD4wPC9QRVJTSVNURU5UPjxSRUdUSU1FPjE0MTAzNzI1NTU8L1JFR1RJTUU+PFNPVVJDRT48L1NPVVJDRT48UEFUSD4vY2xvdWQvaW1hZ2VzL3RpbW0vNDBnYi5xY293MjwvUEFUSD48RlNUWVBFPjwvRlNUWVBFPjxTSVpFPjQwOTYwPC9TSVpFPjxTVEFURT40PC9TVEFURT48UlVOTklOR19WTVM+MDwvUlVOTklOR19WTVM+PENMT05JTkdfT1BTPjA8L0NMT05JTkdfT1BTPjxDTE9OSU5HX0lEPi0xPC9DTE9OSU5HX0lEPjxEQVRBU1RPUkVfSUQ+MTAzPC9EQVRBU1RPUkVfSUQ+PERBVEFTVE9SRT5jZXBoX2RhdGFzdG9yZTwvREFUQVNUT1JFPjxWTVM+PC9WTVM+PENMT05FUz48L0NMT05FUz48VEVNUExBVEU+PERFU0NSSV
 BU

S

 
U9OPjwhW0NEQVRBW3Rlc3QgY2VwaCBnb2xkZW4gaW1nXV0+PC9ERVNDUklQVElPTj48REVWX1BSRUZJWD48IVtDREFUQVtoZF1dPjwvREVWX1BSRUZJWD48RFJJVkVSPjwhW0NEQVRBW3Fjb3cyXV0+PC9EUklWRVI+PC9URU1QTEFURT48L0lNQUdFPjxEQVRBU1RPUkU+PElEPjEwMzwvSUQ+PFVJRD4wPC9VSUQ+PEdJRD4wPC9HSUQ+PFVOQU1FPm9uZWFkbWluPC9VTkFNRT48R05BTUU+b25lYWRtaW48L0dOQU1FPjxOQU1FPmNlcGhfZGF0YXN0b3JlPC9OQU1FPjxQRVJNSVNTSU9OUz48T1dORVJfVT4xPC9PV05FUl9VPjxPV05FUl9NPjE8L09XTkVSX00+PE9XTkVSX0E+MDwvT1dORVJfQT48R1JPVVBfVT4xPC9HUk9VUF9VPjxHUk9VUF9NPjA8L0dST1VQX00+PEdST1VQX0E+MDwvR1JPVVBfQT48T1RIRVJfVT4wPC9PVEhFUl9VPjxPVEhFUl9NPjA8L09USEVSX00+PE9USEVSX0E+MDwvT1RIRVJfQT48L1BFUk1JU1NJT05TPjxEU19NQUQ+Y2VwaDwvRFNfTUFEPjxUTV9NQUQ+Y2VwaDwvVE1fTUFEPjxCQVNFX1BBVEg+L3Zhci9saWIvb25lLy9kYXRhc3RvcmVzLzEwMzwvQkFTRV9QQVRIPjxUWVBFPjA8L1RZUEU+PERJU0tfVFlQRT4zPC9ESVNLX1RZUEU+PENMVVNURVJfSUQ+LTE8L0NMVVNURVJfSUQ+PENMVVNURVI+PC9DTFVTVEVSPjxUT1RBTF9NQj42MTAyNzMyODwvVE9UQUxfTUI+PEZSRUVfTUI+NjA4NTE1NTI8L0ZSRUVfTUI+PFVTRURfTUI+MTc1Nzc2PC9VU0VEX01CPjxJTUFHRVM+PC9JTUF
 HR

V

 
M+PFRFTVBMQVRFPjxCQVNFX1BBVEg+PCFbQ0RBVEFbL3Zhci9saWIvb25lLy9kYXRhc3RvcmVzL11dPjwvQkFTRV9QQVRIPjxCUklER0VfTElTVD48IVtDREFUQVtvbmU0ZGV2XV0+PC9CUklER0VfTElTVD48Q0VQSF9IT1NUPjwhW0NEQVRBW3N0a2VuZGNhMDFhIHN0a2VuZGNhMDRhIHN0a2VuZGNhMDJhXV0+PC9DRVBIX0hPU1Q+PENFUEhfU0VDUkVUPjwhW0NEQVRBWy9ldGMvY2VwaC9jZXBoLmNsaWVudC5hZG1pbi5rZXlyaW5nXV0+PC9DRVBIX1NFQ1JFVD48Q0xPTkVfVEFSR0VUPjwhW0NEQVRBW1NFTEZdXT48L0NMT05FX1RBUkdFVD48REFUQVNUT1JFX0NBUEFDSVRZX0NIRUNLPjwhW0NEQVRBW3llc11dPjwvREFUQVNUT1JFX0NBUEFDSVRZX0NIRUNLPjxESVNLX1RZUEU+PCFbQ0RBVEFbUkJEXV0+PC9ESVNLX1RZUEU+PERTX01BRD48IVtDREFUQVtjZXBoXV0+PC9EU19NQUQ+PExOX1RBUkdFVD48IVtDREFUQVtOT05FXV0+PC9MTl9UQVJHRVQ+PFBPT0xfTkFNRT48IVtDREFUQVtvbmVdXT48L1BPT0xfTkFNRT48U1RBR0lOR19ESVI+PCFbQ0RBVEFbL3Zhci9saWIvb25lL2NlcGgtdG1wXV0+PC9TVEFHSU5HX0RJUj48VE1fTUFEPjwhW0NEQVRBW2NlcGhdXT48L1RNX01BRD48L1RFTVBMQVRFPjwvREFUQVNUT1JFPjwvRFNfRFJJVkVSX0FDVElPTl9EQVRBPg==
 18
 Wed Sep 10 13:10:44 2014 [ImM][I]: cp: Copying local image
 /cloud/images/timm/40gb.qcow2 to the image repository
 Wed Sep 10 13:10:44 2014 [ImM][E]: cp: Command set -e
 Wed Sep 10 13:10:44 2014 [ImM][I]:
 Wed Sep 10 13:10:44 2014 [ImM][I]: if [  = 2 ]; then
 Wed Sep 10 13:10:44 2014 [ImM][I]: FORMAT=$(qemu-img info
 /var/lib/one/ceph-tmp/68bec7e25cb73c98a31a48117022d72c | grep ^file
 format: 
|  awk '{print }')

 Wed Sep 10 13:10:44 2014 

Re: [one-users] Configuring Ceph datastore 4.6

2014-09-17 Thread Steven Timm


This is the kvm command our libvirt is trying to do, from
/var/log/libvirt/qemu/one-58.log

Clearly it is an authentication error, the only question is
what and why.. we have made the client.libvirt secret
as directed at

http://docs.opennebula.org/4.8/administration/storage/ceph_ds.html

The example there suggests to set CEPH_USER=libvirt
but I don't have a libvirt user defined on my system (most RHEL6/SL6 
systems don't.).  Should we use a different user?



2014-09-17 18:43:51.579+: starting up
LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin QEMU_AUDIO_DRV=none 
/usr/libexec/qemu-kvm -name one-58 -S -M rhel6.3.0 -enable-kvm -m 4096 
-smp 2,sockets=2,cores=1,threads=1 -uuid 
01ef1f2d-58e2-e089-0012-537426cd1bad -nodefconfig -nodefaults -chardev 
socket,id=charmonitor,path=/var/lib/libvirt/qemu/one-58.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=rbd:one/one-19-58-0:id=libvirt:key=AQCv0RlUEOPfIhAAZLbGzwrfjyC39iapXVOFEg==:auth_supported=cephx\;none:mon_host=stkendca01a\:6789\;stkendca04a\:6789\;stkendca02a\:6789,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/102/58/disk.1,if=none,id=drive-virtio-disk1,format=raw,cache=none 
-device 
virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk1,id=virtio-disk1 
-drive 
file=/var/lib/one//datastores/102/58/disk.2,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw 
-device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 
-netdev tap,fd=22,id=hostnet0,vhost=on,vhostfd=23 -device 
virtio-net-pci,netdev=hostnet0,id=net0,mac=54:52:00:02:0b:04,bus=pci.0,addr=0x3 
-chardev pty,id=charserial0 -device 
isa-serial,chardev=charserial0,id=serial0 -vnc 127.0.0.1:58 -k en-us -vga 
cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6

char device redirected to /dev/pts/3
qemu-kvm: -drive 
file=rbd:one/one-19-58-0:id=libvirt:key=AQCv0RlUEOPfIhAAZLbGzwrfjyC39iapXVOFEg==:auth_supported=cephx\;none:mon_host=stkendca01a\:6789\;stkendca04a\:6789\;stkendca02a\:6789,if=none,id=drive-virtio-disk0,format=qcow2,cache=none: 
error reading header from one-19-58-0







On Wed, 17 Sep 2014, Steven Timm wrote:



Does anyone have a working Ceph datastore that would
be willing to send me a copy of what the deployment.0 of
your successfully-launched Ceph VM looks like?  Likewise
a ps -ef of the corresponding running KVM process?

We are getting close to being able to launch a virtual machine from
Ceph but it is still not quite clear what libvirt is doing
under the covers to talk to rbd, and if it can be tested manually.

Steve Timm


On Wed, 10 Sep 2014, Steven Timm wrote:


 The first and most obvious problem below was that we were running an
 old version of qemu-img and qemu-kvm that ships with RHEL6/Centos6/SL6
 that doesn't support the rbd format.  We were able to find
 a modified version that the Ceph people had back-ported and now
 we can import an image into the datastore and have
 gotten as far to getting a deployment.0 written on the hypervisor.
 It can't contact Ceph as yet, is getting connection refused but
 we think that is an authentication issue.

 http://ceph.com/packages/qemu-kvm/redhat/x86_64/
 is where these packages for 6.2 live.

 Hopefully this all gets easier pretty soon now that RedHat has bought Ceph
 and all the right packages will be in RHEL7.  Or will they be only
 proprietarily available in Redhat Enterprise Virtualization?  Has anyone
 tried yet?

 Steve



 On Wed, 10 Sep 2014, Steven Timm wrote:

 
 
   I have configured a Ceph datastore on one 4.6 and have gotten as

   far as to get opennebula to accept the datastore.  But when we
   try to do the first oneimage create into the datastore we get the
   following error in oned.log :
 
   Wed Sep 10 13:10:44 2014 [ImM][I]: Command execution fail:

   /var/lib/one/remotes/datastore/ceph/cp
   

Re: [one-users] Configuring Ceph datastore 4.6

2014-09-17 Thread Steven Timm

Note that if I replace the client.libvirt ceph key with the
client.admin key I get a different error:

qemu-kvm: -drive file=rbd:one/one-19-59-0:id=admin:key=AQAGNMlTED9CHhAAxWyfQvJkM
R1PyTEZ+1lFUQ==:auth_supported=cephx\;none:mon_host=stkendca01a\:6789\;stkendca0
4a\:6789\;stkendca02a\:6789,if=none,id=drive-virtio-disk0,format=qcow2,cache=non
e: could not open disk image 
rbd:one/one-19-59-0:id=admin:key=AQAGNMlTED9CHhAAxW

yfQvJkMR1PyTEZ+1lFUQ==:auth_supported=cephx\;none:mon_host=stkendca01a\:6789\;st
kendca04a\:6789\;stkendca02a\:6789: Invalid argument


as opposed to:

qemu-kvm: -drive 
file=rbd:one/one-19-58-0:id=libvirt:key=AQCv0RlUEOPfIhAAZLbGzwrfjyC39iapXVOFEg==:auth_supported=cephx\;none:mon_host=stkendca01a\:6789\;stkendca04a\:6789\;stkendca02a\:6789,if=none,id=drive-virtio-disk0,format=qcow2,cache=none: 
error reading header from one-19-58-0
qemu-kvm: -drive 
file=rbd:one/one-19-58-0:id=libvirt:key=AQCv0RlUEOPfIhAAZLbGzwrfjyC39iapXVOFEg==:auth_supported=cephx\;none:mon_host=stkendca01a\:6789\;stkendca04a\:6789\;stkendca02a\:6789,if=none,id=drive-virtio-disk0,format=qcow2,cache=none: 
could not open disk image 
rbd:one/one-19-58-0:id=libvirt:key=AQCv0RlUEOPfIhAAZLbGzwrfjyC39iapXVOFEg==:auth_supported=cephx\;none:mon_host=stkendca01a\:6789\;stkendca04a\:6789\;stkendca02a\:6789: 
Operation not permitted


Anybody who has knowledge of the internals of qemu-kvm and the arguments 
it wants, please let me know.. in particular a working deployment.0 and/or 
ps output from the qemu-kvm process would be very valuable indeed.


Steve Timm



On Wed, 17 Sep 2014, Steven Timm wrote:



This is the kvm command our libvirt is trying to do, from
/var/log/libvirt/qemu/one-58.log

Clearly it is an authentication error, the only question is
what and why.. we have made the client.libvirt secret
as directed at

http://docs.opennebula.org/4.8/administration/storage/ceph_ds.html

The example there suggests to set CEPH_USER=libvirt
but I don't have a libvirt user defined on my system (most RHEL6/SL6 
systems don't.).  Should we use a different user?



2014-09-17 18:43:51.579+: starting up
LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin QEMU_AUDIO_DRV=none 
/usr/libexec/qemu-kvm -name one-58 -S -M rhel6.3.0 -enable-kvm -m 4096 -smp 
2,sockets=2,cores=1,threads=1 -uuid 01ef1f2d-58e2-e089-0012-537426cd1bad 
-nodefconfig -nodefaults -chardev 
socket,id=charmonitor,path=/var/lib/libvirt/qemu/one-58.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=rbd:one/one-19-58-0:id=libvirt:key=AQCv0RlUEOPfIhAAZLbGzwrfjyC39iapXVOFEg==:auth_supported=cephx\;none:mon_host=stkendca01a\:6789\;stkendca04a\:6789\;stkendca02a\:6789,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/102/58/disk.1,if=none,id=drive-virtio-disk1,format=raw,cache=none 
-device 
virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk1,id=virtio-disk1 
-drive 
file=/var/lib/one//datastores/102/58/disk.2,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw 
-device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev 
tap,fd=22,id=hostnet0,vhost=on,vhostfd=23 -device 
virtio-net-pci,netdev=hostnet0,id=net0,mac=54:52:00:02:0b:04,bus=pci.0,addr=0x3 
-chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 
-vnc 127.0.0.1:58 -k en-us -vga cirrus -device 
virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6

char device redirected to /dev/pts/3
qemu-kvm: -drive 
file=rbd:one/one-19-58-0:id=libvirt:key=AQCv0RlUEOPfIhAAZLbGzwrfjyC39iapXVOFEg==:auth_supported=cephx\;none:mon_host=stkendca01a\:6789\;stkendca04a\:6789\;stkendca02a\:6789,if=none,id=drive-virtio-disk0,format=qcow2,cache=none: 
error reading header from one-19-58-0







On Wed, 17 Sep 2014, Steven Timm wrote:



 Does anyone have a working Ceph datastore that would
 be willing to send me a copy of what the deployment.0 of
 your successfully-launched Ceph VM looks like?  Likewise
 a ps -ef of the corresponding running KVM process?

 We are getting close to being able to launch a virtual machine from
 Ceph but it is still not quite clear what libvirt is doing
 under the covers to talk to rbd, and if it can be tested manually.

 Steve Timm


 On Wed, 10 Sep 2014, Steven Timm wrote:

   The first and most obvious problem below was that we were running an
   old version of qemu-img and qemu-kvm that ships with RHEL6/Centos6/SL6
   that doesn't support the rbd format.  We were able to find
   a modified version that the Ceph people had back-ported and now
   we can import an image into the datastore and have
   gotten as far to getting a deployment.0 written on the hypervisor.
   It can't contact Ceph as yet, is getting connection refused but
   we think that is an authentication issue.
 
   

Re: [one-users] BOOTPROTO, DHCP_HOSTNAME, and vm IPs in Sunstone

2014-09-17 Thread kerryhall .
I would definitely not prefer that the vm manage the IP. What I would like
to do upon new vm creation:

1. VM gets spun up with BOOTPROTO=dhcp
2. VM gets spun up with DHCP_HOSTNAME=$NAME
3. IP given to the VM by the dhcp server on my network is then the IP that
is listed in sunstone for that VM.

AFAIK:
1. There is no way to achieve item 1 in ONE out of the box, I have to
either write a bash script that gets run on VM spin up, or create an image
that does this.
2. I can set the _hostname_ via template, but in order to set DHCP_HOSTNAME
again I have to run a bash script on spin up.
3. There is no way to accomplish item 3, outside of writing a bash script
that runs on my head node that grabs IP data and dumps it into the
database. Certainly this is not preferable.

These three items taken all together suggest that including the option to
easily support DHCP out of the box would be a nice feature to have.

I'm working on a bash script currently for 1 and 2, but for item 3 I am out
of luck.

I hope that makes sense. Let me know if it doesn't and I would be happy to
clarify further. Thank you for your help!!

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


[one-users] # RVMs not correct during live migrate

2014-09-17 Thread Stefan Kooman
Hi,

I'm currently upgrading to ONE-4.8.0 on a cloud. I'm live migrating a bunch
of vm's. While doing that I see that the RVM counter for the Hosts is not
correct. All the scheduled VM's are already counted on the hypervisor
depicted to run the VM's. After the migration has finished the
amount of RVMs is correct. Note that this is not a big issue
whatsoever, more an artefact. 

FYI,

Gr. Stefan


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


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


Re: [one-users] BOOTPROTO, DHCP_HOSTNAME, and vm IPs in Sunstone

2014-09-17 Thread Stefan Kooman
Quoting kerryhall . (kerryh...@gmail.com):
 I would definitely not prefer that the vm manage the IP. What I would like
 to do upon new vm creation:
 
 1. VM gets spun up with BOOTPROTO=dhcp
 2. VM gets spun up with DHCP_HOSTNAME=$NAME
 3. IP given to the VM by the dhcp server on my network is then the IP that
 is listed in sunstone for that VM.
 
 AFAIK:
 1. There is no way to achieve item 1 in ONE out of the box, I have to
 either write a bash script that gets run on VM spin up, or create an image
 that does this.

You don't need to make a VM contextualized to achieve that. Just
configure networking in the image to DHCP.

 2. I can set the _hostname_ via template, but in order to set DHCP_HOSTNAME
 again I have to run a bash script on spin up.
Why the DHCP_HOSTNAME? If you have a pre-configured list (all MAC's
statically configured in the DHCP server) it will get the correct
ip-address. You can set the correct HOSTNAME based on the VM template if
you want.
 3. There is no way to accomplish item 3, outside of writing a bash script
 that runs on my head node that grabs IP data and dumps it into the
 database. Certainly this is not preferable.
At this point you've already accomplished point 3: VM has the IP-address
listed in OpenNebula. The only thing that you don't have is the VM name
in the host specificiation in the DHCP config. 

You can however, set the hostname in the DHCP configuration (option
host-name your-vm-name-here) and configure the hostname (point 2)
based on this. This might even be a setting in dhclient / dhcpcd to do
that automatically. Then you just have to make sure you give the VM the
right IP and the right name (in Sunstone).

 
 These three items taken all together suggest that including the option to
 easily support DHCP out of the box would be a nice feature to have.
 
 I'm working on a bash script currently for 1 and 2, but for item 3 I am out
 of luck.
 
 I hope that makes sense. Let me know if it doesn't and I would be happy to
 clarify further. Thank you for your help!!

I might completely misunderstand you, sorry if that's the case.

Gr. Stefan

-- 
| BIT BV  http://www.bit.nl/Kamer van Koophandel 09090351
| GPG: 0xD14839C6   +31 318 648 688 / i...@bit.nl
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org