mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
docs: virtiofs: add section about ID remapping
Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
1a4412f568
commit
0d03ca17b1
@ -59,6 +59,25 @@ Sharing a host directory with a guest
|
||||
|
||||
Note: this requires virtiofs support in the guest kernel (Linux v5.4 or later)
|
||||
|
||||
Running unprivileged
|
||||
====================
|
||||
|
||||
In unprivileged mode (``qemu:///session``), mapping user/group IDs is available
|
||||
(since libvirt version 10.0.0). The root user (ID 0) in the guest will be mapped
|
||||
to the current user on the host.
|
||||
|
||||
The rest of the IDs will be mapped to the subordinate user IDs specified
|
||||
in `/etc/subuid`:
|
||||
|
||||
::
|
||||
|
||||
$ cat /etc/subuid
|
||||
jtomko:100000:65536
|
||||
$ cat /etc/subgid
|
||||
jtomko:100000:65536
|
||||
|
||||
To manually tweak the user ID mapping, the `idmap` element can be used.
|
||||
|
||||
Optional parameters
|
||||
===================
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user