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¶
- Sys::VirtConvert::Connection::LibVirtTarget->new(uri, poolname)
- Create a new LibVirtTarget object.
- create_volume(name, format, size, sparse)
- Create a new volume in the pool whose name was passed to new().
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.
2013-12-03 | perl v5.10.1 |