1.5. User-space connection types for virtualization
Virtual machines (VMs) on your host use one of the following libvirt connection types to your RHEL 10 user space:
- System connection (
qemu:///system) -
Provides access to all available features for VM management in RHEL 10. To create or use a VM in the system connection, you must have root privileges on the system or be a part of the
libvirtuser group. - Session connection (
qemu:///session) -
Non-root users that are not in the
libvirtgroup can only create VMs in the session connection, which has to respect the access rights of the local user when accessing resources. For example, when using the session connection, you cannot detect or access VMs created in the system connection or by other users.
In addition, VMs in the session connection cannot use features that require root privileges, such as the following:
-
Advanced networking - You cannot set up system bridges or tap devices. You are limited to user-mode (
passt) networking, and cannot configure full external visibility of the VM. - PCI device passthrough - Modifying the device assignment of PCI host hardware for the VM is not possible.
- Autostart - VMs in the session connection cannot automatically start on system boot.
-
System-level storage pools and VM logs - In the system connection, storage pools and VM log files are saved in system directories, such as
/etc/libvirtand/var/lib/libvirt. In the session connection, the user is limited to files saved in theirhomedirectory. This prevents managing host-wide storage or viewing logs centrally.
To view your current connection type, use the virsh uri command on the host.
注意
Unless explicitly stated otherwise, the information in this documentation assumes you have root privileges and can use the system connection of libvirt.