Re: any advantage to using pool type glusterfs if no GFAPI

2023-10-09 Thread Peter Krempa
On Fri, Oct 06, 2023 at 13:23:18 -0700, W Kern wrote: > I have used fuse mounted gluster with 'dir' for years. Works great, aside > from  having to use the --unsafe flag on migrations. > > I am building up a new system  and wondering if using the glusterfs type > would be a better/safer choice. >

Re: Help ! libvirt

2023-09-21 Thread Peter Krempa
On Thu, Sep 21, 2023 at 10:50:07 +0100, Bhasker C V wrote: > Attaching win11.xml > Please note that this used to work fine. It is failing now on libvirt- > 9.7.0-1 > > On Thu, Sep 21, 2023 at 9:13 AM Peter Krempa wrote: > > > On Thu, Sep 21, 2023 at 09:05:43

Re: Help ! libvirt

2023-09-21 Thread Peter Krempa
On Thu, Sep 21, 2023 at 09:05:43 +0100, Bhasker C V wrote: > Adding libvirt mailing list > apologies for cross-posting > libvirt version: 9.7.0-1 > > On Thu, Sep 21, 2023 at 8:39 AM john doe wrote: > > > On 9/21/23 09:32, Bhasker C V wrote: > > > I am getting an error with libivrt when I create

Re: Activate storage during domain migration

2023-08-02 Thread Peter Krempa
On Tue, Aug 01, 2023 at 12:28:56 +0200, e...@mailbox.org wrote: > Hi, > > I have a block storage which I only want to be mounted on a single node. I > know that there are many possibilities for shared storage usage but I want > to know if the following is possible (using the API). > - Have a

Re: ignored ?

2023-05-16 Thread Peter Krempa
On Mon, May 15, 2023 at 20:14:58 +0200, lejeczek wrote: > > > On 15/05/2023 19:14, Marc wrote: > > > Is there something else which is a prerequisite to 'qemu:commandline' > > > but if yes and I'm missing those, why would not then 'virsh' and/or > > > 'virtqemud' say something? > > No what you

Re: how to get domain name into the logs - ?

2023-05-09 Thread Peter Krempa
On Mon, May 08, 2023 at 10:02:17 +0200, lejeczek wrote: > Hi guys. > > I have libvirt/qemu setup with pretty vanilla settings and my logs, a > snippet, look like this: > > ... > migration successfully aborted > internal error: qemu unexpectedly closed the monitor: > 2023-05-08T07:56:37.785886Z

Re: Using pki/ssl/tls connection.

2023-05-04 Thread Peter Krempa
On Wed, May 03, 2023 at 17:38:16 +0200, Kamil Jońca wrote: > > I am thinking of using tls connection between my client and server > instead of current ssh. > I found > https://libvirt.org/kbase/tlscerts.html and I want to know if it is > possible to customise some setting (e.g. use my own cert

Re: UEFI and External Snapshots

2023-04-27 Thread Peter Krempa
On Wed, Apr 26, 2023 at 21:04:36 +0100, Simon Fairweather wrote: > Is there a plan to support UEFI and Ext Snaps? Or is there a location for > documentation as the info I can find is quite old. Your question is a bit vague. You already can take an external snapshot of a VM using UEFI. There is

Re: which daemon/service for live migration - ?

2023-04-17 Thread Peter Krempa
On Mon, Apr 17, 2023 at 16:38:17 +0200, lejeczek wrote: > > > On 17/04/2023 15:34, Peter Krempa wrote: > > On Mon, Apr 17, 2023 at 14:39:18 +0200, lejeczek wrote: > > > > > > On 17/04/2023 14:31, Peter Krempa wrote: > > > > On Mon, A

Re: which daemon/service for live migration - ?

2023-04-17 Thread Peter Krempa
On Mon, Apr 17, 2023 at 14:39:18 +0200, lejeczek wrote: > > > On 17/04/2023 14:31, Peter Krempa wrote: > > On Mon, Apr 17, 2023 at 14:24:32 +0200, lejeczek wrote: > > > On 17/04/2023 12:27, Peter Krempa wrote: > > > > On Sun, Apr 16, 2023 at 08:54:57 +0200

Re: which daemon/service for live migration - ?

2023-04-17 Thread Peter Krempa
On Mon, Apr 17, 2023 at 14:24:32 +0200, lejeczek wrote: > > > On 17/04/2023 12:27, Peter Krempa wrote: > > On Sun, Apr 16, 2023 at 08:54:57 +0200, lejeczek wrote: > > > Hi guys. > > > > > > With this relatively new modular approach in libvirt - which s

Re: which daemon/service for live migration - ?

2023-04-17 Thread Peter Krempa
On Mon, Apr 17, 2023 at 12:49:09 +0200, Peter Krempa wrote: > On Mon, Apr 17, 2023 at 10:15:00 +, Marc wrote: [...] > - hypervisor drivers: >- virtqemud - for managing qemu machines >- virtlxcd - for lxc >- ... for all other hypervisor drivers... >

Re: which daemon/service for live migration - ?

