Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
e80f1882
Commit
e80f1882
authored
Apr 06, 2017
by
Francesc Guasch
Browse files
Merge branch 'master' of
https://github.com/UPC/ravada
parents
89d6b8ba
c1cc3bae
Changes
5
Hide whitespace changes
Inline
Side-by-side
docs/operation.md
View file @
e80f1882
#Create users
#
Create users
sudo ./bin/rvd_back.pl --add-user=username
...
...
@@ -7,7 +7,7 @@
sudo ./bin/rvd_back.pl --add-user-ldap=username
#Import KVM virtual machines.
#
Import KVM virtual machines.
Usually, virtual machines are created within ravada, but they can be
imported from existing KVM domains. Once the domain is created :
...
...
lib/Ravada/Domain.pm
View file @
e80f1882
...
...
@@ -34,6 +34,7 @@ requires 'remove';
requires
'
display
';
requires
'
is_active
';
requires
'
is_hibernated
';
requires
'
is_paused
';
requires
'
start
';
requires
'
shutdown
';
...
...
lib/Ravada/Domain/KVM.pm
View file @
e80f1882
...
...
@@ -568,6 +568,17 @@ sub resume {
}
=head2 is_hibernated
Returns if the domain has a managed saved state.
=cut
sub
is_hibernated
{
my
$self
=
shift
;
return
$self
->
domain
->
has_managed_save_image
;
}
=head2 is_paused
Returns if the domain is paused
...
...
lib/Ravada/Domain/Void.pm
View file @
e80f1882
...
...
@@ -87,6 +87,8 @@ sub remove {
$self
->
remove_disks
();
}
sub
is_hibernated
{
return
0
}
sub
is_paused
{
my
$self
=
shift
;
...
...
templates/main/admin_machines.html.ep
View file @
e80f1882
...
...
@@ -75,7 +75,8 @@
<td
class=
"lgMachActions"
>
<span
style=
"float:right;"
ng-show=
"{{machine.is_paused && machine.is_active}}"
class=
"label label-warning"
ng-cloak
><
%=
l
'
Paused
'
%
></span>
<span
style=
"float:left;"
ng-show=
"{{!machine.is_paused && machine.is_active}}"
class=
"label label-success"
ng-cloak
><
%=
l
'
Running
'
%
></span>
<span
style=
"float:right;"
ng-show=
"{{!machine.is_active}}"
class=
"label label-danger"
ng-cloak
><
%=
l
'
Down
'
%
></span>
<span
style=
"float:right;"
ng-show=
"{{!machine.is_active && !machine.is_hibernated}}"
class=
"label label-danger"
ng-cloak
><
%=
l
'
Down
'
%
></span>
<span
style=
"float:right;"
ng-show=
"{{machine.is_hibernated}}"
class=
"label label-warning"
ng-cloak
><
%=
l
'
Hibernated
'
%
></span>
<div
ng-show=
"{{machine.is_active}}"
>
{{machine.remote_ip}}
</div>
</td>
<td
class=
"lgMachToggle"
>
...
...
@@ -142,7 +143,8 @@
<td
class=
"lgMachActions"
>
<span
style=
"float:right;"
ng-show=
"{{child.is_paused && child.is_active}}"
class=
"label label-warning"
ng-cloak
><
%=
l
'
Paused
'
%
></span>
<span
style=
"float:left;"
ng-show=
"{{!child.is_paused && child.is_active}}"
class=
"label label-success"
ng-cloak
><
%=
l
'
Running
'
%
></span>
<span
style=
"float:right;"
ng-show=
"{{!child.is_active}}"
class=
"label label-danger"
ng-cloak
><
%=
l
'
Down
'
%
></span>
<span
style=
"float:right;"
ng-show=
"{{!child.is_active && !child.is_hibernated}}"
class=
"label label-danger"
ng-cloak
><
%=
l
'
Down
'
%
></span>
<span
style=
"float:right;"
ng-show=
"{{child.is_hibernated}}"
class=
"label label-warning"
ng-cloak
><
%=
l
'
Hibernated
'
%
></span>
<div
ng-show=
"{{child.is_active}}"
>
{{child.remote_ip}}
</div>
</td>
<td
class=
"lgMachToggle"
>
...
...
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