Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
fb74777c
Commit
fb74777c
authored
Jun 21, 2017
by
Francesc Guasch
Browse files
[#169] KVM is optional
parent
d9b06b48
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/Ravada.pm
View file @
fb74777c
...
...
@@ -17,9 +17,17 @@ use Socket qw( inet_aton inet_ntoa );
use
Ravada::
Auth
;
use
Ravada::
Request
;
use
Ravada::VM::
KVM
;
use
Ravada::VM::
Void
;
our
%VALID_VM
;
eval
{
require
Ravada::VM::
KVM
and
do
{
Ravada::VM::
KVM
->
import
;
};
$VALID_VM
{
KVM
}
=
1
;
};
no
warnings
"
experimental::signatures
";
use
feature
qw(signatures)
;
...
...
@@ -604,6 +612,7 @@ sub _init_config {
sub
_create_vm_kvm
{
my
$self
=
shift
;
return
(
undef
,
"
KVM not installed
")
if
!
$VALID_VM
{
KVM
};
my
$cmd_qemu_img
=
`
which qemu-img
`;
chomp
$cmd_qemu_img
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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