Skip to content
Snippets Groups Projects
Commit 84e0863d authored by Guido Trotter's avatar Guido Trotter
Browse files

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: default avatarGuido Trotter <ultrotter@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent ac620f3a
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment