GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Rex::Box::Base(3) User Contributed Perl Documentation Rex::Box::Base(3)

Rex::Box::Base - Rex/Boxes Base Module

This is a Rex/Boxes base module.

These methods are shared across all other Rex::Box modules.

Returns a hashRef of vm information.

Sets the name of the virtual machine.

Sets the tasks that should be executed as soon as the VM is available through SSH.

Sets the disk path of the virtual machine. Works only on KVM

This method must be overwritten by the implementing class.

Stops the VM.

Destroy the VM.

Starts the VM.

Return the ip:port to which rex will connect to.

Returns the status of a VM.

Valid return values are "running" and "stopped".

Executes the given tasks on the VM.

Set the amount of CPUs for the VM.

Sets the memory of a VM in megabyte.

Configure the network for a VM.

Currently it supports 2 modes: nat and bridged. Currently it supports only one network card.

 $box->network(
   1 => {
     type => "nat",
   },
 }
 
 $box->network(
   1 => {
     type => "bridged",
     bridge => "eth0",
   },
 );

Set ports to be forwarded to the VM. This is not supported by all Box providers.

 $box->forward_port(
   name => [$from_host_port, $to_vm_port],
   name2 => [$from_host_port_2, $to_vm_port_2],
   ...
 );

List all available boxes.

The URL where to download the Base VM Image. You can use self-made images or prebuild images from <http://box.rexify.org/>.

Configure the authentication to the VM.

 $box->auth(
   user => $user,
   password => $password,
   private_key => $private_key,
   public_key => $public_key,
 );

Addition options for boxes

 $box->options(
   opt1 => $val1,
   opt2 => $val2,
 );
2021-07-05 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.