Re: [one-users] DHCP and OpenNebula

2014-05-09 Thread Valentin Bud
Hello Christophe,

If you really want to use DHCP in combination with OpenNebula I suggest you
take a look over omshell [1].

With a simple hook you could enter the required DHCP host entry via OMAPI
and your VM will pick it up at boot.

[1]: http://www.linuxcommand.org/man_pages/omshell1.html

Best,
Valentin


On Thu, May 8, 2014 at 6:46 PM, Ionut Popovici io...@hackaserver.comwrote:

  NAT don't have anything how you manage your inside network or control'it
 ..
 DHCP will not masquerade your ip's
 DHCP is Dinamyc Host Control Protocol this way you cand control the hosts
 .. or you can control manualy configuring each host or use Conextualization
 scripts to have ip's form your opennebula lesses
 http://archives.opennebula.org/documentation:rel4.4:cong
 On 5/8/2014 6:31 PM, Christophe Duez wrote:

 Owkey like that I know but I thought there was a script or something. so
 that you don't need to type all the IP's
 The problem is that I have only 1 ip-address that has connection to the
 internet.
 this ip is dedicated to a vm running NAT and DHCP so the other VM's will
 get an IP from this VM's DHCP  and can pass through the NAT for connection
 to the outside world.
 having to put all the IP's in the DHCP config file is crazy work not?


 On Thu, May 8, 2014 at 4:41 PM, Ionut Popovici io...@hackaserver.comwrote:

  On 5/8/2014 5:09 PM, Christophe Duez wrote:

 I know of the mac address of opennebula but I don't know how to enter
 this in a dhcp config file :/

   isc-dehcp-server config .
 /etc/dhcp/dhcpd.conf

 subnet 10.200.0.0 netmask 255.255.255.224 {
   range 10.200.0.2 10.200.0.30;
   option domain-name-servers 10.200.0.1;
   option routers 10.200.0.1;
   option broadcast-address 10.200.0.31;
   default-lease-time 600;
   max-lease-time 7200;
 }

 host host-2 {
   hardware ethernet 02:00:0a:c8:00:02;
   fixed-address 10.200.0.2;
 }
 host host-3 {
   hardware ethernet 02:00:0a:c8:00:03;
   fixed-address 10.200.0.3;
 }
 host host-4 {
   hardware ethernet 02:00:0a:c8:00:04;
   fixed-address 10.200.0.4;
 }

 

 host host-30 {
  hardware ethernet 02:00:0a:c8:00:1E;
  fixed-address 10.200.0.30;

 }


 On Thu, May 8, 2014 at 3:26 PM, Ionut Popovici io...@hackaserver.comwrote:

  Or you can make you dhcp server with pools and add fixed address via
 mac
 Because opennebula use very nice mac asingment based on ip transformed
 on hexa.
 Default mac for opennebula is 02:00 and other 4 hexa digits are ip
 address decimal tranformed on hexa.
 for ip 10.10.10.10 opennebula will use mac
 02:00:0a:0a:0a:0a
 or ip 10.10.0.1 = 02:00:0a:0a:00:01
 with this you can easy make an dhcp lesses for your networks

 On 5/8/2014 4:04 PM, Christophe Duez wrote:

 But I need to know how to do it. not simply install and work


 On Thu, May 8, 2014 at 2:58 PM, Гусев Павел pgu...@qsoft.ru wrote:

  I think you must us Virtual Router (from Marketplace) with DHCP daemon

 --
 С уважением,
 Гусев Павел
 Руководитель отдела системного администрирования

 QSOFT | Ведущий web-интегратор

 офис 7(495) 771-7363 #110 | моб. 7(926) 850-1108
 pgu...@qsoft.ru
 Москва, Авангардная улица, 3  |  qsoft.ru
 San Francisco, 222 Columbus Ave |  qsoftus.com



 08.05.2014, 16:25, Christophe Duez 
 christophe.d...@student.uantwerpen.be:

  Hello,
 Is it possible that a virtual DHCP-server gives ip addresses to the
 other VM's and that OpenNebula will take over this ip-address in sunstone?
 Because now my dhcp gives the new VM an IP-address but in the sunstone
 interface the VM has an other IP given by the Virtual Network template

 can this be changed?

 --
 Kind regards,
 Duez Christophe
 Student at University of Antwerp :
 Master of Industrial Sciences: Electronics-ICT

 E christophe.d...@student.uantwperen.be
 L linkedin 
 duez-christophehttp://www.linkedin.com/pub/duez-christophe/74/7/39
  ,

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




  --
 Kind regards,
 Duez Christophe
 Student at University of Antwerp :
 Master of Industrial Sciences: Electronics-ICT

 E christophe.d...@student.uantwperen.be
 L linkedin 
 duez-christophehttp://www.linkedin.com/pub/duez-christophe/74/7/39


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





  --
 M.v.g.
 Duez Christophe

 T +32497552655
 E duez_christo...@hotmail.com
 S christophe.duez
 L linkedin 
 duez-christophehttp://www.linkedin.com/pub/duez-christophe/74/7/39





  --
 M.v.g.
 Duez Christophe

 T +32497552655
 E duez_christo...@hotmail.com
 S christophe.duez
 L linkedin 
 duez-christophehttp://www.linkedin.com/pub/duez-christophe/74/7/39



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




-- 
Valentin Bud
http://databus.pro | valen...@databus.pro

Re: [one-users] system datastores always have no space

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

System DS are monitored with the host probes. Do you have any hosts
configured?

--
Carlos Martín, MSc
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | cmar...@opennebula.org |
@OpenNebulahttp://twitter.com/opennebulacmar...@opennebula.org


