Re: [one-users] Using OpenNebula for Linux desktops

2014-01-28 Thread ML mail
Dear Carlo,

Thanks for your suggestions, I will add my comments and details below regarding 
the various performance points you mention.

So yes I am using QXL as video driver, for that purpose I have added to my ONE 
template the following RAW data:

devicesvideomodel type=qxl heads=1/model/video/devices

As far as I remember AIO=native is the default and as such I should already be 
using native AIO.

As data storage I am using an NFS server with a SATA JBOD in hardware RAID6 (HP 
hardware). I am sharing the datastores from that server using the following 
export:

/data/one/datastores/101    192.168.1.0/24(rw,sync,no_subtree_check,root_squash)

Then on my ONE hosts I mount them using the following fstab entry:

192.168.1.2:/data/one/datastores/101  /var/lib/one/datastores/101  nfs   
soft,intr,rsize=8192,wsize=8192

Regarding the cache setting in the ONE template I always use none as I read 
quite often that in most of the cases cache should be set to none.

Using iotop (great tool btw!) to measure IO activity and using the image at the 
same time does not show much IO activity so I don't think IO is the bottleneck, 
also it is the only VM I am running on a test setup.

Other info to mention maybe: I am using a test VM with 4 GB of RAM and 4 CPU 
running on a host with dual Quad-Core Intel E5504 @2GHz (approx. 3 years old 
CPU). The resolution I am using for the desktop is 1680x1050. For your 
reference, below is the full KVM process which is running on the ONE host:

/usr/bin/kvm -S -M pc-1.1 -enable-kvm -m 4096 -smp 
4,sockets=4,cores=1,threads=1 -name one-70 -uuid 
8429d2bf-553f-d503-83e4-c44fc626de5c -no-user-config -nodefaults -chardev 
socket,id=charmonitor,path=/var/lib/libvirt/qemu/one-70.monitor,server,nowait 
-mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown 
-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive 
file=/var/lib/one//datastores/101/70/disk.0,if=none,id=drive-virtio-disk0,format=qcow2,cache=none
 -device 
virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1
 -drive 
file=/var/lib/one//datastores/101/70/disk.1,if=none,id=drive-ide0-0-0,readonly=on,format=raw
 -device
 ide-cd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -netdev 
tap,fd=20,id=hostnet0 -device 
virtio-net-pci,netdev=hostnet0,id=net0,mac=02:00:b9:0f:1f:29,bus=pci.0,addr=0x3 
-spice port=5970,addr=0.0.0.0,disable-ticketing -vga qxl -global 
qxl-vga.vram_size=67108864 -device 
virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5

Let me know if you need any more infos... Looking forward to your feedback.

Regards,
M.L.




On Tuesday, January 28, 2014 4:50 AM, Carlo Daffara 
carlo.daff...@cloudweavers.eu wrote:
 
There are several things you can do to improve basic performance. First of all, 
if you use SPICE as a protocol use QXL as the KVM video card, it will provide a 
substantial
speedup (the emulated video card will be much more intelligent and the job of 
protocol compression will be much simpler). Then, IO speedup is the second 
low-hanging fruit. We
use aio=native, and this alone substantially increases io rates. The next step 
depend on the kind of datastore you use- NFS, an external SAN, etc. If you can 
provide some additional details I can give some more options. For example, for 
machines that require high random R/W we use cache=none as it does decrease 
double buffering, thus improving performance. 
You can use iotop on the machine that executes the KVM process to check how 
much does it write, and why.
In our tests, using OpenNebula on top of the MFS distributed filesystem we 
easily get VDI
 performance near to that of the hardware with limited tuning.
regards,
carlo daffara
CloudWeavers


- Messaggio originale -
Da: ML mail mlnos...@yahoo.com
A: users users@lists.opennebula.org
Inviato: Lunedì, 27 gennaio 2014 16:51:19
Oggetto: [one-users] Using OpenNebula for Linux desktops

Hi, 

I am currently evaluating OpenNebula for running KVM virtual machines which 
will be used as Linux desktops with the SPICE protocol. For now I have tried 
Fedora 20 as a desktop system with KDE and
 SPICE (using remote viewer) but I am quite disappointed with the performance. 
