Xen::Control - control and fetch information about xen domains
my $xen = Xen::Control->new(); my @domains = $xen->ls;
This is a wrapper module interface to Xen `xm` command.
xm_cmd rm_cmd hibernation_folder
Holds the command that is used execute xm command. By default it is `sudo xm`.
Holds the command that is executed to remove xen state files after beeing restored. default is `sudo rm`.
Holds the folder where hibernation domain files will be stored.
xm calling methods methods.
xm
Starts domain with $domain_name. If the domain is hibernated the the function calls restore otherwise $self->xm('create', $domain_name.'.cfg').
$domain_name
restore
$self->xm('create', $domain_name.'.cfg')
Returns an array of Xen::Domain objects representing curently running Xen machines.
Hibernate domain named $domain_name. If the name is is not set - undef, will hibernate all domains.
Wakeup hibernated domain named $domain_name. If the name is is not set - undef, will wakeup all hibernated domains.
Shutdown domain named $domain_name. If the name is is not set - undef, will shutdown all domains.
Execute $self->xm_cmd with @args and return the output. Dies if the execution fails.
$self->xm_cmd
Other object methods, mostly for internal usage.
Object constructor.
Returns filename with path of the $domain_name domain.
Search through $self->hibernation_folder for files that end up with .xen extension and return their names without the extension. So the return value is an array of hibernated domain names.
$self->hibernation_folder
.xen
Try IPC::System::Simple instead of ``.
Subversion repository https://cle.sk/repos/pub/cpan/Xen-Control/
Please report any bugs or feature requests to bug-xen-control at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Xen-Control. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-xen-control at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Xen::Control
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Xen-Control
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Xen-Control
CPAN Ratings
http://cpanratings.perl.org/d/Xen-Control
Search CPAN
http://search.cpan.org/dist/Xen-Control
Copyright 2008 Jozef Kutej, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Xen::Control, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Xen::Control
CPAN shell
perl -MCPAN -e shell install Xen::Control
For more information on module installation, please visit the detailed CPAN module installation guide.