ANNOUNCE: Forthcoming changes to libvirt mailing list hosting

2023-10-13 Thread Daniel P . Berrangé
Hello Libvirt Community, For the last 18(!) years, libvirt community mailing lists have been kindly hosted by Red Hat Corporate IT on the redhat.com Mailman installation. In retrospect this wasn't the ideal home for community mailing lists but that decision is ancient history. Unfortunately

Re: Help ! libvirt

2023-09-22 Thread Andrea Bolognani
On Fri, Sep 22, 2023 at 10:48:55AM +, Michael Kjörling wrote: > On 22 Sep 2023 01:34 -0700, from abolo...@redhat.com (Andrea Bolognani): > >> If I switch the suspend-to-disk enabled="yes" > >> I strangely get an error > >> error: operation failed: Unable to find any firmware to satisfy 'efi' >

Re: Help ! libvirt

2023-09-22 Thread Michael Kjörling
On 22 Sep 2023 01:34 -0700, from abolo...@redhat.com (Andrea Bolognani): >> If I switch the suspend-to-disk enabled="yes" >> I strangely get an error >> error: operation failed: Unable to find any firmware to satisfy 'efi' > > I can explain that one. > > suspend-to-disk.enabled=yes requires a

Re: Help ! libvirt

2023-09-22 Thread Michal Prívozník
orks, emitting a better one would be > pretty much impossible :( > You can enable debug logs and then observe why each one FW was rejected (see those VIR_DEBUG() printings in qemuFirmwareMatchDomain() [1]). 1: https://gitlab.com/libvirt/libvirt/-/blob/master/src/qemu/qemu_firmware.c?ref_type=heads#L1174 Michal

Re: Help ! libvirt

2023-09-22 Thread Andrea Bolognani
On Fri, Sep 22, 2023 at 06:33:06AM +0100, Bhasker C V wrote: > I finally fixed it. > The issue seems to be with the tpm-tis/cpu backend (wonder why it shows up > with a different error) > For the sake of community, I am attaching the new xml file so that you can > do forensics on what changed >

Re: Help ! libvirt

2023-09-21 Thread Bhasker C V
keeping everything intact) I found another issue If I switch the suspend-to-disk enabled="yes" I strangely get an error error: operation failed: Unable to find any firmware to satisfy 'efi' I presume the errors being spit out are not accurate description of failures anymore wi

Re: Help ! libvirt

2023-09-21 Thread Bhasker C V
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 +0100, Bhasker C V wrote: > > > > Adding libvirt mailing list > > > > apologies for cross-posting &g

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 Bhasker C V
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 +0100, Bhasker C V wrote: > > Adding libvirt mailing list > > apologies for cross-posting >

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

Re: Help ! libvirt

2023-09-21 Thread Daniel P . Berrangé
On Thu, Sep 21, 2023 at 09:05:43AM +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 get

Re: Help ! libvirt

2023-09-21 Thread Bhasker C V
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 a VM > > > > ``` > > $ sudo virsh create ./

Re: how to build libvirt-go-module statically

2023-09-06 Thread Jiatong Shen
Thank you so much for the info! Best Regards, Jiatong Shen On Wed, Sep 6, 2023 at 4:37 PM Daniel P. Berrangé wrote: > On Wed, Sep 06, 2023 at 03:25:48PM +0800, Jiatong Shen wrote: > > Hello community, > > > >I want to know how to build libvirt-go-module static

Re: how to build libvirt-go-module statically

2023-09-06 Thread Daniel P . Berrangé
On Wed, Sep 06, 2023 at 03:25:48PM +0800, Jiatong Shen wrote: > Hello community, > >I want to know how to build libvirt-go-module statically? My go version > is 1.17 and libvirt-go-module version is v1.9007.0. Thank you very much for > the help. There is not any way to build f

how to build libvirt-go-module statically

2023-09-06 Thread Jiatong Shen
Hello community, I want to know how to build libvirt-go-module statically? My go version is 1.17 and libvirt-go-module version is v1.9007.0. Thank you very much for the help. -- Best Regards, Jiatong Shen

Warning : Failed to set up UEFI / The Libvirt version does not support UEFI / Install options are limited...

2023-08-21 Thread Mario Marietto
Hello to everyone. I'm trying to use qemu 5.1 with virt-manager and libvirt on my ARM chromebook (armhf 32 bit cpu) running with Devuan 4 as host o.s. By default it uses qemu and its dependencies,version 5.2. I remember that I can't use qemu 5.2,because it doesn't have any support for KVM as you

Re: Does libvirt support intra-host KVM migration?

2023-08-17 Thread Michal Prívozník
On 8/16/23 22:55, Eric Wheeler wrote: > Hello all, I'm reposting this to the libvirt-users list: > > I looked around for documentation on intra-host KVM migration but haven't > found much. For example, this could be useful to "migrate" VM to run on > an upgraded vers

Does libvirt support intra-host KVM migration?

2023-08-16 Thread Eric Wheeler
Hello all, I'm reposting this to the libvirt-users list: I looked around for documentation on intra-host KVM migration but haven't found much. For example, this could be useful to "migrate" VM to run on an upgraded version of `qemu-kvm` without migrating to a different host and migr

Re: You will need to grant the 'libvirt-qemu' user search permissions for the following directories....

2023-08-08 Thread Sebastien WILLEMIJNS
Ok thanks you. I understand now. On Mon, Aug 7, 2023, at 14:48, Martin Kletzander wrote: > On Mon, Aug 07, 2023 at 01:06:55PM +0200, Sebastien WILLEMIJNS wrote: >>Hello, >> >>Why LIBVIRT software/libs need to chown "near the root level" >>(home/blahblah

Re: You will need to grant the 'libvirt-qemu' user search permissions for the following directories....

2023-08-07 Thread Martin Kletzander
On Mon, Aug 07, 2023 at 01:06:55PM +0200, Sebastien WILLEMIJNS wrote: Hello, Why LIBVIRT software/libs need to chown "near the root level" (home/blahblah/) when raw/vdi/vhd can contains lots of directories as /home/user/Virtual_HDs/desktop/daddy/private/bedroom/number2/hd.vdi ?

You will need to grant the 'libvirt-qemu' user search permissions for the following directories....

2023-08-07 Thread Sebastien WILLEMIJNS
Hello, Why LIBVIRT software/libs need to chown "near the root level" (home/blahblah/) when raw/vdi/vhd can contains lots of directories as /home/user/Virtual_HDs/desktop/daddy/private/bedroom/number2/hd.vdi ? on ubuntu, "/media/hostname" can contains all our external HD

Re: Xen with libvirt and SR-IOV

2023-04-03 Thread Jim Fehlig
On 3/24/23 09:22, nos...@godawa.de wrote: Hi Jim, thank you very much for your answers! Unfortunately I was busy with some other things, so couldn't look at it earlier. That's an old libvirt, but there hasn't been a lot of changes to the PCI passthrough code. One notable change that came

About libvirt domain dump state and persistent state

2023-03-30 Thread Shen, Tao
Hi all, I use libvirt-go in my agent to attach rbd volumes. I ofen suffer the issue of incosistent of domain dump xml and domain persistent xml file. For example, when I try to attach volume, the the domain by “virConnectListAllDomains” api from libvirt tell me the vdf or 0x0a is empty

Re: Xen with libvirt and SR-IOV

2023-03-24 Thread nospam
Hi Jim, thank you very much for your answers! Unfortunately I was busy with some other things, so couldn't look at it earlier. That's an old libvirt, but there hasn't been a lot of changes to the PCI passthrough code. One notable change that came with libvirt 6.8.0 https://gitlab.com

Re: Xen with libvirt and SR-IOV

2023-03-22 Thread Jim Fehlig
On 3/22/23 04:23, nos...@godawa.de wrote: Jim Fehlig schrieb: What is the libvirt version? It's the "latest and greatest" I get from this source: [root@xen1 ~]# virsh --version 6.6.0 [root@xen1 ~]# libvirtd --version libvirtd (libvirt) 6.6.0 [root@xengfs1f ~]# yum list | gr

Re: Xen with libvirt and SR-IOV

2023-03-22 Thread nospam
Jim Fehlig schrieb: What is the libvirt version? It's the "latest and greatest" I get from this source: [root@xen1 ~]# virsh --version 6.6.0 [root@xen1 ~]# libvirtd --version libvirtd (libvirt) 6.6.0 [root@xengfs1f ~]# yum list | grep libvirt libvirt.x86_64

Re: Xen with libvirt and SR-IOV

2023-03-21 Thread Jim Fehlig
is not supported by RHEL nor RockyLinux anymore, so unfortunately I have to switch to KVM. First step will be now, converting all the scripts for managing and running VMs, that they run with the additional libvirt-layer. What is the libvirt version? Mostly everything is working, but I do not get

Xen with libvirt and SR-IOV

2023-03-21 Thread nospam
anymore, so unfortunately I have to switch to KVM. First step will be now, converting all the scripts for managing and running VMs, that they run with the additional libvirt-layer. Mostly everything is working, but I do not get a network interface in the VM, when I start it with "virsh

Unable to create a VM in a specific network namespace using the Domain XML descriptions and API for libvirt + QEMU over KVM

2023-03-01 Thread Roberto Jacob Da Silva
I have a system where I spawn a single libvirt daemon process in the default network namespace. Once the daemon is running, I create and start VMs using the virDomainDefineXML API (defines a VM or "domain" but does not boot it) followed by the virDomainCreate API (boot the VM).

how to use exec:cat > /dev/null using libvirt

2023-02-23 Thread Jiatong Shen
%20kills%2Fcancels%20the%20migration,killed%20before%20migration%20is%20complete.=A%20migration%20failure%20on%20the%20source.). In the fourth step, it suggests using migrate 'exec:cat > /dev/null' to try dumping vm state on the source node. Since the virtual machine is controlled by libvirt, I suppos

Re: libvirt error - "cannot set CPU affinity"

2023-01-31 Thread Michal Prívozník
Shift to tell you ow to do that, sorry. But essentially, you want to check the contents of cpuset.cpus of the container that libvirtd runs in. cat $(grep -lr $(pgrep libvirtd) $(mount | grep cpuset | awk '{print $3}') | head -n1 | sed 's/cgroup.procs/cpuset.cpus/') >   > > > The fu

Re: libvirt error - "cannot set CPU affinity"

2023-01-31 Thread Dipanjan Das
y to find the problem. > > The function this error message comes from is: virProcessSetAffinity() > (the linux version) > > https://gitlab.com/libvirt/libvirt/-/blob/master/src/util/virprocess.c#L445 > > Another reason for the error might be insufficient permissions (thoug

Re: libvirt error - "cannot set CPU affinity"

2023-01-31 Thread Michal Prívozník
you can have a cgroup that allows a subset of physical CPUs, and when a process running within the cgroup tries to set affinity to a CPU that's not allowed it gets EINVAL. The function this error message comes from is: virProcessSetAffinity() (the linux version) https://gitlab.com/libvirt/libvirt/-/blob

libvirt error - "cannot set CPU affinity"

2023-01-31 Thread Dipanjan Das
am setting for the emulatorpin cpuset is present on the system and is not in the isolcpus set of the host. Any suggestions on what could be the problem? Any pointers to how to debug the issue would help greatly too. Some further details if they help - I am using kubevirt (KubeVirt.io <http://kubevirt.io/>) wh

Libvirt dnsmasq oddity

2023-01-15 Thread Charles Curley
I seem to have hit an oddity in how dnsmasq operates for libvirt. I have two host machines each with several guests. One of those is also the local samba server. Guests on the non-samba server can resolve the samba server's host name correctly, so far without fail. Guests on the samba server

Re: Libvirt

2022-12-26 Thread Marko Horn
>> 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

Re: Libvirt

2022-12-26 Thread Gk Gk
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
>> >> 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 ? >

Re: Libvirt

2022-12-26 Thread Gk Gk
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 measur

Re: Libvirt

2022-12-26 Thread Marko Horn
: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 hea

Libvirt

2022-12-26 Thread 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

Failed to connect socket to '/var/run/libvirt/virtnetworkd-sock': No such file or directory

2022-12-20 Thread 陈新隆
error: Failed to attach interface error: Failed to connect socket to '/var/run/libvirt/virtnetworkd-sock': No such file or directory ``` According to https://libvirt.org/daemons.html there's two arch of daemon which is "monolithic" and "modular" , so I was wondering if I conne

qemu flags on libvirt attach-device

2022-12-14 Thread Miguel Ping
Hello, Is it possible to supply additional flags to libvirt attach-device, similar to libvirt qemu passthrough ( https://libvirt.org/kbase/qemu-passthrough-security.html#xml-document-additions)? The passthrough appears to work only for domain creation. I'm particularly interested

Fwd: Libvirt slow after a couple of months uptime

2022-11-18 Thread André Malm
   0,14    0  12812 [eventfd] Any ideas on how to find the root cause of this? Vidarebefordrat meddelande ---- Ämne: Re: Libvirt slow after a couple of months uptime Datum: Fri, 11 Nov 2022 08:02:19 +0100 Från: André Malm Till: Peter Krempa Kopia: libvirt-users@redhat.c

Re: Libvirt slow after a couple of months uptime

2022-11-10 Thread André Malm
([{fd=5, revents=POLLOUT}, {fd=6, revents=POLLIN}]) Unfortunately this bit doesn't help much. Virsh' is simply a client which does RPC over a unix socket to the libvirt/virtqemud daemon based on your host configuration. This means that what you straced was simply a event loop waiting

Re: Why host device disappear in libvirt doman xml?

2022-09-29 Thread Michal Prívozník
[Once again, please keep the list on CC] On 9/29/22 04:59, 陈新隆 wrote: > Thanks for the detail explanation, it's very helpful.  > > I guess : > 1. virsh dumpxml outputs the live xml(or active xml)  Yes, if domain is running then it outputs the live XML, otherwise it outputs the inactive XML. For

Re: Why host device disappear in libvirt doman xml?

2022-09-28 Thread Michal Prívozník
to apply the latest xml ? I'm not sure what you mean. Editing XML manually is different to using libvirt APIs to detach hostdevs. Here's how it works: 1) a domain is defined (say using virsh define file.xml), libvirt parses this XML, keeps it in a memory and stores it "somewhere"

Re: [Question] Should libvirt update live xml accordingly when guest mac is changed?

2022-09-26 Thread Michal Prívozník
On 8/30/22 05:22, Fangge Jin wrote: > Hi > > I met an issue when testing trustGuestRxFilters: > Attach a macvtap interface with trustGuestRxFilters=’yes’ to vm, then > change interface mac address in vm. > Should libvirt update interface mac in live vm xml accordingly? If

Re: Why host device disappear in libvirt doman xml?

2022-09-26 Thread Michal Prívozník
On 9/26/22 15:06, 陈新隆 wrote: > > <https://stackoverflow.com/posts/73854544/timeline> > > I'm using Kubevirt to manage my virtual machine instances. When I using > Kubevirt to create a vm(with two GPUs), kubevirt will generate a libvirt > guest domain xml for this vm

Why host device disappear in libvirt doman xml?

2022-09-26 Thread 陈新隆
<https://stackoverflow.com/posts/73854544/timeline> I'm using Kubevirt to manage my virtual machine instances. When I using Kubevirt to create a vm(with two GPUs), kubevirt will generate a libvirt guest domain xml for this vm which includes two GPUs, the domain xml as

Re: Libvirt slow after a couple of months uptime

2022-09-19 Thread Peter Krempa
}, > {fd=6, events=POLLIN}], 2, -1) = 2 ([{fd=5, > revents=POLLOUT}, {fd=6, revents=POLLIN}]) Unfortunately this bit doesn't help much. Virsh' is simply a client which does RPC over a unix socket to the libvirt/virtqemud daemon based on your host configuration. This means that wha

Libvirt slow after a couple of months uptime

2022-09-16 Thread André Malm
fixes it a restart takes around 1 minute where ebtables rules etc are recreated and it does interrupt the service. What could cause this? How would I troubleshoot this? I'm running Ubuntu 22.04 / libvirt 8.0.0 with 70 active VM’s on a 16/32 core machine with 256GB of ram, CPU is below 50

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

2022-09-08 Thread Yalan Zhang
e 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, the unplug won't complete, so qemu > > > (and libvirt) still show the device as

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

2022-09-08 Thread Peter Krempa
est OS isn't running yet, the unplug won't complete, so qemu > > (and libvirt) still show the device as plugged into the guest. > > > > virsh reports success on the unplug because unplugging a device is done > > asynchronously - the "success" means "libvirt

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