The desktop reacts quite slowly even basic things like displaying the main menu 
and using the terminal even on a 1 Gig LAN. 

So does anyone out there really use OpenNebula for this purpose with success? 
and are there any recommendations for speeding up things in order to make it 
really usable. 

Cheers, 
M.L. 

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

Re: [one-users] Default RAW section for all VMs

2014-01-28 Thread Daniel Dehennin
Daniel Dehennin daniel.dehen...@baby-gnu.org writes:

 Hello,

Hello,

 We encounter an issue with Ubuntu 12.04: the display is frozen just
 after the boot.

 After some tests, I found that defining the following RAW section solve
 our issue:

 devicesvideomodel type='vga' heads='1'//video/devices

 I would like to add it for all VMs, so I modify
 /etc/one/vmm_exec/vmm_exec_kvm.conf:

 RAW  = devicesvideomodel type='vga' 
 heads='1'//video/devices

 But just modifying this file does not work, is it required to restart 
 opennebula?

I have my answer:

- /etc/one/vmm_exec/vmm_exec_kvm.conf is applied this moring after
  restarting ONE that night

- RAW section in /etc/one/vmm_exec/vmm_exec_kvm.conf is not overridden,
  resulting in multiple video cards:

  devices
video
  model type='vga' heads='1'/
/video
  /devices

  devicesvideomodel type='vga' heads='1'//video/devices

Is it the expected behaviour?

According to the configuration file, defining a raw section in a VM
template should be overridden:

# Default configuration attributes for the KVM driver
# (all domains will use these values as defaults).  These values can
# be overridden in each VM template. Valid atributes are:

Regards.
-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x7A6FE2DF


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


[one-users] oneacct: accounting information not correct?

2014-01-28 Thread Daems Dirk
Hi,

I use OpenNebula 4.2 with a VMWare hypervisor (v 5.1.0). I am experimenting 
with the oneacct accounting tool. It looks like the network consumption in my 
setup is not correctly monitored.
I sent a file of 2.4 GB to my VM with ID 52. After uploading the file, oneacct 
only reports 794.1K of received bytes.
When I execute the command a couple of second later, the NET_RX property only 
shows 0.1K of bytes received. If I understand the documentation correct [1], 
the amount of received bytes should be accumulated for a history record.

[1] - 
http://docs.opennebula.org/stable/administration/users_and_groups/accounting.html


-bash-4.1$ oneacct -u 2 -s '01/27/2014' -e '01/29/2014'

Showing active history records from Mon Jan 27 00:00:00 +0100 2014 to Wed Jan 
29 00:00:00 +0100 2014



# User 2



VID HOSTNAMEACTION   REAS START_TIME   END_TIME MEMORY 
CPU NET_RX NET_TX

  52 devmesx1.intern none none 01/27 17:26:18  - 2G 
  2 794.1K 0K



-bash-4.1$

-bash-4.1$

-bash-4.1$ oneacct -u 2 -s '01/27/2014' -e '01/29/2014'

Showing active history records from Mon Jan 27 00:00:00 +0100 2014 to Wed Jan 
29 00:00:00 +0100 2014



# User 2



VID HOSTNAMEACTION   REAS START_TIME   END_TIME MEMORY 
CPU NET_RX NET_TX

  52 devmesx1.intern none none 01/27 17:26:18  - 2G 
  2   0.1K 0K


Did anyone experience similar problems or could this be due to incorrect setup?

Thanks,
Dirk

VITO Disclaimer: http://www.vito.be/e-maildisclaimer
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] systemd support in opennebula-context

2014-01-28 Thread Javier Fontan
We still don't have support for systemd. We want to take out the
context scripts to its own repository so it is easier to modify and be
able to do async releases with new features but this is still in the
queue.

On Fri, Jan 24, 2014 at 11:51 PM, Karanbir Singh mail-li...@karan.org wrote:
 hi,

 Has anyone done any work with systemd support in opennebula context
 service scripts as yet ?

 - KB

 --
 Karanbir Singh
 +44-207-0999389 | http://www.karan.org/ | twitter.com/kbsingh
 GnuPG Key : http://www.karan.org/publickey.asc
 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org



-- 
Javier Fontán Muiños
Developer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
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] advanced contextualization

