Re: Libvirt

2022-12-26 Thread Marko Horn
so,
cause eBPF pulls all from the kernel,
yes you can.
but you need to dive into the stuff..
Knowing basics about performance and kernel can help.
but it's possible.

slainte!



26.12.2022 19:19:47 Gk Gk :

> So, can I derive cpu, memory, disk and network stats of the VMs ?
> 
> On Monday, December 26, 2022, Marko Horn  wrote:
>> Hello,
>>
>> yes I can :-)
>>
>> https://www.brendangregg.com/
>>
>> on the page you will find a link to his 'Linux Performance' book.
>> On the page are also further Infos about the topic 'performance'.
>> you will have to dive into the stuff.
>> (e)BPF is a "MIGHTY" area.
>> But you can pull out nearly 'every' meta data from the kernel.
>>
>> Also for your interest:
>>
>> https://www.brendangregg.com/Slides/SREcon2022_ComputingPerformance/
>>
>> Computing Performance 2022 and what is on the horizon!
>>
>> have fun!
>>
>> Slainte
>>
>> 
>>
>> 26.12.2022 18:09:39 Gk Gk :
>>
>> Thanks Marco for the response. Is it possible to collect these vm stats from 
>> the host KVM hypervisor ? Also can u give the link for this book ?
>>
>> Thanks
>> Happy holidays
>>
>> On Monday, December 26, 2022, Marko Horn  wrote:
>>> Hi,
>>>
>>> I think best way is to use BPF to collect stats. I did this in past in 
>>> combination with 'perf'.
>>> Theres a nice book of Brandon Greg from Netflix Networks where he describe 
>>> how to do this and how to write own scripts.
>>>
>>> merry Xmas
>>>
>>> marko
>>>
>>> 
>>>
>>> 26.12.2022 11:34:20 Gk Gk :
>>>
>>> Hi All,
>>> I am trying to collect memory, disk and network stats for a VM on kvm host. 
>>> It seems that the statistics are not matching what the OS inside the VM is 
>>> reporting. Why is this discrepancy ?
>>> Is this a known bug of libvirt ? Also I heard that libvirt shows cumulative 
>>> figures for these measures ever since the VM was created.  Also I tested by 
>>> creating a new vm and comparing the stats without a reboot . Even in this 
>>> case, the stats dont agree.  Can someone help me here please ?
>>>
>>> Thanks
>>> Kumar
>>>


Re: Libvirt

2022-12-26 Thread Marko Horn
Hello,

yes I can :-)

https://www.brendangregg.com/

on the page you will find a link to his 'Linux Performance' book.
On the page are also further Infos about the topic 'performance'.
you will have to dive into the stuff.
(e)BPF is a "MIGHTY" area.
But you can pull out nearly 'every' meta data from the kernel.

Also for your interest:

https://www.brendangregg.com/Slides/SREcon2022_ComputingPerformance/

Computing Performance 2022 and what is on the horizon!

have fun!

Slainte



26.12.2022 18:09:39 Gk Gk :

> Thanks Marco for the response. Is it possible to collect these vm stats from 
> the host KVM hypervisor ? Also can u give the link for this book ?
> 
> Thanks
> Happy holidays
> 
> On Monday, December 26, 2022, Marko Horn  wrote:
>> Hi,
>>
>> I think best way is to use BPF to collect stats. I did this in past in 
>> combination with 'perf'.
>> Theres a nice book of Brandon Greg from Netflix Networks where he describe 
>> how to do this and how to write own scripts.
>>
>> merry Xmas
>>
>> marko
>>
>> 
>>
>> 26.12.2022 11:34:20 Gk Gk :
>>
>> Hi All,
>> I am trying to collect memory, disk and network stats for a VM on kvm host. 
>> It seems that the statistics are not matching what the OS inside the VM is 
>> reporting. Why is this discrepancy ?
>> Is this a known bug of libvirt ? Also I heard that libvirt shows cumulative 
>> figures for these measures ever since the VM was created.  Also I tested by 
>> creating a new vm and comparing the stats without a reboot . Even in this 
>> case, the stats dont agree.  Can someone help me here please ?
>>
>> Thanks
>> Kumar
>>


Re: Libvirt

2022-12-26 Thread Marko Horn
Hi,

I think best way is to use BPF to collect stats. I did this in past in 
combination with 'perf'.
Theres a nice book of Brandon Greg from Netflix Networks where he describe how 
to do this and how to write own scripts.

merry Xmas

marko



26.12.2022 11:34:20 Gk Gk :

> Hi All,
> 
> I am trying to collect memory, disk and network stats for a VM on kvm host. 
> It seems that the statistics are not matching what the OS inside the VM is 
> reporting. Why is this discrepancy ?
> 
> Is this a known bug of libvirt ? Also I heard that libvirt shows cumulative 
> figures for these measures ever since the VM was created.  Also I tested by 
> creating a new vm and comparing the stats without a reboot . Even in this 
> case, the stats dont agree.  Can someone help me here please ?
> 
> 
> Thanks
> Kumar


Re: cant create network with virt-manager

2020-09-28 Thread Marko Horn



hello laine,

---
Mitten drin statt nur Datei!

Am 2020-09-22 03:34, schrieb Laine Stump:

On 9/21/20 3:58 PM, Marko Horn wrote:


hello list,
i cant create an isolated network with the virt-manager.

installed version virt-manager 3.0.0
installed version libvirt 6.2.0

output in error-message:

Error creating virtual network: internal error: Failed to apply 
firewall rules /sbin/iptables -w --table filter --insert LIBVIRT_INP 
--in-interface virbr3 --protocol tcp --destination-port 67 --jump 
ACCEPT: iptables: No chain/target/match by that name.


