™.. Sys::Virt::Domain - Online Linux Manual PageSection : 3
Updated : 2015-07-23
Source : perl v5.10.1
Note : User Contributed Perl Documentation

NAMESys::Virt::Domain − Represent & manage a libvirt guest domain

DESCRIPTIONThe \*(C`Sys::Virt::Domain\*(C'\fR module represents a guest domain managed by the virtual machine monitor.

METHODSmy $id = $dom>get_id() Returns an integer with a locally unique identifier for the domain. my $uuid = $dom>get_uuid() Returns a 16 byte long string containing the raw globally unique identifier (UUID) for the domain. my $uuid = $dom>get_uuid_string() Returns a printable string representation of the raw UUID, in the format ​'XXXXXXXX−XXXX−XXXX−XXXX−XXXXXXXXXXXX'. my $name = $dom>get_name() Returns a string with a locally unique name of the domain my $hostname = $dom>get_hostname() Returns a string representing the hostname of the guest my $str = $dom>get_metadata($type, $uri, $flags =0) Returns the metadata element of type $type associated with the domain. If $type is \*(C`Sys::Virt::Domain::METADATA_ELEMENT\*(C'\fR then the $uri parameter specifies the XML namespace to retrieve, otherwise $uri should be \*(C`undef\*(C'\fR. The optional ​$flags parameter defaults to zero. $dom>set_metadata($type, $val, $key, $uri, $flags=0) Sets the metadata element of type $type to hold the value ​$val. If $type is \*(C`Sys::Virt::Domain::METADATA_ELEMENT\*(C'\fR then the $key and $uri elements specify an XML namespace to use, otherwise they should both be \*(C`nudef\*(C'\fR. The optional ​$flags parameter defaults to zero. $dom>is_active() Returns a true value if the domain is currently running $dom>is_persistent() Returns a true value if the domain has a persistent configuration file defined $dom>is_updated() Returns a true value if the domain is running and has a persistent configuration file defined that is out of date compared to the current live config. my $xml = $dom>get_xml_description($flags=0) Returns an XML document containing a complete description of the domain's configuration. The optional $flags parameter controls generation of the XML document, defaulting to 0 if omitted. It can be one or more of the XML DUMP constants listed later in this document. my $type = $dom>get_os_type() Returns a string containing the name of the OS type running within the domain. $dom>create($flags) Start a domain whose configuration was previously defined using the ​\*(C`define_domain\*(C'\fR method in Sys::Virt. The \f(CW$flags\fR parameter accepts one of the DOMAIN CREATION constants documented later, and defaults to 0 if omitted. $dom>undefine() Remove the configuration associated with a domain previously defined with the \*(C`define_domain\*(C'\fR method in Sys::Virt. If the domain is running, you probably want to use the \*(C`shutdown\*(C'\fR or \f(CW\*(C`destroy\*(C'\fR methods instead. $dom>suspend() Temporarily stop execution of the domain, allowing later continuation by calling the \*(C`resume\*(C'\fR method. $dom>resume() Resume execution of a domain previously halted with the \*(C`suspend\*(C'\fR method. $dom>pm_wakeup() Wakeup the guest from power management suspend state $dom>pm_suspend_for_duration($target, $duration, $flags=0) Tells the guest OS to enter the power management suspend state identified by $target. The $target parameter should be one of the NODE SUSPEND CONTANTS listed in \*(C`Sys::Virt\*(C'\fR. The ​$duration specifies when the guest should automatically wakeup. The $flags parameter is optional and defaults to zero. $dom>save($filename) Take a snapshot of the domain's state and save the information to the file named in the $filename parameter. The domain can later be restored from this file with the \*(C`restore_domain\*(C'\fR method on the Sys::Virt object. $dom>managed_save($flags=0) Take a snapshot of the domain's state and save the information to a managed save location. The domain will be automatically restored with this state when it is next started. The $flags parameter is unused and defaults to zero. $bool = $dom>has_managed_save_image($flags=0) Return a non-zero value if the domain has a managed save image that will be used at next start. The $flags parameter is unused and defaults to zero. $dom>managed_save_remove($flags=0) Remove the current managed save image, causing the guest to perform a full boot next time it is started. The $flags parameter is unused and defaults to zero. $dom>core_dump($filename[, $flags]) Trigger a core dump of the guest virtual machine, saving its memory image to $filename so it can be analysed by tools such as \*(C`crash\*(C'\fR. The optional $flags flags parameter is currently unused and if omitted will default to 0. $dom>destroy() Immediately poweroff the machine. This is equivalent to removing the power plug. The guest OS is given no time to cleanup / save state. For a clean poweroff sequence, use the \*(C`shutdown\*(C'\fR method instead. my $info = $dom>get_info() Returns a hash reference summarising the execution state of the domain. The elements of the hash are as follows: maxMem The maximum memory allowed for this domain, in kilobytes memory The current memory allocated to the domain in kilobytes cpuTime The amount of CPU time used by the domain nrVirtCpu The current number of virtual CPUs enabled in the domain state The execution state of the machine, which will be one of the constants &Sys::Virt::Domain::STATE_*. my ($state, $reason) = $dom>get_state() Returns an array whose values specify the current state of the guest, and the reason for it being in that state. The $state values are the same as for the \*(C`get_info\*(C'\fR ​API, and the $reason values come from: Sys::Virt::Domain::STATE_CRASHED_UNKNOWN It is not known why the domain has crashed Sys::Virt::Domain::STATE_NOSTATE_UNKNOWN It is not known why the domain has no state Sys::Virt::Domain::STATE_PAUSED_DUMP The guest is paused due to a core dump operation Sys::Virt::Domain::STATE_PAUSED_FROM_SNAPSHOT The guest is paused due to a snapshot Sys::Virt::Domain::STATE_PAUSED_IOERROR The guest is paused due to an I/O error Sys::Virt::Domain::STATE_PAUSED_MIGRATION The guest is paused due to migration Sys::Virt::Domain::STATE_PAUSED_SAVE The guest is paused due to a save operation Sys::Virt::Domain::STATE_PAUSED_UNKNOWN It is not known why the domain has paused Sys::Virt::Domain::STATE_PAUSED_USER The guest is paused at admin request Sys::Virt::Domain::STATE_PAUSED_WATCHDOG The guest is paused due to the watchdog Sys::Virt::Domain::STATE_PAUSED_SHUTTING_DOWN The guest is paused while domain shutdown takes place Sys::Virt::Domain::STATE_RUNNING_BOOTED The guest is running after being booted Sys::Virt::Domain::STATE_RUNNING_FROM_SNAPSHOT The guest is running after restore from snapshot Sys::Virt::Domain::STATE_RUNNING_MIGRATED The guest is running after migration Sys::Virt::Domain::STATE_RUNNING_MIGRATION_CANCELED The guest is running after migration abort Sys::Virt::Domain::STATE_RUNNING_RESTORED The guest is running after restore from file Sys::Virt::Domain::STATE_RUNNING_SAVE_CANCELED The guest is running after save cancel Sys::Virt::Domain::STATE_RUNNING_UNKNOWN It is not known why the domain has started Sys::Virt::Domain::STATE_RUNNING_UNPAUSED The guest is running after a resume Sys::Virt::Domain::STATE_RUNNING_WAKEUP The guest is running after wakeup from power management suspend Sys::Virt::Domain::STATE_BLOCKED_UNKNOWN The guest is blocked for an unknown reason Sys::Virt::Domain::STATE_SHUTDOWN_UNKNOWN It is not known why the domain has shutdown Sys::Virt::Domain::STATE_SHUTDOWN_USER The guest is shutdown due to admin request Sys::Virt::Domain::STATE_SHUTOFF_CRASHED The guest is shutoff after a crash Sys::Virt::Domain::STATE_SHUTOFF_DESTROYED The guest is shutoff after being destroyed Sys::Virt::Domain::STATE_SHUTOFF_FAILED The guest is shutoff due to a virtualization failure Sys::Virt::Domain::STATE_SHUTOFF_FROM_SNAPSHOT The guest is shutoff after a snapshot Sys::Virt::Domain::STATE_SHUTOFF_MIGRATED The guest is shutoff after migration Sys::Virt::Domain::STATE_SHUTOFF_SAVED The guest is shutoff after a save Sys::Virt::Domain::STATE_SHUTOFF_SHUTDOWN The guest is shutoff due to controlled shutdown Sys::Virt::Domain::STATE_SHUTOFF_UNKNOWN It is not known why the domain has shutoff Sys::Virt::Domain::STATE_PMSUSPENDED_UNKNOWN It is not known why the domain was suspended my $info = $dom>get_control_info($flags=0) Returns a hash reference providing information about the control channel. The returned keys in the hash are state One of the CONTROL INFO constants listed later details Currently unsed, always 0. stateTime The elapsed time since the control channel entered the current state. my @errs = $dom>get_disk_errors($flags=0) Returns a list of all disk errors that have occurred on the backing store for the guest's virtual disks. The returned array elements are hash references, containing two keys path The path of the disk with an error error The error type $dom>send_key($keycodeset, $holdtime, \@keycodes, $flags=0) Sends a sequence of keycodes to the guest domain. The ​$keycodeset should be one of the constants listed later in the KEYCODE SET section. $holdtiem is the duration, in milliseconds, to keep the key pressed before releasing it and sending the next keycode. ​@keycodes is an array reference containing the list of keycodes to send to the guest. The elements in the array should be keycode values from the specified keycode set. $flags is currently unused. my $info = $dom>get_block_info($dev, $flags=0) Returns a hash reference summarising the disk usage of the host backing store for a guest block device. The ​$dev parameter should be the path to the backing store on the host. $flags is currently unused and defaults to 0 if omitted. The returned hash contains the following elements capacity Logical size in bytes of the block device backing image * allocation Highest allocated extent in bytes of the block device backing image physical Physical size in bytes of the container of the backing image $dom>set_max_memory($mem) Set the maximum memory for the domain to the value $mem. The value of the $mem parameter is specified in kilobytes. $mem = $dom>get_max_memory() Returns the current maximum memory allowed for this domain in kilobytes. $dom>set_memory($mem, $flags) Set the current memory for the domain to the value $mem. The value of the $mem parameter is specified in kilobytes. This must be less than, or equal to the domain's max memory limit. The $flags parameter can control whether the update affects the live guest, or inactive config, defaulting to modifying the current state. $dom>shutdown() Request that the guest OS perform a graceful shutdown and poweroff. This usually requires some form of cooperation from the guest operating system, such as responding to an ​ACPI signal, or a guest agent process. For an immediate, forceful poweroff, use the \*(C`destroy\*(C'\fR method instead. $dom>reboot([$flags]) Request that the guest OS perform a graceful shutdown and optionally restart. The optional $flags parameter is currently unused and if omitted defaults to zero. $dom>reset([$flags]) Perform a hardware reset of the virtual machine. The guest ​OS is given no opportunity to shutdown gracefully. The optional $flags parameter is currently unused and if omitted defaults to zero. $dom>get_max_vcpus() Return the maximum number of vcpus that are configured for the domain $dom>attach_device($xml[, $flags]) Hotplug a new device whose configuration is given by $xml, to the running guest. The optional <$flags> parameter defaults to 0, but can accept one of the device hotplug flags described later. $dom>detach_device($xml[, $flags]) Hotunplug a existing device whose configuration is given by $xml, from the running guest. The optional <$flags> parameter defaults to 0, but can accept one of the device hotplug flags described later. $dom>update_device($xml[, $flags]) Update the configuration of an existing device. The new configuration is given by $xml. The optional <$flags> parameter defaults to 0 but can accept one of the device hotplug flags described later. $data = $dom>block_peek($path, $offset, $size[, $flags) Peek into the guest disk $path, at byte $offset capturing ​$size bytes of data. The returned scalar may contain embedded NULLs. The optional $flags parameter is currently unused and if omitted defaults to zero. $data = $dom>memory_peek($offset, $size[, $flags]) Peek into the guest memory at byte $offset virtual address, capturing $size bytes of memory. The return scalar may contain embedded NULLs. The optional $flags parameter is currently unused and if omitted defaults to zero. $flag = $dom>get_autostart()Return a true value if the guest domain is configured to automatically start upon boot. Return false, otherwise $dom>set_autostart($flag) Set the state of the autostart flag, which determines whether the guest will automatically start upon boot of the host OS $dom>set_vcpus($count, [$flags]) Set the number of virtual CPUs in the guest VM to $count. The optional $flags parameter can be used to control whether the setting changes the live config or inactive config. $count = $dom>get_vcpus([$flags]) Get the number of virtual CPUs in the guest VM. The optional $flags parameter can be used to control whether to query the setting of the live config or inactive config. $type = $dom>get_scheduler_type() Return the scheduler type for the guest domain $stats = $dom>block_stats($path) Fetch the current I/O statistics for the block device given by $path. The returned hash reference contains keys for rd_req Number of read requests rd_bytes Number of bytes read wr_req Number of write requests wr_bytes Number of bytes written errs Some kind of error count my $params = $dom>get_scheduler_parameters($flags=0) Return the set of scheduler tunable parameters for the guest, as a hash reference. The precise set of keys in the hash are specific to the hypervisor. $dom>set_scheduler_parameters($params, $flags=0) Update the set of scheduler tunable parameters. The value names for tunables vary, and can be discovered using the \*(C`get_scheduler_params\*(C'\fR call my $params = $dom>get_memory_parameters($flags=0) Return a hash reference containing the set of memory tunable parameters for the guest. The keys in the hash are one of the constants MEMORY PARAMETERS described later. The $flags parameter accepts one or more the CONFIG OPTION constants documented later, and defaults to 0 if omitted. $dom>set_memory_parameters($params, $flags=0) Update the memory tunable parameters for the guest. The ​$params should be a hash reference whose keys are one of the MEMORY PARAMETERS constants. The $flags parameter accepts one or more the CONFIG OPTION constants documented later, and defaults to 0 if omitted. my $params = $dom>get_blkio_parameters($flags=0) Return a hash reference containing the set of blkio tunable parameters for the guest. The keys in the hash are one of the constants BLKIO PARAMETERS described later. The $flags parameter accepts one or more the CONFIG OPTION constants documented later, and defaults to 0 if omitted. $dom>set_blkio_parameters($params, $flags=0) Update the blkio tunable parameters for the guest. The ​$params should be a hash reference whose keys are one of the BLKIO PARAMETERS constants. The $flags parameter accepts one or more the CONFIG OPTION constants documented later, and defaults to 0 if omitted. $stats = $dom>get_block_iotune($disk, $flags=0) Return a hash reference containing the set of blkio tunable parameters for the guest disk $disk. The keys in the hash are one of the constants BLOCK IOTUNE PARAMETERS described later. $dom>set_block_iotune($disk, $params, $flags=0)Update the blkio tunable parameters for the guest disk $disk. The ​$params should be a hash reference whose keys are one of the BLOCK IOTUNE PARAMETERS constants. my $params = $dom>get_interface_parameters($intf, $flags=0) Return a hash reference containing the set of interface tunable parameters for the guest. The keys in the hash are one of the constants INTERFACE PARAMETERS described later. $dom>set_interface_parameters($intf, $params, $flags=0) Update the interface tunable parameters for the guest. The ​$params should be a hash reference whose keys are one of the INTERFACE PARAMETERS constants. my $params = $dom>get_numa_parameters($flags=0) Return a hash reference containing the set of numa tunable parameters for the guest. The keys in the hash are one of the constants NUMA PARAMETERS described later. The $flags parameter accepts one or more the CONFIG OPTION constants documented later, and defaults to 0 if omitted. $dom>set_numa_parameters($params, $flags=0) Update the numa tunable parameters for the guest. The ​$params should be a hash reference whose keys are one of the NUMA PARAMETERS constants. The $flags parameter accepts one or more the CONFIG OPTION constants documented later, and defaults to 0 if omitted. $dom>block_resize($disk, $newsize, $flags=0) Resize the disk $disk to have new size $newsize KB. If the disk is backed by a special image format, the actual resize is done by the hypervisor. If the disk is backed by a raw file, or block device, the resize must be done prior to invoking this API call, and it merely updates the hypervisor's view of the disk size. The following flags may be used Sys::Virt::Domain::BLOCK_RESIZE_BYTES Treat $newsize as if it were in bytes, rather than KB. $dom>interface_stats($path) Fetch the current I/O statistics for the block device given by $path. The returned hash containins keys for rx_bytes Total bytes received rx_packets Total packets received rx_errs Total packets received with errors rx_drop Total packets drop at reception tx_bytes Total bytes transmitted tx_packets Total packets transmitted tx_errs Total packets transmitted with errors tx_drop Total packets dropped at transmission. $dom>memory_stats($flags=0) Fetch the current memory statistics for the guest domain. The ​$flags parameter is currently unused and can be omitted. The returned hash containins keys for swap_in Data read from swap space swap_out Data written to swap space major_fault Page fault involving disk I/O minor_fault Page fault not involving disk I/O unused Memory not used by the system available Total memory seen by guest $info = $dom>get_security_label() Fetch information about the security label assigned to the guest domain. The returned hash reference has two keys, \*(C`model\*(C'\fR gives the name of the security model in effect (eg \*(C`selinux\*(C'\fR), while ​\*(C`label\*(C'\fR provides the name of the security label applied to the domain. This method only returns information about the first security label. To retrieve all labels, use \*(C`get_security_label_list\*(C'\fR. @info = $dom>get_security_label_list() Fetches information about all security labels assigned to the guest domain. The elements in the returned array are all hash references, whose keys are as described for \*(C`get_security_label\*(C'\fR. $ddom = $dom>migrate(destcon, flags, dname, uri, bandwidth) Migrate a domain to an alternative host. The \*(C`destcon\*(C'\fR parameter should be a \*(C`Sys::Virt\*(C'\fR connection to the remote target host. If the \*(C`flags\*(C'\fR parameter is zero offline migration will be performed. The \*(C`Sys::Virt::Domain::MIGRATE_LIVE\*(C'\fR constant can be used to request live migration. The \*(C`dname\*(C'\fR parameter allows the guest to be renamed on the target host, if set to \*(C`undef\*(C'\fR, the domains' current name will be maintained. In normal circumstances, the source host determines the target hostname from the URI associated with the \*(C`destcon\*(C'\fR connection. If the destination host is multi-homed it may be necessary to supply an alternate destination hostame via the \*(C`uri\*(C'\fR parameter. The \f(CW\*(C`bandwidth\*(C'\fR parameter allows network usage to be throttled during migration. If set to zero, no throttling will be performed. The \*(C`flags\*(C'\fR, \f(CW\*(C`dname\*(C'\fR, \f(CW\*(C`uri\*(C'\fR and \f(CW\*(C`bandwidth\*(C'\fR parameters are all optional, and if omitted default to zero, \*(C`undef\*(C'\fR, ​\*(C`undef\*(C'\fR, and zero respectively. $ddom = $dom>migrate2(destcon, dxml, flags, dname, uri, bandwidth) Migrate a domain to an alternative host. This function works in the same way as \*(C`migrate\*(C'\fR, except is also allows \f(CW\*(C`dxml\*(C'\fR to specify a changed XML configuration for the guest on the target host. $dom>migrate_to_uri(desturi, flags, dname, bandwidth) Migrate a domain to an alternative host. The \*(C`destri\*(C'\fR parameter should be a valid libvirt connection URI for the remote target host. If the \*(C`flags\*(C'\fR parameter is zero offline migration will be performed. The \*(C`Sys::Virt::Domain::MIGRATE_LIVE\*(C'\fR constant can be used to request live migration. The \*(C`dname\*(C'\fR parameter allows the guest to be renamed on the target host, if set to \*(C`undef\*(C'\fR, the domains' current name will be maintained. In normal circumstances, the source host determines the target hostname from the URI associated with the \*(C`destcon\*(C'\fR connection. If the destination host is multi-homed it may be necessary to supply an alternate destination hostame via the \*(C`uri\*(C'\fR parameter. The \f(CW\*(C`bandwidth\*(C'\fR parameter allows network usage to be throttled during migration. If set to zero, no throttling will be performed. The \*(C`flags\*(C'\fR, \f(CW\*(C`dname\*(C'\fR and \f(CW\*(C`bandwidth\*(C'\fR parameters are all optional, and if omitted default to zero, \*(C`undef\*(C'\fR, ​\*(C`undef\*(C'\fR, and zero respectively. $dom>migrate_to_uri2(dconnuri, miguri, dxml, flags, dname, bandwidth) Migrate a domain to an alternative host. This function works in almost the same way as \*(C`migrate_to_uri\*(C'\fR, except is also allows \f(CW\*(C`dxml\*(C'\fR to specify a changed XML configuration for the guest on the target host. The \*(C`dconnuri\*(C'\fR must always specify the \s-1URI\s0 of the remote libvirtd daemon, or be \*(C`undef\*(C'\fR. The \f(CW\*(C`miguri\*(C'\fR parameter can be used to specify the URI for initiating the migration operation, or be \*(C`undef\*(C'\fR. $dom>migrate_set_max_downtime($downtime, $flags) Set the maximum allowed downtime during migration of the guest. A longer downtime makes it more likely that migration will complete, at the cost of longer time blackout for the guest OS at the switch over point. The \*(C`downtime\*(C'\fR parameter is measured in milliseconds. The $flags parameter is currently unused and defaults to zero. $dom>migrate_set_max_speed($bandwidth, $flags) Set the maximum allowed bandwidth during migration of the guest. The \*(C`bandwidth\*(C'\fR parameter is measured in MB/second. The $flags parameter is currently unused and defaults to zero. $bandwidth = $dom>migrate_get_max_speed($flag) Get the maximum allowed bandwidth during migration fo the guest. The returned <bandwidth> value is measured in MB/second. The $flags parameter is currently unused and defaults to zero. $dom>inject_nmi($flags) Trigger an NMI in the guest virtual machine. The $flags parameter is currently unused and defaults to 0. $dom>open_console($st, $devname, $flags) Open the text console for a serial, parallel or paravirt console device identified by $devname, connecting it to the stream ​$st. If $devname is undefined, the default console will be opened. $st must be a \*(C`Sys::Virt::Stream\*(C'\fR object used for bi-directional communication with the console. $flags is currently unused, defaulting to 0. $dom>open_graphics($idx, $fd, $flags) Open the graphics console for a guest, identified by $idx, counting from 0. The $fd should be a file descriptor for an anoymous socket pair. The $flags argument should be one of the constants listed at the end of this document, and defaults to 0. my $mimetype = $dom>screenshot($st, $screen, $flags) Capture a screenshot of the virtual machine's monitor. The $screen parameter controls which monitor is captured when using a multi-head or multi-card configuration. $st must be a \*(C`Sys::Virt::Stream\*(C'\fR object from which the data can be read. $flags is currently unused and defaults to 0. The mimetype of the screenshot is returned @vcpuinfo = $dom>get_vcpu_info($flags=0) Obtain information about the state of all virtual CPUs in a running guest domain. The returned list will have one element for each vCPU, where each elements contains a hash reference. The keys in the hash are, \*(C`number\*(C'\fR the vCPU number, \f(CW\*(C`cpu\*(C'\fR the physical \s-1CPU\s0 on which the vCPU is currently scheduled, \*(C`cpuTime\*(C'\fR the cummulative execution time of the vCPU, \*(C`state\*(C'\fR the running state and \f(CW\*(C`affinity\*(C'\fR giving the allowed shedular placement. The value for \*(C`affinity\*(C'\fR is a string representing a bitmask against physical CPUs, 8 cpus per character. To extract the bits use the \*(C`unpack\*(C'\fR function with the \*(C`b*\*(C'\fR template. \s-1NB\s0 The \f(CW\*(C`state\*(C'\fR, \f(CW\*(C`cpuTime\*(C'\fR, \f(CW\*(C`cpu\*(C'\fR values are only available if using $flags value of 0, and the domain is currently running; otherwise they will all be set to zero. $dom>pin_vcpu($vcpu, $mask) Pin the virtual CPU given by index $vcpu to physical CPUs given by $mask. The $mask is a string representing a bitmask against physical CPUs, 8 cpus per character. $mask = $dom>get_emulator_pin_info() Obtain information about the CPU affinity of the emulator process. The returned $mask is a bitstring against physical CPUs, 8 cpus per character. To extract the bits use the \*(C`unpack\*(C'\fR function with the \*(C`b*\*(C'\fR template. $dom>pin_emulator($newmask, $flags=0) Pin the emulator threads to the physical CPUs identified by the affinity in $newmask. The $newmask is a bitstring against the physical CPUa, 8 cpus per character. To create a suitable bitstring, use the \*(C`vec\*(C'\fR function with a value of \f(CW1\fR for the ​\*(C`BITS\*(C'\fR parameter. my @stats = $dom>get_cpu_stats($startCpu, $numCpus, $flags=0) Requests the guests host physical CPU usage statistics, starting from host CPU <$startCpu> counting upto $numCpus. If $startCpu is −1 and $numCpus is 1, then the utilization across all CPUs is returned. Returns an array of hash references, each element containing stats for one CPU. my $info = $dom>get_job_info() Returns a hash reference summarising the execution state of the background job. The elements of the hash are as follows: type The type of job, one of the JOB TYPE constants listed later in this document. timeElapsed The elapsed time in milliseconds timeRemaining The expected remaining time in milliseconds. Only set if the ​\*(C`type\*(C'\fR is \s-1JOB_UNBOUNDED\s0. dataTotal The total amount of data expected to be processed by the job, in bytes. dataProcessed The current amount of data processed by the job, in bytes. dataRemaining The expected amount of data remaining to be processed by the job, in bytes. memTotal The total amount of mem expected to be processed by the job, in bytes. memProcessed The current amount of mem processed by the job, in bytes. memRemaining The expected amount of mem remaining to be processed by the job, in bytes. fileTotal The total amount of file expected to be processed by the job, in bytes. fileProcessed The current amount of file processed by the job, in bytes. fileRemaining The expected amount of file remaining to be processed by the job, in bytes. $dom>abort_job() Aborts the currently executing job my $info = $dom>get_block_job_info($path, $flags=0) Returns a hash reference summarising the execution state of the block job. The $path parameter should be the fully qualified path of the block device being changed. $dom>set_block_job_speed($path, $bandwidth, $flags=0) Change the maximum I/O bandwidth used by the block job that is currently executing for $path. The $bandwidth argument is specified in MB/s $dom>abort_block_job($path, $flags=0) Abort the current job that is executing for the block device associated with $path $dom>block_pull($path, $bandwith, $flags=0) Merge the backing files associated with $path into the top level file. The $bandwidth parameter specifies the maximum I/O rate to allow in MB/s. $dom>block_rebase($path, $base, $bandwith, $flags=0) Switch the backing path associated with $path to instead use $base. The $bandwidth parameter specifies the maximum I/O rate to allow in MB/s. $dom>block_commit($path, $base, $top, $bandwith, $flags=0) Commit changes there were made to the temporary top level file $top. Takes all the differences between $top and $base and merge them into $base. The $bandwidth parameter specifies the maximum I/O rate to allow in MB/s. $count = $dom>num_of_snapshots() Return the number of saved snapshots of the domain @names = $dom>list_snapshot_names() List the names of all saved snapshots. The names can be used with the \*(C`lookup_snapshot_by_name\*(C'\fR @snapshots = $dom>list_snapshots() Return a list of all snapshots currently known to the domain. The elements in the returned list are instances of the Sys::Virt::DomainSnapshot class. This method requires O(n) RPC calls, so the \*(C`list_all_snapshots\*(C'\fR method is recommended as a more efficient alternative. my @snapshots = $dom>list_all_snapshots($flags) Return a list of all domain snapshots associated with this domain. The elements in the returned list are instances of the Sys::Virt::DomainSnapshot class. The $flags parameter can be used to filter the list of return domain snapshots. my $snapshot = $dom>get_snapshot_by_name($name) Return the domain snapshot with a name of $name. The returned object is an instance of the Sys::Virt::DomainSnapshot class. $dom>has_current_snapshot() Returns a true value if the domain has a currently active snapshot $snapshot = $dom>current_snapshot() Returns the currently active snapshot for the domain. $snapshot = $dom>create_snapshot($xml[, $flags]) Create a new snapshot from the $xml. The $flags parameter accepts the SNAPSHOT CREATION constants listed in \*(C`Sys::Virt::DomainSnapshots\*(C'\fR.

CONSTANTSA number of the APIs take a \*(C`flags\*(C'\fR 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.

DOMAIN STATEThe domain state constants are useful in interpreting the ​\*(C`state\*(C'\fR key in the hash returned by the \f(CW\*(C`get_info\*(C'\fR method. Sys::Virt::Domain::STATE_NOSTATE The domain is active, but is not running / blocked (eg idle) Sys::Virt::Domain::STATE_RUNNING The domain is active and running Sys::Virt::Domain::STATE_BLOCKED The domain is active, but execution is blocked Sys::Virt::Domain::STATE_PAUSED The domain is active, but execution has been paused Sys::Virt::Domain::STATE_SHUTDOWN The domain is active, but in the shutdown phase Sys::Virt::Domain::STATE_SHUTOFF The domain is inactive, and shut down. Sys::Virt::Domain::STATE_CRASHED The domain is inactive, and crashed. Sys::Virt::Domain::STATE_PMSUSPENDED The domain is active, but in power management suspend state

CONTROL INFOThe following constants can be used to determine what the guest domain control channel status is Sys::Virt::Domain::CONTROL_ERROR The control channel has a fatal error Sys::Virt::Domain::CONTROL_OK The control channel is ready for jobs Sys::Virt::Domain::CONTROL_OCCUPIED The control channel is busy Sys::Virt::Domain::CONTROL_JOB The control channel is busy with a job

DOMAIN CREATIONThe following constants can be used to control the behaviour of domain creation Sys::Virt::Domain::START_PAUSED Keep the guest vCPUs paused after starting the guest Sys::Virt::Domain::START_AUTODESTROY Automatically destroy the guest when the connection is closed (or fails) Sys::Virt::Domain::START_BYPASS_CACHE Do not use OS I/O cache if starting a domain with a saved state image Sys::Virt::Domain::START_FORCE_BOOT Boot the guest, even if there was a saved snapshot

KEYCODE SETSThe following constants define the set of supported keycode sets Sys::Virt::Domain::KEYCODE_SET_LINUX The Linux event subsystem keycodes Sys::Virt::Domain::KEYCODE_SET_XT The original XT keycodes Sys::Virt::Domain::KEYCODE_SET_ATSET1 The AT Set1 keycodes (aka XT) Sys::Virt::Domain::KEYCODE_SET_ATSET2 The AT Set2 keycodes (aka AT) Sys::Virt::Domain::KEYCODE_SET_ATSET3 The AT Set3 keycodes (aka PS2) Sys::Virt::Domain::KEYCODE_SET_OSX The OS-X keycodes Sys::Virt::Domain::KEYCODE_SET_XT_KBD The XT keycodes from the Linux Keyboard driver Sys::Virt::Domain::KEYCODE_SET_USB The USB HID keycode set Sys::Virt::Domain::KEYCODE_SET_WIN32 The Windows keycode set Sys::Virt::Domain::KEYCODE_SET_RFB The XT keycode set, with the extended scancodes using the high bit of the first byte, instead of the low bit of the second byte.

MEMORY PEEKThe following constants can be used with the \*(C`memory_peek\*(C'\fR method's flags parameter Sys::Virt::Domain::MEMORY_VIRTUAL Indicates that the offset is using virtual memory addressing. Sys::Virt::Domain::MEMORY_PHYSICAL Indicates that the offset is using physical memory addressing.

VCPU STATEThe following constants are useful when interpreting the virtual CPU run state Sys::Virt::Domain::VCPU_OFFLINE The virtual CPU is not online Sys::Virt::Domain::VCPU_RUNNING The virtual CPU is executing code Sys::Virt::Domain::VCPU_BLOCKED The virtual CPU is waiting to be scheduled

OPEN GRAPHICS CONSTANTSThe following constants are used when opening a connection to the guest graphics server Sys::Virt::Domain::OPEN_GRAPHICS_SKIPAUTH Skip authentication of the client

OPEN CONSOLE CONSTANTSThe following constants are used when opening a connection to the guest console Sys::Virt::Domain::OPEN_CONSOLE_FORCE Force opening of the console, disconnecting any other open session Sys::Virt::Domain::OPEN_CONSOLE_SAFE Check if the console driver supports safe operations

XML DUMP OPTIONSThe following constants are used to control the information included in the XML configuration dump Sys::Virt::Domain::XML_INACTIVE Report the persistent inactive configuration for the guest, even if it is currently running. Sys::Virt::Domain::XML_SECURE Include security sensitive information in the XML dump, such as passwords. Sys::Virt::Domain::XML_UPDATE_CPU Update the CPU model definition to match the current executing state.

DEVICE HOTPLUG OPTIONSThe following constants are used to control device hotplug operations Sys::Virt::Domain::DEVICE_MODIFY_CURRENT Modify the domain in its current state Sys::Virt::Domain::DEVICE_MODIFY_LIVE Modify only the live state of the domain Sys::Virt::Domain::DEVICE_MODIFY_CONFIG Modify only the persistent config of the domain Sys::Virt::Domain::DEVICE_MODIFY_FORCE Force the device to be modified

MEMORY OPTIONSThe following constants are used to control memory change operations Sys::Virt::Domain::MEM_CURRENT Modify the current state Sys::Virt::Domain::MEM_LIVE Modify only the live state of the domain Sys::Virt::Domain::MEM_CONFIG Modify only the persistent config of the domain Sys::Virt::Domain::MEM_MAXIMUM Modify the maximum memory value

CONFIG OPTIONSThe following constants are used to control what configuration a domain update changes Sys::Virt::Domain::AFFECT_CURRENT Modify the current state Sys::Virt::Domain::AFFECT_LIVE Modify only the live state of the domain Sys::Virt::Domain::AFFECT_CONFIG Modify only the persistent config of the domain

MIGRATE OPTIONSThe following constants are used to control how migration is performed Sys::Virt::Domain::MIGRATE_LIVE Migrate the guest without interrupting its execution on the source host. Sys::Virt::Domain::MIGRATE_PEER2PEER Manage the migration process over a direct peer−2−peer connection between the source and destination host libvirtd daemons. Sys::Virt::Domain::MIGRATE_TUNNELLED Tunnel the migration data over the libvirt daemon connection, rather than the native hypervisor data transport. Requires PEER2PEER flag to be set. Sys::Virt::Domain::MIGRATE_PERSIST_DEST Make the domain persistent on the destination host, defining its configuration file upon completion of migration. Sys::Virt::Domain::MIGRATE_UNDEFINE_SOURCE Remove the domain's persistent configuration after migration completes successfully. Sys::Virt::Domain::MIGRATE_PAUSED Do not re-start execution of the guest CPUs on the destination host after migration completes. Sys::Virt::Domain::MIGRATE_NON_SHARED_DISK Copy the complete contents of the disk images during migration Sys::Virt::Domain::MIGRATE_NON_SHARED_INC Copy the incrementally changed contents of the disk images during migration Sys::Virt::Domain::MIGRATE_CHANGE_PROTECTION Do not allow changes to the virtual domain configuration while migration is taking place. This option is automatically implied if doing a peer−2−peer migration. Sys::Virt::Domain::MIGRATE_UNSAFE Migrate even if the compatibility check indicates the migration will be unsafe to the guest.

UNDEFINE CONSTANTSThe following constants can be used when undefining virtual domain configurations Sys::Virt::Domain::UNDEFINE_MANAGED_SAVE Also remove any managed save image when undefining the virtual domain Sys::Virt::Domain::UNDEFINE_SNAPSHOTS_METADATA Also remove any snapshot metadata when undefining the virtual domain.

JOB TYPESThe following constants describe the different background job types. Sys::Virt::Domain::JOB_NONE No job is active Sys::Virt::Domain::JOB_BOUNDED A job with a finite completion time is active Sys::Virt::Domain::JOB_UNBOUNDED A job with an unbounded completion time is active Sys::Virt::Domain::JOB_COMPLETED The job has finished, but isn't cleaned up Sys::Virt::Domain::JOB_FAILED The job has hit an error, but isn't cleaned up Sys::Virt::Domain::JOB_CANCELLED The job was aborted at user request, but isn't cleaned up

MEMORY PARAMETERSThe following constants are useful when getting/setting memory parameters for guests Sys::Virt::Domain::MEMORY_HARD_LIMIT The maximum memory the guest can use. Sys::Virt::Domain::MEMORY_SOFT_LIMIT The memory upper limit enforced during memory contention. Sys::Virt::Domain::MEMORY_MIN_GUARANTEE The minimum memory guaranteed to be reserved for the guest. Sys::Virt::Domain::MEMORY_SWAP_HARD_LIMIT The maximum swap the guest can use. Sys::Virt::Domain::MEMORY_PARAM_UNLIMITED The value of an unlimited memory parameter

BLKIO PARAMETERSThe following parameters control I/O tuning for the domain as a whole Sys::Virt::Domain::BLKIO_WEIGHT The I/O weight parameter Sys::Virt::Domain::BLKIO_DEVICE_WEIGHT The per-device I/O weight parameter

BLKIO TUNING PARAMETERSThe following parameters control I/O tuning for an individual guest disk. Sys::Virt::Domain::BLOCK_IOTUNE_TOTAL_BYTES_SEC The total bytes processed per second. Sys::Virt::Domain::BLOCK_IOTUNE_READ_BYTES_SEC The bytes read per second. Sys::Virt::Domain::BLOCK_IOTUNE_WRITE_BYTES_SEC The bytes written per second. Sys::Virt::Domain::BLOCK_IOTUNE_TOTAL_IOPS_SEC The total I/O operations processed per second. Sys::Virt::Domain::BLOCK_IOTUNE_READ_IOPS_SEC The I/O operations read per second. Sys::Virt::Domain::BLOCK_IOTUNE_WRITE_IOPS_SEC The I/O operations written per second.

SCHEDULER CONSTANTSSys::Virt::Domain::SCHEDULER_CAP The VM cap tunable Sys::Virt::Domain::SCHEDULER_CPU_SHARES The CPU shares tunable Sys::Virt::Domain::SCHEDULER_LIMIT The VM limit tunable Sys::Virt::Domain::SCHEDULER_RESERVATION The VM reservation tunable Sys::Virt::Domain::SCHEDULER_SHARES The VM shares tunable Sys::Virt::Domain::SCHEDULER_VCPU_PERIOD The VCPU period tunable Sys::Virt::Domain::SCHEDULER_VCPU_QUOTA The VCPU quota tunable Sys::Virt::Domain::SCHEDULER_WEIGHT The VM weight tunable

NUMA PARAMETERSThe following constants are useful when getting/setting the guest NUMA memory policy Sys::Virt::Domain::NUMA_MODE The NUMA policy mode Sys::Virt::Domain::NUMA_NODESET The NUMA nodeset mask The following constants are useful when interpreting the ​\*(C`Sys::Virt::Domain::NUMA_MODE\*(C'\fR parameter value Sys::Virt::Domain::NUMATUNE_MEM_STRICT Allocation is mandatory from the mask nodes Sys::Virt::Domain::NUMATUNE_MEM_PREFERRED Allocation is preferred from the masked nodes Sys::Virt::Domain::NUMATUNE_MEM_INTERLEAVE Allocation is interleaved across all masked nods

INTERFACE PARAMETERSThe following constants are useful when getting/setting the per network interface tunable parameters Sys::Virt::Domain::BANDWIDTH_IN_AVERAGE The average inbound bandwidth Sys::Virt::Domain::BANDWIDTH_IN_PEAK The peak inbound bandwidth Sys::Virt::Domain::BANDWIDTH_IN_BURST The burstable inbound bandwidth Sys::Virt::Domain::BANDWIDTH_OUT_AVERAGE The average outbound bandwidth Sys::Virt::Domain::BANDWIDTH_OUT_PEAK The peak outbound bandwidth Sys::Virt::Domain::BANDWIDTH_OUT_BURST The burstable outbound bandwidth

VCPU FLAGSThe following constants are useful when getting/setting the ​VCPU count for a guest Sys::Virt::Domain::VCPU_LIVE Flag to request the live value Sys::Virt::Domain::VCPU_CONFIG Flag to request the persistent config value Sys::Virt::Domain::VCPU_CURRENT Flag to request the current config value Sys::Virt::Domain::VCPU_MAXIMUM Flag to request adjustment of the maximum vCPU value

STATE CHANGE EVENTSThe following constants allow domain state change events to be interpreted. The events contain both a state change, and a reason. Sys::Virt::Domain::EVENT_DEFINED Indicates that a persistent configuration has been defined for the domain. Sys::Virt::Domain::EVENT_DEFINED_ADDED The defined configuration is newly added Sys::Virt::Domain::EVENT_DEFINED_UPDATED The defined configuration is an update to an existing configuration Sys::Virt::Domain::EVENT_RESUMED The domain has resumed execution Sys::Virt::Domain::EVENT_RESUMED_MIGRATED The domain resumed because migration has completed. This is emitted on the destination host. Sys::Virt::Domain::EVENT_RESUMED_UNPAUSED The domain resumed because the admin unpaused it. Sys::Virt::Domain::EVENT_RESUMED_FROM_SNAPSHOT The domain resumed because it was restored from a snapshot Sys::Virt::Domain::EVENT_STARTED The domain has started running Sys::Virt::Domain::EVENT_STARTED_BOOTED The domain was booted from shutoff state Sys::Virt::Domain::EVENT_STARTED_MIGRATED The domain started due to an incoming migration Sys::Virt::Domain::EVENT_STARTED_RESTORED The domain was restored from saved state file Sys::Virt::Domain::EVENT_STARTED_FROM_SNAPSHOT The domain was restored from a snapshot Sys::Virt::Domain::EVENT_STARTED_WAKEUP The domain was woken up from suspend Sys::Virt::Domain::EVENT_STOPPED The domain has stopped running Sys::Virt::Domain::EVENT_STOPPED_CRASHED The domain stopped because guest operating system has crashed Sys::Virt::Domain::EVENT_STOPPED_DESTROYED The domain stopped because administrator issued a destroy command. Sys::Virt::Domain::EVENT_STOPPED_FAILED The domain stopped because of a fault in the host virtualization environment. Sys::Virt::Domain::EVENT_STOPPED_MIGRATED The domain stopped because it was migrated to another machine. Sys::Virt::Domain::EVENT_STOPPED_SAVED The domain was saved to a state file Sys::Virt::Domain::EVENT_STOPPED_SHUTDOWN The domain stopped due to graceful shutdown of the guest. Sys::Virt::Domain::EVENT_STOPPED_FROM_SNAPSHOT The domain was stopped due to a snapshot Sys::Virt::Domain::EVENT_SHUTDOWN The domain has shutdown but is not yet stopped Sys::Virt::Domain::EVENT_SHUTDOWN_FINISHED The domain finished shutting down Sys::Virt::Domain::EVENT_SUSPENDED The domain has stopped executing, but still exists Sys::Virt::Domain::EVENT_SUSPENDED_MIGRATED The domain has been suspended due to offline migration Sys::Virt::Domain::EVENT_SUSPENDED_PAUSED The domain has been suspended due to administrator pause request. Sys::Virt::Domain::EVENT_SUSPENDED_IOERROR The domain has been suspended due to a block device I/O error. Sys::Virt::Domain::EVENT_SUSPENDED_FROM_SNAPSHOT The domain has been suspended due to resume from snapshot Sys::Virt::Domain::EVENT_SUSPENDED_WATCHDOG The domain has been suspended due to the watchdog triggering Sys::Virt::Domain::EVENT_SUSPENDED_RESTORED The domain has been suspended due to restore from saved state Sys::Virt::Domain::EVENT_UNDEFINED The persistent configuration has gone away Sys::Virt::Domain::EVENT_UNDEFINED_REMOVED The domain configuration has gone away due to it being removed by administrator. Sys::Virt::Domain::EVENT_PMSUSPENDED The domain has stopped running Sys::Virt::Domain::EVENT_PMSUSPENDED_MEMORY The domain has suspend to RAM.

EVENT ID CONSTANTSSys::Virt::Domain::EVENT_ID_LIFECYCLE Domain lifecycle events Sys::Virt::Domain::EVENT_ID_REBOOT Soft / warm reboot events Sys::Virt::Domain::EVENT_ID_RTC_CHANGE RTC clock adjustments Sys::Virt::Domain::EVENT_ID_IO_ERROR File IO errors, typically from disks Sys::Virt::Domain::EVENT_ID_WATCHDOG Watchdog device triggering Sys::Virt::Domain::EVENT_ID_GRAPHICS Graphics client connections. Sys::Virt::Domain::EVENT_ID_IO_ERROR_REASON File IO errors, typically from disks, with a root cause Sys::Virt::Domain::EVENT_ID_CONTROL_ERROR Errors from the virtualization control channel Sys::Virt::Domain::EVENT_ID_BLOCK_JOB Completion status of asynchronous block jobs Sys::Virt::Domain::EVENT_ID_DISK_CHANGE Changes in disk media Sys::Virt::Domain::EVENT_ID_TRAY_CHANGE CDROM media tray state Sys::Virt::Domain::EVENT_ID_PMSUSPEND Power management initiated suspend Sys::Virt::Domain::EVENT_ID_PMWAKEUP Power management initiated wakeup Sys::Virt::Domain::EVENT_ID_BALLOON_CHANGE Balloon target changes

IO ERROR EVENT CONSTANTSThese constants describe what action was taken due to the ​IO error. Sys::Virt::Domain::EVENT_IO_ERROR_NONE No action was taken, the error was ignored & reported as success to guest Sys::Virt::Domain::EVENT_IO_ERROR_PAUSE The guest is paused since the error occurred Sys::Virt::Domain::EVENT_IO_ERROR_REPORT The error has been reported to the guest OS

WATCHDOG EVENT CONSTANTSThese constants describe what action was taken due to the watchdog firing Sys::Virt::Domain::EVENT_WATCHDOG_NONE No action was taken, the watchdog was ignored Sys::Virt::Domain::EVENT_WATCHDOG_PAUSE The guest is paused since the watchdog fired Sys::Virt::Domain::EVENT_WATCHDOG_POWEROFF The guest is powered off after the watchdog fired Sys::Virt::Domain::EVENT_WATCHDOG_RESET The guest is reset after the watchdog fired Sys::Virt::Domain::EVENT_WATCHDOG_SHUTDOWN The guest attempted to gracefully shutdown after the watchdog fired Sys::Virt::Domain::EVENT_WATCHDOG_DEBUG No action was taken, the watchdog was logged

GRAPHICS EVENT PHASE CONSTANTSThese constants describe the phase of the graphics connection Sys::Virt::Domain::EVENT_GRAPHICS_CONNECT The initial client connection Sys::Virt::Domain::EVENT_GRAPHICS_INITIALIZE The client has been authenticated & the connection is running Sys::Virt::Domain::EVENT_GRAPHICS_DISCONNECT The client has disconnected

GRAPHICS EVENT ADDRESS CONSTANTSThese constants describe the format of the address Sys::Virt::Domain::EVENT_GRAPHICS_ADDRESS_IPV4 An IPv4 address Sys::Virt::Domain::EVENT_GRAPHICS_ADDRESS_IPV6 An IPv6 address Sys::Virt::Domain::EVENT_GRAPHICS_ADDRESS_UNIX An UNIX socket path address

DISK CHANGE EVENT CONSTANTSThese constants describe the reason for a disk change event Sys::Virt::Domain::EVENT_DISK_CHANGE_MISSING_ON_START The disk media was missing when attempting to start the guest

TRAY CHANGE CONSTANTSThese constants describe the reason for a tray change event Sys::Virt::Domain::EVENT_TRAY_CHANGE_CLOSE The tray was closed Sys::Virt::Domain::EVENT_TRAY_CHANGE_OPEN The tray was opened

DOMAIN BLOCK JOB TYPE CONSTANTSThe following constants identify the different types of domain block jobs Sys::Virt::Domain::BLOCK_JOB_TYPE_UNKNOWN An unknown block job type Sys::Virt::Domain::BLOCK_JOB_TYPE_PULL The block pull job type Sys::Virt::Domain::BLOCK_JOB_TYPE_COPY The block copy job type Sys::Virt::Domain::BLOCK_JOB_TYPE_COMMIT The block commit job type

DOMAIN BLOCK JOB COMPLETION CONSTANTSThe following constants can be used to determine the completion status of a block job Sys::Virt::Domain::BLOCK_JOB_COMPLETED A successfully completed block job Sys::Virt::Domain::BLOCK_JOB_FAILED An unsuccessful block job Sys::Virt::Domain::BLOCK_JOB_CANCELED A block job canceled byy the user

DOMAIN BLOCK REBASE CONSTANTSThe following constants are useful when rebasing block devices Sys::Virt::Domain::BLOCK_REBASE_SHALLOW Limit copy to top of source backing chain Sys::Virt::Domain::BLOCK_REBASE_REUSE_EXT Reuse existing external file for copy Sys::Virt::Domain::BLOCK_REBASE_COPY_RAW Make destination file raw Sys::Virt::Domain::BLOCK_REBASE_COPY Start a copy job

DOMAIN BLOCK JOB ABORT CONSTANTSThe following constants are useful when aborting job copy jobs Sys::Virt::Domain::BLOCK_JOB_ABORT_ASYNC Request only, do not wait for completion Sys::Virt::Domain::BLOCK_JOB_ABORT_PIVOT Pivot to mirror when ending a copy job

DOMAIN BLOCK COMMIT JOB CONSTANTSThe following constants are useful with block commit job types Sys::Virt::Domain::BLOCK_COMMIT_DELETE Delete any files that are invalid after commit Sys::Virt::Domain::BLOCK_COMMIT_SHALLOW NULL base means next backing file, not whole chain

DOMAIN SAVE / RESTORE CONSTANTSThe following constants can be used when saving or restoring virtual machines Sys::Virt::Domain::SAVE_BYPASS_CACHE Do not use OS I/O cache when saving state. Sys::Virt::Domain::SAVE_PAUSED Mark the saved state as paused to prevent the guest CPUs starting upon restore. Sys::Virt::Domain::SAVE_RUNNING Mark the saved state as running to allow the guest CPUs to start upon restore.

DOMAIN CORE DUMP CONSTANTSThe following constants can be used when triggering domain core dumps Sys::Virt::Domain::DUMP_LIVE Do not pause execution while dumping the guest Sys::Virt::Domain::DUMP_CRASH Crash the guest after completing the core dump Sys::Virt::Domain::DUMP_BYPASS_CACHE Do not use OS I/O cache when writing core dump Sys::Virt::Domain::DUMP_RESET Reset the virtual machine after finishing the dump Sys::Virt::Domain::DUMP_MEMORY_ONLY Only include guest RAM in the dump, not the device state

DESTROY CONSTANTSThe following constants are useful when terminating guests using the \*(C`destroy\*(C'\fR \s-1API\s0. Sys::Virt::Domain::DESTROY_DEFAULT Destroy the guest using the default approach Sys::Virt::Domain::DESTROY_GRACEFUL Destroy the guest in a graceful manner

SHUTDOWN CONSTANTSThe following constants are useful when requesting that a guest terminate using the \*(C`shutdown\*(C'\fR \s-1API\s0 Sys::Virt::Domain::SHUTDOWN_DEFAULT Shutdown using the hypervisor's default mechanism Sys::Virt::Domain::SHUTDOWN_GUEST_AGENT Shutdown by issuing a command to a guest agent Sys::Virt::Domain::SHUTDOWN_ACPI_POWER_BTN Shutdown by injecting an ACPI power button press

REBOOT CONSTANTSThe following constants are useful when requesting that a guest terminate using the \*(C`reboot\*(C'\fR \s-1API\s0 Sys::Virt::Domain::REBOOT_DEFAULT Reboot using the hypervisor's default mechanism Sys::Virt::Domain::REBOOT_GUEST_AGENT Reboot by issuing a command to a guest agent Sys::Virt::Domain::REBOOT_ACPI_POWER_BTN Reboot by injecting an ACPI power button press

METADATA CONSTANTSThe following constants are useful when reading/writing metadata about a guest Sys::Virt::Domain::METADATA_TITLE The short human friendly title of the guest Sys::Virt::Domain::METADATA_DESCRIPTION The long free text description of the guest Sys::Virt::Domain::METADATA_ELEMENT The structured metadata elements for the guest

DISK ERROR CONSTANTSThe following constants are useful when interpreting disk error codes Sys::Virt::Domain::DISK_ERROR_NONE No error Sys::Virt::Domain::DISK_ERROR_NO_SPACE The host storage has run out of free space Sys::Virt::Domain::DISK_ERROR_UNSPEC An unspecified error has ocurred.

MEMORY STATISTIC CONSTANTSSys::Virt::Domain::MEMORY_STAT_SWAP_IN Swap in Sys::Virt::Domain::MEMORY_STAT_SWAP_OUT Swap out Sys::Virt::Domain::MEMORY_STAT_MINOR_FAULT Minor faults Sys::Virt::Domain::MEMORY_STAT_MAJOR_FAULT Major faults Sys::Virt::Domain::MEMORY_STAT_RSS Resident memory Sys::Virt::Domain::MEMORY_STAT_UNUSED Unused memory Sys::Virt::Domain::MEMORY_STAT_AVAILABLE Available memory Sys::Virt::Domain::MEMORY_STAT_ACTUAL_BALLOON Actual balloon limit

DOMAIN LIST CONSTANTSThe following constants can be used when listing domains Sys::Virt::Domain::LIST_ACTIVE Only list domains that are currently active (running, or paused) Sys::Virt::Domain::LIST_AUTOSTART Only list domains that are set to automatically start on boot Sys::Virt::Domain::LIST_HAS_SNAPSHOT Only list domains that have a stored snapshot Sys::Virt::Domain::LIST_INACTIVE Only list domains that are currently inactive (shutoff, saved) Sys::Virt::Domain::LIST_MANAGEDSAVE Only list domains that have current managed save state Sys::Virt::Domain::LIST_NO_AUTOSTART Only list domains that are not set to automatically start on boto Sys::Virt::Domain::LIST_NO_MANAGEDSAVE Only list domains that do not have any managed save state Sys::Virt::Domain::LIST_NO_SNAPSHOT Only list domains that do not have a stored snapshot Sys::Virt::Domain::LIST_OTHER Only list domains that are not running, paused or shutoff Sys::Virt::Domain::LIST_PAUSED Only list domains that are paused Sys::Virt::Domain::LIST_PERSISTENT Only list domains which have a persistent config Sys::Virt::Domain::LIST_RUNNING Only list domains that are currently running Sys::Virt::Domain::LIST_SHUTOFF Only list domains that are currently shutoff Sys::Virt::Domain::LIST_TRANSIENT Only list domains that do not have a persistent config

SEND KEY CONSTANTSThe following constants are to be used with the \*(C`send_key\*(C'\fR ​API Sys::Virt::Domain::SEND_KEY_MAX_KEYS The maximum number of keys that can be sent in a single call to \*(C`send_key\*(C'\fR

BLOCK STATS CONSTANTSThe following constants provide the names of well known block stats fields Sys::Virt::Domain::BLOCK_STATS_ERRS The number of I/O errors Sys::Virt::Domain::BLOCK_STATS_FLUSH_REQ The number of flush requests Sys::Virt::Domain::BLOCK_STATS_FLUSH_TOTAL_TIMES The time spent processing flush requests Sys::Virt::Domain::BLOCK_STATS_READ_BYTES The amount of data read Sys::Virt::Domain::BLOCK_STATS_READ_REQ The number of read requests Sys::Virt::Domain::BLOCK_STATS_READ_TOTAL_TIMES The time spent processing read requests Sys::Virt::Domain::BLOCK_STATS_WRITE_BYTES The amount of data written Sys::Virt::Domain::BLOCK_STATS_WRITE_REQ The number of write requests Sys::Virt::Domain::BLOCK_STATS_WRITE_TOTAL_TIMES The time spent processing write requests

CPU STATS CONSTANTSThe following constants provide the names of well known cpu stats fields Sys::Virt::Domain::CPU_STATS_CPUTIME The total CPU time, including both hypervisor and vCPU time. Sys::Virt::Domain::CPU_STATS_USERTIME THe total time in kernel Sys::Virt::Domain::CPU_STATS_SYSTEMTIME The total time in userspace Sys::Virt::Domain::CPU_STATS_VCPUTIME The total vCPU time.

CPU STATS CONSTANTSThe following constants provide the names of well known schedular parameters Sys::Virt::SCHEDULER_EMULATOR_PERIOD The duration of the time period for scheduling the emulator Sys::Virt::SCHEDULER_EMULATOR_QUOTA The quota for the emulator in one schedular time period

AUTHORSDaniel P. Berrange <berrange@redhat.com>

COPYRIGHTCopyright (C) 2006 Red Hat Copyright (C) 2006−2007 Daniel P. Berrange

LICENSEThis 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.

SEE ALSOSys::Virt, Sys::Virt::Error, \*(C`http://libvirt.org\*(C'\fR
0
Johanes Gumabo
Data Size   :   227,088 byte
man-Sys::Virt::Domain.3pmBuild   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   4 / 183,883
Visitor ID   :     :  
Visitor IP   :   18.118.28.31   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|249|Sys::Virt::Domain.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|Sys::Virt::Domain.3pm|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|249|Sys::Virt::Domain.3pm|41|br══─}─══|'br══─}─══ )         (htmlprn|149|Sys::Virt::Domain.3pm|41|'br══─}─══ |'br══─}─══ )         (rof_nr_x|149|Sys::Virt::Domain.3pm|51/52|\nF|.ie \nF ══─{─══. de IX )         (rof_unit_scale_px|41|Sys::Virt::Domain.3pm|51/52|F|.ie \nF ══─{─══. de IX )         (rof_if|19|Sys::Virt::Domain.3pm|51/52|\nF|.ie \nF ══─{─══. de IX )         (htmlprn|149|Sys::Virt::Domain.3pm|51/52|.ie \nF ══─{─══. de IX|.ie \nF ══─{─══. de IX )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|53|\$1\t\\n%\t"\\$2" |. tm Index:\\$1\t\\n%\t"\\$2" )         (parse_manual_page_|249|Sys::Virt::Domain.3pm|57|══─}─══|.══─}─══ )         (htmlprn|149|Sys::Virt::Domain.3pm|57|.══─}─══ |.══─}─══ )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|136|\*(C`Sys::Virt::Domain\*(C'\fR module represents a guest domain managed |The \f(CW\*(C`Sys::Virt::Domain\*(C'\fR module represents a guest domain managed )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|167|\*(C`Sys::Virt::Domain::METADATA_ELEMENT\*(C'\fR |with the domain. If \f(CW$type\fR is \f(CW\*(C`Sys::Virt::Domain::METADATA_ELEMENT\*(C'\fR )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|169|\*(C`undef\*(C'\fR. The optional |retrieve, otherwise \f(CW$uri\fR should be \f(CW\*(C`undef\*(C'\fR. The optional )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|175|\*(C`Sys::Virt::Domain::METADATA_ELEMENT\*(C'\fR |\&\f(CW$val\fR. If \f(CW$type\fR is \f(CW\*(C`Sys::Virt::Domain::METADATA_ELEMENT\*(C'\fR )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|177|\*(C`nudef\*(C'\fR. The optional |to use, otherwise they should both be \f(CW\*(C`nudef\*(C'\fR. The optional )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|211|\*(C`define_domain\*(C'\fR method in Sys::Virt. The \f(CW$flags\fR parameter |\&\f(CW\*(C`define_domain\*(C'\fR method in Sys::Virt. The \f(CW$flags\fR parameter )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|218|\*(C`define_domain\*(C'\fR method in Sys::Virt. If the domain is |with the \f(CW\*(C`define_domain\*(C'\fR method in Sys::Virt. If the domain is )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|219|\*(C`shutdown\*(C'\fR or \f(CW\*(C`destroy\*(C'\fR |running, you probably want to use the \f(CW\*(C`shutdown\*(C'\fR or \f(CW\*(C`destroy\*(C'\fR )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|225|\*(C`resume\*(C'\fR method. |by calling the \f(CW\*(C`resume\*(C'\fR method. )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|229|\*(C`suspend\*(C'\fR |Resume execution of a domain previously halted with the \f(CW\*(C`suspend\*(C'\fR )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|240|\*(C`Sys::Virt\*(C'\fR. The |one of the \s-1NODE\s0 \s-1SUSPEND\s0 \s-1CONTANTS\s0 listed in \f(CW\*(C`Sys::Virt\*(C'\fR. The )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|249|\*(C`restore_domain\*(C'\fR method on |be restored from this file with the \f(CW\*(C`restore_domain\*(C'\fR method on )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|274|\*(C`crash\*(C'\fR. |image to \f(CW$filename\fR so it can be analysed by tools such as \f(CW\*(C`crash\*(C'\fR. )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|282|\*(C`shutdown\*(C'\fR method instead. |For a clean poweroff sequence, use the \f(CW\*(C`shutdown\*(C'\fR method instead. )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|313|\*(C`get_info\*(C'\fR |The \f(CW$state\fR values are the same as for the \f(CW\*(C`get_info\*(C'\fR )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|517|\*(C`destroy\*(C'\fR method instead. |forceful poweroff, use the \f(CW\*(C`destroy\*(C'\fR method instead. )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|635|\*(C`get_scheduler_params\*(C'\fR |tunables vary, and can be discovered using the \f(CW\*(C`get_scheduler_params\*(C'\fR )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|804|\*(C`model\*(C'\fR gives |domain. The returned hash reference has two keys, \f(CW\*(C`model\*(C'\fR gives )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|805|\*(C`selinux\*(C'\fR), while |the name of the security model in effect (eg \f(CW\*(C`selinux\*(C'\fR), while )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|806|\*(C`label\*(C'\fR provides the name of the security label applied to the |\&\f(CW\*(C`label\*(C'\fR provides the name of the security label applied to the )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|808|\*(C`get_security_label_list\*(C'\fR. |security label. To retrieve all labels, use \f(CW\*(C`get_security_label_list\*(C'\fR. )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|814|\*(C`get_security_label\*(C'\fR. |hash references, whose keys are as described for \f(CW\*(C`get_security_label\*(C'\fR. )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|818|\*(C`destcon\*(C'\fR parameter |Migrate a domain to an alternative host. The \f(CW\*(C`destcon\*(C'\fR parameter )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|819|\*(C`Sys::Virt\*(C'\fR connection to the remote target host. |should be a \f(CW\*(C`Sys::Virt\*(C'\fR connection to the remote target host. )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|820|\*(C`flags\*(C'\fR parameter is zero offline migration will be |If the \f(CW\*(C`flags\*(C'\fR parameter is zero offline migration will be )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|821|\*(C`Sys::Virt::Domain::MIGRATE_LIVE\*(C'\fR constant can be |performed. The \f(CW\*(C`Sys::Virt::Domain::MIGRATE_LIVE\*(C'\fR constant can be )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|822|\*(C`dname\*(C'\fR parameter allows the |used to request live migration. The \f(CW\*(C`dname\*(C'\fR parameter allows the )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|823|\*(C`undef\*(C'\fR, the |guest to be renamed on the target host, if set to \f(CW\*(C`undef\*(C'\fR, the )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|826|\*(C`destcon\*(C'\fR connection. If the destination host is multi-homed |with the \f(CW\*(C`destcon\*(C'\fR connection. If the destination host is multi-homed )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|828|\*(C`uri\*(C'\fR parameter. The \f(CW\*(C`bandwidth\*(C'\fR parameter allows network |via the \f(CW\*(C`uri\*(C'\fR parameter. The \f(CW\*(C`bandwidth\*(C'\fR parameter allows network )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|830|\*(C`flags\*(C'\fR, \f(CW\*(C`dname\*(C'\fR, \f(CW\*(C`uri\*(C'\fR and \f(CW\*(C`bandwidth\*(C'\fR |will be performed. The \f(CW\*(C`flags\*(C'\fR, \f(CW\*(C`dname\*(C'\fR, \f(CW\*(C`uri\*(C'\fR and \f(CW\*(C`bandwidth\*(C'\fR )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|831|\*(C`undef\*(C'\fR, |parameters are all optional, and if omitted default to zero, \f(CW\*(C`undef\*(C'\fR, )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|832|\*(C`undef\*(C'\fR, and zero respectively. |\&\f(CW\*(C`undef\*(C'\fR, and zero respectively. )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|837|\*(C`migrate\*(C'\fR, except is also allows \f(CW\*(C`dxml\*(C'\fR to specify a |same way as \f(CW\*(C`migrate\*(C'\fR, except is also allows \f(CW\*(C`dxml\*(C'\fR to specify a )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|842|\*(C`destri\*(C'\fR parameter |Migrate a domain to an alternative host. The \f(CW\*(C`destri\*(C'\fR parameter )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|844|\*(C`flags\*(C'\fR parameter is zero offline migration will be |If the \f(CW\*(C`flags\*(C'\fR parameter is zero offline migration will be )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|845|\*(C`Sys::Virt::Domain::MIGRATE_LIVE\*(C'\fR constant can be |performed. The \f(CW\*(C`Sys::Virt::Domain::MIGRATE_LIVE\*(C'\fR constant can be )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|846|\*(C`dname\*(C'\fR parameter allows the |used to request live migration. The \f(CW\*(C`dname\*(C'\fR parameter allows the )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|847|\*(C`undef\*(C'\fR, the |guest to be renamed on the target host, if set to \f(CW\*(C`undef\*(C'\fR, the )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|850|\*(C`destcon\*(C'\fR connection. If the destination host is multi-homed |with the \f(CW\*(C`destcon\*(C'\fR connection. If the destination host is multi-homed )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|852|\*(C`uri\*(C'\fR parameter. The \f(CW\*(C`bandwidth\*(C'\fR parameter allows network |via the \f(CW\*(C`uri\*(C'\fR parameter. The \f(CW\*(C`bandwidth\*(C'\fR parameter allows network )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|854|\*(C`flags\*(C'\fR, \f(CW\*(C`dname\*(C'\fR and \f(CW\*(C`bandwidth\*(C'\fR |will be performed. The \f(CW\*(C`flags\*(C'\fR, \f(CW\*(C`dname\*(C'\fR and \f(CW\*(C`bandwidth\*(C'\fR )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|855|\*(C`undef\*(C'\fR, |parameters are all optional, and if omitted default to zero, \f(CW\*(C`undef\*(C'\fR, )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|856|\*(C`undef\*(C'\fR, and zero respectively. |\&\f(CW\*(C`undef\*(C'\fR, and zero respectively. )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|861|\*(C`migrate_to_uri\*(C'\fR, except is also allows \f(CW\*(C`dxml\*(C'\fR to |the same way as \f(CW\*(C`migrate_to_uri\*(C'\fR, except is also allows \f(CW\*(C`dxml\*(C'\fR to )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|863|\*(C`dconnuri\*(C'\fR must always specify the \s-1URI\s0 of the remote libvirtd |The \f(CW\*(C`dconnuri\*(C'\fR must always specify the \s-1URI\s0 of the remote libvirtd )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|864|\*(C`undef\*(C'\fR. The \f(CW\*(C`miguri\*(C'\fR parameter can be used to specify |daemon, or be \f(CW\*(C`undef\*(C'\fR. The \f(CW\*(C`miguri\*(C'\fR parameter can be used to specify )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|865|\*(C`undef\*(C'\fR. |the \s-1URI\s0 for initiating the migration operation, or be \f(CW\*(C`undef\*(C'\fR. )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|872|\*(C`downtime\*(C'\fR parameter is measured in milliseconds. |over point. The \f(CW\*(C`downtime\*(C'\fR parameter is measured in milliseconds. )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|878|\*(C`bandwidth\*(C'\fR parameter is measured in MB/second. |The \f(CW\*(C`bandwidth\*(C'\fR parameter is measured in MB/second. )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|897|\*(C`Sys::Virt::Stream\*(C'\fR object used for |opened. \f(CW$st\fR must be a \f(CW\*(C`Sys::Virt::Stream\*(C'\fR object used for )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|913|\*(C`Sys::Virt::Stream\*(C'\fR |or multi-card configuration. \f(CW$st\fR must be a \f(CW\*(C`Sys::Virt::Stream\*(C'\fR )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|922|\*(C`number\*(C'\fR the vCPU number, \f(CW\*(C`cpu\*(C'\fR the physical \s-1CPU\s0 on which the |are, \f(CW\*(C`number\*(C'\fR the vCPU number, \f(CW\*(C`cpu\*(C'\fR the physical \s-1CPU\s0 on which the )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|923|\*(C`cpuTime\*(C'\fR the cummulative execution |vCPU is currently scheduled, \f(CW\*(C`cpuTime\*(C'\fR the cummulative execution )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|924|\*(C`state\*(C'\fR the running state and \f(CW\*(C`affinity\*(C'\fR giving |time of the vCPU, \f(CW\*(C`state\*(C'\fR the running state and \f(CW\*(C`affinity\*(C'\fR giving )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|925|\*(C`affinity\*(C'\fR is a |the allowed shedular placement. The value for \f(CW\*(C`affinity\*(C'\fR is a )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|927|\*(C`unpack\*(C'\fR function with |character. To extract the bits use the \f(CW\*(C`unpack\*(C'\fR function with )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|928|\*(C`b*\*(C'\fR template. \s-1NB\s0 The \f(CW\*(C`state\*(C'\fR, \f(CW\*(C`cpuTime\*(C'\fR, \f(CW\*(C`cpu\*(C'\fR values are |the \f(CW\*(C`b*\*(C'\fR template. \s-1NB\s0 The \f(CW\*(C`state\*(C'\fR, \f(CW\*(C`cpuTime\*(C'\fR, \f(CW\*(C`cpu\*(C'\fR values are )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|942|\*(C`unpack\*(C'\fR function with |per character. To extract the bits use the \f(CW\*(C`unpack\*(C'\fR function with )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|943|\*(C`b*\*(C'\fR template. |the \f(CW\*(C`b*\*(C'\fR template. )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|950|\*(C`vec\*(C'\fR function with a value of \f(CW1\fR for the |bitstring, use the \f(CW\*(C`vec\*(C'\fR function with a value of \f(CW1\fR for the )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|951|\*(C`BITS\*(C'\fR parameter. |\&\f(CW\*(C`BITS\*(C'\fR parameter. )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|976|\*(C`type\*(C'\fR is \s-1JOB_UNBOUNDED\s0. |\&\f(CW\*(C`type\*(C'\fR is \s-1JOB_UNBOUNDED\s0. )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|1055|\*(C`lookup_snapshot_by_name\*(C'\fR |used with the \f(CW\*(C`lookup_snapshot_by_name\*(C'\fR )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|1061|\*(C`list_all_snapshots\*(C'\fR method is |This method requires O(n) \s-1RPC\s0 calls, so the \f(CW\*(C`list_all_snapshots\*(C'\fR method is )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|1087|\*(C`Sys::Virt::DomainSnapshots\*(C'\fR. |the \fB\s-1SNAPSHOT\s0 \s-1CREATION\s0\fR constants listed in \f(CW\*(C`Sys::Virt::DomainSnapshots\*(C'\fR. )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|1090|\*(C`flags\*(C'\fR parameter. In most cases |A number of the APIs take a \f(CW\*(C`flags\*(C'\fR parameter. In most cases )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|1097|\*(C`state\*(C'\fR key in the hash returned by the \f(CW\*(C`get_info\*(C'\fR method. |\&\f(CW\*(C`state\*(C'\fR key in the hash returned by the \f(CW\*(C`get_info\*(C'\fR method. )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|1192|\*(C`memory_peek\*(C'\fR |The following constants can be used with the \f(CW\*(C`memory_peek\*(C'\fR )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|1460|\*(C`Sys::Virt::Domain::NUMA_MODE\*(C'\fR parameter value |\&\f(CW\*(C`Sys::Virt::Domain::NUMA_MODE\*(C'\fR parameter value )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|1872|\*(C`destroy\*(C'\fR \s-1API\s0. |using the \f(CW\*(C`destroy\*(C'\fR \s-1API\s0. )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|1882|\*(C`shutdown\*(C'\fR \s-1API\s0 |guest terminate using the \f(CW\*(C`shutdown\*(C'\fR \s-1API\s0 )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|1895|\*(C`reboot\*(C'\fR \s-1API\s0 |guest terminate using the \f(CW\*(C`reboot\*(C'\fR \s-1API\s0 )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|2004|\*(C`send_key\*(C'\fR |The following constants are to be used with the \f(CW\*(C`send_key\*(C'\fR )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|2009|\*(C`send_key\*(C'\fR |call to \f(CW\*(C`send_key\*(C'\fR )         (rof_escape_sequence|91|Sys::Virt::Domain.3pm|2084|\*(C`http://libvirt.org\*(C'\fR |Sys::Virt, Sys::Virt::Error, \f(CW\*(C`http://libvirt.org\*(C'\fR )