# left my old dirs as-is (bad setup intentionally) after upgrade
$ dpkg -l libvirt-bin | tee
ii libvirt-bin 1.2.2-0ubuntu13.1.22
$ virsh start kvmguest-testgachannel
testgachannel.org.qemu.guest_agent.0,server,nowait: Failed to bind socket: Permission denied
$ ll /var/lib/libvirt/qemu/
drwxr-xr-x 3 ubuntu ubuntu 4096 Aug 28 11:12 channel/
drwxr-xr-x 2 ubuntu kvm 4096 Aug 28 11:19 target/
# Installs the dirs correctly if not avail (Default case)
$ rm -rf /var/lib/libvirt/qemu/channel
$ apt install --reinstall libvirt-bin
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libfreetype6 os-prober
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/2070 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 28258 files and directories currently installed.)
Preparing to unpack .../libvirt-bin_1.2.2-0ubuntu13.1.22_amd64.deb ...
libvirt-bin stop/waiting
Unpacking libvirt-bin (1.2.2-0ubuntu13.1.22) over (1.2.2-0ubuntu13.1.22) ...
Processing triggers for libc-bin (2.19-0ubuntu6.13) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up libvirt-bin (1.2.2-0ubuntu13.1.22) ...
libvirt-bin start/running, process 28874
Setting up libvirt-bin dnsmasq configuration.
# left my old dirs as-is (bad setup intentionally) after upgrade .1.22 testgachannel org.qemu. guest_agent. 0,server, nowait: Failed to bind socket: Permission denied libvirt/ qemu/
$ dpkg -l libvirt-bin | tee
ii libvirt-bin 1.2.2-0ubuntu13
$ virsh start kvmguest-
testgachannel.
$ ll /var/lib/
drwxr-xr-x 3 ubuntu ubuntu 4096 Aug 28 11:12 channel/
drwxr-xr-x 2 ubuntu kvm 4096 Aug 28 11:19 target/
# Installs the dirs correctly if not avail (Default case) libvirt/ qemu/channel bin_1.2. 2-0ubuntu13. 1.22_amd64. deb ... 0ubuntu13. 1.22) over (1.2.2- 0ubuntu13. 1.22) ... 0ubuntu13. 1.22) ...
$ rm -rf /var/lib/
$ apt install --reinstall libvirt-bin
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libfreetype6 os-prober
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/2070 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 28258 files and directories currently installed.)
Preparing to unpack .../libvirt-
libvirt-bin stop/waiting
Unpacking libvirt-bin (1.2.2-
Processing triggers for libc-bin (2.19-0ubuntu6.13) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up libvirt-bin (1.2.2-
libvirt-bin start/running, process 28874
Setting up libvirt-bin dnsmasq configuration.
$ ll /var/lib/ libvirt/ qemu/channel/ target/
total 8
drwxr-xr-x 2 libvirt-qemu kvm 4096 Sep 8 07:23 ./
drwxr-xr-x 3 libvirt-qemu kvm 4096 Sep 8 07:23 ../
# Now starting fine testgachannel testgachannel started
$ virsh start kvmguest-
Domain kvmguest-
# Rule created with namespace d/libvirt/ libvirt- 4ec6a091- 8aef-4bab- b8a4-ca46e91ed1 8f.files libvirt/ qemu/channel/ target/ kvmguest- testgachannel. **" rw,
$ grep target /etc/apparmor.
owner "/var/lib/