I may be remembering incorrectly (I think there might have been as
similar bug of the same vintage), but it is possibly caused by this
bug:

https://bugzilla.redhat.com/show_bug.cgi?id=1813830

It was fixed upstream in libvirt-6.4.0. If you're building from
upstream yourself, then grab the latest master. If you're running a
downstream distro build, ask them to backport the patches detailed in
the above (Fedora) bug report.





Traceback (most recent call last):
   File "/usr/share/virt-manager/virtManager/asyncjob.py", line 66, in 
cb_wrapper

     callback(asyncjob, *args, **kwargs)
   File "/usr/share/virt-manager/virtManager/createnet.py", line 428, 
in _async_net_create

     netobj.create()
   File "/usr/lib/python3.7/site-packages/libvirt.py", line 3174, in 
create
     if ret == -1: raise libvirtError ('virNetworkCreate() failed', 
net=self)
libvirt.libvirtError: internal error: Failed to apply firewall rules 
/sbin/iptables -w --table filter --insert LIBVIRT_INP --in-interface 
virbr3 --protocol tcp --destination-port 67 --jump ACCEPT: iptables: 
No chain/target/match by that name


any ideas?

thank you
marko




just want to tell you that with an upgrade of libvirt from 6.2.0 to 
6.5.0 in gentoo it is working.


kind regards
marko




cant create network with virt-manager

2020-09-21 Thread Marko Horn



hello list,
i cant create an isolated network with the virt-manager.

installed version virt-manager 3.0.0
installed version libvirt 6.2.0

output in error-message:

Error creating virtual network: internal error: Failed to apply firewall 
rules /sbin/iptables -w --table filter --insert LIBVIRT_INP 
--in-interface virbr3 --protocol tcp --destination-port 67 --jump 
ACCEPT: iptables: No chain/target/match by that name.



Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 66, in 
cb_wrapper

callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/createnet.py", line 428, in 
_async_net_create

netobj.create()
  File "/usr/lib/python3.7/site-packages/libvirt.py", line 3174, in 
create
if ret == -1: raise libvirtError ('virNetworkCreate() failed', 
net=self)
libvirt.libvirtError: internal error: Failed to apply firewall rules 
/sbin/iptables -w --table filter --insert LIBVIRT_INP --in-interface 
virbr3 --protocol tcp --destination-port 67 --jump ACCEPT: iptables: No 
chain/target/match by that name


any ideas?

thank you
marko


--
Mitten drin statt nur Datei!



Re: [libvirt-users] create virtual network fails with virt-manager

2019-10-16 Thread Marko Horn

Hi Martin

Am 2019-10-11 09:58, schrieb Martin Kletzander:

On Thu, Oct 10, 2019 at 03:40:24PM +0200, Marko Horn wrote:



hello list,

creatig a virtual network via virt-manager fails.
gentoo linux vanilla-sources 5.3.1
virt-manager 2.2.1
qemu 4.0
libvirt 5.5.0



Please try newer libvirt.  There were some fixes related to 
iptables/nf_tables

in libvirt in recent releases, so it might just solve that for you.


just want to tell you that switching to libvirt 5.6.0 on gentoo fixed 
that.

now ist possible to create networks.

marko





the error output of

Error creating virtual network: internal error: Failed to apply 
firewall

rules /sbin/iptables -w --table filter --insert LIBVIRT_INP
--in-interface virbr1 --protocol tcp --destination-port 67 --jump
ACCEPT: iptables: No chain/target/match by that name.


Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 75, in
cb_wrapper
callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/createnet.py", line 472, 
in

_async_net_create
netobj.create()
  File "/usr/lib64/python3.6/site-packages/libvirt.py", line 2993, in
create
if ret == -1: raise libvirtError ('virNetworkCreate() failed',
net=self)
libvirt.libvirtError: internal error: Failed to apply firewall rules
/sbin/iptables -w --table filter --insert LIBVIRT_INP --in-interface
virbr1 --protocol tcp --destination-port 67 --jump ACCEPT: iptables: 
No

chain/target/match by that name.



/sbin/iptables exists

any ideas?

kind regards
m@rko



-- zbfmail - Mittendrin statt nur Datei!
  Datei sein ist alles!

___
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users


___
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users


___
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users


[libvirt-users] create virtual network fails with virt-manager

2019-10-10 Thread Marko Horn




hello list,

creatig a virtual network via virt-manager fails.
gentoo linux vanilla-sources 5.3.1
virt-manager 2.2.1
qemu 4.0
libvirt 5.5.0


the error output of

Error creating virtual network: internal error: Failed to apply firewall 
rules /sbin/iptables -w --table filter --insert LIBVIRT_INP 
--in-interface virbr1 --protocol tcp --destination-port 67 --jump 
ACCEPT: iptables: No chain/target/match by that name.



Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 75, in 
cb_wrapper

callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/createnet.py", line 472, in 
_async_net_create

netobj.create()
  File "/usr/lib64/python3.6/site-packages/libvirt.py", line 2993, in 
create
if ret == -1: raise libvirtError ('virNetworkCreate() failed', 
net=self)
libvirt.libvirtError: internal error: Failed to apply firewall rules 
/sbin/iptables -w --table filter --insert LIBVIRT_INP --in-interface 
virbr1 --protocol tcp --destination-port 67 --jump ACCEPT: iptables: No 
chain/target/match by that name.




/sbin/iptables exists

any ideas?

kind regards
m@rko



--
zbfmail - Mittendrin statt nur Datei!
  Datei sein ist alles!

___
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users