2014-01-28 Thread Javier Fontan
There is a bug in old contextualization packages that made custom init
scripts unable to run:

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

Upgrade your context script the latest version and you should be able
to run it. You will also be able to name you init scripts other than
init.sh and add more than one of those scripts using INIT_SCRIPTS
variable.

On Mon, Jan 27, 2014 at 4:46 PM, Daems Dirk dirk.da...@vito.be wrote:
 Hi,



 I use OpenNebula 4.2. I have a CentOS VM image to which I added the
 opennebula-context package from the OpenNebula yum repository. The VM starts
 normally and I can configure networking and passwordless SSH whitout any
 problem.



 Now I wanted to take contextualization a step further: I want to add my own
 scripts to the ISO file that is mounted to the VM filesystem. I uploaded a
 'init.sh' script to the files datastore with type 'CONTEXT'. This init.sh
 script seems to end up in the ISO file that is deployed with the VM and if
 the /etc/init.d/vmcontext script has run on the VM, it mounts the ISO file
 on /mnt. However, it looks like my init.sh script (which is in /mnt/init.sh)
 is never executed ... The /etc/init.d/vmcontext script only seems to execute
 the scripts in the /etc/one-context.d directory. From the documentation [1],
 I understood that if my init script is called init.sh, I wouldn't have to
 specify the INIT_SCRIPTS attribute in my VM template.



 I have the feeling that I'm missing something; maybe my understanding of
 advanced contextualization is not correct?



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



 Regards,

 Dirk



 VITO Disclaimer: http://www.vito.be/e-maildisclaimer

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




-- 
Javier Fontán Muiños
Developer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
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] Accounting of storage used by user

2014-01-28 Thread Carlos Martín Sánchez
Hi,

I see three ways to approach storage billing:

- Bill according to the available storage (limit set in the quotas).

- Bill the storage used by the running VMs. This was not possible before
4.4, the DISK/SIZE was added for the storage scheduling. Now you can do
this:
$ oneacct -u 0 -x | xpath -e
/HISTORY_RECORDS/HISTORY/VM/TEMPLATE/DISK/SIZE

- Bill the DS usage. This usage is tracked in the user quotas, but we don't
keep a history for the changes made here. You could create a script to
store the user quotas information in a database with a timestamp, and
trigger it with a hook [1] on image create and image remove.

Regards

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


--
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 Sat, Jan 25, 2014 at 11:53 PM, ML mail mlnos...@yahoo.com wrote:

 Hello,

 I was checking the oneacct tool and I noticed that there is no accounting
 of the storage used by a user. Am I missing something?

 How does someone bill the storage usage (OS, DATABLOCK, etc) of a customer
 on a hourly rate for example?

 Regards,
 M.L.

 ___
 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] Confused about VNC ports with the KVM hypervisor

2014-01-28 Thread Javier Fontan
The way to specify VNC ports in OpenNebula is the TCP port, not the
VNC port number. This is passed to libvirt that will convert it to VNC
port (-5900) as this is the way qemu/kvm wants it.

