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


Re: [one-users] Run bash script in vm on spin-up

2014-09-11 Thread kerryhall .
Hi Valentin,

I appreciate the help! I managed to create a new CONTEXT image, which
copied my test.sh to the datastore successfully, and I updated my template
to include those two lines you specified.

However, it looks like test.sh is not executing on vm spin up. Currently
all it does is touch /root/test.tmp to confirm execution. However when I
booted my vm, this file was not created. Also tried doing useradd tmp as
well, with no luck. test.sh has executable flag set for user, group, and
other. I also tried setting permissions of test.sh to 777, still no luck.

Thanks!!
Kerry




On Mon, Sep 8, 2014 at 11:27 PM, Valentin Bud valentin@gmail.com
wrote:

 Hello Kerry,

 Do you have a registered image of type CONTEXT with the name of `test.sh`
 in the files datastore?

 The file you specify in FILES_DS can be found in the contextualization
 CDROM
 on the VM (/dev/disk/by-label/CONTEXT).

 The following would run a `test.sh` script when the VM is spun up at the
 end
 of the contextualization routine [1].

 CONTEXT = [
   FILES_DS=$FILE[IMAGE=\test.sh\],
   INIT_SCRIPTS=test.sh,
   ...
 ]

 [1]:
 https://github.com/OpenNebula/addon-context-linux/blob/master/base/etc/one-context.d/99-execute-scripts

 Best,
 Valentin


 On Mon, Sep 8, 2014 at 11:09 PM, kerryhall . kerryh...@gmail.com wrote:

 Thanks! I'm still having issues here unfortunately. I tried putting:

 FILES_DS=$FILE[IMAGE=\test.sh\]

 into my template context section, but I get:

 User 0 does not own an image with name: test.sh

 I'm not trying to include an image, I just want test.sh (a file in my
 file datastore) to get copied to anywhere on my vm's filesystem. (And
 eventually, I want test.sh to get run on vm creation, or failing that,
 every time the vm starts)

 Thanks!!

 On Fri, Jul 25, 2014 at 11:18 PM, Valentin Bud valentin@gmail.com
 wrote:

 Hello Kerry,

 Under Defining Context [1] there is an example how to use FILES_DS.

 FILES_DS=$FILE[IMAGE=\test.sh\]

 [1]: http://docs.opennebula.org/4.6/user/virtual_machine_setup/cong.html

 Best,
 Valentin



 On Fri, Jul 25, 2014 at 11:29 PM, kerryhall . kerryh...@gmail.com
 wrote:

 Hi folks,

 I am trying to run a bash script on a vm as it gets spun up. I've read:
 http://docs.opennebula.org/4.6/user/virtual_machine_setup/cong.html

 but there isn't too much to go on there.

 I have created test.sh and put it into the files datastore on the
 head node.

 The issue I am having is that the syntax in the Defining Context
 section of
 http://docs.opennebula.org/4.6/user/virtual_machine_setup/cong.html is
 ambiguous, specifically the files_ds section. I have tried:

 FILES_DS=$FILE[\test.sh\]

 and
 FILES_DS=/var/lib/one/datastores/2/test.sh

 As a first step, I'm just trying to get this file included in my vm at
 all.

 Thanks!
 Kerry


 ___
 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] BOOTPROTO, DHCP_HOSTNAME, and vm IPs in Sunstone

2014-09-08 Thread kerryhall .
Javier,

Thank you for your help.

I am considering going with the following option (if this is possible)

Run bash script on boot that sets the DHCP_HOSTNAME to the hostname,
removes the NETMASK, IPADDR, and GATEWAY lines from
/etc/sysconfig/network-scripts/ifcfg-eth0, sets the BOOTPROTO to dhcp, and
restarts networking. I have a bash script already that will do this, and it
gives the desired result. I will then simply ignore the IP listed in
sunstone and deal with hostnames only. My script is written in such a way
that it can be run multiple times without issue.

I just need to figure out how to include this bash script and have to run
automatically when a new vm is spun up, but it looks like there should be
plenty of documentation on how to do this.

I am unsure how to use a DHCP client to suggest an IP to the DHCP server,
or if DHCP supports this.

Thanks!!
Kerry

On Mon, Sep 8, 2014 at 1:42 AM, Javier Fontan jfon...@opennebula.org
wrote:

 The context packages are meant to be used with static networking. To
 add that parameters to network configuration you can do one of these
 things:

 * Create the network configuration in the base images manually and do
 not set network contextualization in OpenNebula so they are not
 overwritten.
 * Modify the context packages to add those parameters [1]

 For the third thing there is no way to do it. OpenNebula gets an IP
 from the network pool and assigns it to the NIC. There is no way to
 change it after it is selected and there is no external method of
 selecting the IP. What you can do is configure DHCP so it picks the
 same IP as OpenNebula had selected for the VM. The MAC addresses are
 generated from the MAC prefix and the IP, you can configure DHCP with
 those mac/ip pairs.

 MAC = PREFIX + IP in hex

 02:00:0a:00:00:01 = 02:00 + 10.0.0.1 (in hex is 0a:00:00:01)

 [1]
 https://github.com/OpenNebula/addon-context-linux/blob/master/base_rpm/etc/one-context.d/00-network#L103-L114

 On Sat, Sep 6, 2014 at 12:23 AM, kerryhall . kerryh...@gmail.com wrote:
  Hi folks,
 
  I have a small ONE cluster that I am currently setting up on 4.8. I have
 a
  ethernet network model, and I have added the following line to my
 template:
 
  SET_HOSTNAME=$NAME.mydomain.int
 
  So far so good, but I need to be able to do the following three things:
  1. set BOOTPROTO=dhcp in /etc/sysconfig/network-scripts/ifcfg-eth0 on
 new
  vms
  2. set DHCP_HOSTNAME=$NAME.mydomain.int on new vms
  3. set the IP field in sunstone to vm's IP address provided by DHCP
 
  How do I accomplish these items? I was thinking run a bash script on vm
  startup for items 1 and 2, unless there is a builtin ONE way to do this,
 but
  what about item 3? Is there just a straight up DHCP networking model I
 can
  use to make this easier? Does anyone currently use ONE with DHCP?
 
  Thanks!!
  Kerry
 
  ___
  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] Run bash script in vm on spin-up

2014-09-08 Thread kerryhall .
Thanks! I'm still having issues here unfortunately. I tried putting:

FILES_DS=$FILE[IMAGE=\test.sh\]

into my template context section, but I get:

User 0 does not own an image with name: test.sh

I'm not trying to include an image, I just want test.sh (a file in my file
datastore) to get copied to anywhere on my vm's filesystem. (And
eventually, I want test.sh to get run on vm creation, or failing that,
every time the vm starts)

Thanks!!

On Fri, Jul 25, 2014 at 11:18 PM, Valentin Bud valentin@gmail.com
wrote:

 Hello Kerry,

 Under Defining Context [1] there is an example how to use FILES_DS.

 FILES_DS=$FILE[IMAGE=\test.sh\]

 [1]: http://docs.opennebula.org/4.6/user/virtual_machine_setup/cong.html

 Best,
 Valentin



 On Fri, Jul 25, 2014 at 11:29 PM, kerryhall . kerryh...@gmail.com wrote:

 Hi folks,

 I am trying to run a bash script on a vm as it gets spun up. I've read:
 http://docs.opennebula.org/4.6/user/virtual_machine_setup/cong.html

 but there isn't too much to go on there.

 I have created test.sh and put it into the files datastore on the
 head node.

 The issue I am having is that the syntax in the Defining Context
 section of
 http://docs.opennebula.org/4.6/user/virtual_machine_setup/cong.html is
 ambiguous, specifically the files_ds section. I have tried:

 FILES_DS=$FILE[\test.sh\]

 and
 FILES_DS=/var/lib/one/datastores/2/test.sh

 As a first step, I'm just trying to get this file included in my vm at
 all.

 Thanks!
 Kerry


 ___
 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] BOOTPROTO, DHCP_HOSTNAME, and vm IPs in Sunstone

2014-09-08 Thread kerryhall .
It sounds like it's not really possible for a DHCP client to suggest an IP
to the DHCP server.

I think I would like to make a feature request: easy DHCP integration.

Does my use case make sense? I can clarify further if needed.

Thanks!!

On Mon, Sep 8, 2014 at 12:35 PM, kerryhall . kerryh...@gmail.com wrote:

 Javier,

 Thank you for your help.

 I am considering going with the following option (if this is possible)

 Run bash script on boot that sets the DHCP_HOSTNAME to the hostname,
 removes the NETMASK, IPADDR, and GATEWAY lines from
 /etc/sysconfig/network-scripts/ifcfg-eth0, sets the BOOTPROTO to dhcp, and
 restarts networking. I have a bash script already that will do this, and it
 gives the desired result. I will then simply ignore the IP listed in
 sunstone and deal with hostnames only. My script is written in such a way
 that it can be run multiple times without issue.

 I just need to figure out how to include this bash script and have to run
 automatically when a new vm is spun up, but it looks like there should be
 plenty of documentation on how to do this.

 I am unsure how to use a DHCP client to suggest an IP to the DHCP server,
 or if DHCP supports this.

 Thanks!!
 Kerry

 On Mon, Sep 8, 2014 at 1:42 AM, Javier Fontan jfon...@opennebula.org
 wrote:

 The context packages are meant to be used with static networking. To
 add that parameters to network configuration you can do one of these
 things:

 * Create the network configuration in the base images manually and do
 not set network contextualization in OpenNebula so they are not
 overwritten.
 * Modify the context packages to add those parameters [1]

 For the third thing there is no way to do it. OpenNebula gets an IP
 from the network pool and assigns it to the NIC. There is no way to
 change it after it is selected and there is no external method of
 selecting the IP. What you can do is configure DHCP so it picks the
 same IP as OpenNebula had selected for the VM. The MAC addresses are
 generated from the MAC prefix and the IP, you can configure DHCP with
 those mac/ip pairs.

 MAC = PREFIX + IP in hex

 02:00:0a:00:00:01 = 02:00 + 10.0.0.1 (in hex is 0a:00:00:01)

 [1]
 https://github.com/OpenNebula/addon-context-linux/blob/master/base_rpm/etc/one-context.d/00-network#L103-L114

 On Sat, Sep 6, 2014 at 12:23 AM, kerryhall . kerryh...@gmail.com wrote:
  Hi folks,
 
  I have a small ONE cluster that I am currently setting up on 4.8. I
 have a
  ethernet network model, and I have added the following line to my
 template:
 
  SET_HOSTNAME=$NAME.mydomain.int
 
  So far so good, but I need to be able to do the following three things:
  1. set BOOTPROTO=dhcp in /etc/sysconfig/network-scripts/ifcfg-eth0 on
 new
  vms
  2. set DHCP_HOSTNAME=$NAME.mydomain.int on new vms
  3. set the IP field in sunstone to vm's IP address provided by DHCP
 
  How do I accomplish these items? I was thinking run a bash script on vm
  startup for items 1 and 2, unless there is a builtin ONE way to do
 this, but
  what about item 3? Is there just a straight up DHCP networking model I
 can
  use to make this easier? Does anyone currently use ONE with DHCP?
 
  Thanks!!
  Kerry
 
  ___
  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


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

