Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Libvirt - Normal User Lost Permissions to virbr0
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Perdignus
n00b
n00b


Joined: 29 Mar 2013
Posts: 42

PostPosted: Sun Feb 17, 2019 12:53 am    Post subject: [SOLVED] Libvirt - Normal User Lost Permissions to virbr0 Reply with quote

I emerged/upgraded world this morning and installed the 4.20.10 kernel, rebooted and my libvirt VM running as a normal user and using virbr0 was unable to start with a complaint about "failed to communicate with bridge helper".

I figured it was due to a new version and I was on ~amd64 version 5.0.0, so I disabled ~amd64 and went back to version 4.9.0 but that didn't help so I figured it was the new kernel so I went back to 4.20.5 but that also didn't help.

I now have the VM running as root using virbr0 but I'm just confused about why access to virbr0 stopped working for my normal account.

My /etc/qemu/bridge.conf didn't change and I have "allow virbr0" in it and my normal user belongs to the qemu group.

Here's the exact error:

Error starting domain: internal error: /usr/libexec/qemu-bridge-helper --use-vnet --br=virbr0 --fd=20: failed to communicate with bridge helper: Transport endpoint is not connected
stderr=failed to create tun device: Operation not permitted


Thanks,
Perdignus.


Last edited by Perdignus on Tue Feb 26, 2019 3:27 am; edited 1 time in total
Back to top
View user's profile Send private message
DevLinux
n00b
n00b


Joined: 29 Jul 2015
Posts: 8

PostPosted: Tue Feb 26, 2019 3:03 am    Post subject: Reply with quote

Not sure if you've found your answer, but I ran into this tonight, so I'm posting the answer just in case somebody else runs into this.

Apparently, the qemu update overwrites the file and doesn't reset the permission.

To fix the problem, run the following:
Code:
chmod u+s /usr/libexec/qemu-bridge-helper


A further explanation can be found here:
https://wiki.qemu.org/Features/HelperNetworking#Setup
Back to top
View user's profile Send private message
DevLinux
n00b
n00b


Joined: 29 Jul 2015
Posts: 8

PostPosted: Tue Feb 26, 2019 3:05 am    Post subject: Reply with quote

I also found this after posting the above which also looks to be relevant.

https://bugs.gentoo.org/677152
Back to top
View user's profile Send private message
Perdignus
n00b
n00b


Joined: 29 Mar 2013
Posts: 42

PostPosted: Tue Feb 26, 2019 3:27 am    Post subject: [ Solved ] Libvirt - Normal User Lost Permissions to virbr0 Reply with quote

Nice find! That did the trick and resolved the issue for me. Thanks you very much for the followup post.

Patrick.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum