From 84e0863d6580fd9111b68dcd2c636662c95a758c Mon Sep 17 00:00:00 2001 From: Guido Trotter <ultrotter@google.com> Date: Wed, 10 Mar 2010 10:49:42 +0000 Subject: [PATCH] KVM: Remove boot restriction for paravirtual nics Newer virtio can boot from the network perfectly well, so there's no point in keeping this restriction in place. This will still fail on older kernels. Signed-off-by: Guido Trotter <ultrotter@google.com> Reviewed-by: Iustin Pop <iustin@google.com> --- lib/hypervisor/hv_kvm.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/hypervisor/hv_kvm.py b/lib/hypervisor/hv_kvm.py index db733d6a2..6ecdb8647 100644 --- a/lib/hypervisor/hv_kvm.py +++ b/lib/hypervisor/hv_kvm.py @@ -786,15 +786,10 @@ class KVMHypervisor(hv_base.BaseHypervisor): constants.HV_VNC_X509_VERIFY)) boot_order = hvparams[constants.HV_BOOT_ORDER] - if (boot_order == constants.HT_BO_CDROM and not hvparams[constants.HV_CDROM_IMAGE_PATH]): raise errors.HypervisorError("Cannot boot from cdrom without an" " ISO path") - if (boot_order == constants.HT_BO_NETWORK and - hvparams[constants.HV_NIC_TYPE] == constants.HT_NIC_PARAVIRTUAL): - raise errors.HypervisorError("Cannot boot from a paravirtual NIC. Please" - " change the NIC type.") @classmethod def PowercycleNode(cls): -- GitLab