Skip to content

virsh: add sudo to an example#22009

Open
Managor wants to merge 1 commit intomainfrom
virsh
Open

virsh: add sudo to an example#22009
Managor wants to merge 1 commit intomainfrom
virsh

Conversation

@Managor
Copy link
Copy Markdown
Member

@Managor Managor commented Apr 12, 2026

The only example I can test.

@github-actions github-actions Bot added page edit Changes to an existing page(s). review needed Prioritized PRs marked for reviews from maintainers. labels Apr 12, 2026
@FazleArefin
Copy link
Copy Markdown
Member

FazleArefin commented Apr 15, 2026

Based on my extensive testing a few months ago, none of the virsh commands require sudo explicitly if the virtualization groups are setup properly (user should be a member of the group libvirt) and the correct URI for the user is set up as well.

This command should show you the URI being used:

virsh uri

I have attached my personal notes (not very tidy but very comprehensive) if you want to do a deep dive on your host.
qemu-kvm-installation.md

@Managor
Copy link
Copy Markdown
Member Author

Managor commented Apr 19, 2026

How I've been trying to document is by having as little outside configuration as possible. If the package that the command comes with doesn't set up the groups or the URI for the connection to work, it's better to document a command that works. In my case running sudo just makes virsh command work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

page edit Changes to an existing page(s). review needed Prioritized PRs marked for reviews from maintainers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants