qemu-server/debian/control
Markus Frank 87b22e3839 fix #1027: virtio-fs support
Add support for sharing directories with a guest VM.

virtio-fs needs virtiofsd to be started. In order to start virtiofsd
as a process (despite being a daemon it is does not run in the
background), a double-fork is used.

virtiofsd should close itself together with QEMU.

There are the parameters dirid and the optional parameters direct-io,
cache and writeback. Additionally the expose-xattr & expose-acl
parameter can be set to expose xattr & acl settings from the shared
filesystem to the guest system.

The dirid gets mapped to the path on the current node and is also used
as a mount tag (name used to mount the device on the guest).

example config:
```
virtiofs0: foo,direct-io=1,cache=always,expose-acl=1
virtiofs1: dirid=bar,cache=never,expose-xattr=1,writeback=1
```

For information on the optional parameters see the coherent doc patch
and the official gitlab README:
https://gitlab.com/virtio-fs/virtiofsd/-/blob/main/README.md

Also add a permission check for virtiofs directory access.

Add virtiofsd to the Recommends list for the qemu-server Debian
package, this allows users to opt-out of installing this package, e.g.
for certification reasons.

Signed-off-by: Markus Frank <m.frank@proxmox.com>
Link: https://lore.proxmox.com/20250407134950.265270-3-m.frank@proxmox.com
Tested-by: Lukas Wagner <l.wagner@proxmox.com>
 [TL: squash d/control change and re-add Lukas' T-b, as nothing
  essentially changed from the v16 where his tag applied]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2025-04-07 22:30:11 +02:00

68 lines
2.2 KiB
Plaintext

Source: qemu-server
Section: admin
Priority: optional
Maintainer: Proxmox Support Team <support@proxmox.com>
Build-Depends: debhelper-compat (= 13),
libglib2.0-dev,
libio-multiplex-perl,
libjson-c-dev,
libpve-apiclient-perl,
libpve-cluster-perl,
libpve-common-perl (>= 8.0.2),
libpve-guest-common-perl (>= 5.1.0),
libpve-storage-perl (>= 8.2.10),
libtest-mockmodule-perl,
liburi-perl,
libuuid-perl,
lintian,
perl,
pkg-config,
pve-cluster,
pve-doc-generator (>= 6.2-5),
pve-edk2-firmware-ovmf (>= 4.2025.02-3),
pve-firewall,
pve-ha-manager <!nocheck>,
pve-qemu-kvm (>= 9.2~),
Standards-Version: 4.5.1
Homepage: https://www.proxmox.com
Package: qemu-server
Architecture: any
Depends: dbus,
genisoimage,
libio-multiplex-perl,
libjson-perl,
libjson-xs-perl,
libnet-ssleay-perl,
libpve-access-control (>= 8.0.0~),
libpve-apiclient-perl,
libpve-cluster-perl,
libpve-common-perl (>= 8.2.6),
libpve-guest-common-perl (>= 5.1.7),
libpve-storage-perl (>= 8.3.5),
libterm-readline-gnu-perl,
liburi-perl,
libuuid-perl,
perl (>= 5.10.0-19),
proxmox-websocket-tunnel,
pve-cluster,
# TODO: make legacy edk2 optional (suggests) for PVE 9 and warn explicitly about it
pve-edk2-firmware-legacy | pve-edk2-firmware (<< 4~),
pve-edk2-firmware-ovmf (>= 4.2025.02-3),
pve-firewall (>= 5.0.4),
pve-ha-manager (>= 3.0-9),
pve-qemu-kvm (>= 7.1~),
socat,
swtpm,
swtpm-tools,
${misc:Depends},
${perl:Depends},
${shlibs:Depends},
Recommends: libpve-network-perl (>= 0.8.3),
proxmox-backup-file-restore (>= 2.1.9-2),
virtiofsd,
Suggests: pve-edk2-firmware-aarch64, pve-edk2-firmware-riscv,
Breaks: pve-ha-manager (<< 4.0.1), pve-manager (<= 6.0-13),
Description: Qemu Server Tools
This package contains the Qemu Server tools used by Proxmox VE