From libvirt documentation
(http://libvirt.org/formatdomain.html#elementsGraphics):

--8--
The port attribute specifies the TCP port number
--8--

From qemu documentation (http://wiki.qemu.org/download/qemu-doc.html):

--8--
'host:d'

TCP connections will only be allowed from host on display d. By
convention the TCP port is 5900+d. Optionally, host can be omitted in
which case the server will accept connections from any host.
--8--






On Thu, Jan 23, 2014 at 7:05 PM, Gerry O'Brien ge...@scss.tcd.ie wrote:

 Hi,

 I'm a little confused about VNC ports with the KVM hypervisor. From the
 documentation excerpt below I would have expected that the KVM would have
 had -vnc 0.0.0.0:7744 instead of -vnc 0.0.0.0:1844. Below is also the
 Sunstone Graphice part of the template for the Vm.
 The machine was generated by the OCCI-server. I would like to firewall
 the VM but allow access for ports  5900 so that users can get access to the
 VNC.

 What is the real port on the host for KVM with -vnc 0.0.0.0:1844?

Could someone clarify this for me.

 Thanks,
   Gerry




 http://docs.opennebula.org/pdf/4.4/opennebula_4.4_user_guide.pdf

 Warning:
 For KVM hypervisor the port number is a real one, not the VNC port. So for
 VNC port 0 you should
 specify 5900, for port 1 is 5901 and so on.


 GRAPHICS
 LISTEN 0.0.0.0
 PORT 7744
 TYPE vnc





 oneadmin 26348 1 39 17:48 ?00:00:27 /usr/bin/kvm -S -M pc-1.1
 -enable-kvm -m 512 -smp 1,sockets=1,cores=1,threads=1 -name one-1844 -uuid
 e570e501-f90e-fcc3-215c-43d0ba828349 -no-user-config -nodefaults -chardev
 socket,id=charmonitor,path=/var/lib/libvirt/qemu/one-1844.monitor,server,nowait
 -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown
 -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive
 file=/var/lib/one//datastores/103/1844/disk.0,if=none,id=drive-ide0-0-0,format=qcow2,cache=none
 -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1
 -netdev tap,fd=23,id=hostnet0 -device
 rtl8139,netdev=hostnet0,id=net0,mac=02:00:0a:3e:00:04,bus=pci.0,addr=0x3
 -vnc 0.0.0.0:1844 -vga cirrus -device
 virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4

 --
 Gerry O'Brien

 Systems Manager
 School of Computer Science and Statistics
 Trinity College Dublin
 Dublin 2
 IRELAND

 00 353 1 896 1341


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




-- 
Javier Fontán Muiños
Developer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
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] Default RAW section for all VMs

2014-01-28 Thread Ruben S. Montero
Hi

You are right, the values are overriden expect for RAW, which is appended.
IMHO it is better to keep this behavior and change the comments on that
file. This way, you can put basic needed RAW attributes for your setup and
then add specific ones for each guest...

Cheers

Ruben


On Tue, Jan 28, 2014 at 10:01 AM, Daniel Dehennin 
daniel.dehen...@baby-gnu.org wrote:

 Daniel Dehennin daniel.dehen...@baby-gnu.org writes:

  Hello,

 Hello,

  We encounter an issue with Ubuntu 12.04: the display is frozen just
  after the boot.
 
  After some tests, I found that defining the following RAW section solve
  our issue:
 
  devicesvideomodel type='vga' heads='1'//video/devices
 
  I would like to add it for all VMs, so I modify
  /etc/one/vmm_exec/vmm_exec_kvm.conf:
 
  RAW  = devicesvideomodel type='vga'
 heads='1'//video/devices
 
  But just modifying this file does not work, is it required to restart
 opennebula?

 I have my answer:

 - /etc/one/vmm_exec/vmm_exec_kvm.conf is applied this moring after
   restarting ONE that night

 - RAW section in /etc/one/vmm_exec/vmm_exec_kvm.conf is not overridden,
   resulting in multiple video cards:

   devices
 video
   model type='vga' heads='1'/
 /video
   /devices

   devicesvideomodel type='vga' heads='1'//video/devices

 Is it the expected behaviour?

 According to the configuration file, defining a raw section in a VM
 template should be overridden:

 # Default configuration attributes for the KVM driver
 # (all domains will use these values as defaults).  These values can
 # be overridden in each VM template. Valid atributes are:

 Regards.
 --
 Daniel Dehennin
 Récupérer ma clef GPG:
 gpg --keyserver pgp.mit.edu --recv-keys 0x7A6FE2DF

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

 --
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
 --
 Ruben S. Montero, PhD
 Project co-Lead and Chief 
 Architecthttp://lists.opennebula.org/listinfo.cgi/users-opennebula.org
 OpenNebula - Flexible Enterprise Cloud Made Simple
  http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
 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] Default RAW section for all VMs

2014-01-28 Thread Daniel Dehennin
Ruben S. Montero rsmont...@opennebula.org writes:

 Hi

Hello,

 You are right, the values are overriden expect for RAW, which is appended.
 IMHO it is better to keep this behavior and change the comments on that
 file. This way, you can put basic needed RAW attributes for your setup and
 then add specific ones for each guest...

We will go this way for now, but some kind of template inheritance like
in my comment on #2149[1].

Defining the RAW section in my /etc/one/vmm_exec/vmm_exec_kvm.conf
prevent my SPICE VMs from booting since their template define the video
model to “qxl”.

