1Ravada::VM(3)         User Contributed Perl Documentation        Ravada::VM(3)
2
3
4

NAME

6       Ravada::VM - Virtual Managers library for Ravada
7

Constructors

9   open
10       Opens a Virtual Machine Manager (VM)
11
12       Arguments: id of the VM
13
14   domain_remove
15       Remove the domain. Returns nothing.
16
17   name
18       Returns the name of this Virtual Machine Manager
19
20           my $name = $vm->name();
21
22   search_domain_by_id
23       Returns a domain searching by its id
24
25           $domain = $vm->search_domain_by_id($id);
26
27   ip
28       Returns the external IP this for this VM
29
30   nat_ip
31       Returns the IP of the VM when it is in a NAT environment
32
33   id
34       Returns the id value of the domain. This id is used in the database
35       tables and is not related to the virtual machine engine.
36
37   default_storage_pool_name
38       Set the default storage pool name for this Virtual Machine Manager
39
40           $vm->default_storage_pool_name('default');
41
42   base_storage_pool
43       Set the storage pool for bases in this Virtual Machine Manager
44
45           $vm->base_storage_pool('pool2');
46
47   clone_storage_pool
48       Set the storage pool for clones in this Virtual Machine Manager
49
50           $vm->clone_storage_pool('pool3');
51
52   min_free_memory
53       Returns the minimun free memory necessary to start a new virtual
54       machine
55
56   max_load
57       Returns the maximum cpu load that the host can handle.
58
59   active_limit
60       Returns the value of 'active_limit' in the BBDD
61
62   list_drivers
63       Lists the drivers available for this Virtual Machine Manager
64
65       Arguments: Optional driver type
66
67       Returns a list of strings with the nams of the drivers.
68
69           my @drivers = $vm->list_drivers();
70           my @drivers = $vm->list_drivers('image');
71
72   is_local
73       Returns wether this virtual manager is in the local host
74
75   list_nodes
76       Returns a list of virtual machine manager nodes of the same type as
77       this.
78
79           my @nodes = $self->list_nodes();
80
81   ping
82       Returns if the virtual manager connection is available
83
84   is_active
85       Returns if the domain is active. The active state is cached for some
86       seconds.  Pass an optional true value to perform a real check.
87
88       Arguments: optional force mode
89
90           if ($node->is_active) {
91           }
92
93
94           if ($node->is_active(1)) {
95           }
96
97   enabled
98       Returns if the domain is enabled.
99
100   remove
101       Remove the virtual machine manager.
102
103   run_command
104       Run a command on the node
105
106           my @ls = $self->run_command("ls");
107
108   write_file
109       Writes a file to the node
110
111           $self->write_file("filename.extension", $contents);
112
113
114
115perl v5.30.1                      2020-02-21                     Ravada::VM(3)
Impressum