pub struct PveAgentConfig {
pub enabled: PveBoolean,
pub freeze_fs: Option<PveBoolean>,
pub freeze_fs_on_backup: Option<String>,
pub fstrim_cloned_disks: Option<PveBoolean>,
pub guest_fsfreeze: Option<String>,
pub type: Option<PveQemuTypeEnum>,
}Fields§
§enabled: PveBooleanEnable/disable communication with a QEMU Guest Agent (QGA) running in the VM.
freeze_fs: Option<PveBoolean>Whether to issue the guest-fsfreeze-freeze and guest-fsfreeze-thaw QEMU guest agent commands. Backups in snapshot mode, clones, snapshots without RAM, importing disks from a running guest, and replications normally issue a guest-fsfreeze-freeze and a respective thaw command when the QEMU Guest agent option is enabled in the guest’s configuration and the agent is running inside of the guest. The deprecated ‘freeze-fs-on-backup’ setting is treated as an alias for this setting.
freeze_fs_on_backup: Option<String>§fstrim_cloned_disks: Option<PveBoolean>Run fstrim after moving a disk or migrating the VM.
guest_fsfreeze: Option<String>§type: Option<PveQemuTypeEnum>Select the agent type
Implementations§
Source§impl PveAgentConfig
impl PveAgentConfig
pub fn new(enabled: PveBoolean) -> PveAgentConfig
Source§impl PveAgentConfig
impl PveAgentConfig
Sourcepub fn to_shorthand(&self) -> String
pub fn to_shorthand(&self) -> String
Serialise this PveAgentConfig 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: PveAgentConfig
→ "virtio,bridge=vmbr0"
Trait Implementations§
Source§impl Clone for PveAgentConfig
impl Clone for PveAgentConfig
Source§fn clone(&self) -> PveAgentConfig
fn clone(&self) -> PveAgentConfig
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 PveAgentConfig
impl Debug for PveAgentConfig
Source§impl Default for PveAgentConfig
impl Default for PveAgentConfig
Source§fn default() -> PveAgentConfig
fn default() -> PveAgentConfig
Source§impl<'de> Deserialize<'de> for PveAgentConfig
impl<'de> Deserialize<'de> for PveAgentConfig
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 PveAgentConfig
impl PartialEq for PveAgentConfig
Source§fn eq(&self, other: &PveAgentConfig) -> bool
fn eq(&self, other: &PveAgentConfig) -> bool
self and other values to be equal, and is used by ==.