For this specific issue, I just need to define the global RAW video to
“qxl” which is compatible to “vga”[2].

Regards.

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

[2]  vga for libvirt and std for qemu

-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x7A6FE2DF


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


Re: [one-users] advanced contextualization

2014-01-28 Thread Daems Dirk
Hello Javier,

I installed the latest version from the yum repository:

yum info opennebula-context.x86_64

Name: opennebula-context
Arch: x86_64
Version : 4.2.0
Release : 1
Size: 8.9 k
Repo: installed
From repo   : opennebula
Summary : Configures a Virtual Machine for OpenNebula
URL : http://opennebula.org
License : Apache
Description : Configures a Virtual Machine for OpenNebula. In particular it 
configures the
: udev rules, the network, and runs any scripts provided throught 
the CONTEXT
: mechanism.

There doesn't seem to be a newer version available in the yum repo.
Should I have a look in the Git repo then?

Regards,
Dirk

-Original Message-
From: Javier Fontan [mailto:jfon...@opennebula.org]
Sent: dinsdag 28 januari 2014 12:04
To: Daems Dirk
Cc: users@lists.opennebula.org
Subject: Re: [one-users] advanced contextualization

There is a bug in old contextualization packages that made custom init scripts 
unable to run:

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

Upgrade your context script the latest version and you should be able to run 
it. You will also be able to name you init scripts other than init.sh and add 
more than one of those scripts using INIT_SCRIPTS variable.

On Mon, Jan 27, 2014 at 4:46 PM, Daems Dirk dirk.da...@vito.be wrote:
 Hi,



 I use OpenNebula 4.2. I have a CentOS VM image to which I added the
 opennebula-context package from the OpenNebula yum repository. The VM
 starts normally and I can configure networking and passwordless SSH
 whitout any problem.



 Now I wanted to take contextualization a step further: I want to add
 my own scripts to the ISO file that is mounted to the VM filesystem. I
 uploaded a 'init.sh' script to the files datastore with type
 'CONTEXT'. This init.sh script seems to end up in the ISO file that is
 deployed with the VM and if the /etc/init.d/vmcontext script has run
 on the VM, it mounts the ISO file on /mnt. However, it looks like my
 init.sh script (which is in /mnt/init.sh) is never executed ... The
 /etc/init.d/vmcontext script only seems to execute the scripts in the
 /etc/one-context.d directory. From the documentation [1], I understood
 that if my init script is called init.sh, I wouldn't have to specify the 
 INIT_SCRIPTS attribute in my VM template.



 I have the feeling that I'm missing something; maybe my understanding
 of advanced contextualization is not correct?



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



 Regards,

 Dirk



 VITO Disclaimer: http://www.vito.be/e-maildisclaimer

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




--
Javier Fontán Muiños
Developer
OpenNebula - The Open Source Toolkit for Data Center Virtualization 
www.OpenNebula.org | @OpenNebula | github.com/jfontan
VITO Disclaimer: http://www.vito.be/e-maildisclaimer
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] advanced contextualization

2014-01-28 Thread Javier Fontan
This is the latest package:

http://dev.opennebula.org/attachments/download/747/one-context_4.4.0.rpm

The repository you have is for version 4.2 and still does not have a
newer package with the fixes. Even if the context package is for 4.4
should be compatible with 4.2.

