Package: libvirt-daemon Version: 1.2.9-9 Despite having configured /etc/qemu/bridge.conf appropriately, libvirt fails when I try to use bridging from a QEMU user session instance. bridging works fine when running QEMU directly. Using briding from a QEMU user session through libvirt works fine in other distributions. (Fedora)
Surely libvirt should just be executing QEMU, then QEMU should use qemu-bridge-helper as it is supposed to? puzzlehunt@kvm04:~$ virsh -c qemu:///session create test1.xml error: Failed to create domain from test1.xml error: failed to retrieve file descriptor for interface: Transport endpoint is not connected puzzlehunt@kvm04:~$ cat test1.xml <domain type='kvm'> <name>test1</name> <uuid>66c9a189-d200-43a7-8338-5d2fdaab963b</uuid> <memory unit='KiB'>524288</memory> <currentMemory unit='KiB'>524288</currentMemory> <vcpu placement='static'>1</vcpu> <os> <type arch='x86_64' machine='pc-i440fx-2.1'>hvm</type> <boot dev='hd'/> </os> <features> <acpi/> <apic/> <pae/> </features> <cpu mode='custom' match='exact'> <model fallback='allow'>core2duo</model> </cpu> <clock offset='utc'> <timer name='rtc' tickpolicy='catchup'/> <timer name='pit' tickpolicy='delay'/> <timer name='hpet' present='no'/> </clock> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <devices> <emulator>/usr/bin/kvm</emulator> <disk type='file' device='disk'> <driver name='qemu' type='raw'/> <source file='/home/puzzlehunt/test1.img'/> <target dev='hda' bus='ide'/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk> <controller type='usb' index='0' model='ich9-ehci1'> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x7'/> </controller> <controller type='usb' index='0' model='ich9-uhci1'> <master startport='0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0' multifunction='on'/> </controller> <controller type='usb' index='0' model='ich9-uhci2'> <master startport='2'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x1'/> </controller> <controller type='usb' index='0' model='ich9-uhci3'> <master startport='4'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x2'/> </controller> <controller type='pci' index='0' model='pci-root'/> <controller type='ide' index='0'> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/> </controller> <interface type='network'> <mac address='52:54:00:5a:e7:d7'/> <source network='helper-bridge'/> <model type='virtio'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </interface> <serial type='pty'> <target port='0'/> </serial> <console type='pty'> <target type='serial' port='0'/> </console> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </memballoon> </devices> </domain> puzzlehunt@kvm04:~$ cat /etc/qemu/bridge.conf allow virbr0 puzzlehunt@kvm04:~$ ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br0 state UP group default qlen 1000 link/ether 00:19:b9:b1:c1:68 brd ff:ff:ff:ff:ff:ff 3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether 00:19:b9:b1:c1:6a brd ff:ff:ff:ff:ff:ff 4: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default link/ether 00:19:b9:b1:c1:68 brd ff:ff:ff:ff:ff:ff inet 128.237.157.26/24 brd 128.237.157.255 scope global br0 valid_lft forever preferred_lft forever inet6 fe80::219:b9ff:feb1:c168/64 scope link valid_lft forever preferred_lft forever 5: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default link/sit 0.0.0.0 brd 0.0.0.0 6: he-ipv6@NONE: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1480 qdisc noqueue state UNKNOWN group default link/sit 128.237.157.26 peer 216.66.22.2 inet6 2001:470:7:361::2/64 scope global valid_lft forever preferred_lft forever inet6 fe80::80ed:9d1a/64 scope link valid_lft forever preferred_lft forever 7: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default link/ether 52:54:00:57:7d:4d brd ff:ff:ff:ff:ff:ff inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0 valid_lft forever preferred_lft forever inet6 2001:470:8:361::1/64 scope global valid_lft forever preferred_lft forever inet6 fe80::5054:ff:fe57:7d4d/64 scope link valid_lft forever preferred_lft forever 8: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN group default qlen 500 link/ether 52:54:00:57:7d:4d brd ff:ff:ff:ff:ff:ff 9: vnet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br0 state UNKNOWN group default qlen 500 link/ether fe:00:80:ed:9d:11 brd ff:ff:ff:ff:ff:ff inet6 fe80::fc00:80ff:feed:9d11/64 scope link valid_lft forever preferred_lft forever puzzlehunt@kvm04:~$ stat /dev/kvm File: ‘/dev/kvm’ Size: 0 Blocks: 0 IO Block: 4096 character special file Device: 5h/5d Inode: 10419 Links: 1 Device type: a,e8 Access: (0666/crw-rw-rw-) Uid: ( 0/ root) Gid: ( 104/ kvm) Access: 2015-07-02 21:20:04.487604571 -0400 Modify: 2015-07-02 21:20:04.487604571 -0400 Change: 2015-07-03 01:23:08.603211796 -0400 Birth: - puzzlehunt@kvm04:~$ qemu-system-x86_64 -nographic --enable-kvm -net nic -net bridge,br=virbr0 [successful run until I close it] QEMU: Terminated puzzlehunt@kvm04:~$ echo $? 0 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org