Score:0

How to attach a system-defined libvirt’s network to a VM run as a regular user (not sudo) using Cockpit?

id flag

I want to use cockpit-machines to run VMs but:

-I don’t want my Cockpit’s logged, regular user to be able to escalate privileges

-I want these VMs to be attached to a virtual bridged network, which is not visible as a regular user

So my question is: Is it possible to attach to virbr1 a VM run as a regular user? If so, how could it be possible? I don’t mind using shell commands if Cockpit doesn’t give the option.

Thanks!!

PS: To clarificate…my problem is that if I do sudo virsh net-list I see my network running but if I do vish net-list I don’t see anything. My system is Fedora 34 and I use Cockpit 250

Michael Hampton avatar
cz flag
Why don't you just grant the user access to manage the system virtual machines/networks (and nothing else) without requiring sudo? This is [pretty trivial](https://serverfault.com/a/739614/126632).
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.