Re: [one-users] Live migration fails

2014-09-08 Thread Sander Klein
Hi,

Can the destination host oneadmin ssh to the source host?

Greets,

Sander

 On 8 sep. 2014, at 07:54, Johan Kooijman m...@johankooijman.com wrote:
 
 Hey All,
 
 I just tried to live migrate a VM, but got a message it failed:
 
 migrate: Command virsh --connect qemu:///system migrate --live one-810 
 qemu+ssh://10.23.24.19/system failed: error: Cannot recv data: Host key 
 verification failed.: Connection reset by peer
 
 See https://plakbord.cloud.nl/p/hBkytAtcPG627NLYrUS18AAB.
 
 qemu process is running as user oneadmin. user oneadmin can succesfully ssh 
 to the node. Am I missing something here?
 
 -- 
 Met vriendelijke groeten / With kind regards,
 Johan Kooijman
 ___
 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] Live migration fails

2014-09-08 Thread Johan Kooijman
Yup, not a problem at all.


On Mon, Sep 8, 2014 at 8:05 AM, Sander Klein roe...@roedie.nl wrote:

 Hi,

 Can the destination host oneadmin ssh to the source host?

 Greets,

 Sander

 On 8 sep. 2014, at 07:54, Johan Kooijman m...@johankooijman.com wrote:

 Hey All,

 I just tried to live migrate a VM, but got a message it failed:

 migrate: Command virsh --connect qemu:///system migrate --live one-810
 qemu+ssh://10.23.24.19/system failed: error: Cannot recv data: Host key
 verification failed.: Connection reset by peer

 See https://plakbord.cloud.nl/p/hBkytAtcPG627NLYrUS18AAB.

 qemu process is running as user oneadmin. user oneadmin can succesfully
 ssh to the node. Am I missing something here?

 --
 Met vriendelijke groeten / With kind regards,
 Johan Kooijman

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




-- 
Met vriendelijke groeten / With kind regards,
Johan Kooijman
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] CPU / vCPU Question

2014-09-08 Thread Hamada, Ondrej
Hi Christian,
Have you read this: 
http://lists.opennebula.org/pipermail/users-opennebula.org/2014-August/045682.html

O.

From: Users [mailto:users-boun...@lists.opennebula.org] On Behalf Of Hüning, 
Christian
Sent: Sunday, September 07, 2014 2:26 PM
To: users@lists.opennebula.org
Subject: [one-users] CPU / vCPU Question

Hi there,

can anybody tell me why it would be desireable to provide e.g. 12 real CPUs and 
just one vCPU? This is something ONE lets me do.

What would be use cases for the other way around (1 real CPU, 12 vCPUs)?

I also did some benchmarking with sysbench under Linux and found that the only 
option making sense to me is having CPU == vCPU. But maybe I am missing 
something?

Cheers,
Christian

---
Christian Hüning, BSc.
Fakultät Technik und Informatik, Department Informatik
Berliner Tor 7
20099 Hamburg
Tel.: +49 40 / 42875 - 8436
Mobil: +49 40 / 180 55 44 5
Web: http://www.mars-group.org


This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you for understanding.
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Live migration fails

2014-09-08 Thread Javier Fontan
Go to machine 10.23.24.13 and as oneadmin execute:

ssh 10.23.24.19

Most probably you have an old fingerprint for that host in the known_hosts file

On Mon, Sep 8, 2014 at 8:09 AM, Johan Kooijman m...@johankooijman.com wrote:
 Yup, not a problem at all.


 On Mon, Sep 8, 2014 at 8:05 AM, Sander Klein roe...@roedie.nl wrote:

 Hi,

 Can the destination host oneadmin ssh to the source host?

 Greets,

 Sander

 On 8 sep. 2014, at 07:54, Johan Kooijman m...@johankooijman.com wrote:

 Hey All,

 I just tried to live migrate a VM, but got a message it failed:

 migrate: Command virsh --connect qemu:///system migrate --live one-810
 qemu+ssh://10.23.24.19/system failed: error: Cannot recv data: Host key
 verification failed.: Connection reset by peer

 See https://plakbord.cloud.nl/p/hBkytAtcPG627NLYrUS18AAB.

 qemu process is running as user oneadmin. user oneadmin can succesfully
 ssh to the node. Am I missing something here?

 --
 Met vriendelijke groeten / With kind regards,
 Johan Kooijman

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




 --
 Met vriendelijke groeten / With kind regards,
 Johan Kooijman

 ___
 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] CPU / vCPU Question

2014-09-08 Thread Hüning , Christian
Nope, but thanks! That answered my question! 

 

Von: Hamada, Ondrej [mailto:ondrej.ham...@acision.com] 
Gesendet: Montag, 8. September 2014 09:35
An: Hüning, Christian; users@lists.opennebula.org
Betreff: RE: CPU / vCPU Question

 

Hi Christian,

Have you read this:
http://lists.opennebula.org/pipermail/users-opennebula.org/2014-August/04568
2.html

 

O.

 

From: Users [mailto:users-boun...@lists.opennebula.org] On Behalf Of Hüning,
Christian
Sent: Sunday, September 07, 2014 2:26 PM
To: users@lists.opennebula.org mailto:users@lists.opennebula.org 
Subject: [one-users] CPU / vCPU Question

 

Hi there,

 

can anybody tell me why it would be desireable to provide e.g. 12 real CPUs
and just one vCPU? This is something ONE lets me do. 

 

What would be use cases for the other way around (1 real CPU, 12 vCPUs)? 

 

I also did some benchmarking with sysbench under Linux and found that the
only option making sense to me is having CPU == vCPU. But maybe I am missing
something?

 

Cheers,

Christian

 

---

Christian Hüning, BSc.

Fakultät Technik und Informatik, Department Informatik

Berliner Tor 7

20099 Hamburg

Tel.: +49 40 / 42875 - 8436 

Mobil: +49 40 / 180 55 44 5

Web:  http://www.mars-group.org http://www.mars-group.org

 

  _  

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you for
understanding.



smime.p7s
Description: S/MIME cryptographic 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-08 Thread Javier Fontan
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] OCCI Vagrant

2014-09-08 Thread Daniel Molina
Hi Cyrille,

From the docs of the Vagrant plugin, you have to use the rOCCI server and
not the old occi server that was included in opennebula:

https://github.com/gwdg/rOCCI-server/

Cheers

On 5 September 2014 16:40, Duverne, Cyrille cyrille.duve...@euranova.eu
wrote:

 Hello guys,

 I was paying around with this module :
 https://github.com/eucher/opennebula-provider

 Therefore I configured OCCI on my opennebula cluster.

 Here below my occi-server.conf :

 ​#
 # Server configuration
 #

 # Directory to store temp files when uploading images
 :tmpdir: /var/tmp

 # OpenNebula server contact information
 :one_xmlrpc: http://localhost:2633/RPC2

 # Host and port where OCCI server will run
 :host: 127.0.0.1
 :port: 4567

 #
 # Auth
 #

 # Authentication driver for incomming requests
 #   occi, for OpenNebula's user-password scheme
 #   x509, for x509 certificates based authentication
 #   opennebula, use the driver defined for the user in OpenNebula
 :auth: occi

 # Authentication driver to communicate with OpenNebula core
 #   cipher, for symmetric cipher encryption of tokens
 #   x509, for x509 certificate encryption of tokens
 :core_auth: cipher

 I tried to put http://IP-OCCIServer:2633/RPC2 as endpoint and my ONE
 username and password for auth info.

 I get a strange 404 error, even when http://IP-OCCIServer:2633/RPC2 in a
 browser gives 405 error page.

 In a general matter, is there a way to test that OCCI interface is working
 correctly ? To be sure it's on the tool I'm using and not on my setup.

 Thanks in advance.
 Cyrille

 ___
 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] incorrect example in documentation

2014-09-08 Thread Daniel Molina
Hi Rolandas,

Fixed, thank you!


On 4 September 2014 08:59, Rolandas Naujikas rolandas.nauji...@mif.vu.lt
wrote:

 Hi,

 In http://docs.opennebula.org/4.8/advanced_administration/
 application_insight/onegate_usage.html#onegate-usage
 the example is incorrect:

 curl -X PUT $ONEGATE_ENDPOINT

 should be

 curl -X PUT $ONEGATE_ENDPOINT/vm

 Regards,
 Rolandas
 ___
 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


[one-users] Multiple network cards with same MAC address

2014-09-08 Thread Daniel Dehennin
Hello,

Using ONE 4.8 on two nodes with Open vSwitch networks, a crossover cable
between the nodes as trunk.

I have a router template using 4 different networks, each network is
isolated in dedicated VLAN, but 3 network cards use the same MAC
address.

On another try two of them use the same MAC address.

This result is miss-function on that router, the firt card is tagged
with the VLAN ID two times, the next one is in trunk mode:

Mon Sep 8 11:00:14 2014 [Z0][VMM][I]: post: Executed sudo ovs-vsctl set 
Port vnet44 tag=655.
Mon Sep 8 11:00:14 2014 [Z0][VMM][I]: post: Executed sudo ovs-vsctl set 
Port vnet45 tag=659.
Mon Sep 8 11:00:14 2014 [Z0][VMM][I]: post: Executed sudo ovs-vsctl set 
Port vnet45 tag=660.
Mon Sep 8 11:00:14 2014 [Z0][VMM][I]: post: Executed sudo ovs-vsctl set 
Port vnet47 tag=661.
Mon Sep 8 11:00:14 2014 [Z0][VMM][I]: ExitCode: 0

The “vnet45” should bet tagged with “659”:

ovs-vsctl find Port name=vnet45
_uuid   : b5b33023-03ff-4229-8039-f2268096fb77
bond_downdelay  : 0
bond_fake_iface : false
bond_mode   : []
bond_updelay: 0
external_ids: {}
fake_bridge : false
interfaces  : [349e0f2d-3cd7-4865-bb8d-72b82aebc437]
lacp: []
mac : []
name: vnet45
other_config: {}
qos : []
statistics  : {}
status  : {}
tag : 660
trunks  : []
vlan_mode   : []

The “vnet46” has the same MAC address as “vnet45” and is in trunk
mode:

ovs-vsctl find Port name=vnet46
_uuid   : cad4a6c7-5ab5-440f-81e7-59bfb19e00a6
bond_downdelay  : 0
bond_fake_iface : false
bond_mode   : []
bond_updelay: 0
external_ids: {}
fake_bridge : false
interfaces  : [1b0a1deb-fdb3-44ea-b406-67afa953ee5f]
lacp: []
mac : []
name: vnet46
other_config: {}
qos : []
statistics  : {}
status  : {}
tag : []
trunks  : []
vlan_mode   : []


Here is one of the networks definitions:

oneadmin@nebula:~$ onevnet show 659
VIRTUAL NETWORK 659 INFORMATION
ID : 659
NAME   : dmz1
USER   : auser
GROUP  : users
CLUSTER: -
BRIDGE : internal
VLAN   : Yes
USED LEASES: 2

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

VIRTUAL NETWORK TEMPLATE
BRIDGE=internal
PHYDEV=
PUBLIC=NO
VLAN=YES
VLAN_ID=

ADDRESS RANGE POOL
 AR TYPESIZE LEASES   MAC  IP  
GLOBAL_PREFIX
  0 ETHER254  1 02:00:2b:94:f7:fa   -   
   -

LEASES
AR  OWNERMAC  IP  
IP6_GLOBAL
0   VM : 6113  02:00:2b:94:f7:fa   -
   -


I could define random mac prefixes for each network but I assumed that ONE will 
pick different MAC
for each cards.

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


[one-users] Problems to delete image completely

2014-09-08 Thread Christoph Pleger
Hello,

I created an opennebula disk image (ID 292) and used it in a VM, the VM
did not work, so I deleted first the VM and then the image. But somehow,
opennebula still knows that image. That is, 'oneimage list' still lists,
among others, disk image 292, but any further action on it, like delete or
show, says  [ImageInfo] Error getting image [292].

How can I completely remove that image from the opennebula database?

Regards
  Christoph

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


Re: [one-users] Thin provisioning and image size

2014-09-08 Thread Javier Fontan
Then the value makes sense as the units stored are Megabytes.

On Fri, Sep 5, 2014 at 3:34 PM, Daniel Dehennin
daniel.dehen...@baby-gnu.org wrote:
 Javier Fontan jfon...@opennebula.org writes:

 Which was the size of the original image? I think that when you do a
 save_as (deferred disk snapshot) it just copies the size of the
 original image to the new one.

 I started with empty qcow2 disk of several virtual sizes, but on disk
 they are all 196KB.

 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



-- 
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] 2014 OpenNebula Cloud Architecture Survey Results

2014-09-08 Thread Tino Vazquez
Dear OpenNebula users,

The results of this survey were collected during July and August of
2014 from the OpenNebula open source cloud management platform
community with regards to the type of cloud deployment and its main
architectural components. The aim of the survey is to acquire
information in order to improve the support for the most demanded
infrastructure platforms and deployments.

Since the foundation of the open-source project in November 2007,
OpenNebula has been downloaded more than 200,000 times from the
project site (120,000 times since our last survey in September 2012),
not including other software repositories or third-party
distributions.

Regarding the use of OpenNebula, the Survey shows that 42% of the
deployments are in Industry and 14% in Research Centers. 74% of the
organizations are in Europe, Russia or USA. 88% of the respondents use
OpenNebula to build a private cloud. When asked about the type of
workload, 62% said that they use OpenNebula for running production
workloads.

Regarding the size of the clouds, 10% of the deployments have more 500
physical nodes. 44% of the deployments consist of more than one
OpenNebula zone and 4% are running more than 10 zones. One of the
companies reported a workload of 200,000 VMs. Among the advanced
components offered by OpenNebula, High Availability, with 67%, is the
most widely used or planned to use, which is closely aligned with the
top usage of OpenNebula in production environments.

Regarding the building blocks of the cloud, KVM at 48% and VMware at
30% are the dominant hypervisors, and CentOS at 46% and Ubuntu at 36%
are the most widely used linux distributions for OpenNebula clouds.
The preferred choices for the storage back-ends are shared FS and SSH
with a 52% and 36% ratio respectively. The most widely used
Configuration Management Systems are Puppet and Ansible with a 37% and
14% respectively. Regarding networking, most of the deployments, a
49%, use the Standard Linux Bridge for network configuration, 38% use
Open vSwitch, and 30% use 802.1Q.

In comparison to the previous survey findings in 2012, the relevant
changes are that CentOS has displaced Ubuntu as the most widely linux
distribution to build OpenNebula clouds, and a growth in the number of
production deployments from 42% to 62% and in the number of public
clouds that has doubled from 21% to 40%.

Although more than 2,000 users took part of the survey, we have only
included in the analysis those respondents using OpenNebula 4.x
(latest series) and who we deem reliable because they have provided
identification details that allow us to verify the answers of the
survey. This is important given that our main aim is to have accurate
and useful information about OpenNebula deployments.

Last, but not least, when asked about what you like most about
OpenNebula, most users, a 76%, answered because of its simplicity, and
69% and 65% answered because of its flexibility and openness. These
results are aligned with our our mission — to become the simplest
cloud enabling platform — and our purpose — to bring simplicity to the
private and hybrid enterprise cloud. OpenNebula exists to help
companies build simple, cost-effective, reliable, open enterprise
clouds on existing IT infrastructure.

BIG THANKS to all the organizations that have contributed to the survey!

If you want to find more details about the survey (including graphical
representation of the data), please proceed to this blog post:

   http://opennebula.org/opennebula-cloud-architecture-survey-2014/


The OpenNebula Team

--
OpenNebula - Flexible Enterprise Cloud Made Simple

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

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


Re: [one-users] Live migration fails

2014-09-08 Thread Johan Kooijman
Javier,

Tested it already, but that works without any issue:

oneadmin@hv8:~$ ssh 10.23.24.19
Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-35-generic x86_64)

 * Documentation:  https://help.ubuntu.com/

  System information as of Mon Sep  8 08:08:46 CEST 2014

  System load:  1.25   Users logged in:   1
  Usage of /:   1.3% of 117.21GB   IP address for p1p1:   10.23.24.19
  Memory usage: 23%IP address for bond0:  10.0.24.2
  Swap usage:   0% IP address for virbr0: 192.168.122.1
  Processes:327

  Graph this data and manage this system at:
https://landscape.canonical.com/

9 packages can be updated.
1 update is a security update.

Last login: Mon Sep  8 08:08:47 2014 from admin.one.gs.cloud.lan



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

 Go to machine 10.23.24.13 and as oneadmin execute:

 ssh 10.23.24.19

 Most probably you have an old fingerprint for that host in the known_hosts
 file

 On Mon, Sep 8, 2014 at 8:09 AM, Johan Kooijman m...@johankooijman.com
 wrote:
  Yup, not a problem at all.
 
 
  On Mon, Sep 8, 2014 at 8:05 AM, Sander Klein roe...@roedie.nl wrote:
 
  Hi,
 
  Can the destination host oneadmin ssh to the source host?
 
  Greets,
 
  Sander
 
  On 8 sep. 2014, at 07:54, Johan Kooijman m...@johankooijman.com
 wrote:
 
  Hey All,
 
  I just tried to live migrate a VM, but got a message it failed:
 
  migrate: Command virsh --connect qemu:///system migrate --live one-810
  qemu+ssh://10.23.24.19/system failed: error: Cannot recv data: Host
 key
  verification failed.: Connection reset by peer
 
  See https://plakbord.cloud.nl/p/hBkytAtcPG627NLYrUS18AAB.
 
  qemu process is running as user oneadmin. user oneadmin can succesfully
  ssh to the node. Am I missing something here?
 
  --
  Met vriendelijke groeten / With kind regards,
  Johan Kooijman
 
  ___
  Users mailing list
  Users@lists.opennebula.org
  http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
 
 
 
 
  --
  Met vriendelijke groeten / With kind regards,
  Johan Kooijman
 
  ___
  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




-- 
Met vriendelijke groeten / With kind regards,
Johan Kooijman
___
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


Re: [one-users] Run bash script in vm on spin-up (Users Digest, Vol 79, Issue 20)

2014-09-08 Thread Rolandas Naujikas

Please look

http://docs.opennebula.org/4.8/user/references/template.html#context-section

and

http://docs.opennebula.org/4.8/user/virtual_machine_setup/cong.html

FILES_DS and INIT_SCRIPTS.

INIT_SCRIPTS is missing in context reference documentation.

Regards,
Rolandas Naujikas

On 2014.09.08 23:09, kerryhall . 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





-- next part --
An HTML attachment was scrubbed...
URL: 
http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140908/73439fbb/attachment-0001.htm




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