On Fri, May 9, 2014 at 12:02 AM, Marius Rex marius...@venda.com wrote:

 Platform: Centos 6.5
 versions: opennebula-4.5.80 and opennebula-4.6.0-1

 I have been struggling with this for a while with various configurations
 and I continually run into the same problem.

 I cannot build out a VM as the system volumes always come up with no
 space.  I have been trying to reduce variables and now at a very basic
 setup: I installed a fresh Centos 6 server and pulled down the latest
 stable opennebula RPMs from the official repo.  I am just using local
 file systems for everything, and have done nothing beyond installing the
 RPM and starting opennebula.  My system volume comes up with no
 available room, seemingly no matter what I do.


 [oneadmin@trainging ~]$ onedatastore
 list
   ID NAMESIZE AVAIL CLUSTER  IMAGES TYPE DS
 TM
0 system0M - - 0 sys  -
 shared
1 default 6.6G 77%   - 0 img  fs
 shared
2 files   6.6G 77%   - 0 fil  fs
 ssh



 [oneadmin@trainging ~]$ onedatastore show 0
 DATASTORE 0
 INFORMATION
 ID :
 0
 NAME   :
 system
 USER   : oneadmin
 GROUP  : oneadmin
 CLUSTER: -
 TYPE   : SYSTEM
 DS_MAD : -
 TM_MAD : shared
 BASE PATH  : /var/lib/one//datastores/0
 DISK_TYPE  : FILE

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

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

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

 IMAGES

 It is the same filesystem the other volumes are on, yet they have
 available space.  I have tried two different versions of OpenNebula.  I
 have tried different base filesystems.   I have tried custom RPMs.  It
 comes up the same every time.

 Is there a bug or am I missing something very obvious?


 --
 Marius Rex
 marius...@venda.com
 ___
 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] DHCP and OpenNebula

2014-05-09 Thread Jaime Melis
Valentin,

I actually hadn't thought of that, it's a great idea :) You could even map
the other context values, not just the IP!

Do you have this hook per chance?

cheers,
Jaime


On Fri, May 9, 2014 at 10:12 AM, Valentin Bud valentin@gmail.comwrote:

 Hello Christophe,

 If you really want to use DHCP in combination with OpenNebula I suggest you
 take a look over omshell [1].

 With a simple hook you could enter the required DHCP host entry via OMAPI
 and your VM will pick it up at boot.

 [1]: http://www.linuxcommand.org/man_pages/omshell1.html

 Best,
 Valentin


 On Thu, May 8, 2014 at 6:46 PM, Ionut Popovici io...@hackaserver.comwrote:

  NAT don't have anything how you manage your inside network or
 control'it ..
 DHCP will not masquerade your ip's
 DHCP is Dinamyc Host Control Protocol this way you cand control the hosts
 .. or you can control manualy configuring each host or use Conextualization
 scripts to have ip's form your opennebula lesses
 http://archives.opennebula.org/documentation:rel4.4:cong
 On 5/8/2014 6:31 PM, Christophe Duez wrote:

 Owkey like that I know but I thought there was a script or something. so
 that you don't need to type all the IP's
 The problem is that I have only 1 ip-address that has connection to the
 internet.
 this ip is dedicated to a vm running NAT and DHCP so the other VM's will
 get an IP from this VM's DHCP  and can pass through the NAT for connection
 to the outside world.
 having to put all the IP's in the DHCP config file is crazy work not?


 On Thu, May 8, 2014 at 4:41 PM, Ionut Popovici io...@hackaserver.comwrote:

  On 5/8/2014 5:09 PM, Christophe Duez wrote:

 I know of the mac address of opennebula but I don't know how to enter
 this in a dhcp config file :/

   isc-dehcp-server config .
 /etc/dhcp/dhcpd.conf

 subnet 10.200.0.0 netmask 255.255.255.224 {
   range 10.200.0.2 10.200.0.30;
   option domain-name-servers 10.200.0.1;
   option routers 10.200.0.1;
   option broadcast-address 10.200.0.31;
   default-lease-time 600;
   max-lease-time 7200;
 }

 host host-2 {
   hardware ethernet 02:00:0a:c8:00:02;
   fixed-address 10.200.0.2;
 }
 host host-3 {
   hardware ethernet 02:00:0a:c8:00:03;
   fixed-address 10.200.0.3;
 }
 host host-4 {
   hardware ethernet 02:00:0a:c8:00:04;
   fixed-address 10.200.0.4;
 }

 

 host host-30 {
  hardware ethernet 02:00:0a:c8:00:1E;
  fixed-address 10.200.0.30;

 }


 On Thu, May 8, 2014 at 3:26 PM, Ionut Popovici io...@hackaserver.comwrote:

  Or you can make you dhcp server with pools and add fixed address via
 mac
 Because opennebula use very nice mac asingment based on ip transformed
 on hexa.
 Default mac for opennebula is 02:00 and other 4 hexa digits are ip
 address decimal tranformed on hexa.
 for ip 10.10.10.10 opennebula will use mac
 02:00:0a:0a:0a:0a
 or ip 10.10.0.1 = 02:00:0a:0a:00:01
 with this you can easy make an dhcp lesses for your networks

 On 5/8/2014 4:04 PM, Christophe Duez wrote:

 But I need to know how to do it. not simply install and work


 On Thu, May 8, 2014 at 2:58 PM, Гусев Павел pgu...@qsoft.ru wrote:

  I think you must us Virtual Router (from Marketplace) with DHCP
 daemon

 --
 С уважением,
 Гусев Павел
 Руководитель отдела системного администрирования

 QSOFT | Ведущий web-интегратор

 офис 7(495) 771-7363 #110 | моб. 7(926) 850-1108
 pgu...@qsoft.ru
 Москва, Авангардная улица, 3  |  qsoft.ru
 San Francisco, 222 Columbus Ave |  qsoftus.com



 08.05.2014, 16:25, Christophe Duez 
 christophe.d...@student.uantwerpen.be:

  Hello,
 Is it possible that a virtual DHCP-server gives ip addresses to the
 other VM's and that OpenNebula will take over this ip-address in sunstone?
 Because now my dhcp gives the new VM an IP-address but in the sunstone
 interface the VM has an other IP given by the Virtual Network template

 can this be changed?

 --
 Kind regards,
 Duez Christophe
 Student at University of Antwerp :
 Master of Industrial Sciences: Electronics-ICT

 E christophe.d...@student.uantwperen.be
 L linkedin 
 duez-christophehttp://www.linkedin.com/pub/duez-christophe/74/7/39
  ,

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




  --
 Kind regards,
 Duez Christophe
 Student at University of Antwerp :
 Master of Industrial Sciences: Electronics-ICT

 E christophe.d...@student.uantwperen.be
 L linkedin 
 duez-christophehttp://www.linkedin.com/pub/duez-christophe/74/7/39


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





  --
 M.v.g.
 Duez Christophe

 T +32497552655
 E duez_christo...@hotmail.com
 S christophe.duez
 L linkedin 
 duez-christophehttp://www.linkedin.com/pub/duez-christophe/74/7/39





  --
 M.v.g.
 Duez Christophe

 T +32497552655
 E duez_christo...@hotmail.com
 S christophe.duez
 L linkedin 
 

