qemu-server/PVE
Friedrich Weber 481eca69dc api: require explicit media=cdrom for drives with attached ISO image
When starting a VM, drives with an attached ISO image require an
explicit `media` parameter. Setting `media=disk` on such drives makes
them writable. This breaks the user expectation that ISO images are
immutable.

Hence, require an explicit `media=cdrom` parameter on VM updates via
the API for drives that have a volume with type `iso` attached. If
some users rely on the ability to set `media=disk` on such drives, we
may make this available in the future (and require high privileges).
Until then, affected users can manually edit the VM config.

Suggested-by: Fiona Ebner <f.ebner@proxmox.com>
Signed-off-by: Friedrich Weber <f.weber@proxmox.com>
Reviewed-by: Fiona Ebner <f.ebner@proxmox.com>
2025-04-04 15:41:54 +02:00
..
API2 api: require explicit media=cdrom for drives with attached ISO image 2025-04-04 15:41:54 +02:00
CLI vm stop-cleanup: allow callers to decide error behavior 2025-03-06 16:33:14 +01:00
QemuConfig config: make attempts at writing out NoWrite configs fatal 2025-02-18 15:06:04 +01:00
QemuServer add helpers for VirtIO RNG command line arguments 2025-04-04 10:25:33 +02:00
VZDump vzdump: align behavior for vma backup with PBS backup for templates 2025-02-18 15:06:04 +01:00
Makefile config: add special class that prevents writing the configuration 2025-02-18 15:06:04 +01:00
QemuConfig.pm config: add special class that prevents writing the configuration 2025-02-18 15:06:04 +01:00
QemuMigrate.pm migrate: add transfer summary 2025-04-03 16:40:59 +02:00
QemuServer.pm print drive commandline: die if drive with ISO sets no explicit media 2025-04-04 15:41:54 +02:00
QMPClient.pm tree-wide: fix various typos in comments 2024-12-05 12:33:24 +01:00