2014-09-05 Thread kerryhall .
Hi folks,

I have a small ONE cluster that I am currently setting up on 4.8. I have a
ethernet network model, and I have added the following line to my template:

SET_HOSTNAME=$NAME.mydomain.int

So far so good, but I need to be able to do the following three things:
1. set BOOTPROTO=dhcp in /etc/sysconfig/network-scripts/ifcfg-eth0 on new
vms
2. set DHCP_HOSTNAME=$NAME.mydomain.int on new vms
3. set the IP field in sunstone to vm's IP address provided by DHCP

How do I accomplish these items? I was thinking run a bash script on vm
startup for items 1 and 2, unless there is a builtin ONE way to do this,
but what about item 3? Is there just a straight up DHCP networking model I
can use to make this easier? Does anyone currently use ONE with DHCP?

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


[one-users] Run bash script in vm on spin-up

2014-07-25 Thread kerryhall .
Hi folks,

I am trying to run a bash script on a vm as it gets spun up. I've read:
http://docs.opennebula.org/4.6/user/virtual_machine_setup/cong.html

but there isn't too much to go on there.

I have created test.sh and put it into the files datastore on the head
node.

The issue I am having is that the syntax in the Defining Context section
of http://docs.opennebula.org/4.6/user/virtual_machine_setup/cong.html is
ambiguous, specifically the files_ds section. I have tried:

FILES_DS=$FILE[\test.sh\]

and
FILES_DS=/var/lib/one/datastores/2/test.sh

As a first step, I'm just trying to get this file included in my vm at all.

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


Re: [one-users] DHCP

2014-07-24 Thread kerryhall .
Valentin,

Thank you for the help!

Yes, AFAIK the DNS server is configured with a dynamic zone that is updated
from the DHCP server.

It sounds like the DHCP server in use is Microsoft DHCP. I would like to
avoid using the DHCP API if possible, just because I have no experience in
that area, and seems like a messy solution.

Thinking about this more, here are the desired steps:
1. User spins up vm via web interface.
2. Contextualization sets DHCP_HOSTNAME to vm name.
3. DHCP server gives vm an IP address.
4. Sunstone sets the correct IP information in its database.

I can basically do all this manually by
1. Spin up vm
2. edit ifcfg-eth0, setting BOOTPROTO and DHCP_HOSTNAME
3. restart networking

So it sounds like I can write a bash script that takes care of 2. and 3.,
something that runs when the vm is spun up.

However, I don't know how to manually tell Sunstone what the new, correct
IP is. Do you know how I could accomplish that?

I can write a bash or perl script that fixes this manually in MySQLbut
that seems like a Really Bad Idea. :)

I'm surprised that OpenNebula doesn't support DHCP out of the box. Seems
like a common use case. I wonder if I should make a feature request.

Thanks!
Kerry



On Wed, Jul 23, 2014 at 10:03 PM, Valentin Bud valentin@gmail.com
wrote:

 Hello Kerry,

 When you say DNS and DHCP are tied into one system on my network you mean
 your DNS server is configured with a dynamic zone that is updated from the
 DHCP
 server?

 If that is so, I guess you want a VM to acquire a lease from the DHCP
 server equal
 to the IP given by OpenNebula to that specific VM. This way it maintains
 consistency.

 If you populate CONTEXT with NETWORK=YES, the contextualization packages
 will do the job of configuring the network. As far as I know it's not
 possible to tell
 the contextualization packages to leave the network unconfigured. So using
 this approach
 would not get you where you want.

 One way of achieving what you desire is to program a hook that inserts a
 host in the
 DHCP server via OMAPI [1]. From the hook you have access to the entire
 template.
 I am assuming you are using ISC DHCP. This would solve the consistency
 issue.

 Now the VM needs to be configured for DHCP as you mentioned in your
 previous E-Mail.

 For that you can define SET_HOSTNAME in the CONTEXT to have it available
 in the
 VM, create a simple (bash) program that reads it and sets ifcfg-eth0
 accordingly. Put the
 script in the files datastore and update the context to use it via
 FILES_DS and INIT_SCRIPTS.

 For example you name your super script set_dhcp.sh. You can insert in the
 files datastore [2]
 using `oneimage create -d files --name set_dhcp.sh --type CONTEXT
 /path/to/set_dhcp.sh`.

 Update the template to use it.

 CONTEXT=[
 FILES_DS=$FILE[IMAGE=\set_dhcp.sh\,
 INIT_SCRIPTS=set_dhcp.sh]

 This way the vmcontext init.d script from the contextualization packages
 would skip the
 network configuration, note NETWORK=YES is missing and it would run the
 set_dhcp.sh
 script.

 One more thing that comes to mind, SET_HOSTNAME would instruct the
 vmcontext init
 script to set the hostname and maybe that's not what you want, maybe you
 want your VM
 to set it's hostname from DHCP. In this case use another variable, like
 DHCP_HOSTNAME
 in CONTEXT and process it in set_dhcp.sh to configure ifcfg-eth0.

 You can set DHCP_HOSTNAME=$NAME inside the template. This way the name you
 give the VM in Sunstone would end up being used.

 Take the above with a grain of salt, I am sure there are other (better)
 ways of achieving
 what you desire.

 @Diego could you please point me where have you find DHCP in the VNET
 template?
 I have looked over the docs and couldn't find it.

 [1]: http://ipamworldwide.com/dhcp-api.html
 [2]: http://docs.opennebula.org/4.6/administration/storage/file_ds.html

 Best,
 Valentin

 On Wed, Jul 23, 2014 at 10:45 PM, kerryhall . kerryh...@gmail.com wrote:

 I have managed to figure out how to edit my template (onetemplate update
 TEMPLATE_ID) so I can now set the hostname. However, DNS and DHCP are tied
 into one system on my network, so I can't perform a dig on my new server
 and get the IP back.

 I just need to know what lines to add to my template file to get my vms
 to use DHCP only. I'm sure it's something really simple, I just can't find
 any info here:
 http://docs.opennebula.org/4.6/user/virtual_machine_setup/cong.html

 If you know how to get DHCP working, please let me know.

 Thank you!!


 On Tue, Jul 22, 2014 at 3:48 PM, kerryhall . kerryh...@gmail.com wrote:

 Hi folks,

 I want to configure Open Nebula to contextualize two items for
 ifcfg-eth0.

 BOOTPROTO=dhcp
 and
 DHCP_HOSTNAME=parameter passed in via ONE web interface, even just
 vm-name would work

 I need no other networking settings. DHCP on my network handles the
 rest. I have tried manually setting these two parameters in ifcfg-eth0 and
 it looks like it works. (Although the new IP given via DHCP doesn't

Re: [one-users] Setting hostname for vm

2014-07-22 Thread kerryhall .
Thanks!

So it sounds like I need to edit the vm description file and change the
hostname variable.

Where is the vm description file located? I tried running the following
google search:
site:http://docs.opennebula.org/4.6/ vm description file

But only got one result,
http://docs.opennebula.org/4.6/user/virtual_machine_setup/cong.html, which
I've already read.

I'm assuming that the vm description file is a file that is created on
the server running sunstone, some sort of conf file that is stored
somewhere. But I could be completely wrong.

Thank you for the assistance.


On Tue, Jul 22, 2014 at 5:37 AM, Javier Fontan jfon...@opennebula.org
wrote:

 You should use SET_HOSTNAME variable instead:


 http://docs.opennebula.org/4.6/user/virtual_machine_setup/cong.html#using-user-template-variables

 On Tue, Jul 22, 2014 at 10:37 AM, Diego M. thedragonsreb...@hotmail.com
 wrote:
  I was checkign the documentation, and you can use for HOSTNAME=$NAME on
 the
  contextualization part of your template.
  I tried it and didn't worked for me, but it is supposed to work. Maybe
 I'm
  doing something wrong.
 
  
  Date: Mon, 21 Jul 2014 17:14:56 -0700
  From: kerryh...@gmail.com
  To: users@lists.opennebula.org
  Subject: [one-users] Setting hostname for vm
 
 
  Hi folks,
 
  I'm trying to determine how I can set the hostname for the vms I spin
 up. It
  looks like the web interface for vms has no place to enter additional
  one-off type properties, like hostname. This is true for both the user
 web
  interface and the admin web interface.
 
  The template creation interface certainly has a place for raw data, but
 I'm
  assuming I shouldn't have to create one template per vm just to set the
  hostname. Perhaps setting up a template correctly will change the vm
  interface, allowing a place to type in a hostname.
 
  Host and guest are both CentOS 6.
 
  Thanks!
  Kerry
 
 
  ___ 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 - 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


[one-users] DHCP

2014-07-22 Thread kerryhall .
Hi folks,

I want to configure Open Nebula to contextualize two items for ifcfg-eth0.

BOOTPROTO=dhcp
and
DHCP_HOSTNAME=parameter passed in via ONE web interface, even just vm-name
would work

I need no other networking settings. DHCP on my network handles the rest. I
have tried manually setting these two parameters in ifcfg-eth0 and it looks
like it works. (Although the new IP given via DHCP doesn't match the
original IP)

Is this possible to do in ONE? If so, where do I start?

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


[one-users] Setting hostname for vm

2014-07-21 Thread kerryhall .
Hi folks,

I'm trying to determine how I can set the hostname for the vms I spin up.
It looks like the web interface for vms has no place to enter additional
one-off type properties, like hostname. This is true for both the user web
interface and the admin web interface.

The template creation interface certainly has a place for raw data, but I'm
assuming I shouldn't have to create one template per vm just to set the
hostname. Perhaps setting up a template correctly will change the vm
interface, allowing a place to type in a hostname.

Host and guest are both CentOS 6.

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


[one-users] Setting up a system datastore using ssh driver

2014-06-18 Thread kerryhall .
Hi folks,

I'm trying to set up my hosts to have the vm disk images stored locally.
From the ONE docs, it looks like I need to create a system datastore using
the ssh driver. However, I have done so yet the disk images remain on the
frontend node.

I used Sunstone to create a new datastore with the following parameters:

Name: New system
Presets: Filesystem
Cluster: Default (I'm not using clusters just yet)
Type: system
Datastore: filesystem
Transfer: ssh
Safe directories: blank
Restricted directories: blank
Base Path: /one/system (which I created on my host, and chowned to
oneadmin:oneadmin)
Limit: blank

I also removed the default system datastore, which is a shared datastore.

Expected behavior: disk images for new vms show up in /one/system on my
hosts.

Actual behavior: disk images show up in
/var/lib/one/datastores/100
on the frontend node.
(100 is the ID of my new ssh system datastore)

Any help would be greatly appreciated.

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


Re: [one-users] Setting up a system datastore using ssh driver

2014-06-18 Thread kerryhall .
Sorry if I'm not understanding this correctly.

All running system disk images must fit in /var/lib/one on the frontend?
/var/lib/one is currently 1TB on my frontend, but I have hundreds of hosts,
each with 1-2TB of storage. I want the disk images for the running vms to
live on the hosts *only*.

If /var/lib/one/datastores/100 is a symlink to /one/system, but
/var/lib/one is an nfs share on the frontend, mounted on all nodes, that
means that the system disk images are going to be propagated to *all*
nodes, doesn't it?

I tested this with two worker nodes, and it looks like the disk images
propagate to /one/system to the respective nodes (checking on the host
itself), but sunstone is giving me errors for one of the worker nodes, but
not the other.

Could not create domain from /var/lib/one//datastores/100/10/deployment.0

Thanks for the help!!
Kerry



On Wed, Jun 18, 2014 at 11:58 AM, Javier Fontan jfon...@opennebula.org
wrote:

 In the frontend the datastores are always at /var/lib/one/datastores.
 The base path is only for nodes. If you want to use another filesystem
 or path mount it in the datastore location or use a symlink.

 On Wed, Jun 18, 2014 at 8:23 PM, kerryhall . kerryh...@gmail.com wrote:
  Hi folks,
 
  I'm trying to set up my hosts to have the vm disk images stored locally.
  From the ONE docs, it looks like I need to create a system datastore
 using
  the ssh driver. However, I have done so yet the disk images remain on the
  frontend node.
 
  I used Sunstone to create a new datastore with the following parameters:
 
  Name: New system
  Presets: Filesystem
  Cluster: Default (I'm not using clusters just yet)
  Type: system
  Datastore: filesystem
  Transfer: ssh
  Safe directories: blank
  Restricted directories: blank
  Base Path: /one/system (which I created on my host, and chowned to
  oneadmin:oneadmin)
  Limit: blank
 
  I also removed the default system datastore, which is a shared datastore.
 
  Expected behavior: disk images for new vms show up in /one/system on my
  hosts.
 
  Actual behavior: disk images show up in
  /var/lib/one/datastores/100
  on the frontend node.
  (100 is the ID of my new ssh system datastore)
 
  Any help would be greatly appreciated.
 
  Thanks!!
  Kerry
 
  ___
  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] Setting up a system datastore using ssh driver

2014-06-18 Thread kerryhall .
Ok, in my excitement getting things tested here, I neglected to enable
virtualization in the BIOS on my second host. o_O

This works now!!

Thanks for the help Javier!!
Kerry


On Wed, Jun 18, 2014 at 3:47 PM, kerryhall . kerryh...@gmail.com wrote:

 Sorry if I'm not understanding this correctly.

 All running system disk images must fit in /var/lib/one on the frontend?
 /var/lib/one is currently 1TB on my frontend, but I have hundreds of hosts,
 each with 1-2TB of storage. I want the disk images for the running vms to
 live on the hosts *only*.

 If /var/lib/one/datastores/100 is a symlink to /one/system, but
 /var/lib/one is an nfs share on the frontend, mounted on all nodes, that
 means that the system disk images are going to be propagated to *all*
 nodes, doesn't it?

 I tested this with two worker nodes, and it looks like the disk images
 propagate to /one/system to the respective nodes (checking on the host
 itself), but sunstone is giving me errors for one of the worker nodes, but
 not the other.

 Could not create domain from /var/lib/one//datastores/100/10/deployment.0

 Thanks for the help!!
 Kerry



 On Wed, Jun 18, 2014 at 11:58 AM, Javier Fontan jfon...@opennebula.org
 wrote:

 In the frontend the datastores are always at /var/lib/one/datastores.
 The base path is only for nodes. If you want to use another filesystem
 or path mount it in the datastore location or use a symlink.

 On Wed, Jun 18, 2014 at 8:23 PM, kerryhall . kerryh...@gmail.com wrote:
  Hi folks,
 
  I'm trying to set up my hosts to have the vm disk images stored locally.
  From the ONE docs, it looks like I need to create a system datastore
 using
  the ssh driver. However, I have done so yet the disk images remain on
 the
  frontend node.
 
  I used Sunstone to create a new datastore with the following parameters:
 
  Name: New system
  Presets: Filesystem
  Cluster: Default (I'm not using clusters just yet)
  Type: system
  Datastore: filesystem
  Transfer: ssh
  Safe directories: blank
  Restricted directories: blank
  Base Path: /one/system (which I created on my host, and chowned to
  oneadmin:oneadmin)
  Limit: blank
 
  I also removed the default system datastore, which is a shared
 datastore.
 
  Expected behavior: disk images for new vms show up in /one/system on my
  hosts.
 
  Actual behavior: disk images show up in
  /var/lib/one/datastores/100
  on the frontend node.
  (100 is the ID of my new ssh system datastore)
 
  Any help would be greatly appreciated.
 
  Thanks!!
  Kerry
 
  ___
  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


[one-users] Changing /var/lib/one location

2014-06-17 Thread kerryhall .
Hi folks,

I was wondering how to change the location of /var/lib/one. I have tried
making a symlink from /var/lib/one to a new location before installing the
ONE packages, but for some reason generating the ssh key (and possibly
other installation steps) failed. My reason for doing so is that I am
working with systems that have /var as a separate 10 gig partition, and it
is not something I can change.

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


Re: [one-users] Changing /var/lib/one location

2014-06-17 Thread kerryhall .
That's a good idea. Let me give that a try.

Thank you!
Kerry


On Tue, Jun 17, 2014 at 10:21 AM, Alberto Zuin - Liste li...@albertozuin.eu
 wrote:

  Hi,
 you can mount your partition directly on /var/lib/one or you can bind your
 mount to /var/lib/one (for ex. mount -o bind /mnt/newpart /var/lib/one)
 My 2 cents,
 Alberto

 Il 17/06/14 18:18, kerryhall . ha scritto:

  Hi folks,

 I was wondering how to change the location of /var/lib/one. I have tried
 making a symlink from /var/lib/one to a new location before installing the
 ONE packages, but for some reason generating the ssh key (and possibly
 other installation steps) failed. My reason for doing so is that I am
 working with systems that have /var as a separate 10 gig partition, and it
 is not something I can change.

  Thanks!


 ___
 Users mailing 
 listUsers@lists.opennebula.orghttp://lists.opennebula.org/listinfo.cgi/users-opennebula.org



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


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


Re: [one-users] Changing /var/lib/one location

2014-06-17 Thread kerryhall .
This seems to have _mostly_ worked. I created a logical volume and mounted
it at /var/lib/one, installed the opennebula packages, and then changed the
ownership to the oneadmin user.

However, I have noticed two issues.
1. .ssh was not created. (but all other files appear to have been created
normally afaik)
2. The system data store does not report capacity. (but the files and
default datastores do)

My guess is that when the opennebula packages are installed, there is an
if statement being run by the installer that checks to see if the
/var/lib/one directory already exists, and if so, does not do certain
things. (like set up .ssh, perhaps)

Any suggestions would be appreciated!
Kerry


On Tue, Jun 17, 2014 at 11:09 AM, kerryhall . kerryh...@gmail.com wrote:

 That's a good idea. Let me give that a try.

 Thank you!
 Kerry


 On Tue, Jun 17, 2014 at 10:21 AM, Alberto Zuin - Liste 
 li...@albertozuin.eu wrote:

  Hi,
 you can mount your partition directly on /var/lib/one or you can bind
 your mount to /var/lib/one (for ex. mount -o bind /mnt/newpart /var/lib/one)
 My 2 cents,
 Alberto

 Il 17/06/14 18:18, kerryhall . ha scritto:

  Hi folks,

 I was wondering how to change the location of /var/lib/one. I have tried
 making a symlink from /var/lib/one to a new location before installing the
 ONE packages, but for some reason generating the ssh key (and possibly
 other installation steps) failed. My reason for doing so is that I am
 working with systems that have /var as a separate 10 gig partition, and it
 is not something I can change.

  Thanks!


 ___
 Users mailing 
 listUsers@lists.opennebula.orghttp://lists.opennebula.org/listinfo.cgi/users-opennebula.org



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



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


Re: [one-users] Changing /var/lib/one location

2014-06-17 Thread kerryhall .
Hmm, looks like selinux was already disabled. Not sure what's going on
there.

I generated the ssh key manually and everything _seems_ to be working as
expected.

Thanks!


On Tue, Jun 17, 2014 at 12:37 PM, Javier Fontan jfon...@opennebula.org
wrote:

 I believe that the problem is selinux. It does not let create and
 maybe use ssh keys outside /home directory. Try disabling selinux
 before installing the package.

 # setenforce 0

 On Tue, Jun 17, 2014 at 8:51 PM, kerryhall . kerryh...@gmail.com wrote:
  This seems to have _mostly_ worked. I created a logical volume and
 mounted
  it at /var/lib/one, installed the opennebula packages, and then changed
 the
  ownership to the oneadmin user.
 
  However, I have noticed two issues.
  1. .ssh was not created. (but all other files appear to have been created
  normally afaik)
  2. The system data store does not report capacity. (but the files and
  default datastores do)
 
  My guess is that when the opennebula packages are installed, there is an
 if
  statement being run by the installer that checks to see if the
 /var/lib/one
  directory already exists, and if so, does not do certain things. (like
 set
  up .ssh, perhaps)
 
  Any suggestions would be appreciated!
  Kerry
 
 
  On Tue, Jun 17, 2014 at 11:09 AM, kerryhall . kerryh...@gmail.com
 wrote:
 
  That's a good idea. Let me give that a try.
 
  Thank you!
  Kerry
 
 
  On Tue, Jun 17, 2014 at 10:21 AM, Alberto Zuin - Liste
  li...@albertozuin.eu wrote:
 
  Hi,
  you can mount your partition directly on /var/lib/one or you can bind
  your mount to /var/lib/one (for ex. mount -o bind /mnt/newpart
 /var/lib/one)
  My 2 cents,
  Alberto
 
  Il 17/06/14 18:18, kerryhall . ha scritto:
 
  Hi folks,
 
  I was wondering how to change the location of /var/lib/one. I have
 tried
  making a symlink from /var/lib/one to a new location before installing
 the
  ONE packages, but for some reason generating the ssh key (and possibly
 other
  installation steps) failed. My reason for doing so is that I am
 working with
  systems that have /var as a separate 10 gig partition, and it is not
  something I can change.
 
  Thanks!
 
 
  ___
  Users mailing list
  Users@lists.opennebula.org
  http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
 
 
 
  ___
  Users mailing list
  Users@lists.opennebula.org
  http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
 
 
 
 
  ___
  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] 4.4 Installation instructions are incorrect

2014-06-10 Thread kerryhall .
On this page here:


On Tue, Jun 10, 2014 at 12:19 AM, kna...@gmail.com wrote:

 Hello Kerry!

 What makes you think that 4.6 is development version? As far as I know it
 is a stable one (there is even 4.6.1 with bug fixes).

 Have a loot at Release cycle [1]

 Best regards,
 Nikolay.

 [1] http://opennebula.org/software/release/

 kerryhall . wrote on 10/06/14 02:45:

 Hi folks,

 I followed the instructions here:
 http://docs.opennebula.org/4.4/design_and_installation/
 quick_starts/qs_centos_kvm.html#qs-centos-kvm

 But I end up with version 4.6, not version 4.4. 4.6 is nice, but I would
 like to use the stable
 version for my use, not the development version.

 I managed to work around this by manually telling yum to install version
 4.4.1-1, but whenever I
 try to do yum update, it updates these packages to 4.6. Of course, I
 could exclude these packages
 from yum updates which seems to work. It might be nice to do whatever is
 necessary to allow one
 package to not replace the other, perhaps in the same way that mysql 5.6
 and mysql 5.5 can coexist
 on a system.

 I would also like to see the documentation to be updated and correct. I
 would be happy to
 collaborate on this with whoever has permissions to edit the
 documentation.

 Thanks,
 Kerry


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

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

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


Re: [one-users] 4.4 Installation instructions are incorrect

2014-06-10 Thread kerryhall .
http://docs.opennebula.org/4.4/

It says 4.4 (Stable) and 4.6 (Devel)


On Tue, Jun 10, 2014 at 12:23 AM, kerryhall . kerryh...@gmail.com wrote:

 On this page here:


 On Tue, Jun 10, 2014 at 12:19 AM, kna...@gmail.com wrote:

 Hello Kerry!

 What makes you think that 4.6 is development version? As far as I know it
 is a stable one (there is even 4.6.1 with bug fixes).

 Have a loot at Release cycle [1]

 Best regards,
 Nikolay.

 [1] http://opennebula.org/software/release/

 kerryhall . wrote on 10/06/14 02:45:

 Hi folks,

 I followed the instructions here:
 http://docs.opennebula.org/4.4/design_and_installation/
 quick_starts/qs_centos_kvm.html#qs-centos-kvm

 But I end up with version 4.6, not version 4.4. 4.6 is nice, but I would
 like to use the stable
 version for my use, not the development version.

 I managed to work around this by manually telling yum to install version
 4.4.1-1, but whenever I
 try to do yum update, it updates these packages to 4.6. Of course, I
 could exclude these packages
 from yum updates which seems to work. It might be nice to do whatever is
 necessary to allow one
 package to not replace the other, perhaps in the same way that mysql 5.6
 and mysql 5.5 can coexist
 on a system.

 I would also like to see the documentation to be updated and correct. I
 would be happy to
 collaborate on this with whoever has permissions to edit the
 documentation.

 Thanks,
 Kerry


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

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



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


Re: [one-users] 4.4 Installation instructions are incorrect

2014-06-10 Thread kerryhall .
Thank you for the clarification, sorry for the confusion on my part.

Kerry


On Tue, Jun 10, 2014 at 1:29 AM, Jaime Melis jme...@opennebula.org wrote:

 Hi,

 Nikolay is right, 4.6 is the last stable (and production ready) release,
 and the one you should be installing.

 However it's somewhat confusing that the 4.4 docs state that 4.6 is a
 devel version, so apologies for that, we've already fixed it.

 In any case http://docs.opennebula.org will always redirect to the last
 stable.

 regards,
 Jaime


 On Tue, Jun 10, 2014 at 9:30 AM, kna...@gmail.com wrote:

 I assume the logic behind is the following: user starts from OpenNebula
 home page (opennebula.org), then click on Documentation (
 http://opennebula.org/documentation/) which contains the documentation
 on the latest stable release. Currently it is written the following:
 OpenNebula 4.6 Guides (Latest Stable).


 kerryhall . wrote on 10/06/14 11:23:

 http://docs.opennebula.org/4.4/

 It says 4.4 (Stable) and 4.6 (Devel)


 On Tue, Jun 10, 2014 at 12:23 AM, kerryhall . kerryh...@gmail.com
 mailto:kerryh...@gmail.com wrote:

 On this page here:


 On Tue, Jun 10, 2014 at 12:19 AM, kna...@gmail.com mailto:
 kna...@gmail.com wrote:

 Hello Kerry!

 What makes you think that 4.6 is development version? As far as
 I know it is a stable one
 (there is even 4.6.1 with bug fixes).

 Have a loot at Release cycle [1]

 Best regards,
 Nikolay.

 [1] http://opennebula.org/__software/release/ 
 http://opennebula.org/software/release/


 kerryhall . wrote on 10/06/14 02:45:

 Hi folks,

 I followed the instructions here:
 http://docs.opennebula.org/4.__4/design_and_installation/__
 quick_starts/qs_centos_kvm.__html#qs-centos-kvm

 http://docs.opennebula.org/4.4/design_and_installation/
 quick_starts/qs_centos_kvm.html#qs-centos-kvm

 But I end up with version 4.6, not version 4.4. 4.6 is nice,
 but I would like to use the
 stable
 version for my use, not the development version.

 I managed to work around this by manually telling yum to
 install version 4.4.1-1, but
 whenever I
 try to do yum update, it updates these packages to 4.6. Of
 course, I could exclude these
 packages
 from yum updates which seems to work. It might be nice to do
 whatever is necessary to
 allow one
 package to not replace the other, perhaps in the same way
 that mysql 5.6 and mysql 5.5
 can coexist
 on a system.

 I would also like to see the documentation to be updated and
 correct. I would be happy to
 collaborate on this with whoever has permissions to edit the
 documentation.

 Thanks,
 Kerry


 _
 Users mailing list
 Users@lists.opennebula.org mailto:Users@lists.
 opennebula.org
 http://lists.opennebula.org/__listinfo.cgi/users-opennebula.
 __org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.
 org

 _
 Users mailing list
 Users@lists.opennebula.org mailto:Users@lists.opennebula.org
 http://lists.opennebula.org/__listinfo.cgi/users-opennebula.
 __org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org



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




 --
 Jaime Melis
 Project Engineer
 OpenNebula - Flexible Enterprise Cloud Made Simple
 www.OpenNebula.org | jme...@opennebula.org

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


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


[one-users] 4.4 Installation instructions are incorrect

2014-06-09 Thread kerryhall .
Hi folks,

I followed the instructions here:
http://docs.opennebula.org/4.4/design_and_installation/quick_starts/qs_centos_kvm.html#qs-centos-kvm

But I end up with version 4.6, not version 4.4. 4.6 is nice, but I would
like to use the stable version for my use, not the development version.

I managed to work around this by manually telling yum to install version
4.4.1-1, but whenever I try to do yum update, it updates these packages
to 4.6. Of course, I could exclude these packages from yum updates which
seems to work. It might be nice to do whatever is necessary to allow one
package to not replace the other, perhaps in the same way that mysql 5.6
and mysql 5.5 can coexist on a system.

I would also like to see the documentation to be updated and correct. I
would be happy to collaborate on this with whoever has permissions to edit
the documentation.

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