2023-04-17 Thread Peter Krempa
On Mon, Apr 17, 2023 at 10:15:00 +, Marc wrote: > > > > > With this relatively new modular approach in libvirt - which service is > > needed in order to migrate guests via tcp? > > > > I am not sure what you mean with 'new modular'. I am still on el7 going to > el9 this year. I am doing

Re: ecrypting image file breaks efi/boot of the guest/Ubuntu - ?

2023-04-17 Thread Peter Krempa
On Fri, Apr 14, 2023 at 14:26:53 +0200, lejeczek wrote: > > > On 14/04/2023 13:57, Peter Krempa wrote: > > On Fri, Apr 14, 2023 at 13:39:17 +0200, lejeczek wrote: > > > > > > On 11/04/2023 09:13, Peter Krempa wrote: > > > > On Sat, Apr 08, 2023 at

Re: which daemon/service for live migration - ?

2023-04-17 Thread Peter Krempa
On Sun, Apr 16, 2023 at 08:54:57 +0200, lejeczek wrote: > Hi guys. > > With this relatively new modular approach in libvirt - which service is > needed in order to migrate guests via tcp? There is nothing special needed for migration when compared to running a VM. With new daemons you need

Re: ecrypting image file breaks efi/boot of the guest/Ubuntu - ?

2023-04-14 Thread Peter Krempa
On Fri, Apr 14, 2023 at 13:39:17 +0200, lejeczek wrote: > > > On 11/04/2023 09:13, Peter Krempa wrote: > > On Sat, Apr 08, 2023 at 11:25:18 +0200, lejeczek wrote: > > > Hi guys. > > > > > > I've have a guest and that guest differs from all other

Re: storage backup with encryption on-the-fly ?

2023-04-11 Thread Peter Krempa
On Tue, Apr 11, 2023 at 09:21:30 +0200, Peter Krempa wrote: > On Fri, Apr 07, 2023 at 19:42:11 +0200, lejeczek wrote: > > > > > > On 06/04/2023 16:12, Peter Krempa wrote: > > > On Thu, Apr 06, 2023 at 15:22:10 +0200, lejeczek wrote: > > > > Hi guys. >

Re: storage backup with encryption on-the-fly ?

2023-04-11 Thread Peter Krempa
On Fri, Apr 07, 2023 at 19:42:11 +0200, lejeczek wrote: > > > On 06/04/2023 16:12, Peter Krempa wrote: > > On Thu, Apr 06, 2023 at 15:22:10 +0200, lejeczek wrote: > > > Hi guys. > > > > > > Is there a solution, perhaps a function of libvirt, t

Re: ecrypting image file breaks efi/boot of the guest/Ubuntu - ?

2023-04-11 Thread Peter Krempa
On Sat, Apr 08, 2023 at 11:25:18 +0200, lejeczek wrote: > Hi guys. > > I've have a guest and that guest differs from all other guest by: > >   >     hvm >     type='pflash'>/usr/share/edk2/ovmf/OVMF_CODE.secboot.fd > /var/lib/libvirt/qemu/nvram/ubusrv1_VARS.fd >     >     >   > > whereas

Re: Virtiofsd

2023-04-06 Thread Peter Krempa
On Tue, Apr 04, 2023 at 17:31:37 +0100, Simon Fairweather wrote: > Thanks these are missing in rust. > > You'll have to raise this with the virtiofsd project: https://gitlab.com/virtio-fs/virtiofsd/-/issues > > On Tue, Apr 4, 2023 at 5:25 PM Peter Krempa wrote: > > &

Re: storage backup with encryption on-the-fly ?

2023-04-06 Thread Peter Krempa
On Thu, Apr 06, 2023 at 15:22:10 +0200, lejeczek wrote: > Hi guys. > > Is there a solution, perhaps a function of libvirt, to backup guest's > storage and encrypt the resulting image file? > On-the-fly ideally. > If not ready/built-in solution then perhaps a best technique you > recommend/use? >

Re: backup-begin

2023-04-06 Thread Peter Krempa
On Wed, Apr 05, 2023 at 17:37:31 +0200, André Malm wrote: > Den 2023-04-05 kl. 09:47, skrev Peter Krempa: > > The backup operation is quite complex so it is possible. > > Please have a look into /var/log/libvirt/qemu/$VMNAME.log to see whether > > qemu logged something like

Re: backup-begin

2023-04-05 Thread Peter Krempa
org/kbase/debuglogs.html > > Den 2023-04-04 kl. 16:58, skrev Peter Krempa: > > On Tue, Apr 04, 2023 at 16:28:18 +0200, André Malm wrote: > > > Hello, > > > > > > For some vms the virsh backup-begin sometimes shuts off the vm and returns > > >

Re: Virtiofsd

2023-04-04 Thread Peter Krempa
On Tue, Apr 04, 2023 at 17:12:15 +0100, Simon Fairweather wrote: > Hi > > In QEMU 8 virtiofsd has been removed in favor of the rust version. Which > includes options that are not longer supported, > > > Do you have a view on what should be used going forwards to support > virtiofsd in libvirt

Re: backup-begin

2023-04-04 Thread Peter Krempa
On Tue, Apr 04, 2023 at 16:28:18 +0200, André Malm wrote: > Hello, > > For some vms the virsh backup-begin sometimes shuts off the vm and returns > "error: operation failed: domain is not running" although it was clearly in > state running (or paused). > > Is the idea that you should

Re: Option Flags

2023-03-23 Thread Peter Krempa
On Thu, Mar 23, 2023 at 09:35:44 +, Simon Fairweather wrote: > Hi > > Are the flags documented? can this function be used to specify same as virsh > undefine --nvram "name of VM" > > libvirt_domain_undefine_flags($res, $flags) > > [Since version (null)] > > Function is used to

Re: Upgrade machine type during migration

2023-03-13 Thread Peter Krempa
On Sat, Mar 11, 2023 at 18:35:20 +0100, Michael Schwartzkopff wrote: > Hi, > > > I have an old system. The guest there is defined with: > >   >     hvm >   > > > When I try to migrate this guest to a new system I get the error: > > error: internal error: unable to execute QEMU command

Re: Attach a GPS in preboot mode

2023-01-25 Thread Peter Krempa
On Tue, Jan 24, 2023 at 00:10:46 +0100, lnj@gmail.com wrote: > Hello everyone and best wishes for 2023 :) > > I have an old *Garmin Drive Smart 50 GPS* and I want to be able to attach it > when it is in preboot mode to a VM hosted by a *Debian 11 host*. > > From what I understand, the

Re: [Question] Which qcow2 options could be inherited to snapshot/blockcopy?

2022-12-11 Thread Peter Krempa
On Sun, Dec 11, 2022 at 20:36:26 +0100, Gionatan Danti wrote: > Il 2022-11-26 10:36 Gionatan Danti ha scritto: > > Il 2022-11-21 10:30 Peter Krempa ha scritto: > > > In regards to the 'compat' option in terms of snapshots/blockcopy, we > > > don't set it and thus use t

Re: detach-interface success but domiflist still saw interface

2022-11-24 Thread Peter Krempa
On Thu, Nov 24, 2022 at 16:47:48 +0800, Jiatong Shen wrote: > Hello Commnunity, > > I saw an weird situation on a phytium machine (arm64 v8), after the > following commands, I can still see the interface which should be > successfully detached. > > virsh # detach-interface

Re: [Question] Which qcow2 options could be inherited to snapshot/blockcopy?

2022-11-21 Thread Peter Krempa
On Mon, Nov 21, 2022 at 11:22:40 +0800, Meina Li wrote: > Hi, > > I'm trying to find out which qcow2 options could be inherited to > snapshot/blockcopy and then test them. > > From https://github.com/qemu/qemu/blob/master/qapi/block-core.json#L4720 we > can know all the qcow2 options. As far as

Re: qemu-block-rbd be removed ?

2022-11-21 Thread Peter Krempa
On Sat, Nov 12, 2022 at 08:41:44 +0100, vrms wrote: Firstly please don't start a conversation by replying to an existing one as it gets threaded improperly. > I am running qemu/kvm on a Manjaro Laptop. There is a thing with a package > named ceph-libs being removed from manjaro repos apparently.

Re: blockcopy preserve original cache mode value

2022-11-16 Thread Peter Krempa
On Wed, Nov 16, 2022 at 09:17:43 +0800, Jiatong Shen wrote: > Hello Community, > >We are observing that after a blockcopy, the disk backend will inherit > from original disk's cache mode configuration even though a new cache mode > is given. Specifically, the function >

Re: DOS

2022-11-02 Thread Peter Krempa
On Wed, Nov 02, 2022 at 08:16:01 +0100, Tomas By wrote: > Hi all, > > I am trying to set up an `isolated virtual network' with two or more > MS-DOS guests, all on one single Linux box. > > The aim is for them to share a disk (or just one directory on one > disk). > > As I could not get it to

Re: DOS

2022-11-02 Thread Peter Krempa
On Wed, Nov 02, 2022 at 08:33:52 +0100, Tomas By wrote: > On Wed, 02 Nov 2022 08:16:01 +0100, Tomas By wrote: > > As I could not get it to work with IPX, am now trying TCP/IP. However, > > I suspect the MS tools are still attempting to use IPX as well. > > > In fact, it seems that DHCP does not

Re: Predictable and consistent net interface naming in guests

2022-10-31 Thread Peter Krempa
On Mon, Oct 31, 2022 at 16:32:27 +0200, Edward Haas wrote: [...] > Are there any plans to add the acpi_index support? https://www.libvirt.org/formatdomain.html#network-interfaces "Since 7.3.0, one can set the ACPI index against network interfaces. With some operating systems (eg Linux with

Re: How to merge incremental backups generated with virsh backup-begin?

2022-10-19 Thread Peter Krempa
On Tue, Oct 18, 2022 at 14:54:03 -0300, Jorge Luiz Correa wrote: > I'm trying to create incremental backups that I could restore when > necessary. All backups are being generated fine but I couldn't find a way > to recreate an image using all or some of the backup files. > > For example, my

Re: Help in porting smack related patches to meson build system

2022-09-20 Thread Peter Krempa
On Mon, Sep 19, 2022 at 16:31:25 +, Vishal Gupta (vishagu2) wrote: > Hi Peter , Hi, I firstly want to ask you to avoid top-posting on technical mailing lists. > > > > Thanks for ur reply . > > > > Kirkstone is the latest release from Yocto foundation . details >

Re: Libvirt slow after a couple of months uptime

2022-09-19 Thread Peter Krempa
On Fri, Sep 16, 2022 at 19:41:28 +0200, André Malm wrote: > Hello, > > I have some issues with libvirtd getting slow over time. > > After a fresh reboot (or systemctl restart libvirtd) virsh list / > virt-install is fast, as expected, but after a couple of months uptime they > both take a

Re: Help in porting smack related patches to meson build system

2022-09-19 Thread Peter Krempa
On Fri, Sep 16, 2022 at 11:10:14 +, Akash Bhaskaran (akabhask) wrote: > Hi, > > We are trying to port some patches pertaining to files like > Makefile.am ,configure.ac and .m4’s to libvirt kirkstone release. We > see that latest kirskstone now uses meson build architecture. What is a

Re: [libvirt-users] [virtual interface] detach interface during boot succeed with no changes

2022-09-08 Thread Peter Krempa
On Thu, Sep 08, 2022 at 15:16:56 +0800, Yalan Zhang wrote: > Hi Laine, > > As for the hot-unplug behavior, I have one more question about it, could > you please help to confirm? > > unplugging a PCI device properly requires cooperation from the guest OS. > > If the guest OS isn't running yet,

Re: Problem with a disk device of type 'volume'

2022-08-18 Thread Peter Krempa
On Tue, Aug 16, 2022 at 13:51:20 +0200, Frédéric Lespez wrote: > Hi, > > I have progressed in my research. > > I created a minimal test case in order to reproduce the problem (see below). > > I made tests on 3 (physical) machines under Debian 11.4: the problem is > present on 2 machines but

Re: Memory locking limit and zero-copy migrations

2022-08-17 Thread Peter Krempa
On Wed, Aug 17, 2022 at 10:56:54 +0200, Milan Zamazal wrote: > Hi, > > do I read libvirt sources right that when is not used in the > libvirt domain then libvirt takes proper care about setting memory > locking limits when zero-copy is requested for a migration? Well yes, for a definition of

Re: Storage Pool - NFS v4.1

2022-07-01 Thread Peter Krempa
On Wed, Jun 29, 2022 at 17:58:28 +0200, Charles Koprowski wrote: > Le jeu. 23 juin 2022 à 17:19, Peter Krempa a écrit : > > > > > I've posted a patch that fixes this: > > > > https://listman.redhat.com/archives/libvir-list/2022-June/232541.html > > > >

Re: Storage Pool - NFS v4.1

2022-06-23 Thread Peter Krempa
On Thu, Jun 23, 2022 at 16:42:25 +0200, Charles Koprowski wrote: > Hello, > > In order to use pNFS which is only available in NFS version 4.1, I'm trying > to create a netfs storage pool specifying the protocol version to be used : > > > vms > > ... > > > > > ... >

Re: managed save returns "migration with virtiofs device is not supported"

2022-06-16 Thread Peter Krempa
On Thu, Jun 16, 2022 at 13:09:11 +0200, Francesc Guasch wrote: > El 15/6/22 a les 23:25, Ján Tomko ha escrit: > > On a Wednesday in 2022, Francesc Guasch wrote: > > > Hello. I have a virtual machine with a virtiofs entry configured. > > > > > > When I try to do a managed save it fails with this

Re: Domain XML and VLAN tagging

2022-06-16 Thread Peter Krempa
On Thu, Jun 16, 2022 at 09:20:21 +0200, Gionatan Danti wrote: > Hi all, > from here [1]: > > "Network connections that support guest-transparent VLAN tagging include 1) > type='bridge' interfaces connected to an Open vSwitch bridge Since 0.10.0 , > 2) SRIOV Virtual Functions (VF) used via

Re: vepa-mode directly attached interface

2022-06-13 Thread Peter Krempa
On Sun, Jun 12, 2022 at 00:16:20 +0200, Gionatan Danti wrote: > Il 2022-06-11 19:32 Laine Stump ha scritto: [...] > > I guess you'll need to do a "virsh dumpxml --inactive" for each guest > > and parse it out of there. > > It matches my results. However, virsh dumpxml is an expensive operation

Re: how to use "virsh shutdown domain --mode [initctl|signal|paravirt) ?

2022-06-01 Thread Peter Krempa
On Wed, Jun 01, 2022 at 12:05:58 +0200, Lentes, Bernd wrote: > Hi, > > ocasionally my Virtual Domains running on a pacmekaer cluster don't shutdown, > although beeing told to do it. > "virsh help shutdown" says: > ... > --mode shutdown mode: acpi|agent|initctl|signal|paravirt > > How is it

Re: how to change emulator path during live migration

2022-04-27 Thread Peter Krempa
[re-adding libvirt-users list] Please always reply to the list so that the follow-up conversation is archived and delivered to all subscribers. On Wed, Apr 27, 2022 at 15:36:54 +0800, Jiatong Shen wrote: > Thank you for the feedback! > > Is it ok if the source node does not contain a emulator

Re: how to change emulator path during live migration

2022-04-27 Thread Peter Krempa
On Wed, Apr 27, 2022 at 14:11:23 +0800, Jiatong Shen wrote: > Hello libvirt experts, > > I am facing the following exceptions during live migrating a virtual > machine from one compute node to another. > > file or directory: libvirt.libvirtError: Cannot check QEMU binary > /usr/bin/kvm-spice:

Re: set fixed time at vm guest startup?

2022-04-26 Thread Peter Krempa
On Fri, Apr 22, 2022 at 12:54:35 -0600, Fred Clift wrote: > I'm looking at the libvirt parameters. > > Is there a way to set the guests clock to a specific time/date at virt > startup? I'm trying to virtualize a system with pci passthrough for a > hardware device that wants to always live in

Re: race condition? virsh migrate --copy-storage-all

2022-04-19 Thread Peter Krempa
On Tue, Apr 19, 2022 at 15:51:32 +0200, Valentijn Sessink wrote: > Hi Peter, > > Thanks. > > On 19-04-2022 13:22, Peter Krempa wrote: > > It would be helpful if you provide the VM XML file to see how your disks > > are configured and the debug log file when the bug

Re: race condition? virsh migrate --copy-storage-all

2022-04-19 Thread Peter Krempa
On Fri, Apr 15, 2022 at 16:58:08 +0200, Valentijn Sessink wrote: > Hi list, > > I'm trying to migrate a few qemu virtual machines between two 1G ethernet > connected hosts, with local storage only. I got endless "error: operation > failed: migration of disk vda failed: Input/output error" errors

Re: Virtio-scsi and block mirroring

2022-04-19 Thread Peter Krempa
On Thu, Apr 14, 2022 at 16:36:38 +, Bjoern Teipel wrote: > Hello everyone, Hi, > > I’m looking at an issue where I do see guests freezing (Dl) process state > during a block disk mirror from one storage to another storage (NFS) where > the network stack of the guest can freeze for up to

Re: Debugging hanging libvirt

2022-04-01 Thread Peter Krempa
On Wed, Mar 30, 2022 at 01:11:50 +, Tobias Hofmann (tohofman) wrote: > Hello all, > > I have a system with one VM running. After some time the VM needs to be > temporarily stopped and started again. This start operation fails and from > that point on any virsh command is hanging and does

Re: Resize backing store

2022-03-08 Thread Peter Krempa
On Tue, Mar 08, 2022 at 06:17:32 +0200, Jeff Brown wrote: > Apologies in advance if this be a stupid question, as everything I've read > seems to suggest it's impossible. > > Slowly running out of space on a 200GB root partition. > > Is it possible to create a snapshot - leaving the QCOW2 image

Re: libvirtd daemon missing in LFS

2022-02-10 Thread Peter Krempa
On Thu, Feb 10, 2022 at 11:39:17 +0530, Sai Kiran Kumar Reddy wrote: > Hi, > > There was some issue with pkg-config-path. I have fixed it. I see that it > looks for wireshark and other dependencies. I get an error saying "remote > driver is required for libvirtd daemon". I am not sure what this

Re: libvirtd daemon missing in LFS

2022-02-09 Thread Peter Krempa
On Wed, Feb 09, 2022 at 16:34:43 +0530, Sai Kiran Kumar Reddy wrote: > Hi, > > I am Sai Kiran. I am trying to build libvirt from source on my Linux From > Scratch(LFS) system. I have successfully installed libvirt and its > dependencies. When I start virt-manager, there is a prompt in GUI saying

Re: NVMe drive PCI passthrough and suprise hotplug

2022-02-04 Thread Peter Krempa
On Thu, Feb 03, 2022 at 23:25:05 +, Kalra, Ashish wrote: > [AMD Official Use Only] Well, I hope it's okay to use it for libvirt officially too ;) > > Hi, > I am using Fedora 33, with the following KVM, qemu and libvirt versions: Note that Fedora 33 is already end-of-life, it would be great

Re: udmabuf error with libvirt + QEMU

2022-02-01 Thread Peter Krempa
On Tue, Feb 01, 2022 at 14:27:55 +, M, Shivakumar wrote: > Hi, > > We are seeing an issue with udambuf, where it says "open /dev/udmabuf: No > such file or directory " even if the device exits. This issue particularly we > are seeing with libvirt. When we run the QEMU args on the command

Re: Backend memory object creation - query

2022-01-27 Thread Peter Krempa
On Thu, Jan 27, 2022 at 04:05:19 +, M, Shivakumar wrote: > Hello, Hi, note that there's no need to CC both libvir-list and libvirt-users maling lists. > > > For our use-case with Libvirt we want to create the Memory backend object , > > Expected QEMU args would be > -object

Re: What does the positional parameters of "virsh backup-begin" actually do?

2022-01-14 Thread Peter Krempa
On Fri, Jan 14, 2022 at 23:39:10 +0600, Ahmad Ismail wrote: > Normally when I backup a kvm machine I shutdown the machine then run: [...] > The problem with this help is, it is not clear enough. > > I understand that I should use virsh backup-begin vm1 to backup a live kvm > machine. However,

Re: Allow unsafe migration - ?

2022-01-03 Thread Peter Krempa
On Mon, Jan 03, 2022 at 10:14:48 +0100, Peter Krempa wrote: > On Wed, Dec 29, 2021 at 17:56:57 +, lejeczek wrote: > > Hi guys. > > > > Is it possible to allow 'unsafe' migration globally? > > No there's no global switch for this and there won't be one as there

Re: Allow unsafe migration - ?

2022-01-03 Thread Peter Krempa
On Wed, Dec 29, 2021 at 17:56:57 +, lejeczek wrote: > Hi guys. > > Is it possible to allow 'unsafe' migration globally? No there's no global switch for this and there won't be one as there are multiple reasons why migration can be unsafe.

Re: Qemu monitor info tlb gives unable to encode message payload

2021-12-08 Thread Peter Krempa
On Wed, Dec 08, 2021 at 10:30:27 +, Philipp Klocke wrote: > Hi, > > the command > virsh qemu-monitor-command ubuntu_vm --hmp --cmd "info tlb" > fails with "error: Unable to encode message payload". > > I found a bugtracker entry for a similiar error [1], but I don't if this is > the

Re: Libvirt Snapshot Question

2021-12-02 Thread Peter Krempa
On Thu, Dec 02, 2021 at 16:27:00 +0100, Elias Mobery wrote: > OK, so I tried both ways. (The VM image is in the read-only squashfs.) > > 1.) Editing VM domain XML: > > > > > > Error: Internal Error - Could not open > /var/lib/libvirt/images/vm.snapshot1 : Permission Denied > >

Re: Libvirt Snapshot Question

2021-12-02 Thread Peter Krempa
On Wed, Dec 01, 2021 at 18:35:44 +0100, Elias Mobery wrote: > Hey man, I tried both suggestions, thanks again. > > Option 1.) Create/attach a second qcow2 disk & unplug when wiping. > This did not work unfortunately. After wiping the overlay filesystem on the > host (where the snapshots are

Re: Libvirt Snapshot Question

2021-11-30 Thread Peter Krempa
On Tue, Nov 30, 2021 at 14:51:54 +0100, Elias Mobery wrote: > Hello Peter, thank you so much for that detailed info! > > Sorry, you were right, when trying to delete my external snapshot via > snapshot-delete, the error says "deletion of external snapshots unsupported" > > I can't merge the

Re: Libvirt Snapshot Question

2021-11-30 Thread Peter Krempa
On Mon, Nov 29, 2021 at 13:05:40 +0100, Elias Mobery wrote: > Hi everybody! > > I'm using a snapshot purely for writes and was wondering if it's possible > to clear/empty the snapshot after it reaches a certain size? > > Created with: > virsh snapshot-create-as --disk-only So this creates a

Re: virsh blockjob $domain --abort

2021-11-29 Thread Peter Krempa
On Tue, Nov 30, 2021 at 08:15:30 +0200, Jeff Brown wrote: > Please advise: > > After a scheduled crontab snapshot backup of a VM it failed to do a > blockcommit, and is currently writing to both the snapshot and the original > QCOW2 images. > > (I don't think it's a bug, and suspect that I

Re: Compiling libvirt on ubuntu

2021-09-13 Thread Peter Krempa
On Mon, Sep 13, 2021 at 01:36:57 +, Or Ozeri wrote: > Hi, > > > I'm trying to compile libvirt on ubuntu machine. > I installed meson 0.59.1 using pip. > Then installed a few more packages that were required by meson build: > sudo apt-get install libxml2-utils xsltproc libpciaccess-dev

Re: startupPolicy issue when changing CD

2021-09-10 Thread Peter Krempa
On Fri, Sep 10, 2021 at 15:34:57 +0200, Vojtech Juranek wrote: > On Friday, 10 September 2021 15:12:07 CEST Peter Krempa wrote: > > On Fri, Sep 10, 2021 at 14:53:23 +0200, Vojtech Juranek wrote: > > > Hi, > > > when adding support for CD disk on block based storage

Re: startupPolicy issue when changing CD

2021-09-10 Thread Peter Krempa
On Fri, Sep 10, 2021 at 14:53:23 +0200, Vojtech Juranek wrote: > Hi, > when adding support for CD disk on block based storage into oVirt, > I spotted following issue. When starting VM without CD, we add > startupPolicy='optional' attribute into element. > Whole XML looks like this: > > >

Re: one qustion about the snapshot of the libvirt, thanks.

2021-09-06 Thread Peter Krempa
On Tue, Aug 31, 2021 at 16:09:50 +0800, Guozhonghua wrote: > > Hello, > > When we test snapshot features and review the code of libvirt, there is one > question, not an issue. > > /* do the memory snapshot if necessary */ > if (memory) { > /* check if migration is possible */

Re: Disk extend during migration

2021-08-02 Thread Peter Krempa
On Mon, Aug 02, 2021 at 15:34:52 +0200, Vojtech Juranek wrote: > On Monday, 2 August 2021 14:30:05 CEST Peter Krempa wrote: > > On Mon, Aug 02, 2021 at 14:20:44 +0200, Vojtech Juranek wrote: > > > Hi, > > > as a follow-up of BZ #1883399 [1], we are reviewing vdsm VM migr

Re: Disk extend during migration

2021-08-02 Thread Peter Krempa
On Mon, Aug 02, 2021 at 14:20:44 +0200, Vojtech Juranek wrote: > Hi, > as a follow-up of BZ #1883399 [1], we are reviewing vdsm VM migration flows > and > solve few follow-up bugs, e.g. BZ #1981079 [2]. I have couple of questions > related to libvirt: > > * if we run disk extend during

Re: investigate locks on a domain

2021-07-20 Thread Peter Krempa
On Tue, Jul 20, 2021 at 15:52:58 +0800, Jiatong Shen wrote: > Hello community, > > I am seeing following log in production, > > 2021-07-20 07:43:49.417+: 3918294: error : > qemuDomainObjBeginJobInternal:4945 : Timed out during operation: cannot > acquire state change lock (held by

Re: Libvirt hit a issue when do VM migration

2021-06-17 Thread Peter Krempa
Firstly please don't CC random people who are subscribed to the list. Additionally this is a user-question so it's not entirely appropriate for libvir-l...@redhat.com only for libvirt-users@redhat.com. On Thu, Jun 17, 2021 at 16:52:42 +0800, 梁朝军 wrote: > Hi All, > > Who can give me a help? I

Re: why cannot connect to libvirtd using virsh ???

2021-06-10 Thread Peter Krempa
On Thu, Jun 10, 2021 at 17:37:43 +0800, tommy wrote: > [root@test2 ~]# virsh -c quem+ssh://root@192.168.10.175/system > > root@192.168.10.175's password: > > error: failed to connect to the hypervisor > > error: no connection driver available for quem:///system

Re: How to hot plugin a new vhost-user-blk-pci device to running VM?

2021-06-04 Thread Peter Krempa
meter type for 'vhost', expected: boolean Your qemu is too-new for libvirt. the 'netdev_add' command was converted to a strict description by QMP schema and libvirt wasn't ready for that. commit b6738ffc9f8be5a2a61236cd9bef7fd317982f01 Author: Peter Krempa Date: Thu May 14 22:50:59 2020 +0200 qe

Re: How to hot plugin a new vhost-user-blk-pci device to running VM?

2021-05-14 Thread Peter Krempa
On Fri, May 14, 2021 at 14:33:37 +0800, Liang Chaojun wrote: > > > Thanks,I have tried qemu monitor as below. I used chardev_add to add a > chardev and used device_add it to running vm. But i often hit a issue and > cause the vm crash. qemu-system-x86_64: ../hw/virtio/vhost.c:1566: >

Re: How to hot plugin a new vhost-user-blk-pci device to running VM?

2021-05-13 Thread Peter Krempa
On Thu, May 13, 2021 at 23:11:36 +0800, Liang Chaojun wrote: > > > Thanks Peter for your quickly response. Is there any workaround to do that?As > you know we must take care the risk of using latest version in product > environment. Manual approach is to use 'virsh qemu-monitor-command' or

Re: How to hot plugin a new vhost-user-blk-pci device to running VM?

2021-05-13 Thread Peter Krempa
On Thu, May 13, 2021 at 15:25:23 +0800, 梁朝军 wrote: >Hi Guy, > >Does anyone clear how to hot plugin a new vhost-user-blk-pci device to a >running VM? > >Before staring vm , I pass the disk through QEMU command line like below. > > > > >

Re: external snapshot create error

2021-04-20 Thread Peter Krempa
On Mon, Apr 19, 2021 at 20:19:31 -0500, Eyüp Hakan Duran wrote: > Dear all, > > I have been creating external snapshots of my KVM/QEMU VMs for more than a > year on a host machine that runs Manjaro Linux. The current version of > libvirt I am using is 1:7.1.0-3. I just noticed that the script I

Re: could not start libvirt service

2021-04-13 Thread Peter Krempa
On Tue, Apr 13, 2021 at 15:56:57 +0530, shafnamol N wrote: > Hi, > > I am using *CentOS 8*. I have built *libvirt* with the following method: > > $ meson build -Dsystem=true > $ ninja -C build > $ ninja -C build install > > But the problem is when i started it > > # systemctl start libvirtd >

Re: how to use external snapshots with memory state

2021-04-12 Thread Peter Krempa
On Fri, Apr 09, 2021 at 19:00:41 +0200, Riccardo Ravaioli wrote: > Hi all, > > Can I get some feedback on these two questions I posted a while back, > concerning external snapshots: > > On Tue, 26 Jan 2021 at 00:15, Riccardo Ravaioli > wrote: > [...] > > > 1) When creating an external online

Re: live migrate storage to different volume on the same host

2021-04-12 Thread Peter Krempa
On Sat, Apr 10, 2021 at 01:05:31 +0800, Jing-Wei Su wrote: > Hello experts, > > I would like to move the qcow2 disk images of a running VM to a > different storage because of the maintenance of the underlying storage > on the same host. You can use the 'virDomainBlockCopy' API to achieve this.

Re: libvirt 7.2.0 domainbackup

2021-04-12 Thread Peter Krempa
tal backups via 'virsh backup-begin' exists in libvirt but qemu doesn't yet support the 'blockdev-reopen' command which is used by the incremental backup code. > > cheers, t. > > Am 8. April 2021 15:46:56 MESZ schrieb Peter Krempa : > >On Wed, Apr 07, 2021 at 19:46:54 +0200, Tho

Re: libvirt 7.2.0 domainbackup

2021-04-08 Thread Peter Krempa
On Wed, Apr 07, 2021 at 19:03:21 +0200, Thomas Stein wrote: > Hello one and all. > > Just wanted to check out the new feature domainbackup but having trouble to > configure it. I thought I just have to put > > > > > > > > > > > at the top level of my domain xml

Re: Xen: libvirt.libvirtError: An error occurred, but the cause is unknown

2021-04-07 Thread Peter Krempa
On Wed, Apr 07, 2021 at 08:14:10 +, Mathieu Tarral wrote: > Hi, > > I'm facing a strange issue with libvirt and the Xen driver. > > Whenever I try to define or start a domain, I always get this error: > "libvirt.libvirtError: An error occurred, but the cause is unknown" (in > Python

Re: GlusterFS libgfapi with TLS

2021-04-01 Thread Peter Krempa
On Thu, Apr 01, 2021 at 15:13:02 +0100, lejeczek wrote: > Hi guys. > > I have KVM guests stored on glusterFS volume and I recently added TLS > encryption to Gluster. > What changes, tweaks are required at libvirtd/qemu's end? Looking at the definition of the gluster backend object in qemu: ##

Re: how to check a virtual disk

2021-03-29 Thread Peter Krempa
On Mon, Mar 29, 2021 at 13:59:11 +0200, Lentes, Bernd wrote: > > - On Mar 29, 2021, at 12:58 PM, Bernd Lentes > bernd.len...@helmholtz-muenchen.de wrote: [...] > > > > > I forgot: > host is SLES 12 SP5, virtual domain too. > The image file is in raw format. Please always attach the VM

Re: Snapshot operation aborted and volume usage

2021-03-11 Thread Peter Krempa
On Thu, Mar 11, 2021 at 10:51:13 +0200, Liran Rotenberg wrote: > We recently had this bug[1]. The thought that came from it is the handling > of error code after running virDomainSnapshotCreateXML, we encountered > VIR_ERR_OPERATION_ABORTED(78). VIR_ERR_OPERATION_ABORTED is an error code which is

Re: virsh snapshot-create-as with quiesce option times out

2021-03-05 Thread Peter Krempa
On Thu, Mar 04, 2021 at 18:12:06 -0300, David Wells wrote: > Hi all! > > I'm still working on the live backup of a couple vm's and what happens most > of the times es that when I execute virsh with the snapshot-create-as with > the --quiesce option the process finishes with an error that reads >

Re: Live backups create-snapshot-as and memspec

2021-03-01 Thread Peter Krempa
On Fri, Feb 26, 2021 at 15:29:45 -0300, David Wells wrote: > > El 25/2/2021 a las 11:37, Peter Krempa escribió: > > On Wed, Feb 24, 2021 at 14:49:19 -0300, David Wells wrote: > > > Hi all! > > > > > > I've been using libvirt for some time and until now

Re: Live backups create-snapshot-as and memspec

2021-02-25 Thread Peter Krempa
On Wed, Feb 24, 2021 at 14:49:19 -0300, David Wells wrote: > Hi all! > > I've been using libvirt for some time and until now I have treated backups > of virtual computers as if they where physical computers installing the > backup client on the guest. I am now however facing the need to backup a

Re: Fwd: virsh backup-begin problem

2021-01-21 Thread Peter Krempa
On Thu, Jan 21, 2021 at 18:12:54 +0300, Andrey Fokin wrote: > Do you mean "experimental" feature to enable incremental backup? No, didn't > because I try to implement full buckup (not an incremental one). Or am I > missing something and it is the same? It's the same. Implementing lockouts for

Re: Fwd: virsh backup-begin problem

2021-01-21 Thread Peter Krempa
On Thu, Jan 21, 2021 at 17:34:25 +0300, Andrey Fokin wrote: > Peters, thanks! It was a lot of XML errors. You are right about. But it > doesn't work... I've an error about backup type- > Operation not supported: incremental backup is not supported yet > How is possible describe full backup

Re: Fwd: virsh backup-begin problem

2021-01-21 Thread Peter Krempa
On Thu, Jan 21, 2021 at 15:42:21 +0300, Andrey Fokin wrote: > Ok. Sorry. > > On Thu, Jan 21, 2021 at 3:38 PM Peter Krempa wrote: > > > On Thu, Jan 21, 2021 at 15:16:44 +0300, Andrey Fokin wrote: > > > Yes, there is an error message. > > > sudo virs

  1   2   3   >