[one-users] sunstone create or update template leads to browser hang

2014-05-09 Thread Thomas Stein
Hello.

Whenever i try to create or update a template in sunstone i have to wait
2min until the wizzard shows up. It's opennebula 4.6 and Firefox. This
happens with Macosx and Linux. Is this a known problem? Any workarounds?

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


Re: [one-users] DHCP and OpenNebula

2014-05-09 Thread Valentin Bud
Hello Jaime,

I don't have a hook for that. It was an idea I came up with for this
particular use case. I don't use DHCP with OpenNebula.

Anyway, good question though. I have made a little bit of research about
OMAPI
and how can one use it from different programming languages.

Ruby:
https://github.com/pikelly/dhcpIT
http://www.ruby-doc.org/gems/docs/e/esxmagicwand-0.1.2/DHCP/Server.html

Python:
https://code.google.com/p/pyomapic/
https://github.com/jof/pypureomapi

Perl:
http://search.cpan.org/~jhthorsen/Net-ISC-DHCPd-0.14/lib/Net/ISC/DHCPd/OMAPI.pm

Bash:
http://www.jedi.be/blog/2010/12/08/automating-dhcp-management-with-omapi/(also
has a Java example)
http://comments.gmane.org/gmane.network.dhcp.isc.dhcp-server/11411

Hope it helps :).

Best,
Valentin



On Fri, May 9, 2014 at 12:17 PM, Jaime Melis jme...@opennebula.org wrote:

 Valentin,

 I actually hadn't thought of that, it's a great idea :) You could even map
 the other context values, not just the IP!

 Do you have this hook per chance?

 cheers,
 Jaime


 On Fri, May 9, 2014 at 10:12 AM, Valentin Bud valentin@gmail.comwrote:

 Hello Christophe,

 If you really want to use DHCP in combination with OpenNebula I suggest
 you
 take a look over omshell [1].

 With a simple hook you could enter the required DHCP host entry via OMAPI
 and your VM will pick it up at boot.

 [1]: http://www.linuxcommand.org/man_pages/omshell1.html

 Best,
 Valentin


 On Thu, May 8, 2014 at 6:46 PM, Ionut Popovici io...@hackaserver.comwrote:

  NAT don't have anything how you manage your inside network or
 control'it ..
 DHCP will not masquerade your ip's
 DHCP is Dinamyc Host Control Protocol this way you cand control the
 hosts .. or you can control manualy configuring each host or use
 Conextualization scripts to have ip's form your opennebula lesses
 http://archives.opennebula.org/documentation:rel4.4:cong
 On 5/8/2014 6:31 PM, Christophe Duez wrote:

 Owkey like that I know but I thought there was a script or something. so
 that you don't need to type all the IP's
 The problem is that I have only 1 ip-address that has connection to the
 internet.
 this ip is dedicated to a vm running NAT and DHCP so the other VM's will
 get an IP from this VM's DHCP  and can pass through the NAT for connection
 to the outside world.
 having to put all the IP's in the DHCP config file is crazy work not?


 On Thu, May 8, 2014 at 4:41 PM, Ionut Popovici io...@hackaserver.comwrote:

  On 5/8/2014 5:09 PM, Christophe Duez wrote:

 I know of the mac address of opennebula but I don't know how to enter
 this in a dhcp config file :/

   isc-dehcp-server config .
 /etc/dhcp/dhcpd.conf

 subnet 10.200.0.0 netmask 255.255.255.224 {
   range 10.200.0.2 10.200.0.30;
   option domain-name-servers 10.200.0.1;
   option routers 10.200.0.1;
   option broadcast-address 10.200.0.31;
   default-lease-time 600;
   max-lease-time 7200;
 }

 host host-2 {
   hardware ethernet 02:00:0a:c8:00:02;
   fixed-address 10.200.0.2;
 }
 host host-3 {
   hardware ethernet 02:00:0a:c8:00:03;
   fixed-address 10.200.0.3;
 }
 host host-4 {
   hardware ethernet 02:00:0a:c8:00:04;
   fixed-address 10.200.0.4;
 }

 

 host host-30 {
  hardware ethernet 02:00:0a:c8:00:1E;
  fixed-address 10.200.0.30;

 }


 On Thu, May 8, 2014 at 3:26 PM, Ionut Popovici 
 io...@hackaserver.comwrote:

  Or you can make you dhcp server with pools and add fixed address via
 mac
 Because opennebula use very nice mac asingment based on ip transformed
 on hexa.
 Default mac for opennebula is 02:00 and other 4 hexa digits are ip
 address decimal tranformed on hexa.
 for ip 10.10.10.10 opennebula will use mac
 02:00:0a:0a:0a:0a
 or ip 10.10.0.1 = 02:00:0a:0a:00:01
 with this you can easy make an dhcp lesses for your networks

 On 5/8/2014 4:04 PM, Christophe Duez wrote:

 But I need to know how to do it. not simply install and work


 On Thu, May 8, 2014 at 2:58 PM, Гусев Павел pgu...@qsoft.ru wrote:

  I think you must us Virtual Router (from Marketplace) with DHCP
 daemon

 --
 С уважением,
 Гусев Павел
 Руководитель отдела системного администрирования

 QSOFT | Ведущий web-интегратор

 офис 7(495) 771-7363 #110 | моб. 7(926) 850-1108
 pgu...@qsoft.ru
 Москва, Авангардная улица, 3  |  qsoft.ru
 San Francisco, 222 Columbus Ave |  qsoftus.com



 08.05.2014, 16:25, Christophe Duez 
 christophe.d...@student.uantwerpen.be:

  Hello,
 Is it possible that a virtual DHCP-server gives ip addresses to the
 other VM's and that OpenNebula will take over this ip-address in 
 sunstone?
 Because now my dhcp gives the new VM an IP-address but in the
 sunstone interface the VM has an other IP given by the Virtual Network
 template

 can this be changed?

 --
 Kind regards,
 Duez Christophe
 Student at University of Antwerp :
 Master of Industrial Sciences: Electronics-ICT

 E christophe.d...@student.uantwperen.be
 L linkedin 
 duez-christophehttp://www.linkedin.com/pub/duez-christophe/74/7/39
  ,

 

