Sys::VirtV2V::Connection.3pm

Langue: en

Version: 2010-07-01 (fedora - 01/12/10)

Section: 3 (Bibliothèques de fonctions)

NAME

Sys::VirtV2V::Connection - Obtain domain metadata

SYNOPSIS

  use Sys::VirtV2V::Connection::LibVirt;
 
  $conn = Sys::VirtV2V::Connection::LibVirt->new($uri, $name, $target);
  $dom = $conn->get_dom();
  $storage = $conn->get_storage_paths();
  $devices = $conn->get_storage_devices();
 
 

DESCRIPTION

Sys::VirtV2V::Connection describes a connection to a, possibly remote, source of guest metadata and storage. It is a virtual superclass and can't be instantiated directly. Use one of the subclasses:
  Sys::VirtV2V::Connection::LibVirt
  Sys::VirtV2V::Connection::LibVirtXML
 
 

METHODS

get_storage_paths
Return an arrayref of local paths to the guest's storage devices. This list is guaranteed to be in the same order as the list returned by get_storage_devices.
get_storage_devices
Return an arrayref of libvirt device names for the guest's storage prior to conversion. This list is guaranteed to be in the same order as the list returned by get_storage_paths.
get_dom()
Returns an XML::DOM::Document describing a libvirt configuration equivalent to the input.

Returns undef and displays an error if there was an error

Copyright (C) 2009,2010 Red Hat Inc.

LICENSE

Please see the file COPYING.LIB for the full license.

SEE ALSO

Sys::VirtV2V::Connection::LibVirt(3pm), Sys::VirtV2V::Connection::LibVirtXML(3pm), virt-v2v(1), <http://libguestfs.org/>.