Sys::Virt::Domain(3pm) | User Contributed Perl Documentation | Sys::Virt::Domain(3pm) |
Sys::Virt::Domain - Represent & manage a libvirt guest domain
The "Sys::Virt::Domain" module represents a guest domain managed by the virtual machine monitor.
The $flags parameter is currently unused and defaults to 0.
Omitting this parameter keeps the original domain configuration. Using this field with hypervisors that do not support changing domain configuration during migration will result in a failure.
protocol://hostname[:port]/[?parameters]
where protocol is either "spice" or "vnc" and parameters is a list of protocol specific parameters separated by '&'. Currently recognized parameters are "tlsPort" and "tlsSubject". For example,
spice://target.host.com:1234/?tlsPort=4567
The $flags parameter defaults to zero and can take one of the following constants.
The values for the Sys::Virt::Domain::JOB_OPERATION field are
The returned list will contain one element for each interface. The values in the list will be a hash reference with the following keys
$flags is currently unused and defaults to zero.
The $flags parameter is currently unused and defaults to zero.
A number of the APIs take a "flags" parameter. In most cases passing a value of zero will be satisfactory. Some APIs, however, accept named constants to alter their behaviour. This section documents the current known constants.
The domain state constants are useful in interpreting the "state" key in the hash returned by the "get_info" method.
The following constants can be used to determine what the guest domain control channel status is
If the status is "Sys::Virt::Domain::CONTROL_ERROR", then one of the following constants describes the reason
The following constants can be used to control the behaviour of domain creation
The following constants can be used to control the behaviour of domain define operations
The following constants define the set of supported keycode sets
The following constants can be used with the "memory_peek" method's flags parameter
The following constants are useful when interpreting the virtual CPU run state
The following constants are useful when interpreting the virtual CPU host placement
The following constants are used when opening a connection to the guest graphics server
The following constants are used when opening a connection to the guest console
The following constants are used when opening a connection to the guest channel
The following constants are used to control the information included in the XML configuration dump
The following constants are used to control device hotplug operations
The following constants are used to control memory change operations
The following constants are used to control what configuration a domain update changes
The following constants are used to control how migration is performed
The following constants can be used when undefining virtual domain configurations
The following constants describe the different background job types.
The following constants are useful when getting/setting memory parameters for guests
The following parameters control I/O tuning for the domain as a whole
The following parameters control I/O tuning for an individual guest disk.
The following constants are useful when getting/setting the guest NUMA memory policy
The following constants are useful when interpreting the "Sys::Virt::Domain::NUMA_MODE" parameter value
The following constants are useful when getting/setting the per network interface tunable parameters
The following constants defined performance events which can be monitored for a guest
The following constants defined IOThread statistics which can be monitored for a guest
The following constants are useful when getting/setting the VCPU count for a guest
The following constants allow domain state change events to be interpreted. The events contain both a state change, and a reason.
The second parameter, "reason", matches one of the following constants
These constants describe what action was taken due to the IO error.
These constants describe what action was taken due to the watchdog firing
These constants describe the phase of the graphics connection
These constants describe the format of the address
These constants describe the reason for a disk change event
These constants describe the reason for a tray change event
The following constants identify the different types of domain block jobs
The following constants can be used to determine the completion status of a block job
The following constants are useful when rebasing block devices
The following constants are useful when copying block devices
The following constants are useful when aborting job copy jobs
The following constants are useful with block commit job types
The following constants can be used when saving or restoring virtual machines
The following constants can be used when triggering domain core dumps
The following constants are useful when terminating guests using the "destroy" API.
The following constants are useful when requesting that a guest terminate using the "shutdown" API
The following constants are useful when requesting that a guest terminate using the "reboot" API
The following constants are useful when reading/writing metadata about a guest
The following constants are useful when interpreting disk error codes
The following constants can be used when listing domains
The following constants are to be used with the "send_key" API
The following constants provide the names of well known block stats fields
The following constants provide the names of well known cpu stats fields
The following constants provide the names of well known schedular parameters
The following constants are used as flags when requesting bulk domain stats from "Sys::Virt::get_all_domain_stats".
The following constants are used to control which fields are returned for stats queries.
The following constants provide the names of signals which can be sent to guest processes. They mostly correspond to POSIX signal names.
The following constants are useful when accessing domain tuning parameters in APIs and events
The following constants are useful when setting action for lifecycle events.
Daniel P. Berrange <berrange@redhat.com>
Copyright (C) 2006 Red Hat Copyright (C) 2006-2007 Daniel P. Berrange
This program is free software; you can redistribute it and/or modify it under the terms of either the GNU General Public License as published by the Free Software Foundation (either version 2 of the License, or at your option any later version), or, the Artistic License, as specified in the Perl README file.
Sys::Virt, Sys::Virt::Error, "http://libvirt.org"
2024-03-31 | perl v5.38.2 |