Re: [one-users] DHCP and OpenNebula

2014-05-09 Thread Valentin Bud
Hello Christophe,

The best place to start is the documentation about Using Hooks [1]. Keep in
mind
that OpenNebula has the same level of quality in documentation like FreeBSD
does ;).
Whenever you have a problem check there first, 99% of the cases you will
find it there.

[1]:
http://docs.opennebula.org/4.6/integration/infrastructure_integration/hooks.html

Best,
Valentin


On Fri, May 9, 2014 at 12:19 PM, Christophe Duez 
duez_christo...@hotmail.com wrote:

 Is there any tutorial over how to enable hooks ?


 On Fri, May 9, 2014 at 10:12 AM, Valentin Bud valentin@gmail.comwrote:

   Hello Christophe,

  If you really want to use DHCP in combination with OpenNebula I suggest
 you
 take a look over omshell [1].

  With a simple hook you could enter the required DHCP host entry via OMAPI
  and your VM will pick it up at boot.

 [1]: http://www.linuxcommand.org/man_pages/omshell1.html

  Best,
  Valentin


 On Thu, May 8, 2014 at 6:46 PM, Ionut Popovici io...@hackaserver.comwrote:

  NAT don't have anything how you manage your inside network or
 control'it ..
 DHCP will not masquerade your ip's
 DHCP is Dinamyc Host Control Protocol this way you cand control the
 hosts .. or you can control manualy configuring each host or use
 Conextualization scripts to have ip's form your opennebula lesses
 http://archives.opennebula.org/documentation:rel4.4:cong
 On 5/8/2014 6:31 PM, Christophe Duez wrote:

 Owkey like that I know but I thought there was a script or something. so
 that you don't need to type all the IP's
 The problem is that I have only 1 ip-address that has connection to the
 internet.
 this ip is dedicated to a vm running NAT and DHCP so the other VM's will
 get an IP from this VM's DHCP  and can pass through the NAT for connection
 to the outside world.
 having to put all the IP's in the DHCP config file is crazy work not?


  On Thu, May 8, 2014 at 4:41 PM, Ionut Popovici 
 io...@hackaserver.comwrote:

   On 5/8/2014 5:09 PM, Christophe Duez wrote:

 I know of the mac address of opennebula but I don't know how to enter
 this in a dhcp config file :/

   isc-dehcp-server config .
 /etc/dhcp/dhcpd.conf

 subnet 10.200.0.0 netmask 255.255.255.224 {
   range 10.200.0.2 10.200.0.30;
   option domain-name-servers 10.200.0.1;
   option routers 10.200.0.1;
   option broadcast-address 10.200.0.31;
   default-lease-time 600;
   max-lease-time 7200;
 }

 host host-2 {
   hardware ethernet 02:00:0a:c8:00:02;
   fixed-address 10.200.0.2;
 }
 host host-3 {
   hardware ethernet 02:00:0a:c8:00:03;
   fixed-address 10.200.0.3;
 }
 host host-4 {
   hardware ethernet 02:00:0a:c8:00:04;
   fixed-address 10.200.0.4;
 }

 

 host host-30 {
  hardware ethernet 02:00:0a:c8:00:1E;
  fixed-address 10.200.0.30;

 }


  On Thu, May 8, 2014 at 3:26 PM, Ionut Popovici 
 io...@hackaserver.comwrote:

   Or you can make you dhcp server with pools and add fixed address
 via mac
 Because opennebula use very nice mac asingment based on ip transformed
 on hexa.
 Default mac for opennebula is 02:00 and other 4 hexa digits are ip
 address decimal tranformed on hexa.
 for ip 10.10.10.10 opennebula will use mac
 02:00:0a:0a:0a:0a
 or ip 10.10.0.1 = 02:00:0a:0a:00:01
 with this you can easy make an dhcp lesses for your networks

 On 5/8/2014 4:04 PM, Christophe Duez wrote:

 But I need to know how to do it. not simply install and work


 On Thu, May 8, 2014 at 2:58 PM, Гусев Павел pgu...@qsoft.ru wrote:

  I think you must us Virtual Router (from Marketplace) with DHCP
 daemon

 --
 С уважением,
 Гусев Павел
 Руководитель отдела системного администрирования

 QSOFT | Ведущий web-интегратор

 офис 7(495) 771-7363 #110 | моб. 7(926) 850-1108
 pgu...@qsoft.ru
 Москва, Авангардная улица, 3  |  qsoft.ru
 San Francisco, 222 Columbus Ave |  qsoftus.com



 08.05.2014, 16:25, Christophe Duez 
 christophe.d...@student.uantwerpen.be:

  Hello,
 Is it possible that a virtual DHCP-server gives ip addresses to the
 other VM's and that OpenNebula will take over this ip-address in 
 sunstone?
 Because now my dhcp gives the new VM an IP-address but in the
 sunstone interface the VM has an other IP given by the Virtual Network
 template

 can this be changed?

 --
 Kind regards,
 Duez Christophe
 Student at University of Antwerp :
 Master of Industrial Sciences: Electronics-ICT

 E christophe.d...@student.uantwperen.be
 L linkedin 
 duez-christophehttp://www.linkedin.com/pub/duez-christophe/74/7/39
  ,

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




  --
 Kind regards,
 Duez Christophe
 Student at University of Antwerp :
 Master of Industrial Sciences: Electronics-ICT

 E christophe.d...@student.uantwperen.be
 L linkedin 
 duez-christophehttp://www.linkedin.com/pub/duez-christophe/74/7/39


 ___
 Users mailing 
 

[one-users] Static IP Networking in Opennebula 4.6

2014-05-09 Thread Sangram Rath
Hi All,

We have a server with 1 physical network port (eth0) and 5 static IPs for 5
different web servers. One of these static IPs is currently assigned to a
bridge (br0) which is connected to interface eth0.

What is the best way to map 5 vms (running the web servers) to the static
IPs?

I see a virbr0 bridge in ifconfig. I have a public network created with
this bridge and VMs are able to talk to internet.


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


Re: [one-users] system datastores always have no space

2014-05-09 Thread Marius Rex

The system DS is not supposed to show up with any space until a host is
configured?  That is a surprising because the pre-configured sandbox
instance I downloaded first for testing (a Virtualbox instance) has
space listed in the system DS even though that has no hosts connected to
it.

In any case, there are no hosts connected to the test instance that I
gave the example on, but on some other instances which I have configured
elsewhere do have hosts configured and they have the same problem.  I
have /var/lib/one as a NFS mount that is mounted on both the frontend
and the node.  That instance comes up with no space in the system DS as
well.

Here is some output from that showing the system DS with no space even
though the logs say the node is successfully monitored:
http://pastebin.com/w6Wg909Y


-Marius
marius...@venda.com


On Fri, 2014-05-09 at 05:05 -0400, Carlos Martín Sánchez wrote:
 Hi,
 
 
 System DS are monitored with the host probes. Do you have any hosts
 configured?
 
 --
 Carlos Martín, MSc
 Project Engineer
 OpenNebula - Flexible Enterprise Cloud Made Simple
 www.OpenNebula.org | cmar...@opennebula.org | @OpenNebula
 
 
 On Fri, May 9, 2014 at 12:02 AM, Marius Rex marius...@venda.com
 wrote:
 Platform: Centos 6.5
 versions: opennebula-4.5.80 and opennebula-4.6.0-1
 
 I have been struggling with this for a while with various
 configurations
 and I continually run into the same problem.
 
 I cannot build out a VM as the system volumes always come up
 with no
 space.  I have been trying to reduce variables and now at a
 very basic
 setup: I installed a fresh Centos 6 server and pulled down the
 latest
 stable opennebula RPMs from the official repo.  I am just
 using local
 file systems for everything, and have done nothing beyond
 installing the
 RPM and starting opennebula.  My system volume comes up with
 no
 available room, seemingly no matter what I do.
 
 
 [oneadmin@trainging ~]$ onedatastore
 list
   ID NAMESIZE AVAIL CLUSTER  IMAGES TYPE
 DS
 TM
0 system0M - - 0 sys  -
 shared
1 default 6.6G 77%   - 0 img
  fs
 shared
2 files   6.6G 77%   - 0 fil
  fs
 ssh
 
 
 
 [oneadmin@trainging ~]$ onedatastore show 0
 DATASTORE 0
 INFORMATION
 ID :
 0
 NAME   :
 system
 USER   : oneadmin
 GROUP  : oneadmin
 CLUSTER: -
 TYPE   : SYSTEM
 DS_MAD : -
 TM_MAD : shared
 BASE PATH  : /var/lib/one//datastores/0
 DISK_TYPE  : FILE
 
 DATASTORE
 CAPACITY
 TOTAL: : 0M
 FREE:  : 0M
 USED:  : 0M
 LIMIT: : -
 
 PERMISSIONS
 OWNER  : um-
 GROUP  : u--
 OTHER  : ---
 
 DATASTORE
 TEMPLATE
 BASE_PATH=/var/lib/one//datastores/
 SHARED=YES
 TM_MAD=shared
 TYPE=SYSTEM_DS
 
 IMAGES
 
 It is the same filesystem the other volumes are on, yet they
 have
 available space.  I have tried two different versions of
 OpenNebula.  I
 have tried different base filesystems.   I have tried custom
 RPMs.  It
 comes up the same every time.
 
 Is there a bug or am I missing something very obvious?
 
 
 --
 Marius Rex
 marius...@venda.com
 ___
 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] creating a template with install cd

2014-05-09 Thread Thomas Stein
Hello.

I'm somewhat to stupid to create a template containing to disk images.
One disk iso (ubuntu install cd) and one empty block. No matter what
setting i choose the VM starts and complains having no boot device. Here
the config i tried:

oneadmin@opennebula-frontend:~$ onetemplate show 27
TEMPLATE 27 INFORMATION

ID : 27
NAME   : ubuntu1404_install
USER   : oneadmin
GROUP  : oneadmin
REGISTER TIME  : 05/09 17:06:19

PERMISSIONS

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

