[pve-devel] [PATCH qemu-server v3 1/6] fix #4225: qemuserver: drive: add parameter to mark drive required
Daniel Herzig
d.herzig at proxmox.com
Thu Jan 30 12:31:16 CET 2025
This commit add the parameter `essential` to mark a drive as required
for booting the VM.
Signed-off-by: Daniel Herzig <d.herzig at proxmox.com>
---
PVE/QemuServer/Drive.pm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/PVE/QemuServer/Drive.pm b/PVE/QemuServer/Drive.pm
index 1041c1dd..38136787 100644
--- a/PVE/QemuServer/Drive.pm
+++ b/PVE/QemuServer/Drive.pm
@@ -266,7 +266,14 @@ my %drivedesc_base = (
verbose_description => "Mark this locally-managed volume as available on all nodes.\n\nWARNING: This option does not share the volume automatically, it assumes it is shared already!",
optional => 1,
default => 0,
- }
+ },
+ essential => {
+ type => 'boolean',
+ description => 'Mark this iso volume as required for booting the VM.',
+ verbose_description => 'If unset or set to 1, and the iso file is unavailable, the VM will not start.\nThis parameter is considered for cdrom iso drives only.',
+ optional => 1,
+ default => 1,
+ },
);
my %iothread_fmt = ( iothread => {
--
2.39.5
More information about the pve-devel
mailing list