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
cce4e849
Commit
cce4e849
authored
Oct 30, 2017
by
Francesc Guasch
Browse files
Set type = KVM instead qemu
parent
d933a5f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/Ravada.pm
View file @
cce4e849
...
...
@@ -522,6 +522,15 @@ sub _update_data {
$self
->
_update_user_grants
();
$self
->
_update_domain_drivers_types
();
$self
->
_update_domain_drivers_options
();
$self
->
_update_old_qemus
();
}
sub
_update_old_qemus
($self) {
my
$sth
=
$CONNECTOR
->
dbh
->
prepare
("
UPDATE vms SET vm_type='KVM'
"
.
"
WHERE vm_type='qemu' AND name ='KVM_localhost'
"
);
$sth
->
execute
;
}
sub
_set_url_isos
($self, $new_url='http://localhost/iso/') {
...
...
@@ -754,7 +763,7 @@ sub _create_vm_kvm {
my
$vm_kvm
;
$vm_kvm
=
Ravada::VM::
KVM
->
new
(
connector
=>
(
$self
->
connector
or
$CONNECTOR
)
);
$vm_kvm
=
Ravada::VM::
KVM
->
new
(
);
my
(
$internal_vm
,
$storage
);
$storage
=
$vm_kvm
->
dir_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