TEMPLATE CONTENTS

CONTEXT=[
  NETWORK=YES,
  SSH_PUBLIC_KEY=$USER[SSH_PUBLIC_KEY] ]
CPU=2
DISK=[
  DEV_PREFIX=hd,
  IMAGE=ubuntu1404_iso,
  IMAGE_UNAME=oneadmin ]
DISK=[
  DEV_PREFIX=vd,
  DRIVER=qcow2,
  IMAGE=empty_disk,
  IMAGE_UNAME=oneadmin ]
GRAPHICS=[
  KEYMAP=de,
  LISTEN=0.0.0.0,
  TYPE=VNC ]
MEMORY=1024
NIC=[
  NETWORK=cluster,
  NETWORK_UNAME=oneadmin ]
OS=[
  BOOT=cdrom ]

Any ideas? Thanks.

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


Re: [one-users] creating a template with install cd

2014-05-09 Thread Thomas Stein
On Friday 09 May 2014 10:19:49 Neil Schneider wrote:

 OS=[
   ARCH=x86_64,
   BOOT=cdrom,
   GUESTOS=rhel6_64Guest,
   ROOT=hda ]

I see. I wasn't aware of the fact i could use hd*a*. I just used hd and sd and 
vd. Stupid me.

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


[one-users] VM cannot connect to outside (internet)

2014-05-09 Thread Sangram Rath
Hi,

Virtual machine gets an IP through contextualization, however virtual
machine is not able to connect to internet.
Also from inside the VM, I do not see any other interface apart from lo. Is
this normal in contextualization?

I am able to ping the VM from same host. Host is Cent OS 6.1.
Host has br0 connected to interface eth0. And virbr0.


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


Re: [one-users] system datastores always have no space

2014-05-09 Thread Ruben S. Montero
On Fri, May 9, 2014 at 3:43 PM, Marius Rex marius...@venda.com wrote:


 The system DS is not supposed to show up with any space until a host is
 configured?  That is a surprising because the pre-configured sandbox
 instance I downloaded first for testing (a Virtualbox instance) has
 space listed in the system DS even though that has no hosts connected to
 it.


I'm not sure about the sandbox configuration (e.g. there were some data
from the setup). Anyway, system DS is monitored from the hosts.  Note that
System DS is not need (not even accessible for some storage backends) in
the front-end, so the space is reported by the hosts. Also System DS is
used to run VMs from it, and mainly used in the hosts.


 In any case, there are no hosts connected to the test instance that I
 gave the example on, but on some other instances which I have configured
 elsewhere do have hosts configured and they have the same problem.  I
 have /var/lib/one as a NFS mount that is mounted on both the frontend
 and the node.  That instance comes up with no space in the system DS as
 well.


This may be a problem with the configuration or the sytem DS not properly
mounted in the hosts. The information is obtained with
/var/tmp/one/im/kvm-probes.d, go to the host kvm04 and execute:

 /var/tmp/one/im/kvm-probes.d/monitor_ds.sh kvm /var/lib/one/datastores/

The output should be similar to...

DS_LOCATION_USED_MB=1
DS_LOCATION_TOTAL_MB=9952
DS_LOCATION_FREE_MB=6318
DS = [
  ID = 101,
  USED_MB = 1,
  TOTAL_MB = 9952,
  FREE_MB = 6318
]


 Here is some output from that showing the system DS with no space even
 though the logs say the node is successfully monitored:
 http://pastebin.com/w6Wg909Y


 -Marius
 marius...@venda.com


 On Fri, 2014-05-09 at 05:05 -0400, Carlos Martín Sánchez wrote:
  Hi,
 
 
  System DS are monitored with the host probes. Do you have any hosts
  configured?
 
  --
  Carlos Martín, MSc
  Project Engineer
  OpenNebula - Flexible Enterprise Cloud Made Simple
  www.OpenNebula.org | cmar...@opennebula.org | @OpenNebula
 
 
  On Fri, May 9, 2014 at 12:02 AM, Marius Rex marius...@venda.com
  wrote:
  Platform: Centos 6.5
  versions: opennebula-4.5.80 and opennebula-4.6.0-1
 
  I have been struggling with this for a while with various
  configurations
  and I continually run into the same problem.
 
  I cannot build out a VM as the system volumes always come up
  with no
  space.  I have been trying to reduce variables and now at a
  very basic
  setup: I installed a fresh Centos 6 server and pulled down the
  latest
  stable opennebula RPMs from the official repo.  I am just
  using local
  file systems for everything, and have done nothing beyond
  installing the
  RPM and starting opennebula.  My system volume comes up with
  no
  available room, seemingly no matter what I do.
 
 
  [oneadmin@trainging ~]$ onedatastore
  list
ID NAMESIZE AVAIL CLUSTER  IMAGES TYPE
  DS
  TM
 0 system0M - - 0 sys  -
  shared
 1 default 6.6G 77%   - 0 img
   fs
  shared
 2 files   6.6G 77%   - 0 fil
   fs
  ssh
 
 
 
  [oneadmin@trainging ~]$ onedatastore show 0
  DATASTORE 0
  INFORMATION
  ID :
  0
  NAME   :
  system
  USER   : oneadmin
  GROUP  : oneadmin
  CLUSTER: -
  TYPE   : SYSTEM
  DS_MAD : -
  TM_MAD : shared
  BASE PATH  : /var/lib/one//datastores/0
  DISK_TYPE  : FILE
 
  DATASTORE
  CAPACITY
  TOTAL: : 0M
  FREE:  : 0M
  USED:  : 0M
  LIMIT: : -
 
  PERMISSIONS
  OWNER  : um-
  GROUP  : u--
  OTHER  : ---
 
  DATASTORE
  TEMPLATE
  BASE_PATH=/var/lib/one//datastores/
  SHARED=YES
  TM_MAD=shared
  TYPE=SYSTEM_DS
 
  IMAGES
 
  It is the same filesystem the other volumes are on, yet they
  have
  available space.  I have tried two different versions of
  OpenNebula.  I
  have tried different base filesystems.   I have tried custom
  RPMs.  It
  comes up the same every time.
 
  Is there a bug or am I missing something very obvious?
 
 
  --
  Marius Rex
  marius...@venda.com
  ___
  Users mailing list
  Users@lists.opennebula.org
  http://lists.opennebula.org/listinfo.cgi/users-opennebula.org



 