On Tue, Jan 28, 2014 at 1:47 PM, Daems Dirk dirk.da...@vito.be wrote:
 Hello Javier,

 I installed the latest version from the yum repository:

 yum info opennebula-context.x86_64

 Name: opennebula-context
 Arch: x86_64
 Version : 4.2.0
 Release : 1
 Size: 8.9 k
 Repo: installed
 From repo   : opennebula
 Summary : Configures a Virtual Machine for OpenNebula
 URL : http://opennebula.org
 License : Apache
 Description : Configures a Virtual Machine for OpenNebula. In particular it 
 configures the
 : udev rules, the network, and runs any scripts provided throught 
 the CONTEXT
 : mechanism.

 There doesn't seem to be a newer version available in the yum repo.
 Should I have a look in the Git repo then?

 Regards,
 Dirk

 -Original Message-
 From: Javier Fontan [mailto:jfon...@opennebula.org]
 Sent: dinsdag 28 januari 2014 12:04
 To: Daems Dirk
 Cc: users@lists.opennebula.org
 Subject: Re: [one-users] advanced contextualization

 There is a bug in old contextualization packages that made custom init 
 scripts unable to run:

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

 Upgrade your context script the latest version and you should be able to run 
 it. You will also be able to name you init scripts other than init.sh and add 
 more than one of those scripts using INIT_SCRIPTS variable.

 On Mon, Jan 27, 2014 at 4:46 PM, Daems Dirk dirk.da...@vito.be wrote:
 Hi,



 I use OpenNebula 4.2. I have a CentOS VM image to which I added the
 opennebula-context package from the OpenNebula yum repository. The VM
 starts normally and I can configure networking and passwordless SSH
 whitout any problem.



 Now I wanted to take contextualization a step further: I want to add
 my own scripts to the ISO file that is mounted to the VM filesystem. I
 uploaded a 'init.sh' script to the files datastore with type
 'CONTEXT'. This init.sh script seems to end up in the ISO file that is
 deployed with the VM and if the /etc/init.d/vmcontext script has run
 on the VM, it mounts the ISO file on /mnt. However, it looks like my
 init.sh script (which is in /mnt/init.sh) is never executed ... The
 /etc/init.d/vmcontext script only seems to execute the scripts in the
 /etc/one-context.d directory. From the documentation [1], I understood
 that if my init script is called init.sh, I wouldn't have to specify the 
 INIT_SCRIPTS attribute in my VM template.



 I have the feeling that I'm missing something; maybe my understanding
 of advanced contextualization is not correct?



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



 Regards,

 Dirk



 VITO Disclaimer: http://www.vito.be/e-maildisclaimer

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




 --
 Javier Fontán Muiños
 Developer
 OpenNebula - The Open Source Toolkit for Data Center Virtualization 
 www.OpenNebula.org | @OpenNebula | github.com/jfontan
 VITO Disclaimer: http://www.vito.be/e-maildisclaimer



-- 
Javier Fontán Muiños
Developer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
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] Using CloudInit for contextualization

2014-01-28 Thread Wilma Hermann
Hi,

I'm trying to get a Ubuntu 13.10 guest to work, which uses a official
Cloud-image (http://cloud-images.ubuntu.com/saucy/) as disk. However, the
VM is not integrating into the virtual network. I've double checked the
virtual network settings with CentOS-VMs, the network works correctly.

I've found out that CloudInit writes a correct /etc/network/interfaces file
with a static address, however, the machine somehow ignores this file and
keeps sending DHCP requests without getting an answer (which is intended
since we don't use DHCP in the VM's network).

# virt-cat one-42 /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
  address 192.168.129.4
  network 192.168.128.0
  netmask 255.255.254.0
  gateway 192.168.128.1

# virt-cat one-42 /var/log/syslog | tail -6
Jan 28 12:42:44 ubuntu dhclient: DHCPDISCOVER on eth0 to 255.255.255.255
port 67 interval 21 (xid=0x1080a577)
Jan 28 12:43:05 ubuntu dhclient: DHCPDISCOVER on eth0 to 255.255.255.255
port 67 interval 13 (xid=0x1080a577)
Jan 28 12:43:18 ubuntu dhclient: DHCPDISCOVER on eth0 to 255.255.255.255
port 67 interval 20 (xid=0x1080a577)
Jan 28 12:43:38 ubuntu dhclient: DHCPDISCOVER on eth0 to 255.255.255.255
port 67 interval 1 (xid=0x1080a577)
Jan 28 12:43:39 ubuntu dhclient: No DHCPOFFERS received.
Jan 28 12:43:39 ubuntu dhclient: No working leases in persistent database -
sleeping.

Does anybody know how the VM template needs to be configured in order to
get it working?

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


Re: [one-users] Accounting of storage used by user

2014-01-28 Thread ML mail
Hi,

Thanks for the tips on accounting the storage of a user. I wasn't aware that 
the XML output has so much more information.. Actually there is everything I 
need in there, even IP information. That's perfect!

Regards
ML




On Tuesday, January 28, 2014 12:03 PM, Carlos Martín Sánchez 
cmar...@opennebula.org wrote:
 
Hi,

I see three ways to approach storage billing:

- Bill according to the available storage (limit set in the quotas).

- Bill the storage used by the running VMs. This was not possible before 4.4, 
the DISK/SIZE was added for the storage scheduling. Now you can do this:
$ oneacct -u 0 -x | xpath -e /HISTORY_RECORDS/HISTORY/VM/TEMPLATE/DISK/SIZE

- Bill the DS usage. This usage is tracked in the user quotas, but we don't 
keep a history for the changes made here. You could create a script to store 
the user quotas information in a database with a timestamp, and trigger it with 
a hook [1] on image create and image remove.

Regards

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




--

Carlos Martín, MSc
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple

www.OpenNebula.org | cmar...@opennebula.org | @OpenNebula


On Sat, Jan 25, 2014 at 11:53 PM, ML mail mlnos...@yahoo.com wrote:

Hello,


I was checking the oneacct tool and I noticed that there is no accounting of 
the storage used by a user. Am I missing something? 



How does someone bill the storage usage (OS, DATABLOCK, etc) of a customer on 
a hourly rate for example? 


Regards,
M.L.
___
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] advanced contextualization

