Skip to content

One Zero One

Code for Your Node

  • Home
  • Posts
  • Contact

Making Libvirt User-friendly in AlmaLinux

  1. Home
  2. Making Libvirt User-friendly in AlmaLinux
  • Andy Lievertz
  • January 6, 2022
  • 0
Posted in Linux, Systems AdministrationTagged in almalinux, centos, kernel virtualization modules, kvm, libvirt, libvirtd, linux, red hat enterprise linux, rhel, URI

In AlmaLinux (and Red Hat Enterprise Linux, Rocky Linux, and CentOS), libvirtd defaults to the user URI. When a regular user executes virsh list, they will see only the KVM virtual machines accessible to their user and will not see those started by the system. You can change this behavior so that regular users can list and interact with virtual machines in the system URI.

  1. Add your regular user(s) to the kvm, libvirt, and qemu groups.
  2. Uncomment all lines beginning with unix_sock in /etc/libvirt/libvirtd.conf.
  3. Add the following to /etc/libvirt/libvirt.conf:

    uri_default = "qemu:///system"
  4. Create /etc/profile.d/libvirt.sh containing:

    export LIBVIRT_DEFAULT_URI="qemu:///system"

  • Share:  
  • Facebook
  • Twitter
  • Google+

Andy Lievertz

View all posts by Andy Lievertz | Website

Previous post

Example AlmaLinux Kickstart

Next post

Demystifying Microsoft Endpoint Manager Win32 App Deployments

Related Posts

Update Visual Studio Code Updates Settings with PowerShell

  • Andy Lievertz
  • June 2, 2022
  • 0

On Windows systems, Visual Studio Code settings are stored in a subfolder of the User profile. %APPDATA%\Code\User\settings.json There is no global settings file, so if you are deploying in an […]

Read More

Demystifying Microsoft Endpoint Manager Win32 App Deployments

  • Andy Lievertz
  • May 12, 2022
  • 0

Some aspects of traditional Windows application (win32) deployment using Microsoft Endpoint Manager (Intune) can be frustratingly elusive. Understanding a few things about the program environment and detection capabilities will help […]

Read More

Recent Posts

  • Update Visual Studio Code Updates Settings with PowerShell
  • Demystifying Microsoft Endpoint Manager Win32 App Deployments
  • Making Libvirt User-friendly in AlmaLinux
  • Example AlmaLinux Kickstart
  • Customizing the AlmaLinux Installer Media

Categories

  • Bash
  • Emulation
  • Linux
  • PowerShell
  • Scripting
  • Systems Administration
  • Uncategorized
  • Virtualization

Search

Copyright © 2021 | All Rights Reserved.

Loading