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 libvirt user group.
Session connection (qemu:///session)
Non-root users that are not in the libvirt group 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/libvirt and /var/lib/libvirt. In the session connection, the user is limited to files saved in their home directory. 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.

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部