I installed kvm years ago via the Yast software roles by installing the patterns under the virt section. It worked like this fine for years as I used virt manager to create and manage the vm/s.
The original laptop I had this on died, it was and is a tumbleweed install from about five years ago so I just moved the drive over to another host. The issue is virt-manager doesn’t list the new wifi card in the drown down for interfaces. It list the old one which was wlp3s0 and the current one is wlp1s0. My VM/s were using the wireless interface as a nat bridge to conntect to the internet.
I’ve tried to research this and found that others have had this issue to but no resolve even after a few bug reports. Virish commands don’t seem to work either, I never used them but from the commands I’ve found during this research they don’t work anymore. Seems like something changed in libvert. To be clear I don’t know if the virish commands ever worked as I just used virt manager.
I can boot my vm/s but I can’t assign the correct interfaces as they do not show up. Is there a config file for libvert or virt manager that needs to be adjusted. I figured libvert would have picked these hardware changes up.
I’m attaching a jpeg of me trying to create another vm and wlp3s0 is the only option but that’s the old interface, the new one is wlp1s0 as you can see below from a “ip a” ouput.
This is a up to date TW install.
virsh iface-list
error: Failed to list interfaces
error: binary '/usr/sbin/virtinterfaced' does not exist in $PATH: No such file or directory
wlp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether e8:bf:b8:72:b3:93 brd ff:ff:ff:ff:ff:ff
altname wlxe8bfb872b393
inet 192.168.1.161/24 brd 192.168.1.255 scope global dynamic noprefixroute wlp1s0
Sorry about the path error above. Here’s the issue running from sudo.
sudo virsh iface-list --all
[sudo] password for root:
error: Failed to list active interfaces
error: this function is not supported by the connection driver: virConnectNumOfInterfaces
sudo virsh net-list
[sudo] password for root:
Name State Autostart Persistent
--------------------------------------------
default active yes yes
I changed the wlp3s0 to the wlp1s0 then imported it.
virsh net-define default.xml
Then
virsh net-destroy default
virsh net-start default
Now it’s working and shows up in the device list. Grok had a bunch of other stuff regarding bridges and such but for me all I needed to do was change the interface reference so that virbr0.
Thanks, you’re always are so helpful. I appreciate you.
Curious, why this doesn’t work. I’ve never used it but ran across it on my searching for answers. Did libvert change from using some older way of communicating to a systemd sockets or something…I’m seeing people say this.
virsh iface-list --all
error: Failed to list active interfaces
error: this function is not supported by the connection driver: virConnectNumOfInterfaces