2022-09-08 Thread Yalan Zhang
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, the unplug won't complete, so qemu > (and libvirt) still show the

CPU features/flags - host vs. guest (Libvirt/QEMU/KVM)

2022-09-07 Thread kAja Ziegler
/flags are checked on the hypervisor (host), but are not propagated to the guest - e.g. acpi, ds, monitor, pbe, tm, etc. - some are masked/disabled [(not) supported] by Libvirt, others by KVM/QEMU - what features/flags active for/in the guest limit certain virtualization behavior/options such as live

[Question] Should libvirt update live xml accordingly when guest mac is changed?

2022-08-29 Thread Fangge Jin
Hi I met an issue when testing trustGuestRxFilters: Attach a macvtap interface with trustGuestRxFilters=’yes’ to vm, then change interface mac address in vm. Should libvirt update interface mac in live vm xml accordingly? If not, vm network will be broken after managedsaving and restoring vm. BR

Re: Libvirt web application

2022-08-25 Thread Callie Martin
We've asked the user to send an email to this list again. Thanks, On Thu, Aug 25, 2022 at 11:51 AM Daniel P. Berrangé wrote: > On Thu, Aug 25, 2022 at 05:13:37PM +0200, Erik Skultety wrote: > > On Thu, Aug 25, 2022 at 10:39:14AM -0400, Callie Martin wrote: > > > Please see below for the user's

Re: Libvirt web application

2022-08-25 Thread Daniel P . Berrangé
On Thu, Aug 25, 2022 at 05:13:37PM +0200, Erik Skultety wrote: > On Thu, Aug 25, 2022 at 10:39:14AM -0400, Callie Martin wrote: > > Please see below for the user's information: > > > > Sender's Name: Chatnaut > > Subject: Request for Libvirt's Web Application Listing > > Sent From:

Re: Libvirt web application

2022-08-25 Thread Erik Skultety
On Thu, Aug 25, 2022 at 10:39:14AM -0400, Callie Martin wrote: > Please see below for the user's information: > > Sender's Name: Chatnaut > Subject: Request for Libvirt's Web Application Listing > Sent From: supp...@chatnaut.com I don't any such email on the list, so it could have been

Re: Libvirt web application

2022-08-25 Thread Callie Martin
the following message on Red Hat's Twitter account. Can > anyone > > on this list confirm if libvirt-users@redhat.com is 1) active and 2) the > > right contact information for this user to reach out to? > > Hi, > yes, libvirt-users@redhat.com is an active mailing list and the

Re: Libvirt web application

2022-08-25 Thread Callie Martin
itter account. Can >> anyone >> > on this list confirm if libvirt-users@redhat.com is 1) active and 2) >> the >> > right contact information for this user to reach out to? >> >> Hi, >> yes, libvirt-users@redhat.com is an active mailing list and the

Re: Libvirt web application

2022-08-25 Thread Erik Skultety
On Wed, Aug 17, 2022 at 09:49:23AM -0400, Callie Martin wrote: > Hello, > > We received the following message on Red Hat's Twitter account. Can anyone > on this list confirm if libvirt-users@redhat.com is 1) active and 2) the > right contact information for this user to reach o

Libvirt web application

2022-08-25 Thread Callie Martin
Hello, We received the following message on Red Hat's Twitter account. Can anyone on this list confirm if libvirt-users@redhat.com is 1) active and 2) the right contact information for this user to reach out to? [image: image.png] Thanks, -- Callie Martin She / Her / Hers Manager, Social

Re: Libvirt virsh : Error starting network, cannot execute binary /usr/sbin/iptables

2022-08-18 Thread Pascal
the virtual network. Also my guests are back in virt-manager, don't know exactly what happened (.xml files are in |/etc/libvirt/qemu/|) but issue was gone after reinstalling paskages. I can see /usr/sbin/iptables  is a link to etc/alternatives/iptables which is a link to /usr/sbin/iptables-nft

Re: Libvirt virsh : Error starting network, cannot execute binary /usr/sbin/iptables

2022-08-16 Thread Laine Stump
On 8/15/22 1:00 PM, Pascal wrote: Hi, I am a bit lost and hope someone can help me. I am running Debian bookworm (testing) with last updates. $ sudo apt policy libvirt-daemon libvirt-daemon:   Installé : 8.5.0-1   Candidat : 8.5.0-1  Table de version :  *** 8.5.0-1 100     100 /var

Libvirt virsh : Error starting network, cannot execute binary /usr/sbin/iptables

2022-08-16 Thread Pascal
Hi, I am a bit lost and hope someone can help me. I am running Debian bookworm (testing) with last updates. $ sudo apt policy libvirt-daemon libvirt-daemon:   Installé : 8.5.0-1   Candidat : 8.5.0-1  Table de version :  *** 8.5.0-1 100     100 /var/lib/dpkg/status I am unable to start

Re: libvirt can't setup simple bridged network?

2022-08-15 Thread Laine Stump
On 8/15/22 10:11 AM, Ian Pilcher wrote: I feel like I'm taking crazy pills!  I'm reading the libvirt network XML format documentation[1], and I can't figure out how to create a simple bridged network - no NAT, no routing, no OVS, no  macvtap, etc.  I.e., just a Linux bridge with a single

Re: libvirt can't setup simple bridged network?

2022-08-15 Thread Nicholas Hardiman
Good question. I'm a bit of a libvirt dummy - is there a one-step way? I created mine in two steps, with nmcli and virsh. # create the bridge "pubbr0" and plug in interface "enp2s0f0" nmcli con add ifname pubbr0 type bridge con-name pubbr0 nmcli con add type bridge-slave if

Re: libvirt can't setup simple bridged network?

2022-08-15 Thread Bryan Smith
I'm reading the libvirt network XML > format documentation[1], and I can't figure out how to create a simple > bridged network - no NAT, no routing, no OVS, no macvtap, etc. I.e., > just a Linux bridge with a single physical interface attached. > > None of the 3 scenarios li

libvirt can't setup simple bridged network?

2022-08-15 Thread Ian Pilcher
I feel like I'm taking crazy pills! I'm reading the libvirt network XML format documentation[1], and I can't figure out how to create a simple bridged network - no NAT, no routing, no OVS, no macvtap, etc. I.e., just a Linux bridge with a single physical interface attached. None of the 3

Re: Can RHEL7 VM run remote libvirt commands to Fedora36 host?

2022-08-01 Thread Martin Kletzander
: >I have a test environment that use to work but no longer does. My >laptop is Fedora36 (libvirt version 8.1.0.2) while the VMs it spawns are >RHEL7 (max libvirt version is 4.5.0). The source of my problem >seems to be that RHEL7 libvirt needs rw socket /var/run/libvirt/libvirt-sock

Re: Can RHEL7 VM run remote libvirt commands to Fedora36 host?

2022-08-01 Thread Carol Bouchard
14:30PM -0400, Carol Bouchard wrote: > >I have a test environment that use to work but no longer does. My > >laptop is Fedora36 (libvirt version 8.1.0.2) while the VMs it spawns are > >RHEL7 (max libvirt version is 4.5.0). The source of my problem > >seems to be that RHEL7 lib

Re: Can RHEL7 VM run remote libvirt commands to Fedora36 host?

2022-08-01 Thread Martin Kletzander
On Thu, Jul 28, 2022 at 02:14:30PM -0400, Carol Bouchard wrote: I have a test environment that use to work but no longer does. My laptop is Fedora36 (libvirt version 8.1.0.2) while the VMs it spawns are RHEL7 (max libvirt version is 4.5.0). The source of my problem seems to be that RHEL7 libvirt

Can RHEL7 VM run remote libvirt commands to Fedora36 host?

2022-07-28 Thread Carol Bouchard
I have a test environment that use to work but no longer does. My laptop is Fedora36 (libvirt version 8.1.0.2) while the VMs it spawns are RHEL7 (max libvirt version is 4.5.0). The source of my problem seems to be that RHEL7 libvirt needs rw socket /var/run/libvirt/libvirt-sock which no longer

Re: how to get vm uptime through libvirt api

2022-07-26 Thread Jiatong Shen
> > On Tue, Jul 26, 2022 at 10:27:19AM +0200, Michal Prívozník wrote: > > On 7/26/22 10:07, Jiatong Shen wrote: > > > thank you very much for reply. I have got another question which is off > > > topic. > > > Am I able to get vm's process id through lib

