Currently VMs refuse to start if a configured CD-ROM is unavailable for
a reason.

1) This is desirable if the CD-ROM is essential for the VM.
2) It can however can be inconvenient, if the CD-ROM was just used at
for initial guest installation (and later on 'forgotten').

If the corresponding ISO e.g. resided on a network share, connectivity
issues to the network share prohibit the VM to start.

This RFC addresses case 2. It allows users to set a parameter
'dismissable' for a drive. If set, and if the drive is a
CD-ROM, the CD-ROM will be removed from the VM configuration
in the case of unavailability. As a consequence, the VM can start.

The removal of the file from the configuration will be logged through
log_warn() to have a backtrace of the process.

The RFC addresses the backend-side of #4225 on bugzilla [0] and
supersedes [1], integrating the valuable on- and offline input
on the topic.

[0] https://bugzilla.proxmox.com/show_bug.cgi?id=4225
[1] 
https://lore.proxmox.com/pve-devel/[email protected]/

*** BLURB HERE ***

qemu-server: Daniel Herzig (4):
  drive: Introduce parameter to mark CD-ROM as dissmissable
  drive: ignore 'dismissable' parameter for everything but CD-ROMs
  introduce sub 'activate_current_vm_volumes'
  integrate new sub 'activate_current_vm_volumes'

 src/PVE/QemuServer.pm       | 75 ++++++++++++++++++++++++++++++++-----
 src/PVE/QemuServer/Drive.pm | 10 +++++
 2 files changed, 75 insertions(+), 10 deletions(-)

-- 
2.47.3



Reply via email to