Index


NAME

Top

Ravada - Remove Virtual Desktop Manager

SYNOPSIS

Top

  use Ravada;

  my $ravada = Ravada->new()

BUILD

Internal constructor

display_ip

Returns the default display IP read from the config file

disconnect_vm

Disconnect all the Virtual Managers connections.

create_domain

Creates a new domain based on an ISO image or another domain.

  my $domain = $ravada->create_domain(
         name => $name
    , id_iso => 1
  );




  my $domain = $ravada->create_domain(
         name => $name
    , id_base => 3
  );




remove_domain

Removes a domain

  $ravada->remove_domain($name);

search_domain

  my $domain = $ravada->search_domain($name);

search_domain_by_id

  my $domain = $ravada->search_domain_by_id($id);

list_domains

List all created domains

  my @list = $ravada->list_domains();

list_domains_data

List all domains in raw format. Return a list of id => { name , id , is_active , is_base }

   my $list = $ravada->list_domains_data();

   $c->render(json => $list);

list_bases

List all base domains

  my @list = $ravada->list_domains();




list_bases_data

List information about the bases

list_images

List all ISO images

list_images_data

List information about the images

sub _list_images_lxc { my $self = shift; my @domains; my $sth = $CONNECTOR->dbh->prepare( "SELECT * FROM lxc_templates ORDER BY name" ); $sth->execute; while (my $row = $sth->fetchrow_hashref) { push @domains,($row); } $sth->finish; return @domains; }

sub _list_images_data_lxc { my $self = shift; my @data; for ($self->list_images_lxc ) { push @data,{ id => $_->{id} , name => $_->{name} }; } return \@data; }

remove_volume

  $ravada->remove_volume($file);




clean_killed_requests

Before processing requests, old killed requests must be cleaned.

process_requests

This is run in the ravada backend. It processes the commands requested by the fronted

  $ravada->process_requests();

process_long_requests

Process requests that take log time. It will fork on each one

process_all_requests

Process all the requests, long and short

list_vm_types

Returnsa list ofthe types of Virtual Machines available on this system

open_vm

Opens a VM of a given type



  my $vm = $ravada->open_vm('KVM');

search_vm

Searches for a VM of a given type

  my $vm = $ravada->search_vm('kvm');

import_domain

Imports a domain in Ravada

    my $domain = $ravada->import_domain(
                            vm => 'KVM'
                            ,name => $name
                            ,user => $user_name
    );

version

Returns the version of the module

AUTHOR

Top

Francesc Guasch-Ortiz , frankie@telecos.upc.edu

SEE ALSO

Top

Sys::Virt