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.
Starts domain with
$domain_name. If the domain is hibernated the the function calls
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.
$self->xm_cmd with @args and return the output. Dies if the execution fails.
Other object methods, mostly for internal usage.
Returns filename with path of the
$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.
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.
You can find documentation for this module with the perldoc command.
You can also look for information at:
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.