Re: [one-users] LVM / shared datastores running OS inside a USB stick

2014-07-24 Thread Jaime Melis
Hi Pablo,

LVM provides a few advantages in some scenarios, but generally a shared
file system like NFS fits more uses cases.

In a nutshell the difference between these two datastores is:
* lvm: images are registered into LV. When a VM is instantiated, the LV is
cloned to another LV in the same VG. The drawback is that it takes up a lot
of space
* fs_lvm: images are stored as files. When a VM is instantiated, the file
is dumped into an LV in the VG with the name vg-one-

In either case, the system datastore is a file-based datastores:. Take a
look at the table in this section:
http://docs.opennebula.org/4.6/administration/storage/sm.html#planning-your-storage
Only shared and ssh can be system datastores (and vmfs for VMware).

cheers,
Jaime


On Wed, Jul 23, 2014 at 3:47 AM, Pablo Hinojosa Nava 
wrote:

> HI all,
>
> I have rent a single dedicated server with OVH and I run the OS inside a
> USB stick. While I am setting up the datastores I cannot use LVM datastore
> driver (fs_lvm) to system datastore, so the default system datastore is on
> the USB stick. Which combination of types should I use for system, images
> and files datastores? I am having problems mixing system shared datastores
> with images fs_lvm datastores. How should I make the partitions to have a
> good configuration? all shared with partitions? mixed (lvm + partitions)?
> all LVM (would be possible?)? is fs_LVM much better than shared?
>
> Cheers,
>
>
> Pablo Hinojosa.
> PabloHinojosa.is
> 
>
> ___
> 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


[one-users] Rentalia - Experiences with OpenNebula and Bacula

2014-07-24 Thread Tino Vazquez
Dear OpenNebula users,

We thought you might find interesting this post [1] where Rentalia
folks explain how they integrate OpenNebula and Bacula to keep a
backup of all the VM images. We know this integration is widely
demanded, so if you want to try it out and extend the integration,
this is the perfect post to start with!

If you want to report your success story with OpenNebula, please send
us a line to  so we can take it to the
OpenNebula blog.

- The OpenNebula Team

[1] http://opennebula.org/rentalia-experiences-with-opennebula-and-bacula/

--
OpenNebula - Flexible Enterprise Cloud Made Simple

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

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


[one-users] How use $UNAME

2014-07-24 Thread Alexandr Baranov
Hi,

I'm trying to setup kerberos login to log into VMs with kerberos username
matching ONE username. I'm going to use UNAME variable and ONE
documentation states it as pre-defined. So the question is: do I need to
manually specify UNAME inside the VM template, or is it automatically
defined and passed to contextualization scripts?
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] How use $UNAME

2014-07-24 Thread Valentin Bud
Hi Alexandr,

It is defined but not automatically included. You have to configure it
in the template.

CONTEXT=[
UNAME="$UNAME"
]

You can, of course name the variable inside the CONTEXT as you wish.

I am using ONE 4.4 and the above applies to this version, I don't know if
4.6 includes the pre-defined variables by default.

Best,
Valentin


On Thu, Jul 24, 2014 at 1:34 PM, Alexandr Baranov 
wrote:

> Hi,
>
> I'm trying to setup kerberos login to log into VMs with kerberos username
> matching ONE username. I'm going to use UNAME variable and ONE
> documentation states it as pre-defined. So the question is: do I need to
> manually specify UNAME inside the VM template, or is it automatically
> defined and passed to contextualization scripts?
>
> ___
> 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] How use $UNAME

2014-07-24 Thread Alexandr Baranov
Thnak you,Valentin!
24.07.2014 14:48 пользователь "Valentin Bud" 
написал:

> Hi Alexandr,
>
> It is defined but not automatically included. You have to configure it
> in the template.
>
> CONTEXT=[
> UNAME="$UNAME"
> ]
>
> You can, of course name the variable inside the CONTEXT as you wish.
>
> I am using ONE 4.4 and the above applies to this version, I don't know if
> 4.6 includes the pre-defined variables by default.
>
> Best,
> Valentin
>
>
> On Thu, Jul 24, 2014 at 1:34 PM, Alexandr Baranov  > wrote:
>
>> Hi,
>>
>> I'm trying to setup kerberos login to log into VMs with kerberos username
>> matching ONE username. I'm going to use UNAME variable and ONE
>> documentation states it as pre-defined. So the question is: do I need to
>> manually specify UNAME inside the VM template, or is it automatically
>> defined and passed to contextualization scripts?
>>
>> ___
>> 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] [VirtualMachineAllocate] Error allocating a new virtual machine. Only one CONTEXT attribute can be defined.

2014-07-24 Thread Alexandr Baranov
Hi,
I have problems to create new virtual machines with rocci although i can
create new virtual machines through sunstone web interface.

Here's the output:
$ occi --endpoint  --action create --resource compute
--mixin os_tpl#uuid_kvm_scientific_6_x86_64_1cpu_1gb_ram_clstkvm_155
--mixin resource_tpl#small --attribute
occi.core.title="uuid_sl65_cvmfs_cloudinit_276_cloudinit_1406193329"
--output-format json --auth basic --username  --password  F,

[2014-07-24T17:25:32.944541 #28565] FATAL -- : [rOCCI-cli] An error
occurred! Message: HTTP POST with
ID["72735417-9542-4e74-b04d-7d0c09b6c525"] failed! HTTP Response status:
[400]
Bad Request : "[VirtualMachineAllocate] Error allocating a new virtual
machine. Only one CONTEXT attribute can be defined."

What could be the problem?
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] [VirtualMachineAllocate] Error allocating a new virtual machine. Only one CONTEXT attribute can be defined.

2014-07-24 Thread Valentin Bud
Hi Alexandr,

Can you post your template please. Have you somehow defined two CONTEXT
arrays inside the template?

Bad Request : "[VirtualMachineAllocate] Error allocating a new virtual
machine. Only one CONTEXT attribute can be defined."

The above makes me think you did.

Best,
Valentin


On Thu, Jul 24, 2014 at 4:37 PM, Alexandr Baranov 
wrote:

> Hi,
> I have problems to create new virtual machines with rocci although i can
> create new virtual machines through sunstone web interface.
>
> Here's the output:
> $ occi --endpoint  --action create --resource compute
> --mixin os_tpl#uuid_kvm_scientific_6_x86_64_1cpu_1gb_ram_clstkvm_155
> --mixin resource_tpl#small --attribute
> occi.core.title="uuid_sl65_cvmfs_cloudinit_276_cloudinit_1406193329"
> --output-format json --auth basic --username  --password  F,
>
> [2014-07-24T17:25:32.944541 #28565] FATAL -- : [rOCCI-cli] An error
> occurred! Message: HTTP POST with
> ID["72735417-9542-4e74-b04d-7d0c09b6c525"] failed! HTTP Response status:
> [400]
> Bad Request : "[VirtualMachineAllocate] Error allocating a new virtual
> machine. Only one CONTEXT attribute can be defined."
>
> What could be the problem?
>
> ___
> 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] [VirtualMachineAllocate] Error allocating a new virtual machine. Only one CONTEXT attribute can be defined.

2014-07-24 Thread Alexandr Baranov
My template:
NIC=[NETWORK="36-kvm",NETWORK_UNAME="oneadmin"] MEMORY="1024" CPU="1"
DISK=[IMAGE="SL65-cvmfs-cloudinit",IMAGE_UNAME=$IMAGE_UNAME]
GRAPHICS=[TYPE="VNC",LISTEN="0.0.0.0"] CONTEXT=[SSH_PUBLIC_KEY="ssh-rsa
[KEY]",NETWORK="YES"] RAW=[TYPE="kvm"] OS=[ARCH="x86_64",BOOT="hd"]
24.07.2014 17:46 пользователь "Valentin Bud" 
написал:

> Hi Alexandr,
>
> Can you post your template please. Have you somehow defined two CONTEXT
> arrays inside the template?
>
> Bad Request : "[VirtualMachineAllocate] Error allocating a new virtual
> machine. Only one CONTEXT attribute can be defined."
>
> The above makes me think you did.
>
> Best,
> Valentin
>
>
> On Thu, Jul 24, 2014 at 4:37 PM, Alexandr Baranov  > wrote:
>
>> Hi,
>> I have problems to create new virtual machines with rocci although i can
>> create new virtual machines through sunstone web interface.
>>
>> Here's the output:
>> $ occi --endpoint  --action create --resource compute
>> --mixin os_tpl#uuid_kvm_scientific_6_x86_64_1cpu_1gb_ram_clstkvm_155
>> --mixin resource_tpl#small --attribute
>> occi.core.title="uuid_sl65_cvmfs_cloudinit_276_cloudinit_1406193329"
>> --output-format json --auth basic --username  --password  F,
>>
>> [2014-07-24T17:25:32.944541 #28565] FATAL -- : [rOCCI-cli] An error
>> occurred! Message: HTTP POST with
>> ID["72735417-9542-4e74-b04d-7d0c09b6c525"] failed! HTTP Response status:
>> [400]
>> Bad Request : "[VirtualMachineAllocate] Error allocating a new virtual
>> machine. Only one CONTEXT attribute can be defined."
>>
>> What could be the problem?
>>
>> ___
>> 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] onevm migrate/suspend and checkpoint files

2014-07-24 Thread Steven Timm


When OpenNebula creates a checkpoint file either as part
of a onevm migrate or onevm suspend, what libvirt function
is it calling to do the checkpoint?

We are seeing some issues on our new Ivy Bridge hardware
that sometimes in the process of a (non-live) migration,
the clock can get confused in such a way that when the
virtual machine starts from the checkpoint file
it will be hung and the kvm process uses 100% of cpu for
a day or more, and then usually resolves itself.  In some
cases we see the clock jump very far into the future (2598),
which in itself can confuse a linux vm enough to hang it.

Any clues on what OpenNebula /libvirt are doing under the covers?
Is there any reason to suspect that on Ivy Bridge hardware,
in which there are some 60 different cpu frequencies available
for cpu scaling, the rapidly fluctuating clock speeds might
get us into trouble--i.e. suspending the machine on one clock
frequency and bringig it back on a different clock frequency?

Does anyone have experience in migrating between hardware
generations... Ivy Bridge -> Westmere and vice versa?

Finally, has anyone run a successful combination of kernel 3.10
or greater and RHEL6/Centos 6/Sci. Linux 6?
(In particular do the stock versions of libvirt and qemu-kvm
play nice with the 3.10 kernel)?
The 2.6.32 kernel that comes with RHEL6/Centos6/Sci Linux 6 is just not
up to dealing with virtualization on Ivy Bridge machines and it
has some trouble on Sandy Bridge too.

Thanks

Steve Timm



--
Steven C. Timm, Ph.D  (630) 840-8525
t...@fnal.gov  http://home.fnal.gov/~timm/
Fermilab Scientific Computing Division, Scientific Computing Services Quad.
Grid and Cloud Services Dept., Associate Dept. Head for Cloud Computing
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] [VirtualMachineAllocate] Error allocating a new virtual machine. Only one CONTEXT attribute can be defined.

2014-07-24 Thread Valentin Bud
Looks good to me Alexandr. It seems it's another problem somewhere else.
I have never used rocci so I am unable to help you further :|. Maybe others
will.

Best,
Valentin


On Thu, Jul 24, 2014 at 4:55 PM, Alexandr Baranov 
wrote:

> My template:
> NIC=[NETWORK="36-kvm",NETWORK_UNAME="oneadmin"] MEMORY="1024" CPU="1"
> DISK=[IMAGE="SL65-cvmfs-cloudinit",IMAGE_UNAME=$IMAGE_UNAME]
> GRAPHICS=[TYPE="VNC",LISTEN="0.0.0.0"] CONTEXT=[SSH_PUBLIC_KEY="ssh-rsa
> [KEY]",NETWORK="YES"] RAW=[TYPE="kvm"] OS=[ARCH="x86_64",BOOT="hd"]
> 24.07.2014 17:46 пользователь "Valentin Bud" 
> написал:
>
>  Hi Alexandr,
>>
>> Can you post your template please. Have you somehow defined two CONTEXT
>> arrays inside the template?
>>
>> Bad Request : "[VirtualMachineAllocate] Error allocating a new virtual
>> machine. Only one CONTEXT attribute can be defined."
>>
>> The above makes me think you did.
>>
>> Best,
>> Valentin
>>
>>
>> On Thu, Jul 24, 2014 at 4:37 PM, Alexandr Baranov <
>> telecastcl...@gmail.com> wrote:
>>
>>> Hi,
>>> I have problems to create new virtual machines with rocci although i can
>>> create new virtual machines through sunstone web interface.
>>>
>>> Here's the output:
>>> $ occi --endpoint  --action create --resource compute
>>> --mixin os_tpl#uuid_kvm_scientific_6_x86_64_1cpu_1gb_ram_clstkvm_155
>>> --mixin resource_tpl#small --attribute
>>> occi.core.title="uuid_sl65_cvmfs_cloudinit_276_cloudinit_1406193329"
>>> --output-format json --auth basic --username  --password  F,
>>>
>>> [2014-07-24T17:25:32.944541 #28565] FATAL -- : [rOCCI-cli] An error
>>> occurred! Message: HTTP POST with
>>> ID["72735417-9542-4e74-b04d-7d0c09b6c525"] failed! HTTP Response status:
>>> [400]
>>> Bad Request : "[VirtualMachineAllocate] Error allocating a new virtual
>>> machine. Only one CONTEXT attribute can be defined."
>>>
>>> What could be the problem?
>>>
>>> ___
>>> 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] [VirtualMachineAllocate] Error allocating a new virtual machine. Only one CONTEXT attribute can be defined.

2014-07-24 Thread Alexandr Baranov
Thank you, Valentin!
24.07.2014 18:01 пользователь "Valentin Bud" 
написал:

> Looks good to me Alexandr. It seems it's another problem somewhere else.
> I have never used rocci so I am unable to help you further :|. Maybe others
> will.
>
> Best,
> Valentin
>
>
> On Thu, Jul 24, 2014 at 4:55 PM, Alexandr Baranov  > wrote:
>
>> My template:
>> NIC=[NETWORK="36-kvm",NETWORK_UNAME="oneadmin"] MEMORY="1024" CPU="1"
>> DISK=[IMAGE="SL65-cvmfs-cloudinit",IMAGE_UNAME=$IMAGE_UNAME]
>> GRAPHICS=[TYPE="VNC",LISTEN="0.0.0.0"] CONTEXT=[SSH_PUBLIC_KEY="ssh-rsa
>> [KEY]",NETWORK="YES"] RAW=[TYPE="kvm"] OS=[ARCH="x86_64",BOOT="hd"]
>> 24.07.2014 17:46 пользователь "Valentin Bud" 
>> написал:
>>
>>  Hi Alexandr,
>>>
>>> Can you post your template please. Have you somehow defined two CONTEXT
>>> arrays inside the template?
>>>
>>> Bad Request : "[VirtualMachineAllocate] Error allocating a new virtual
>>> machine. Only one CONTEXT attribute can be defined."
>>>
>>> The above makes me think you did.
>>>
>>> Best,
>>> Valentin
>>>
>>>
>>> On Thu, Jul 24, 2014 at 4:37 PM, Alexandr Baranov <
>>> telecastcl...@gmail.com> wrote:
>>>
 Hi,
 I have problems to create new virtual machines with rocci although i
 can create new virtual machines through sunstone web interface.

 Here's the output:
 $ occi --endpoint  --action create --resource compute
 --mixin os_tpl#uuid_kvm_scientific_6_x86_64_1cpu_1gb_ram_clstkvm_155
 --mixin resource_tpl#small --attribute
 occi.core.title="uuid_sl65_cvmfs_cloudinit_276_cloudinit_1406193329"
 --output-format json --auth basic --username  --password  F,

 [2014-07-24T17:25:32.944541 #28565] FATAL -- : [rOCCI-cli] An error
 occurred! Message: HTTP POST with
 ID["72735417-9542-4e74-b04d-7d0c09b6c525"] failed! HTTP Response status:
 [400]
 Bad Request : "[VirtualMachineAllocate] Error allocating a new virtual
 machine. Only one CONTEXT attribute can be defined."

 What could be the problem?

 ___
 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] VNC proxy is working but Sustone VNC window does show error

2014-07-24 Thread pawel . orzechowski
 

Daniel, I have the same error "VNC Server disconnected (code: 1006)". 

I will check the link Valentin has provided and let you know. 

Thanks 

Pawel 

---

Paweł Orzechowski
pawel.orzechow...@budikom.net
BUDIKOM.NET
ul. Trzy Lipy 3, GPNT, bud. C
80-172 Gdańsk
tel.: +48 58 58 58 708
email: bi...@budikom.net

W dniu 2014-07-24 07:07, Valentin Bud napisał(a): 

> Hello Paweł, 
> 
> Maybe your issue is somehow connected to the Same-Origin-Policy discussed in 
> the following thread: 
> 
> http://lists.opennebula.org/pipermail/users-opennebula.org/2014-February/026405.html
>  [15] 
> 
> Best, 
> Valentin 
> 
> On Wed, Jul 23, 2014 at 4:16 PM, Daniel Molina  wrote:
> 
> On 22 July 2014 16:44,  wrote:
> 
> I had similar situation. When I switched on "secure websockets connection" in 
> my profile settings I could not open VNC connection to any virtual machine. 
> 
> Isn't it a bug? 
> 
> What is the error message that is shown in Susntone? 
> 
> Cheers 
> 
> Pawel 
> 
> I have found my mistake!
> It was silly - Some time ago I pressed "Secure websockets connection" chekbox 
> in configuration tab and forgot about it.
> So now it's working!
> THANK YOU.
> 
> 23.08.2012, 17:17, "Пярн Артур" :
>> If I go direclty from browser to http://10.18.1.7:35792/ [2]
>> it shows me in websockify output the following message: "Normal web request 
>> received but disallowed"
>>> 23.08.2012, 16:54, "Пярн Артур" :
 Just in case, my configuration:
>>> 10.2.2.2 - KVM host with VMs
>>> 10.18.1.7 - only OpenNebula and Sunstone front-end
> * Can you connect directly without no VNC to those VMs (10.2.2.2:5916 [3] 
> for example) with a standard vnc client
> Yes, with no problem
> If I start proxy manualy "/srv/cloud/one/share/noVNC/utils/websockify 
> 35792 10.2.2.2:5916 [3]", I can't connetct from VNC client to 
> 10.18.1.7:35792 [4], it shows me "ignoring socket not ready":
> root at ubuntu [1]:/srv/cloud/one/share/noVNC/utils# 
> /srv/cloud/one/share/noVNC/utils/websockify 35792 10.2.2.2:5916 [3]
>>> WARNING: no 'numpy' module, HyBi protocol is slower or disabled
>>> WebSocket server settings:
>>> - Listen on :35792
>>> - Flash security policy server
>>> - No SSL/TLS support (no cert file)
>>> - proxying from :35792 to 10.2.2.2:5916 [3]
> 1: 10.2.0.3 [5]: ignoring socket not ready
>>> 2: 10.2.0.3 [5]: ignoring socket not ready
> I found that I can connect to 10.18.1.7 [6]: 35792 from browser 
> (http://10.18.1.7:6080/vnc.html [7]) when I start both launch.sh script 
> and also websockify 35792 10.2.2.2:5916 [3]
> 23.08.2012, 16:20, "Hector Sanjuan" :
 Your "working" screenshot shows a VNC session to a VM deployed in the same
 host as the sunstone frontend (10.18.1.7:6080 [8]), but from sunstone you 
 are
 trying to open connections to VMs in a different host (10.2.2.2). My
 questions then,
>>> * Can you connect directly without no VNC to those VMs (10.2.2.2:5916 
>>> [3] for
 example) with a standard vnc client
>>> * If you manually launch the proxy with the webserver option like you 
>>> did,
 would something like
 http://10.18.1.7:6080/vnc.html?host=10.2.2.2&port=5916 [9] work? This 
 should
 not work if sunstone doesnt. Perhaps you can get some useful info from the
 websockify stdout when attempting it if it doesnt work.
>>> (in response to your latest email, dont worry about the timeout thing)
>>> Hector
>>> En Thu, 23 Aug 2012 14:08:05 +0200, Пярн Артур >> [1]>
 escribió:
> Sure, logs below. sunstone.error is empty. It's our DEMO network, no
> firewall, so no way.
> --
> Server configuration
> --
> {:vnc_proxy_path=>"/srv/cloud/one/share/noVNC/utils/websockify",
> :auth=>"sunstone",
> :vnc_proxy_key=>nil,
> :vnc_proxy_support_wss=>false,
> :debug_level=>3,
> :vnc_proxy_base_port=>29876,
> :host=>"0.0.0.0",
> :port=>,
> :one_xmlrpc=>"http://localhost:2633/RPC2 [10]",
> :core_auth=>"cipher",
> :lang=>"en_US",
> :vnc_proxy_cert=>nil}
> == Sinatra/1.3.2 has taken the stage on  for development with backup
> from Thin
> Thu Aug 23 12:04:43 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:43] "GET /
> HTTP/1.1" 200 1595 0.0075
> Thu Aug 23 12:04:43 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:43] "GET
> /css/login.css HTTP/1.1" 304 - 0.0022
> Thu Aug 23 12:04:43 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:43] "GET
> /vendor/jQueryUI/jquery-ui-1.8.16.custom.css HTTP/1.1" 304 - 0.0023
> Thu Aug 23 12:04:43 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:43] "GET
> /vendor/jQuery/jquery-1.7.1.min.js HTTP/1.1" 304 - 0.0019
> Thu Aug 23 12:04:43 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:43] "GET
> /js/opennebula.js HTTP/1.1" 304 - 0.0015
> Thu Aug 23 12:04:43 2012 [I]: 10.2.0.3 - - [23/Aug/2012 12:04:43] "GET
> /js/

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 
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 .  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 .  wrote:
>>
>>> Hi folks,
>>>
>>> I want to configure Open Nebula to contextualize two items for
>>> ifcfg-eth0.
>>>
>>> BOOTPROTO=dhcp
>>> and
>>> DHCP_HOSTNAME=>> 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

[one-users] Upgrade 4.6 to 4.8 (beta) - onedb fsck report an error

2014-07-24 Thread Anandharaj Subramaniam
Hi,

I have followed the documentation to upgrade my test OpenNebula from 4.6.2 to 
the 4.8 (beta 1).  When I run the onedb fsck, I got an error.

[oneadmin@opennebula ~]$ onedb upgrade -v -u oneadmin -d opennebula
MySQL Password:
Version read:
Shared tables 4.6.0 : OpenNebula 4.6.2 daemon bootstrap
Local tables  4.5.80 : OpenNebula 4.6.2 daemon bootstrap

MySQL dump stored in /var/lib/one/mysql_localhost_opennebula.sql
Use 'onedb restore' or restore the DB using the mysql command:
mysql -u user -h server -P port db_name < backup_file


>>> Running migrators for shared tables
Database already uses version 4.6.0

>>> Running migrators for local tables
  > Running migrator /usr/lib/one/ruby/onedb/local/4.5.80_to_4.7.80.rb
  > Done in 0.27s

Database migrated from 4.5.80 to 4.7.80 (OpenNebula 4.7.80) by onedb command.

Total time: 0.27s


[oneadmin@opennebula ~]$ onedb fsck -S localhost -u oneadmin  -d opennebula
MySQL dump stored in /var/lib/one/mysql_localhost_opennebula.sql
Use 'onedb restore' or restore the DB using the mysql command:
mysql -u user -h server -P port db_name < backup_file


undefined method `[]' for nil:NilClass
Error running fsck version 4.6.0
The database will be restored
MySQL DB opennebula at localhost restored.


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