陈新隆
2022-Dec-20 14:14 UTC
Failed to connect socket to '/var/run/libvirt/virtnetworkd-sock': No such file or directory
Hi team, i'm trying to hotplug an interface to guest, after execute the command below I got an error : ``` virsh attach-interface --domain 1 --type network --source net1 --model virtio-non-transitional --target /sys/devices/virtual/net/net1/tap603053 --mac ac:de:48:77:a2:32 --config --live 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 connect to the monolithic daemon (libvirtd) to attach the interface should works. Then I execute the command below : ``` bash-4.4# virsh -c qemu:///system?socket=/var/run/libvirt/libvirt-sock attach-interface --domain 1 --type network --source net1 --model virtio-non-transitional --target /sys/devices/virtual/net/net1/tap603053 --mac ac:de:48:77:a2:32 --config --live Authorization not available. Check if polkit service is running or see debug message for more information. error: Failed to attach interface error: Failed to connect socket to '/var/run/libvirt/virtnetworkd-sock': No such file or directory ``` Still, I got the same error. My question is : 1. How should I hotplug/unplug an interface without virtnetworkd ? 2. Am I right about the guess of "If I use monolithic daemon then I can hotplug/unplug an interface without virtnetworkd ? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20221220/7cd312ce/attachment.htm>