Re: [one-users] VM logs in /var/log/one dir

2014-05-09 Thread Ruben S. Montero
Yes, a hook will do. You can use the example provided here:

http://dev.opennebula.org/issues/1026

Cheers


On Tue, May 6, 2014 at 3:04 PM, Dmitri Chebotarov dcheb...@gmu.edu wrote:

 Hi

 How do you handle VM log files under /var/log/one dir (i.e.
 {ONE_VM_ID}.log)?

 The ONE system is used as a back-end for VCL (https://vcl.apache.org)
 which results in many VMs per day/month and /var/log/one/ ends up with
 thousands of log files.

 I don't thing I can use logrotate for this task. May be a VM hook on
 shutdown/delete?

 --
 Thank you,

 Dmitri Chebotarov
 VCL Sys Eng, Engineering  Architectural Support, TSD - Ent Servers 
 Messaging
 223 Aquia Building, Ffx, MSN: 1B5
 Phone: (703) 993-6175 | Fax: (703) 993-3404


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




-- 
-- 
Ruben S. Montero, PhD
Project co-Lead and Chief Architect
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | rsmont...@opennebula.org | @OpenNebula
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] system datastores always have no space

2014-05-09 Thread Marius Rex

I am not sure I follow what you are trying to say.  What is the source
of my problem?

All of my datastores, which live on the same NFS mount, exist on the the
monitored host.  They are mounted in /var/lib/one, which matches the
BASE PATH for the datastore.  So I do not know how the NFS mount is not
'properly mounted.'

The output I get from the command you specify is:

[root@kvm04 ~]# /var/tmp/one/im/kvm-probes.d/monitor_ds.sh
kvm /var/lib/one/datastores
DS_LOCATION_USED_MB=1
DS_LOCATION_TOTAL_MB=1409258
DS_LOCATION_FREE_MB=1408682

So it looks the probe is finding available space.  But according to the
output of 'onedatastore' there is no available space.  Thus no VMs can
be created on my KVM host/node.

I am not sure what step or procedure I am missing.  I do not see
anything in
http://docs.opennebula.org/4.6/design_and_installation/quick_starts/qs_centos_kvm.html
 that I have skipped.

Does it matter that the KVM node already has VMs running on it?
Otherwise the node fits the guide above precisely. The plan is to put
everything under OpenNebula management.  But since the system DS reports
having no space, I cannot launch a single VM, and thus will not be able
to spin any of those machines down to bring them up under OpenNebula
management.
  
-Marius



On Fri, 2014-05-09 at 15:35 -0400, Ruben S. Montero wrote:
 
 On Fri, May 9, 2014 at 3:43 PM, Marius Rex marius...@venda.com
 wrote:
 
 The system DS is not supposed to show up with any space until
 a host is
 configured?  That is a surprising because the pre-configured
 sandbox
 instance I downloaded first for testing (a Virtualbox
 instance) has
 space listed in the system DS even though that has no hosts
 connected to
 it.
 
 
 I'm not sure about the sandbox configuration (e.g. there were some
 data from the setup). Anyway, system DS is monitored from the hosts.
  Note that System DS is not need (not even accessible for some storage
 backends) in the front-end, so the space is reported by the hosts.
 Also System DS is used to run VMs from it, and mainly used in the
 hosts.
 
 
 
 In any case, there are no hosts connected to the test instance
 that I
 gave the example on, but on some other instances which I have
 configured
 elsewhere do have hosts configured and they have the same
 problem.  I
 have /var/lib/one as a NFS mount that is mounted on both the
 frontend
 and the node.  That instance comes up with no space in the
 system DS as
 well.
 
 
 This may be a problem with the configuration or the sytem DS not
 properly mounted in the hosts. The information is obtained
 with /var/tmp/one/im/kvm-probes.d, go to the host kvm04 and execute:
 
 
  /var/tmp/one/im/kvm-probes.d/monitor_ds.sh
 kvm /var/lib/one/datastores/
 
 
 The output should be similar to... 
 
 
 DS_LOCATION_USED_MB=1
 DS_LOCATION_TOTAL_MB=9952
 DS_LOCATION_FREE_MB=6318
 DS = [
   ID = 101,
   USED_MB = 1,
   TOTAL_MB = 9952,
   FREE_MB = 6318
 ]
 
 
 
 Here is some output from that showing the system DS with no
 space even
 though the logs say the node is successfully monitored:
 http://pastebin.com/w6Wg909Y
 
 
 -Marius
 marius...@venda.com
 
 
 On Fri, 2014-05-09 at 05:05 -0400, Carlos Martín Sánchez
 wrote:
  Hi,
 
 
  System DS are monitored with the host probes. Do you have
 any hosts
  configured?
 
  --
  Carlos Martín, MSc
  Project Engineer
  OpenNebula - Flexible Enterprise Cloud Made Simple
  www.OpenNebula.org | cmar...@opennebula.org | @OpenNebula
 
 
  On Fri, May 9, 2014 at 12:02 AM, Marius Rex
 marius...@venda.com
  wrote:
  Platform: Centos 6.5
  versions: opennebula-4.5.80 and opennebula-4.6.0-1
 
  I have been struggling with this for a while with
 various
  configurations
  and I continually run into the same problem.
 
  I cannot build out a VM as the system volumes always
 come up
  with no
  space.  I have been trying to reduce variables and
 now at a
  very basic
  setup: I installed a fresh Centos 6 server and
 pulled down the
  latest
  stable opennebula RPMs from the official repo.  I am
 just
  using local
  file systems for everything, and have done nothing
 beyond
  installing the
  RPM and starting opennebula.  My system volume comes
 up with
  no
  available room, seemingly no matter 

