Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-ganeti
Commits
ec91c05d
Commit
ec91c05d
authored
Feb 07, 2009
by
Guido Trotter
Browse files
KVM: don't boot from cdrom with no cdrom
Reviewed-by: iustinp
parent
66d5dbef
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/hypervisor/hv_kvm.py
View file @
ec91c05d
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment