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 Administration, VirtualizationTagged 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

Copyright © 2023 | All Rights Reserved.

Loading