Re: Regarding location of Libvirt library

2021-03-31 Thread Michal Privoznik
On 3/31/21 7:38 AM, shafnamol N wrote: Hi, I have installed Libvirt 7.1.0. I configured and built libvirt based on instructions from https://libvirt.org/compiling.html . Now I developed a client program to create a VM using an XML file.As the API for it is

Re: virsh dommemstat doesn't update its information

2021-03-29 Thread Michal Privoznik
On 3/29/21 4:00 PM, Lentes, Bernd wrote: Hi, i'm playing a bit around with my domains and the balloon driver. To get information about ballooning i use virsh dommemstat. But i only get very few information: virsh # dommemstat vm_idcc_devel actual 1044480 last_update 0 rss 1030144 Also

Re: Packets dropped by virtual NICs

2021-03-29 Thread Michal Privoznik
On 3/29/21 11:38 AM, Silvia Fichera wrote: Hi Michal, these are the steps: - start the vm with qemu sudo qemu-system-x86_64-spice -m 2048 -enable-kvm -smp 3 -cdrom /home/machine_A/ubuntu.iso -netdev

Re: Virtual Network API for QEMU

2021-03-29 Thread Michal Privoznik
On 3/27/21 1:39 PM, Radek Simko wrote: Hi, According to this support matrix https://libvirt.org/hvsupport.html#virNetworkDriver there is no support for any APIs other than hypervisor ones for qemu. For example virConnectNumOfNetworks is

Re: Packets dropped by virtual NICs

2021-03-29 Thread Michal Privoznik
On 3/27/21 2:53 PM, Silvia Fichera wrote: Hi all, I want to use tc qdisc settings in a network coposed of several qemu VMs, connected through bridges and tap interfaces. I generate traffic with a spirent. Everything is fine when the scheduling discipline is not installed but when I run the

Re: infinite lease time

2021-03-23 Thread Michal Privoznik
On 3/23/21 1:54 PM, Michal Privoznik wrote: On 3/22/21 4:01 PM, Francesc Guasch wrote: Hi. First of all thanks for this great project and specially for keeping the Perl library. I need to keep the IP address of the virtual machines the same as long as possible. dnsmasq provides a setting

Re: infinite lease time

2021-03-23 Thread Michal Privoznik
On 3/22/21 4:01 PM, Francesc Guasch wrote: Hi. First of all thanks for this great project and specially for keeping the Perl library. I need to keep the IP address of the virtual machines the same as long as possible. dnsmasq provides a setting for lease time. It can be set to infinite, but not

Re: virsh capabilities does not include qemu

2021-03-22 Thread Michal Privoznik
On 3/22/21 5:17 AM, shafnamol N wrote: Hi, I am new  to Libvirt and Qemu.I have installed Libvirt 7.1.0 and qemu-kvm 4.2.0. I configured and built libvirt based on instructions from https://libvirt.org/compiling.html . But when i tried to create a VM using

Re: Using cgroups in QEMU hooks

2021-03-17 Thread Michal Privoznik
On 3/17/21 5:45 AM, Melissa Nuño wrote: Hi all, I'm creating a device during the prepare hook, and would like to add it to the device.allow file for the VM. The cgroup doesn't exist during the prepare hook or the start hook and will fail with an "Operation not permitted" error. I can add the

Re: Issue

2021-03-12 Thread Michal Privoznik
On 3/5/21 11:04 AM, Samuel Thampy wrote: Is there any additional info anyone who needs? *From:* Samuel Thampy *Sent:* 03 March 2021 22:11 *To:* libvirt-users@redhat.com *Subject:* Issue I have a storage backend san

Re: I would like to contribute to libvirt

2021-01-13 Thread Michal Privoznik
On 1/12/21 7:19 AM, PRAJWAL BENEDICT A wrote: Hey, it's nice to see people interested in libvirt. You mention machine learning, but libvirt is more about controlling virtual machines. For GSoC - yes, we do that. I plan to apply this year too on behalf of libvirt, but looking at the

Re: Get Host Capabilities failed: Internal JSON-RPC error: {'reason': 'internal error: Duplicate key'}

2021-01-13 Thread Michal Privoznik
On 1/13/21 8:48 AM, tommy wrote: I should upgrade my libvirt from 5.7 to 6.1 to resole this question ? Yes. You want to upgrade to at least 6.1.0 or newer. Michal

Re: virt-manager connection fails with 'qemu unexpectedly closed the monitor'

2021-01-04 Thread Michal Privoznik
On 12/19/20 10:22 PM, John Paul Adrian Glaubitz wrote: Hi! I recently ran into a problem when connecting to libvirtd 6.9.0 on Debian unstable and trying to import an existing image with Windows 7. Upon finishing the wizard and starting the instance, the import process fails with the following

Re: Unexplicable permission error when trying to read a qemu firmware file

2021-01-04 Thread Michal Privoznik
On 12/29/20 6:09 PM, Emmanuel Kasper wrote: Hi I want to create a CoreOS VM following the steps mentioned at https://docs.fedoraproject.org/en-US/fedora-coreos/getting-started, using a Debian 11 (bullseye) system. I am thus creating a VM with the following virt-install command: virt-install

Re: Get Host Capabilities failed: Internal JSON-RPC error: {'reason': 'internal error: Duplicate key'}

2021-01-04 Thread Michal Privoznik
On 12/24/20 4:06 AM, tommy wrote: Hi,everyone: I got this error in my ovirt env: VDSM ooengh1.tltd.com command Get Host Capabilities failed: Internal JSON-RPC error: {'reason': 'internal error: Duplicate key'} I think you're hitting this bug:

Re: Libvirt-lxc: iptables not working in containers

2020-12-15 Thread Michal Privoznik
On 12/14/20 12:05 AM, John Hurnett wrote: Hi, I can't get iptables to work in libvirt-lxc containers. "iptables -L" command shows empty chains. However I tested the same scenario with pure lxc and iptables works as it should. Has anyone experienced that? It seems like a bug, but maybe there is

Re: Installing Kali Linux as Guest OS in KVM Hypervisor

2020-12-07 Thread Michal Privoznik
On 12/4/20 6:26 PM, Kaushal Shriyan wrote: On Thu, Dec 3, 2020 at 8:54 PM Erik Skultety wrote: On Tue, Dec 01, 2020 at 06:15:55PM +0100, Michal Privoznik wrote: On 12/1/20 5:28 PM, Kaushal Shriyan wrote: Hi, I have run the below command to install Kali Linux using linux-2020.4-installer

Re: Installing Kali Linux as Guest OS in KVM Hypervisor

2020-12-01 Thread Michal Privoznik
On 12/1/20 5:28 PM, Kaushal Shriyan wrote: Hi, I have run the below command to install Kali Linux using linux-2020.4-installer-amd64.iso from https://www.kali.org/downloads/ #virt-install --name kalilinux --memory 4096 --vcpus=2

Re: virsh rights voor normal users

2020-10-29 Thread Michal Privoznik
On 10/29/20 4:47 PM, Natxo Asenjo wrote: ah, yes. I try this: $ virsh -c qemu:///system But it then I get a prompt: AUTHENTICATING FOR org.libvirt.unix.manage = System policy prevents management of local virtualized systems Authenticating as:  sudo_user_not_disclosed

Re: unable to migrate: virPortAllocatorSetUsed:299 : internal error: Failed to reserve port 49153

2020-10-26 Thread Michal Privoznik
On 10/26/20 9:39 AM, Michal Privoznik wrote: On 10/12/20 4:46 AM, Vjaceslavs Klimovs wrote: On libvirt 6.8.0 and qemu 5.1.0, when trying to live migrate "error: internal error: Failed to reserve port" error is received and migration does not succeed: virsh # migrate cartridg

Re: unable to migrate: virPortAllocatorSetUsed:299 : internal error: Failed to reserve port 49153

2020-10-26 Thread Michal Privoznik
On 10/12/20 4:46 AM, Vjaceslavs Klimovs wrote: On libvirt 6.8.0 and qemu 5.1.0, when trying to live migrate "error: internal error: Failed to reserve port" error is received and migration does not succeed: virsh # migrate cartridge qemu+tls://ratchet.lan/system --live --persistent

Re: libivrt client using python on windows

2020-10-14 Thread Michal Privoznik
On 10/12/20 9:47 PM, Talha Jawaid wrote: Hello, I want to run a python script on Windows to remotely control libvirt running on a (Linux) server. This was all working fine while prototyping stuff on the server but now I am having some trouble installing the python module on windows (“pip

Re: unable to find any master var store for loader error

2020-10-13 Thread Michal Privoznik
On 10/13/20 2:25 PM, daggs wrote: Greetings Michal, Sent: Tuesday, October 13, 2020 at 2:51 PM From: "Michal Privoznik" To: "daggs" , libvirt-users@redhat.com Subject: Re: unable to find any master var store for loader error Hey, I'll paste the interesting part o

Re: unable to find any master var store for loader error

2020-10-13 Thread Michal Privoznik
On 10/12/20 10:52 PM, daggs wrote: Greetings, I have the following machine: https://dpaste.com/5BPA3F77F which I'm trying to boot in uefi. /etc/libvirt/qemu.conf looks like this: https://dpaste.com/B3SFHUY6R and the ovmf files exists in the path, see: # ll /usr/share/edk2-ovmf/OVMF_CODE.fd

Re: Encrypting boot partition Libvirt not showing the OS booting up

2020-10-12 Thread Michal Privoznik
On 10/12/20 4:27 PM, john doe wrote: On 10/12/2020 4:09 PM, Peter Krempa wrote: On Mon, Oct 12, 2020 at 16:05:43 +0200, Michal Privoznik wrote: On 10/12/20 2:14 PM, john doe wrote: I sent privately the requested xml file to 'Peter Krempa '. Peter Krempa 's privately answered me back

Re: Encrypting boot partition Libvirt not showing the OS booting up

2020-10-12 Thread Michal Privoznik
On 10/12/20 2:14 PM, john doe wrote: I sent privately the requested xml file to 'Peter Krempa '. Peter Krempa 's privately answered me back suggesting to add the following in the domain xml file: Solving things privately doesn't help the community. under such as ...    hvm  

Re: Two questions about NVDIMM devices

2020-09-10 Thread Michal Privoznik
On 9/10/20 4:56 PM, Daniel P. Berrangé wrote: On Thu, Sep 10, 2020 at 04:54:08PM +0200, Milan Zamazal wrote: Daniel P. Berrangé writes: On Thu, Sep 10, 2020 at 04:26:40PM +0200, Milan Zamazal wrote: Daniel P. Berrangé writes: On Thu, Jul 02, 2020 at 01:21:15PM +0200, Milan Zamazal

Re: I want to unsubscribe

2020-08-31 Thread Michal Privoznik
On 8/31/20 6:16 AM, Bilal Arif wrote: Block360 PVT Limited NSTP, Islamabad, Pakistan. Whatsapp/Mobile: +923457343638 Web: www.block360.io The e-mail header suggests sending e-mail to: mailto:libvirt-users-requ...@redhat.com?subject=unsubscribe Alternatively, you

Re: support for live migration with PCI passthrough devices

2020-08-26 Thread Michal Privoznik
On 8/26/20 8:27 AM, Erik Skultety wrote: On Tue, Aug 25, 2020 at 02:56:49PM +0200, Michal Privoznik wrote: On 8/25/20 1:40 PM, Henry lol wrote: Hi guys, I'm wondering whether libvirt supports live migration for the VM with PCI passthrough devices. or it must be assumed before live migration

Re: support for live migration with PCI passthrough devices

2020-08-25 Thread Michal Privoznik
On 8/25/20 1:40 PM, Henry lol wrote: Hi guys, I'm wondering whether libvirt supports live migration for the VM with PCI passthrough devices. or it must be assumed before live migration that all passthrough devices be unplugged? Unfortunately, this is still not supported. The problem is that

Re: python-libvirt domain.destroy() doesn't appear to be working for me

2020-08-24 Thread Michal Privoznik
On 8/24/20 11:38 AM, Jeremy Markle wrote: I was simply following the examples in the python-libvirt repo. If those methods raise exceptions I'll definitely change to try/catch. Thank you. The maintainer of the repo should update the examples and documentation if exceptions are raised by those.

Re: KVM guest VM IP address

2020-08-18 Thread Michal Privoznik
On 8/18/20 9:10 AM, Kaushal Shriyan wrote: Hi, I am trying to find out the IP address of the KVM guest virtual machine. #virsh dumpxml newsoftlinedrupalpoc | grep "mac address" | awk -F\' '{ print $2}' 52:54:00:2c:7e:ff [root@baseserver1 ~]# arp -an | grep 52:54:00:2c:7e:ff

Re: libvirt segfaults with "internal,error: Missing monitor reply object", during block live-migration

2020-07-30 Thread Michal Privoznik
On 7/30/20 4:13 PM, Alex Walender wrote: Dear libvirt community, libvirt-daemon 5.0.0-1ubuntu2.6~cloud0 Also, this is oldish libvirt. Is there a way you could check something more recent (if not the current HEAD). It's likely that the bug is fixed. Michal

Re: Unable to decode message length

2020-07-15 Thread Michal Privoznik
On 7/14/20 7:42 PM, Valentin David wrote: Hello all, I have been trying to get libvirtd to work but when I connect to it with virsh, I get "error : virNetMessageDecodeLength:131 : Unable to decode message length" This happens with libvirt 6.1.0, libtirpc 1.2.6, rpcsvc-proto 1.4.1. I have

Re: qemu hook: event for source host too

2020-06-22 Thread Michal Privoznik
On 6/19/20 8:24 AM, Guy Godfroy wrote: Hello, Is there any news about this feature ? Unfortunately no news. Sorry. Michal

Re: libvirt-defined network vs/and openvswitch bridge

2020-06-01 Thread Michal Privoznik
On 5/31/20 6:33 AM, Po Dragonwarrior wrote: Hi all, Can you please explain to me what is the difference (or maybe the relation?)  between a libvirt defined network and an openvswitch bridge? Hey, it's the same relationship as is between domain and QEMU. A libvirt network is front, user

Re: Firmware auto-select limitation

2020-05-15 Thread Michal Privoznik
On 5/15/20 4:40 PM, GUOQING LI wrote: Hi everyone and Martin I would like to confirm the conversation we had in regard the possible limitation of firmware auto-select feature that’s been released since v5.20.  I recall you saying that there were a lot of issues with auto select and later

Re: DNSMASQ Libvirt

2020-05-15 Thread Michal Privoznik
On 5/15/20 1:23 AM, Santhosh Kumar Gunturu wrote: Hi, Net-dump xml File. Hey, I've just tried with slightly different base IP (192.168.122.1/28) but my guest did get the /28 subnet. What is the content of /var/lib/libvirt/dnsmasq/data-2.conf ? Also, have you restarted the network after

Re: What is expiry time represents in this format

2020-05-15 Thread Michal Privoznik
On 5/15/20 1:07 AM, Santhosh Kumar Gunturu wrote: I see the output. root@X10SDV-8C-TLN4F:/mnt/config# cat /var/lib/libvirt/dnsmasq/mgmt-1br1.status [   {     "ip-address": "192.168.27.8",     "mac-address": "52:54:00:42:21:14",     "hostname": "vyatta",     "expiry-time": 1589500228   }

Re: Unit libvirtd.service could not be found. on VM

2020-05-13 Thread Michal Privoznik
On 5/13/20 12:59 PM, Dana Elfassy wrote: Thanks, Michal, On my laptop I do have libguestfs and libvirt-daemon-qemu. both libvirtd.service and libvirtd.socket are running ok on my laptop I just realized I haven't mentioned - my vms intend to serve as hosts themselves, and that's why they, too,

Re: Unit libvirtd.service could not be found. on VM

2020-05-13 Thread Michal Privoznik
On 5/12/20 1:41 PM, Dana Elfassy wrote: if I understand correctly then I shouldn't have installed libvirt-daemon on the guests VMs? Just a little background to Daniel's response. Libvirt and QEMU treat guests as black boxes, to some extent. There are some exceptions to this rule, when it

Re: Set hostname of guest during installation time

2020-05-05 Thread Michal Privoznik
On 5/5/20 11:25 AM, john doe wrote: On 5/5/2020 10:41 AM, Michal Privoznik wrote: On 5/5/20 9:26 AM, john doe wrote: On 5/5/2020 8:29 AM, Michal Privoznik wrote: Because interface type='bridge' and type='network' are not the same. The libvirt_guest plugin needs a list of MAC addresses

Re: Set hostname of guest during installation time

2020-05-05 Thread Michal Privoznik
On 5/5/20 9:26 AM, john doe wrote: On 5/5/2020 8:29 AM, Michal Privoznik wrote: Because interface type='bridge' and type='network' are not the same. The libvirt_guest plugin needs a list of MAC addresses because it tries to find a match across libvirt domain name -> list of domain's

Re: Set hostname of guest during installation time

2020-05-05 Thread Michal Privoznik
. But hopefully, you haven't renamed your guest since then and it is still named 'try06', that is virsh list --all produces 'try06' in the list. If this is all true, can you share the output of:    strace $(which getent) hosts try06 Thanks to the friendly feedback/support from Michal Privoznik and Andrea

Re: [Query] Facing issue in build libvirt6.0 on ubuntu 1804

2020-04-30 Thread Michal Privoznik
On 4/30/20 2:26 PM, Ramesh B wrote: Hi Michel, Thanks for quick update.   Weird. I have slightly older version and it works for me. Maybe configure is picking something else, some weird binary/python script? *=>* I have python 3.6 version, is it required latest version e.g Python 3.8 ?

Re: [Query] Facing issue in build libvirt6.0 on ubuntu 1804

2020-04-30 Thread Michal Privoznik
On 4/30/20 12:53 PM, Ramesh B wrote: Hi Michal, Please find the details below, rst2html5 1.10.6 (Docutils 0.16 [release], Python 3.6.9, on linux) Weird. I have slightly older version and it works for me. Maybe configure is picking something else, some weird binary/python script? is

Re: [Query] Facing issue in build libvirt6.0 on ubuntu 1804

2020-04-30 Thread Michal Privoznik
[Please keep the list CCed] On 4/30/20 12:02 PM, Ramesh B wrote: Hi Michal, Thanks for quick response. Ubuntu: 18.04.3 LTS QEMU emulator version 4.2.0 libvirtd (libvirt) 4.0.0 I have lunched the guest os using QEMU. I would like to use the virsh commands to get the status / control of guest

Re: why libvirtd can not list the running domain?

2020-04-30 Thread Michal Privoznik
On 4/30/20 11:31 AM, 崔涛的个人邮箱 wrote: 1.I run a user domain like this: [root@kvm1 ~]# qemu-system-x86_64 -enable-kvm -m 1G -smp 4 /images/test1.img Libvirt lists only those virtual machines (or domains as we call them) that were started through it. It doesn't list nor can manage qemu

Re: [Query] Facing issue in build libvirt6.0 on ubuntu 1804

2020-04-30 Thread Michal Privoznik
On 4/30/20 10:05 AM, Ramesh B wrote: Hi all, I am trying to build libvirt 6.0 on ubuntu OS 18.04. Facing one issue libvirt source compilation. :215: (ERROR/3) Error in "code-block" directive: 1 argument(s) required, 0 supplied. .. code-block::    

Re: domain: how long is new xml in saved file

2020-04-24 Thread Michal Privoznik
On 4/24/20 6:38 AM, Vincent Wu wrote: > The save format is fragile. At the beginning there is a header which describes the file, then there is libvirt section (which contains the domain XML and a cookie) and then there is QEMU section (where QEMU saved the guest memory). Because of this, we

Re: php libvirt show active snapshot

2020-04-21 Thread Michal Privoznik
On 4/21/20 1:36 AM, Todd Lewis wrote: Works perfectly thank you. I did get an issue when trying to compile an rpm The autobuild did run into an error when trying to create the rpm. Not a big deal. I can make my own spec file. EXTRA_RELEASE="" 1: ^^^ if [ -x /usr/bin/rpmbuild ] then

Re: My VMs don't get IP with libvirt and dnsmasq

2020-04-17 Thread Michal Privoznik
On 4/17/20 1:01 PM, Computers Issues wrote: Hi, That was right. I mean, I've tried it at the same time in both machines I have (the one where it works and the other), and using tcpdump -i virbr2 in both ones, after creating the domain with virsh, showed that the right one is getting DHCP

Re: My VMs don't get IP with libvirt and dnsmasq

2020-04-17 Thread Michal Privoznik
On 4/17/20 12:44 PM, Computers Issues wrote: Hello! Thanks for your answer. Well, I think it has to ask for an IP as I have the same configuration in a different machine (with the same OS) and it works, there I see the DHCP packets and so on, but not here. Well, do you actually see DHCP

Re: My VMs don't get IP with libvirt and dnsmasq

2020-04-17 Thread Michal Privoznik
On 4/17/20 1:31 AM, Computers Issues wrote: Hello there, There is nothing obviously wrong with XMLs. Couple of things to try: 1) are you sure that the guest actually ask for an IP address? What happens when you 'dhclient eth0' from inside the guest (or whatever the equivalent is)? 2) is

