pub struct PveFeaturesConfig {
pub force_rw_sys: Option<PveBoolean>,
pub fuse: Option<PveBoolean>,
pub keyctl: Option<PveBoolean>,
pub mknod: Option<PveBoolean>,
pub mount: Option<String>,
pub nesting: Option<PveBoolean>,
}Fields§
§force_rw_sys: Option<PveBoolean>Mount /sys in unprivileged containers as rw instead of mixed. This can break networking under newer (>= v245) systemd-network use.
fuse: Option<PveBoolean>Allow using ‘fuse’ file systems in a container. Note that interactions between fuse and the freezer cgroup can potentially cause I/O deadlocks.
keyctl: Option<PveBoolean>For unprivileged containers only: Allow the use of the keyctl() system call. This is required to use docker inside a container. By default unprivileged containers will see this system call as non-existent. This is mostly a workaround for systemd-networkd, as it will treat it as a fatal error when some keyctl() operations are denied by the kernel due to lacking permissions. Essentially, you can choose between running systemd-networkd or docker.
mknod: Option<PveBoolean>Allow unprivileged containers to use mknod() to add certain device nodes. This requires a kernel with seccomp trap to user space support (5.3 or newer). This is experimental.
mount: Option<String>Allow mounting file systems of specific types. This should be a list of file system types as used with the mount command. Note that this can have negative effects on the container’s security. With access to a loop device, mounting a file can circumvent the mknod permission of the devices cgroup, mounting an NFS file system can block the host’s I/O completely and prevent it from rebooting, etc.
nesting: Option<PveBoolean>Allow nesting. Best used with unprivileged containers with additional id mapping. Note that this will expose procfs and sysfs contents of the host to the guest. This is also required by systemd to isolate services.
Implementations§
Source§impl PveFeaturesConfig
impl PveFeaturesConfig
pub fn new() -> PveFeaturesConfig
Source§impl PveFeaturesConfig
impl PveFeaturesConfig
Sourcepub fn to_shorthand(&self) -> String
pub fn to_shorthand(&self) -> String
Serialise this PveFeaturesConfig into Proxmox’s CLI-style shorthand
string (key=value,…). The property marked x-pve-default-key
is emitted positionally without a key= prefix; aliases collapse
multiple property names to the same wire key.
Example: PveFeaturesConfig
→ "virtio,bridge=vmbr0"
Trait Implementations§
Source§impl Clone for PveFeaturesConfig
impl Clone for PveFeaturesConfig
Source§fn clone(&self) -> PveFeaturesConfig
fn clone(&self) -> PveFeaturesConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PveFeaturesConfig
impl Debug for PveFeaturesConfig
Source§impl Default for PveFeaturesConfig
impl Default for PveFeaturesConfig
Source§fn default() -> PveFeaturesConfig
fn default() -> PveFeaturesConfig
Source§impl<'de> Deserialize<'de> for PveFeaturesConfig
impl<'de> Deserialize<'de> for PveFeaturesConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for PveFeaturesConfig
impl PartialEq for PveFeaturesConfig
Source§fn eq(&self, other: &PveFeaturesConfig) -> bool
fn eq(&self, other: &PveFeaturesConfig) -> bool
self and other values to be equal, and is used by ==.