Sys::VirtConvert::ConnUseroContrSys::VirtConvert::Connection::LibVirtTarget(3)NAMESys::VirtConvert::Connection::LibVirtTarget - Output to libvirt
SYNOPSIS
use Sys::VirtConvert::Connection::LibVirtTarget;
my $target = new Sys::VirtConvert::Connection::LibVirtTarget($uri, $poolname);
DESCRIPTIONSys::VirtConvert::Connection::LibVirtTarget creates a new libvirt
domain using the given target URI. New storage will be created in the
target pool.
METHODS
Sys::VirtConvert::Connection::LibVirtTarget->new(uri, poolname)
Create a new LibVirtTarget object.
uri A libvirt connection URI
poolname
The name of a storage pool managed by the target libvirt
daemon.
create_volume(name, format, size, sparse)
Create a new volume in the pool whose name was passed to new().
name
The name of the volume which is being created.
format
The file format of the new volume.
size
The size of the volume which is being created in bytes.
sparse
1 if the output should be sparse if possible, 0 otherwise.
create_volume() returns a Sys::VirtConvert::Connection::Volume
object.
volume_exists (name)
Check if volume name exists in the target pool.
Returns 1 if it exists, 0 otherwise.
get_volume (name)
Get a reference to an existing volume. get_volume returns a
Sys::VirtConvert::Connection::Volume object.
guest_exists(name)
Return 1 if a guest with name already exists, 0 otherwise.
create_guest(g, root, meta, config, guestcaps, output_name)
Create the guest in the target
COPYRIGHT
Copyright (C) 2010-2011 Red Hat Inc.
LICENSE
Please see the file COPYING for the full license.
perl v5.10.1Sys::VirtConvert::Connection::LibVirtTarget(3)