Re: [one-users] system datastores always have no space

2014-05-09 Thread Ruben S. Montero
Does this directory exist /var/lib/one//datastores/0?


On Fri, May 9, 2014 at 11:55 PM, Marius Rex marius...@venda.com wrote:


 I am not sure I follow what you are trying to say.  What is the source
 of my problem?

 All of my datastores, which live on the same NFS mount, exist on the the
 monitored host.  They are mounted in /var/lib/one, which matches the
 BASE PATH for the datastore.  So I do not know how the NFS mount is not
 'properly mounted.'

 The output I get from the command you specify is:

 [root@kvm04 ~]# /var/tmp/one/im/kvm-probes.d/monitor_ds.sh
 kvm /var/lib/one/datastores
 DS_LOCATION_USED_MB=1
 DS_LOCATION_TOTAL_MB=1409258
 DS_LOCATION_FREE_MB=1408682

 So it looks the probe is finding available space.  But according to the
 output of 'onedatastore' there is no available space.  Thus no VMs can
 be created on my KVM host/node.

 I am not sure what step or procedure I am missing.  I do not see
 anything in

 http://docs.opennebula.org/4.6/design_and_installation/quick_starts/qs_centos_kvm.htmlthat
  I have skipped.

 Does it matter that the KVM node already has VMs running on it?
 Otherwise the node fits the guide above precisely. The plan is to put
 everything under OpenNebula management.  But since the system DS reports
 having no space, I cannot launch a single VM, and thus will not be able
 to spin any of those machines down to bring them up under OpenNebula
 management.

 -Marius



 On Fri, 2014-05-09 at 15:35 -0400, Ruben S. Montero wrote:
 
  On Fri, May 9, 2014 at 3:43 PM, Marius Rex marius...@venda.com
  wrote:
 
  The system DS is not supposed to show up with any space until
  a host is
  configured?  That is a surprising because the pre-configured
  sandbox
  instance I downloaded first for testing (a Virtualbox
  instance) has
  space listed in the system DS even though that has no hosts
  connected to
  it.
 
 
  I'm not sure about the sandbox configuration (e.g. there were some
  data from the setup). Anyway, system DS is monitored from the hosts.
   Note that System DS is not need (not even accessible for some storage
  backends) in the front-end, so the space is reported by the hosts.
  Also System DS is used to run VMs from it, and mainly used in the
  hosts.
 
 
 
  In any case, there are no hosts connected to the test instance
  that I
  gave the example on, but on some other instances which I have
  configured
  elsewhere do have hosts configured and they have the same
  problem.  I
  have /var/lib/one as a NFS mount that is mounted on both the
  frontend
  and the node.  That instance comes up with no space in the
  system DS as
  well.
 
 
  This may be a problem with the configuration or the sytem DS not
  properly mounted in the hosts. The information is obtained
  with /var/tmp/one/im/kvm-probes.d, go to the host kvm04 and execute:
 
 
   /var/tmp/one/im/kvm-probes.d/monitor_ds.sh
  kvm /var/lib/one/datastores/
 
 
  The output should be similar to...
 
 
  DS_LOCATION_USED_MB=1
  DS_LOCATION_TOTAL_MB=9952
  DS_LOCATION_FREE_MB=6318
  DS = [
ID = 101,
USED_MB = 1,
TOTAL_MB = 9952,
FREE_MB = 6318
  ]
 
 
 
  Here is some output from that showing the system DS with no
  space even
  though the logs say the node is successfully monitored:
  http://pastebin.com/w6Wg909Y
 
 
  -Marius
  marius...@venda.com
 
 
  On Fri, 2014-05-09 at 05:05 -0400, Carlos Martín Sánchez
  wrote:
   Hi,
  
  
   System DS are monitored with the host probes. Do you have
  any hosts
   configured?
  
   --
   Carlos Martín, MSc
   Project Engineer
   OpenNebula - Flexible Enterprise Cloud Made Simple
   www.OpenNebula.org | cmar...@opennebula.org | @OpenNebula
  
  
   On Fri, May 9, 2014 at 12:02 AM, Marius Rex
  marius...@venda.com
   wrote:
   Platform: Centos 6.5
   versions: opennebula-4.5.80 and opennebula-4.6.0-1
  
   I have been struggling with this for a while with
  various
   configurations
   and I continually run into the same problem.
  
   I cannot build out a VM as the system volumes always
  come up
   with no
   space.  I have been trying to reduce variables and
  now at a
   very basic
   setup: I installed a fresh Centos 6 server and
  pulled down the
   latest
   stable opennebula RPMs from the official repo.  I am
  just
   using local
   file systems for everything, and have done nothing
  beyond
 

Re: [one-users] creating a template with install cd

2014-05-09 Thread Stefan Kooman
Quoting Thomas Stein (himbe...@meine-oma.de):
 On Friday 09 May 2014 10:19:49 Neil Schneider wrote:
 
  OS=[
ARCH=x86_64,
BOOT=cdrom,
GUESTOS=rhel6_64Guest,
ROOT=hda ]
 
 I see. I wasn't aware of the fact i could use hd*a*. I just used hd and sd 
 and 
 vd. Stupid me.

Well, actually I _don't_ think it's you being stupid. I stumbled upon
this a long time ago. It would be nice if OpenNebula would pick hda
for the ISO (CDROM) (not context CDROM) if CDROM is choosen as boot
device (instead of hd). Or make it clear which device will be used to
boot from (and/or make it a checkbox). 

Gr. Stefan

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