Ravada::VM - Online Linux Manual PageSection : 3
Updated : 2021-03-05
Source : perl v5.32.1
Note : User Contributed Perl Documentation

NAMERavada::VM − Virtual Managers library for Ravada

Constructors

openOpens a Virtual Machine Manager (VM) Arguments: id of the VM

Methods

domain_removeRemove the domain. Returns nothing.

nameReturns the name of this Virtual Machine Manager ​ my $name = $vm−>name();

search_domain_by_idReturns a domain searching by its id ​ $domain = $vm−>search_domain_by_id($id);

ipReturns the external IP this for this VM

nat_ipReturns the IP of the VM when it is in a NAT environment

display_ipReturns the display IP of the Virtual Manager

listen_ipReturns the IP where virtual machines must be bound to Arguments: optional remote ip

idReturns the id value of the domain. This id is used in the database tables and is not related to the virtual machine engine.

default_storage_pool_nameSet the default storage pool name for this Virtual Machine Manager ​ $vm−>default_storage_pool_name('default');

base_storage_poolSet the storage pool for bases in this Virtual Machine Manager ​ $vm−>base_storage_pool('pool2');

clone_storage_poolSet the storage pool for clones in this Virtual Machine Manager ​ $vm−>clone_storage_pool('pool3');

min_free_memoryReturns the minimun free memory necessary to start a new virtual machine

max_loadReturns the maximum cpu load that the host can handle.

active_limitReturns the value of 'active_limit' in the BBDD

list_driversLists the drivers available for this Virtual Machine Manager Arguments: Optional driver type Returns a list of strings with the nams of the drivers. ​ my @drivers = $vm−>list_drivers(); ​ my @drivers = $vm−>list_drivers('image');

is_localReturns wether this virtual manager is in the local host

is_lockedThis node has requests running or waiting to be run

list_nodesReturns a list of virtual machine manager nodes of the same type as this. ​ my @nodes = $self−>list_nodes();

pingReturns if the virtual manager connection is available

is_activeReturns if the domain is active. The active state is cached for some seconds. Pass an optional true value to perform a real check. Arguments: optional force mode ​ if ($node−>is_active) {} ​ ​ ​ if ($node−>is_active(1)) {}

enabledReturns if the domain is enabled.

public_ipReturns the public IP of the virtual manager if defined

removeRemove the virtual machine manager.

run_commandRun a command on the node ​ my @ls = $self−>run_command("ls");

run_command_nowaitRun a command on the node ​ $self−>run_command_nowait("/sbin/poweroff"); ​ my $chan = $self−>_ssh_channel() or die "ERROR: No SSH channel to host ".$self−>host; ​ ​ my $command = join(" ",@command); ​ $chan−>exec($command);# or $self−>{_ssh}>die_with_error; ​ ​ $chan−>send_eof(); ​ ​ return;

write_fileWrites a file to the node ​ $self−>write_file("filename.extension", $contents);

read_fileReads a file in memory from the storage of the virtual manager

remove_fileRemoves a file from the storage of the virtual manager

create_iptables_chainCreates a new chain in the system iptables

iptablesRuns an iptables command in the virtual manager Example: ​ $vm−>iptables( A => 'INPUT', p => 22, j => 'ACCEPT');

iptables_uniqueRuns an iptables command in the virtual manager only if it wasn't already there Example: ​ $vm−>iptables_unique( A => 'INPUT', p => 22, j => 'ACCEPT');

iptables_listReturns the list of the system iptables

balance_vmReturns a Virtual Manager from all the nodes to run a virtual machine. When the optional base argument is passed it returns a node from the list of VMs where the base is prepared. Argument: base [optional]

shutdown_domainsShuts down all the virtual machines in the node

shared_storageReturns true if there is shared storage among to nodes Arguments: • node • directory

startStarts the node

shutdownShuts down the node

list_network_interfacesReturns a list of all the known interface Argument: type ( nat or bridge )
0
Johanes Gumabo
Data Size   :   22,135 byte
man-Ravada::VM.3pmBuild   :   2024-12-29, 07:25   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 257,473
Visitor ID   :     :  
Visitor IP   :   18.224.32.243   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.29
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|252|Ravada::VM.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|Ravada::VM.3pm|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|252|Ravada::VM.3pm|43|br══─}─══|'br══─}─══ )         (htmlprn|149|Ravada::VM.3pm|43|'br══─}─══ |'br══─}─══ )