Scroll to navigation

Sys::VirtConvert::Connection::LibVirtTarget(3) User Contributed Perl Documentation Sys::VirtConvert::Connection::LibVirtTarget(3)

NAME

Sys::VirtConvert::Connection::LibVirtTarget - Output to libvirt

SYNOPSIS

 use Sys::VirtConvert::Connection::LibVirtTarget;
 my $target = new Sys::VirtConvert::Connection::LibVirtTarget($uri, $poolname);

DESCRIPTION

Sys::VirtConvert::Connection::LibVirtTarget creates a new libvirt domain using the given target URI. New storage will be created in the target pool.

METHODS

Create a new LibVirtTarget object.
A libvirt connection URI
The name of a storage pool managed by the target libvirt daemon.
Create a new volume in the pool whose name was passed to new().
The name of the volume which is being created.
The file format of the new volume.
The size of the volume which is being created in bytes.
1 if the output should be sparse if possible, 0 otherwise.

create_volume() returns a Sys::VirtConvert::Connection::Volume object.

Check if volume name exists in the target pool.

Returns 1 if it exists, 0 otherwise.

Get a reference to an existing volume. get_volume returns a Sys::VirtConvert::Connection::Volume object.
Return 1 if a guest with name already exists, 0 otherwise.
Create the guest in the target

COPYRIGHT

Copyright (C) 2010-2011 Red Hat Inc.

LICENSE

Please see the file COPYING for the full license.

2013-12-03 perl v5.10.1