2014-01-28 Thread Daems Dirk
Hello Javier,

That worked!

Thanks,
Dirk

-Original Message-
From: Javier Fontan [mailto:jfon...@opennebula.org]
Sent: dinsdag 28 januari 2014 14:27
To: Daems Dirk
Cc: users@lists.opennebula.org
Subject: Re: [one-users] advanced contextualization

This is the latest package:

http://dev.opennebula.org/attachments/download/747/one-context_4.4.0.rpm

The repository you have is for version 4.2 and still does not have a newer 
package with the fixes. Even if the context package is for 4.4 should be 
compatible with 4.2.

On Tue, Jan 28, 2014 at 1:47 PM, Daems Dirk dirk.da...@vito.be wrote:
 Hello Javier,

 I installed the latest version from the yum repository:

 yum info opennebula-context.x86_64

 Name: opennebula-context
 Arch: x86_64
 Version : 4.2.0
 Release : 1
 Size: 8.9 k
 Repo: installed
 From repo   : opennebula
 Summary : Configures a Virtual Machine for OpenNebula
 URL : http://opennebula.org
 License : Apache
 Description : Configures a Virtual Machine for OpenNebula. In particular it 
 configures the
 : udev rules, the network, and runs any scripts provided throught 
 the CONTEXT
 : mechanism.

 There doesn't seem to be a newer version available in the yum repo.
 Should I have a look in the Git repo then?

 Regards,
 Dirk

 -Original Message-
 From: Javier Fontan [mailto:jfon...@opennebula.org]
 Sent: dinsdag 28 januari 2014 12:04
 To: Daems Dirk
 Cc: users@lists.opennebula.org
 Subject: Re: [one-users] advanced contextualization

 There is a bug in old contextualization packages that made custom init 
 scripts unable to run:

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

 Upgrade your context script the latest version and you should be able to run 
 it. You will also be able to name you init scripts other than init.sh and add 
 more than one of those scripts using INIT_SCRIPTS variable.

 On Mon, Jan 27, 2014 at 4:46 PM, Daems Dirk dirk.da...@vito.be wrote:
 Hi,



 I use OpenNebula 4.2. I have a CentOS VM image to which I added the
 opennebula-context package from the OpenNebula yum repository. The VM
 starts normally and I can configure networking and passwordless SSH
 whitout any problem.



 Now I wanted to take contextualization a step further: I want to add
 my own scripts to the ISO file that is mounted to the VM filesystem.
 I uploaded a 'init.sh' script to the files datastore with type
 'CONTEXT'. This init.sh script seems to end up in the ISO file that
 is deployed with the VM and if the /etc/init.d/vmcontext script has
 run on the VM, it mounts the ISO file on /mnt. However, it looks like
 my init.sh script (which is in /mnt/init.sh) is never executed ...
 The /etc/init.d/vmcontext script only seems to execute the scripts in
 the /etc/one-context.d directory. From the documentation [1], I
 understood that if my init script is called init.sh, I wouldn't have to 
 specify the INIT_SCRIPTS attribute in my VM template.



 I have the feeling that I'm missing something; maybe my understanding
 of advanced contextualization is not correct?



 [1] -
 http://docs.opennebula.org/stable/user/virtual_machine_setup/cong.htm
 l



 Regards,

 Dirk



 VITO Disclaimer: http://www.vito.be/e-maildisclaimer

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




 --
 Javier Fontán Muiños
 Developer
 OpenNebula - The Open Source Toolkit for Data Center Virtualization
 www.OpenNebula.org | @OpenNebula | github.com/jfontan VITO Disclaimer:
 http://www.vito.be/e-maildisclaimer



--
Javier Fontán Muiños
Developer
OpenNebula - The Open Source Toolkit for Data Center Virtualization 
www.OpenNebula.org | @OpenNebula | github.com/jfontan
VITO Disclaimer: http://www.vito.be/e-maildisclaimer
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] oneacct [VirtualMachinePoolAccounting] Internal Error

2014-01-28 Thread Stefan Kooman
Hi list,

Running oneact as oneadmin user I get the following error:

oneacct 
[VirtualMachinePoolAccounting] Internal Error.

oned.log shows:

Tue Jan 28 17:21:19 2014 [ReM][D]: Req:6624 UID:0
VirtualMachinePoolAccounting invoked, -2, -1, -1
Tue Jan 28 17:21:19 2014 [ONE][E]: SQL command was: SELECT history.body
FROM history INNER JOIN vm_pool WHERE vid=oid GROUP BY vid,seq, error
1055 : 'opennebula.history.body' isn't in GROUP BY
Tue Jan 28 17:21:19 2014 [ReM][E]: Req:6624 UID:0
VirtualMachinePoolAccounting result FAILURE
[VirtualMachinePoolAccounting] Internal Error

I don't know for sure it ever worked after I upgraded to onennebula-4.4.

It might have to do with our mysql server settings (sql-mode):
sql-mode   =
STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_AUTO_VALUE_ON_ZERO,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,ONLY_FULL_GROUP_BY

But I'm not sure.

How to best debug this issue?

Gr. Stefan

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


Re: [one-users] Vlan template

2014-01-28 Thread Dmitri Chebotarov
Hi guys

Have you found solution for how to add trunk interface?

I¹m facing the same task and looking for a possible solution. I found this
ports 
http://blog.scottlowe.org/2013/05/28/vlan-trunking-to-guest-domains-with-op
en-vswitch/ and trying to implement it via RAW entry in VM template. No
results yetŠ

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







On 5/21/13, 3:21 , Gandalf Corvotempesta
gandalf.corvotempe...@gmail.com wrote:

2013/5/20 Jaime Melis jme...@opennebula.org:
 However, you can only tag one VLAN per interfaces, which as far as I
know,
 is the only thing that makes sense?

Why? Trunk interfaces carries multiple vlan, is absolutely standard.
I have not less than 58 VLANs on a single interface on my XenServer host.
___
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] Vlan template

2014-01-28 Thread Dmitri Chebotarov
It seems like the command to add trunk is almost identical to adding vlan:

- vlan (ie. Access-port) : ovs-vsctl set port vnet0 tag=Vlan1
- trunk : ovs-vsctl set port vnet0 trunks=VlanID1,VlanID2

Would it be possible to adjust command to add trunk port with list of
VLANs if multiple VLAN Ids listed in the Virtual Network’s VLAN field?

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







On 1/28/14, 12:23 , Dmitri Chebotarov dcheb...@gmu.edu wrote:

Hi guys

Have you found solution for how to add trunk interface?

I¹m facing the same task and looking for a possible solution. I found this
ports 
http://blog.scottlowe.org/2013/05/28/vlan-trunking-to-guest-domains-with-o
p
en-vswitch/ and trying to implement it via RAW entry in VM template. No
results yetŠ

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







On 5/21/13, 3:21 , Gandalf Corvotempesta
gandalf.corvotempe...@gmail.com wrote:

2013/5/20 Jaime Melis jme...@opennebula.org:
 However, you can only tag one VLAN per interfaces, which as far as I
know,
 is the only thing that makes sense?

Why? Trunk interfaces carries multiple vlan, is absolutely standard.
I have not less than 58 VLANs on a single interface on my XenServer host.
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


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

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