Re: how to get vm uptime through libvirt api

2022-07-26 Thread Jiatong Shen
> Am I able to get vm's process id through libvirt api? > > Unfortunately, no. We specifically try to avoid telling users this > information so that they are not tempted to go behind libvirt's back and > interact with QEMU directly (which can lead to a split brain scenario - >

Re: how to get vm uptime through libvirt api

2022-07-26 Thread Daniel P . Berrangé
On Tue, Jul 26, 2022 at 10:27:19AM +0200, Michal Prívozník wrote: > On 7/26/22 10:07, Jiatong Shen wrote: > > thank you very much for reply. I have got another question which is off > > topic. > > Am I able to get vm's process id through libvirt api? > > Unfortunate

Re: how to get vm uptime through libvirt api

2022-07-26 Thread Michal Prívozník
On 7/26/22 10:07, Jiatong Shen wrote: > thank you very much for reply. I have got another question which is off > topic. > Am I able to get vm's process id through libvirt api? Unfortunately, no. We specifically try to avoid telling users this information so that they are not tempted to

Re: how to get vm uptime through libvirt api

2022-07-26 Thread Jiatong Shen
thank you very much for reply. I have got another question which is off topic. Am I able to get vm's process id through libvirt api? Thank you very much. Best, Norman On Tue, Jul 26, 2022 at 4:04 PM Michal Prívozník wrote: > On 7/26/22 09:48, Jiatong Shen wrote: > > Thank you

Re: how to get vm uptime through libvirt api

2022-07-26 Thread Michal Prívozník
On 7/26/22 09:48, Jiatong Shen wrote: > Thank you very much for reply. Initially my thought of uptime is equal > to executing to `uptime` inside a virtual machine.  > as for the second case, where virtual machine is paused for a period, > does libvirt expose an api to get how long

Re: how to get vm uptime through libvirt api

2022-07-26 Thread Jiatong Shen
Thank you very much for reply. Initially my thought of uptime is equal to executing to `uptime` inside a virtual machine. as for the second case, where virtual machine is paused for a period, does libvirt expose an api to get how long qemu process has existed? thank you. Best, Norman On Tue

Re: how to get vm uptime through libvirt api

2022-07-26 Thread Michal Prívozník
On 7/26/22 08:49, Jiatong Shen wrote: > Hello community, > >    I would like to know if there is an api to get a virtual machine's > uptime. Thank you in advance for the help. There's no such API because not even qemu guest agent has an explicit API for that. However, it has an API to execute

how to get vm uptime through libvirt api

2022-07-26 Thread Jiatong Shen
Hello community, I would like to know if there is an api to get a virtual machine's uptime. Thank you in advance for the help. -- Best Regards, Jiatong Shen

libvirt and Ledger Nano or hotswappable single USB port with virt-manager - almost there?

2022-06-28 Thread Anonymous Aardvark
p so I cannot just forward a controller. I have learned that although my temporary fallback Virtualbox allows forwarding by vendor ID without a product ID <https://www.reddit.com/r/ledgerwallet/comments/mf872x/how_can_you_run_ledger_live_nano_wallet_on/>, and I have seen some libvir

Re: [Libvirt][emulator-cores][dpdk] Emulatorpin cpuset best practices

2022-06-07 Thread Martin Kletzander
On Wed, Jun 01, 2022 at 05:57:14PM -0400, Laurent Dumont wrote: Hey folks, I am curious to understand a bit more the core use of the emulatorpin CPUs with libvirt. For example : qemu launched like this is one process with (at least, but let's omit that) 5 threads

[Libvirt][emulator-cores][dpdk] Emulatorpin cpuset best practices

2022-06-01 Thread Laurent Dumont
Hey folks, I am curious to understand a bit more the core use of the emulatorpin CPUs with libvirt. For example : In this case : - The VM has 4 vCPUs. - Each of the core is pinned to a physical/thread core - 34,14,10,30 - The emulatorpin is also attached

Re: Help with libvirt

2022-04-19 Thread Francesc Guasch
that are on the server containing qemu/kvm/libvirt. The problem is that I can't access the virtual machines from an external network but I can access them inside the server. I would like to know what would be the best way since we want to have a single public ip and be able to have a reverse proxy to access

Re: Libvirt vs QEMU benefits

2022-04-19 Thread Daniel P . Berrangé
On Wed, Apr 06, 2022 at 12:44:37PM +, M, Shivakumar wrote: > Hello, > > For one of our case validation, we were using direct QEMU commands before for > VM creation as it was easier to configure the VMs. Inside VM we do run the > real-time latency test. > Recently we s

Re: Help with libvirt

2022-04-13 Thread Martin Kletzander
that are on the server containing qemu/kvm/libvirt. The problem is that I can't access the virtual machines from an external network but I can access them inside the server. I would like to know what would be the best way since we want to have a single public ip and be able to have a reverse proxy

Re: Libvirt Daemon Question

2022-04-13 Thread Martin Kletzander
On Fri, Apr 01, 2022 at 05:56:06PM -0400, Michael Espinoza wrote: Hi I’ve been googling this for a bit with no luck. Is there a way of determining what mode an already running libvirt daemon is running in.(session or system) From the docs it sounded like it was determined by what user started

Help with libvirt

2022-04-13 Thread Eduardo Kiassucumuca
Good morning I'm Eduardo, a computer science student and I'm doing a final course work focused on virtualization. The work consists of creating virtual machines on a server and allowing ssh access to the virtual machines that are on the server containing qemu/kvm/libvirt. The problem is that I

Libvirt Daemon Question

2022-04-13 Thread Michael Espinoza
Hi I’ve been googling this for a bit with no luck. Is there a way of determining what mode an already running libvirt daemon is running in.(session or system) From the docs it sounded like it was determined by what user started the daemon. But in a test node I set up, I have libvirtd running

Libvirt vs QEMU benefits

2022-04-06 Thread M, Shivakumar
Hello, For one of our case validation, we were using direct QEMU commands before for VM creation as it was easier to configure the VMs. Inside VM we do run the real-time latency test. Recently we switched to libvirt for the VM creation and deletion. Surprisingly, we do see a significant

Re: Debugging hanging libvirt

2022-04-04 Thread Michal Prívozník
; >   > > By the way, you mentioned that there is a libvirt version where QEMU > process gets its own dedicated event loop. Would you mind sharing this > libvirt version with me? It's since libvirt-6.2.0 but IIUC you're running on unsupported CentOS 7 which doesn't have that release available. Michal

Re: Debugging hanging libvirt

2022-04-01 Thread Tobias Hofmann (tohofman)
Hi Daniel, Thank you to Peter and you for the analysis – that was very helpful. Indeed, it can happen that we restart the firewall during this scenario on our system so I think I can debug from here. By the way, you mentioned that there is a libvirt version where QEMU process gets its own

Re: Debugging hanging libvirt

2022-04-01 Thread Daniel P . Berrangé
would be more > confusing than it would actually help to understand the problem. In > general, I’m wondering what approach you should follow to debug why > libvirt gets stuck. > Online I’ve read that you should run this command: `# gdb -batch -p > $(pidof libvirtd) -ex 't a a bt f'`. I’

Re: Debugging hanging libvirt

2022-04-01 Thread Peter Krempa
ould be more > confusing than it would actually help to understand the problem. In general, > I’m wondering what approach you should follow to debug why libvirt gets stuck. > Online I’ve read that you should run this command: `# gdb -batch -p $(pidof > libvirtd) -ex 't a a bt f'`. I’v

Debugging hanging libvirt

2022-04-01 Thread Tobias Hofmann (tohofman)
should follow to debug why libvirt gets stuck. Online I’ve read that you should run this command: `# gdb -batch -p $(pidof libvirtd) -ex 't a a bt f'`. I’ve run that command and attached the output to this mail. However, I have to admit that I have no idea what to do with it. System related info

Re: How to make the libvirt VM installed under the regular user boot during the system bootup?

2022-03-21 Thread Martin Kletzander
/libvirt/qemu/autostart/ total 0 lrwxrwxrwx 1 user user 47 Apr 30 16:59 vm.xml -> /home/user/.config/libvirt/qemu/vm.xml $ This is still using the session daemon, which only starts when you connect to it or when you log in with the session daemon service setup to start automatically. There are

  1   2   3   4   5   6   7   8   9   10   >