Re: virsh vol-download uses a lot of memory

2020-01-22 Thread R. Diez
> [...] Actually, it is not. It's caused by our design of the client event loop. If there are any incoming data, read as much as possible placing them at the end of linked list of incoming stream data (stream is a way that libvirt uses to transfer binary data). Problem is that instead of returni

Re: virsh vol-download uses a lot of memory

2020-01-22 Thread R. Diez
I'm sorry, I don't have Ubuntu installed anywhere to look the version up. Can you run 'virsh version' to find it out for me please? $ virsh version Compiled against library: libvirt 4.0.0 Using library: libvirt 4.0.0 Using API: QEMU 4.0.0 Running hypervisor: QEMU 2.11.1 This is very likely

Re: virsh vol-download uses a lot of memory

2020-01-22 Thread Peter Crowther
Architecturally, separating the data and control channels feels like the right approach - whether nbd or something else. Would need signposting for those of us who routinely implement firewalling on hosts, but that's a detail. I presume there's no flow control on streams at the moment? Cheers, P

Re: virsh vol-download uses a lot of memory

2020-01-22 Thread Daniel P . Berrangé
On Wed, Jan 22, 2020 at 01:01:42PM +0100, Michal Privoznik wrote: > On 1/22/20 11:11 AM, Michal Privoznik wrote: > > On 1/22/20 10:03 AM, R. Diez wrote: > > > Hi all: > > > > > > I am using the libvirt version that comes with Ubuntu 18.04.3 LTS. > > > > I'm sorry, I don't have Ubuntu installed an

Re: virsh vol-download uses a lot of memory

2020-01-22 Thread Michal Privoznik
On 1/22/20 11:11 AM, Michal Privoznik wrote: On 1/22/20 10:03 AM, R. Diez wrote: Hi all: I am using the libvirt version that comes with Ubuntu 18.04.3 LTS. I'm sorry, I don't have Ubuntu installed anywhere to look the version up. Can you run 'virsh version' to find it out for me please? Ne

Re: How to detect completion of a paused VM migration on the destination?

2020-01-22 Thread Milan Zamazal
Michal Privoznik writes: > On 1/21/20 3:28 PM, Milan Zamazal wrote: >> Hi, >> > >> when a normally running VM is migrated, libvirt sends >> VIR_DOMAIN_EVENT_RESUMED_MIGRATED event on the destination once the >> migration completes. I can see that when a paused VM is migrated, >> libvirt sends VI

Testing mail delivery

2020-01-22 Thread dberra...@yahoo.com
We continue to have problems with mail delivery, especially to Yahoo addresses. This mail is a test to investigate delivery behaviour, please ignore this mail thread. Daniel

Re: virsh vol-download uses a lot of memory

2020-01-22 Thread Michal Privoznik
On 1/22/20 10:03 AM, R. Diez wrote: Hi all: I am using the libvirt version that comes with Ubuntu 18.04.3 LTS. I'm sorry, I don't have Ubuntu installed anywhere to look the version up. Can you run 'virsh version' to find it out for me please? I have written a script that backs up my virtu

Re: qemu hook: event for source host too

2020-01-22 Thread Guy Godfroy
That's right, I need also that second hook event. For your information, for now I manage locks manually or via Ansible. To make hook manage locks, I still need to find out a secure way to run LVM commands from a non-root account, but this is another problem. Le 22 janvier 2020 10:24:53 GMT+01:0

Re: qemu hook: event for source host too

2020-01-22 Thread Michal Privoznik
On 1/22/20 9:23 AM, Guy Godfroy wrote: I could launch `lvchange -asy` on the source host manually, but the aim of hooks is to automatically execute such commands and avoid human errors. Agreed. However, you would need two hooks actually. One that is called on the source when the migration is s

virsh vol-download uses a lot of memory

2020-01-22 Thread R. Diez
Hi all: I am using the libvirt version that comes with Ubuntu 18.04.3 LTS. I have written a script that backs up my virtual machines every night. I want to limit the amount of memory that this backup operation consumes, mainly to prevent page cache thrashing. I have described the Linux page cac

Re: qemu hook: event for source host too

2020-01-22 Thread Guy Godfroy
I could launch `lvchange -asy` on the source host manually, but the aim of hooks is to automatically execute such commands and avoid human errors. Le 22 janvier 2020 09:18:54 GMT+01:00, Michal Privoznik a écrit : >On 1/21/20 9:10 AM, Guy Godfroy wrote: >> Hello, this is my first time posting on

Re: qemu hook: event for source host too

2020-01-22 Thread Michal Privoznik
On 1/21/20 9:10 AM, Guy Godfroy wrote: Hello, this is my first time posting on this mailing list. I wanted to suggest a addition to the qemu hook. I will explain it through my own use case. I use a shared LVM storage as a volume pool between my nodes. I use lvmlockd in sanlock mode to protec

Re: How to detect completion of a paused VM migration on the destination?

2020-01-22 Thread Michal Privoznik
On 1/21/20 3:28 PM, Milan Zamazal wrote: Hi, when a normally running VM is migrated, libvirt sends VIR_DOMAIN_EVENT_RESUMED_MIGRATED event on the destination once the migration completes. I can see that when a paused VM is migrated, libvirt sends VIR_DOMAIN_EVENT_SUSPENDED_PAUSED instead. Sinc