Re: php libvirt show active snapshot

2020-04-16 Thread Michal Privoznik
On 4/14/20 6:49 PM, Todd Lewis wrote: I was looking for a virDomainSnapshotCurrent I wish I had time to learn to properly Code in C, haven't touch it since that late 90's I'm only only coding in php out of necessity. I've just pushed the implementation upstream:

Re: php libvirt show active snapshot

2020-04-14 Thread Michal Privoznik
On 4/13/20 9:22 PM, Todd Lewis wrote: Is php libvirt able to list the active snapshot for the vm? I can easily take snapshots and restore snapshots, but I can't figure out how to display the currently active snapshot using php libvirt. Yeah, libvirt-php is not very well maintained and

Re: Connections Driver VirtualBox

2020-04-14 Thread Michal Privoznik
On 4/8/20 5:07 AM, claudia freitas wrote: Good Morning! My name is Cláudia, I'm trying to use the Connections to VirtualBox driver from libvirt.org on Pacemaker to start a virtual machine created with the VirtualBox hypervisor, so far I haven't been successful. Could you

Re: No DHCP on default network when guest has multiple interfaces

2020-02-07 Thread Michal Privoznik
On 2/7/20 11:47 AM, Patrick O'Neill wrote: Hello, I'm not sure, but I recall that some of the distros I played with asked DHCP to configure just one interface. Maybe you need to configure your guest to do DHCP for both interfaces? Michal

Re: qemu hook: event for source host too

2020-01-24 Thread Michal Privoznik
On 1/24/20 4:34 PM, Guy Godfroy wrote: I don't really understand what new hook this would be. Libvirt's migration happens in phases [1]. The last one is 'Confirm' where either the domain is either killed (because it's running on the destination successfully), or resumed (because there was an

Re: qemu hook: event for source host too

2020-01-24 Thread Michal Privoznik
On 1/23/20 1:43 PM, Guy Godfroy wrote: So, how likely is it possible to get this feature (two new events for the qemu hook)? I've started writing it, but then I realized we might need third hook - in confirm phase - which would be run on the source when quemu switches control over to the

Re: virsh vol-download uses a lot of memory

2020-01-23 Thread Michal Privoznik
On 1/22/20 1:18 PM, Daniel P. Berrangé wrote: 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

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

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

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

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

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.

Re: [libvirt-users] Request to be allotted a project or a feature in pipeline

2019-12-16 Thread Michal Privoznik
On 12/15/19 5:22 PM, Utsav Parmar wrote: To whom it may concern, I'm Utsav Parmar, pursuing my B. Tech in Computer Engineering. I like to work on new technologies and am currently looking for open-source projects to contribute to. As it may turn out, I've got a college project in my

Re: [libvirt-users] nvme, spdk and host linux version

2019-12-12 Thread Michal Privoznik
On 12/12/19 3:51 PM, Mauricio Tavares wrote: On Thu, Dec 12, 2019 at 5:40 AM Michal Privoznik wrote: On 11/27/19 4:12 PM, Mauricio Tavares wrote: I have been following the patches on nvme support on the list and was wondering: If I wanted to build a vm host to be on the bleeding edge

Re: [libvirt-users] nvme, spdk and host linux version

2019-12-12 Thread Michal Privoznik
On 11/27/19 4:12 PM, Mauricio Tavares wrote: I have been following the patches on nvme support on the list and was wondering: If I wanted to build a vm host to be on the bleeding edge for nvme and spdk fun in libvirt, which linux distro -- fedora/ubuntu/centos/etc -- should I pick? For NVMe

Re: [libvirt-users] Getting "Unable to set XATTR" on libvirt 5.6.0 inside containers

2019-11-21 Thread Michal Privoznik
On 11/21/19 3:08 PM, Roman Mohr wrote: Hi, We are updating KubeVirt to libvirt 5.6.0. Before that we were running on 5.0.0. It seems like something regarding setting xattrs on files has changed, because with libvirt 5.6.0 we are getting the following error: ``` Unable to set XATTR

Re: [libvirt-users] Starting VM fails with: "Setting different DAC user or group on /path... which is already in use" after upgrading to libvirt 5.6.0-1

2019-08-20 Thread Michal Privoznik
On 8/19/19 9:53 PM, Nir Soffer wrote: Hi, I upgraded to a Fedora 29 host using virt-preview repo to libvirt-daemon-5.6.0-1.fc29.x86_64 The host was using plain Fedora 29 without virt-preview before that. After the upgrade, starting some vms that were running fine fail now with this error:

Re: [libvirt-users] Detach disk from VM - virsh (working) vs. PHP (not working)

2019-08-02 Thread Michal Privoznik
On 8/1/19 10:12 AM, Jan Horak wrote: Hi all, i created a script in PHP for create a virtual server with two QCOW2 discs … one is our system for installation and second is target system. After successfully instalation (create a blank Debian system, prepare all files and grub partitions) i

Re: [libvirt-users] libvirt/dnsmasq is not adhering to static DHCP assignments

2019-08-02 Thread Michal Privoznik
On 8/1/19 4:21 AM, Christian Kujau wrote: This is basically a continuation of an older posting[0] I found, but apparently no solution has been posted. So, I'm trying to setup static DHCP leases with dnsmasq that is being started by libvirtd:

Re: [libvirt-users] Researching why different cache modes result in 'some' guest filesystem corruption..

2019-08-02 Thread Michal Privoznik
On 7/30/19 10:40 PM, vinc...@cojot.name wrote: Does anyone have any idea what's going on or what I may be doing wrong? I don't think it is you doing something wrong. The way shutdown works is that libvirt tells qemu to shut down (or in case of guest initiated shutdown it is guest OS who

Re: [libvirt-users] OVS / KVM / libvirt / MTU

2019-07-31 Thread Michal Privoznik
On 7/29/19 9:23 PM, Sven Vogel wrote: Hi Michal, Thanks for your answer. I don’t understand why an interface created without mtu gets only 1500 visible in the virtual machine but if I create an interface with mtu higher than 1500 e.g. 2000 the bridge will change too. Before the bridge was

Re: [libvirt-users] Why librbd disallow VM live migration if the disk cache mode is not none or directsync

2019-07-29 Thread Michal Privoznik
On 7/29/19 3:51 AM, Ming-Hung Tsai wrote: I'm curious that why librbd sets this limitation? The rule first appeared in librbd.git commit d57485f73ab. Theoretically, a write-through cache is also safe for VM migration, if the cache implementation guarantees that cache invalidation and disk write

Re: [libvirt-users] OVS / KVM / libvirt / MTU

2019-07-29 Thread Michal Privoznik
On 7/23/19 8:00 PM, Sven Vogel wrote: Hey there, I hope anyone can bring some light in the following problem. we have an base bridge for example and cloudbr0. After we add an mtu to the vm bridge here it seems the base bridge gets the same mtu like the vnet adapter. Is this

Re: [libvirt-users] filesharing file owner problem

2019-07-17 Thread Michal Privoznik
On 7/16/19 8:08 AM, Vojto Ľach wrote: Hello, I'm having an issue with usage of libvirt driven qemu where I'm sharing directory with guest machine. virsh domain filesharing configuration: /etc/libvirt/qemu.conf : user = "root" group = "root"

Re: [libvirt-users] Question regarding using multiple physical functions inside a network pool.

2019-07-15 Thread Michal Privoznik
On 7/12/19 3:44 PM, Mohamed, Faris wrote: Hello, I was planning on adding multiple physical functions using the built in SR-IOV features offered by libvirt to a create a bigger pool of virtual functions using the heading (I want to be able to use more virtual machines then there are

Re: [libvirt-users] logging of domains

2019-05-30 Thread Michal Privoznik
On 5/29/19 4:59 PM, Lentes, Bernd wrote: Hi, recently i had some domains stopped without any obvious reason for me. Unfortunately i didn't find the cause. I'd like to log information about the domains that i have more information the next time this will happen. In /etc/libvirt/libvirtd.conf i

Re: [libvirt-users] Cannot get interface MTU - qemu quest fails to start off OpenVswitch

2019-05-13 Thread Michal Privoznik
On 5/10/19 6:23 PM, lejeczek wrote: On 10/05/2019 14:44, Michal Privoznik wrote: On 5/10/19 3:26 PM, lejeczek wrote: hi guys I have a qemu guest and openvswitch bridge and the guest fails to start: $ virsh start work8 error: Failed to start domain work8-vm-win2016 error: Cannot get interface

Re: [libvirt-users] Cannot get interface MTU - qemu quest fails to start off OpenVswitch

2019-05-10 Thread Michal Privoznik
On 5/10/19 3:26 PM, lejeczek wrote: hi guys I have a qemu guest and openvswitch bridge and the guest fails to start: $ virsh start work8 error: Failed to start domain work8-vm-win2016 error: Cannot get interface MTU on 'ovsbr0': No such device Well, this means that 'ovsbr0' doesn't exist. Is

Re: [libvirt-users] disable libvirt-nwfilter

2019-05-07 Thread Michal Privoznik
[Please keep the list CC-ed as it may help somebody from future when searching for solution to the same problem] On 5/6/19 6:08 PM, nak...@geekpit.org wrote: Am 2019-05-06 16:26, schrieb Michal Privoznik: On 5/6/19 3:44 PM, nak...@geekpit.org wrote: Hi, i want to disable the nwfilter

Re: [libvirt-users] disable libvirt-nwfilter

2019-05-06 Thread Michal Privoznik
On 5/6/19 3:44 PM, nak...@geekpit.org wrote: Hi, i want to disable the nwfilter functionality of libvirt. It's surely nice for some people, nevertheless i don't want libvirt to alter any netfilter rules, neither i want the according functionality even available. It's not only NWFilter that

Re: [libvirt-users] VM: Unable to enable scatter-gather / tx-checksumming / tcp-segmentation offload

2019-05-03 Thread Michal Privoznik
On 5/3/19 10:19 AM, Harsh Gondaliya wrote: In my Linux VM, I am unable to change scatter-gather / tx-checksumming / TCP-segmentation offload features by ethtool command. I am using virtio nic with vhostuser port backend. It shows me an error: Cannot change tx-checksumming Cannot change

Re: [libvirt-users] libvirtd not starting

2019-05-02 Thread Michal Privoznik
On 5/2/19 12:08 PM, Lothar Schilling wrote: I turned logging up to maximum. That's all I get: May  2 11:02:06 hl308-3 systemd: Starting Virtualization daemon... May  2 11:02:06 hl308-3 libvirtd: 472: info : libvirt version: 4.5.0, package: 10.el7_6.7 (CentOS BuildSystem

Re: [libvirt-users] libvirtd via unix socket using system uri

2019-04-30 Thread Michal Privoznik
On 4/30/19 3:15 PM, Peter Crowther wrote: On Tue, 30 Apr 2019 at 10:48, Daniel P. Berrangé wrote: On Tue, Apr 30, 2019 at 10:45:03AM +0100, Peter Crowther wrote: On Tue, 30 Apr 2019 at 10:40, Michal Privoznik wrote: Is there any problem running libvirtd as root? Yes, in the regulated

Re: [libvirt-users] libvirtd via unix socket using system uri

2019-04-30 Thread Michal Privoznik
On 4/29/19 5:42 PM, lameventa...@gmail.com wrote: On 29/04/2019 22.01, Michal Privoznik wrote: On 4/29/19 1:06 PM, lameventa...@gmail.com wrote: I want to run libvirtd as a special user, and allowing users that belong to a special group to connect via qemu+unix:///system (eg: unix socket

Re: [libvirt-users] Error connecting to hypervisor

2019-04-29 Thread Michal Privoznik
On 4/29/19 2:48 PM, Sukrit Bhatnagar wrote: On Sat, 27 Apr 2019 at 12:53, Michal Prívozník wrote: On 4/23/19 11:56 PM, Sukrit Bhatnagar wrote: Hi, I have compiled and installed libvirt from git checkout and started libvirtd service. The version is 5.3.0 and I have done system-wide

Re: [libvirt-users] libvirtd via unix socket using system uri

2019-04-29 Thread Michal Privoznik
On 4/29/19 1:06 PM, lameventa...@gmail.com wrote: I want to run libvirtd as a special user, and allowing users that belong to a special group to connect via qemu+unix:///system (eg: unix socket). I did everything necessary to do so: created a libvirt user and group, added the libvirt user to

Re: [libvirt-users] Libvirt pool cannot see or create rbd clones

2019-04-29 Thread Michal Privoznik
On 4/26/19 11:53 AM, Weller, Lennart wrote: > Hello everyone, > > To increase my odds of finding an answer I also wanted to ask here. > This is my post from serverfault[1] in verbatim: > > While trying to get a cloned disk running from my OS snapshot I run > into the problem that Libvirt cannot

Re: [libvirt-users] how to use Libvirt create bridge for vm on Mac OS

2019-04-23 Thread Michal Privoznik
On 4/23/19 3:59 PM, llilulu wrote: Hi Recently, I install Libvirt and Qemu in my Mac book, I find I can't create a bridge like linux bridge use for my vm, I want to know how to create a bridge on Mac for vm. I don't think OS X has anything like 'software bridge' built in. Perhaps some

Re: [libvirt-users] Failed to probe capabilities on libvirt v5.1.0

2019-04-12 Thread Michal Privoznik
On 4/11/19 6:20 PM, Vladik Romanovsky wrote: Hi everyone, Unfortunately, I'm facing an issue with libvirt 5.1.0 when probing capabilities. Failed to probe capabilities for /usr/bin/qemu-system-x86_64: internal error: Failed to start QEMU binary /usr/bin/qemu-system-x86_64 for probing:

Re: [libvirt-users] Network hooks for ethernet interfaces

2019-04-09 Thread Michal Privoznik
On 4/9/19 4:38 PM, Ruben Kerkhof wrote: Hi all, I have a hook script, /etc/libvirt/hooks/network, that doesn't seem to be called when I attach an interface with type 'ethernet' with this xml snippet: https://www.libvirt.org/hooks.html#intro says "A network is

Re: [libvirt-users] Error creating virtual network: failed to run '/usr/sbin/dnsmasq --version': : Success

2019-04-01 Thread Michal Privoznik
On 4/1/19 2:16 PM, Harsh Gondaliya wrote: I deleted my port virbr0 using brctl command and now when I want to create a virtual network, it gives me this error: Error creating virtual network: failed to run '/usr/sbin/dnsmasq --version': : Success Here is my systemlog:

Re: [libvirt-users] Error Starting domain: Failed to page size of file

2019-03-28 Thread Michal Privoznik
On 3/28/19 2:25 PM, Harsh Gondaliya wrote: I am trying to connect a KVM-QEMU VM to OVS-DPDK vhostuser port. But, I am encountering a few errors. Since I am very new to libvrt and Linux I am not able to sort them out. Any guidance in this regard would be a great help. These are my System Logs:

Re: [libvirt-users] Virt-Lightning: a cloud-like CLI for libvirt

2019-03-27 Thread Michal Privoznik
On 3/26/19 11:27 PM, Gonéri Le Bouder wrote: Hi all, Tl;dr: Virt-Lightning uses libvirt, cloud-init and libguestfs to allow anyone to quickly start new VM. Very much like a container CLI interface, but locally. -> https://github.com/virt-lightning/virt-lightning To validate my Ansible roles,

Re: [libvirt-users] Obtaining the PID of a domain's QEMU process from C

2019-03-11 Thread Michal Privoznik
On 3/11/19 9:02 AM, Erik Skultety wrote: On Sat, Mar 09, 2019 at 04:32:00PM +0100, Michal Prívozník wrote: On 3/1/19 2:31 AM, Shawn Anastasio wrote: Hello all, I'm currently writing a C program that uses the libvirt API and I need a way to obtain the pid of a given domain's QEMU process.

Re: [libvirt-users] VM running with storage image file deleted

2019-01-10 Thread Michal Privoznik
On 1/10/19 11:19 AM, Roosen, Nicolas wrote: > Hello, I have a strange issue I'd like to have some insights on. > > > We have 2 running VM, the storage pool is over NFS. Unfortunately, the > backend storage folder has been deleted (so the image file in it as well, > obviously) ... > > > Yet,

Re: [libvirt-users] "virsh list --all" is intermittently causing a shutdown client to boot?

2018-12-13 Thread Michal Privoznik
On 12/11/18 3:39 PM, Peter Kukla wrote: > Hello, > Could it be that the domain is set as "autostart"? The session daemon is slightly different to system daemon. The former come and go if there is no activity for (by default) 30 seconds. And if the domain would be marked as 'autostart' (meaning

  1   2   3   4   5   >