diff --git a/lib/hypervisor/hv_kvm.py b/lib/hypervisor/hv_kvm.py index ec7c07340e85ca4e301bcc1fc920e782e8a1a33d..c8b63cea55e22e368e375e518a5f2ac4f34f0ec3 100644 --- a/lib/hypervisor/hv_kvm.py +++ b/lib/hypervisor/hv_kvm.py @@ -739,6 +739,9 @@ class KVMHypervisor(hv_base.BaseHypervisor): if boot_order not in ('cdrom', 'disk'): raise errors.HypervisorError("The boot order must be 'cdrom' or 'disk'") + if boot_order == 'cdrom' and not iso_path: + raise errors.HypervisorError("Cannot boot from cdrom without an ISO path") + def ValidateParameters(self, hvparams): """Check the given parameters for validity.