Sys::Virt::Error(3pm)
π Sys::Virt::Error π
okay bestie, welcome to the Sys::Virt::Error(3pm) page from User Contributed Perl Documentation. This is the libvirt error-object page, and it is highkey useful whenever something goes sideways and you need the receipts. π§Ύβ¨
β¨ NAME β¨
Sys::Virt::Error β error object for libvirt APIs π
π DESCRIPTION π
The Sys::Virt::Error class provides an encoding of the libvirt errors. Instances of this object can be thrown by pretty much any of the Sys::Virt APIs.
So yeah β if your code catches an exception from this corner of the world, this is the class holding the details. main character energy, honestly. π
π οΈ METHODS π οΈ
$err->stringifyβ Convert the object into string format suitable for printing on a console to inform a user of the error. It's the "tell the human what happened" pipeline. π¬my $level = $err->levelβ Return the raw error level represented by this error. One of theERROR LEVEL CONSTANTS. Check the list below, bestie. πmy $code = $err->codeβ Return the raw error code represented by this error. One of theERROR CODE CONSTANTS. Yep, there's a whole menu of them. πmy $from = $err->domainβ Return the error domain raising this error. One of theERROR DOMAIN CONSTANTS. It's the error's origin story. πΊοΈmy $msg = $err->messageβ Return an informative message describing the error condition. The actual "what went wrong" text. π«Ά
π CONSTANTS π
ποΈ ERROR LEVEL CONSTANTS ποΈ
Sys::Virt::Error::LEVEL_NONEβ Undefined error level.Sys::Virt::Error::LEVEL_WARNINGβ Warning error level.Sys::Virt::Error::LEVEL_ERRORβ Fatal error level.
πΊοΈ ERROR DOMAIN CONSTANTS πΊοΈ
The error domain indicates which internal part of libvirt the error report was raised from. Basically, it tells you which little department sent the SOS. π¨
Sys::Virt::Error::FROM_CONFβ Configuration file handling.Sys::Virt::Error::FROM_DOMβ Error while operating on a domain.Sys::Virt::Error::FROM_DOMAINβ Domain configuration handling.Sys::Virt::Error::FROM_LXCβ LXC virtualization driver.Sys::Virt::Error::FROM_NETβ Error while operating on a network.Sys::Virt::Error::FROM_NETWORKβ Network configuration handling.Sys::Virt::Error::FROM_NODEDEVβ Node device configuration handling.Sys::Virt::Error::FROM_NONEβ No specific error domain.Sys::Virt::Error::FROM_OPENVZβ OpenVZ virtualization driver.Sys::Virt::Error::FROM_PROXYβ Xen proxy virtualization driver.Sys::Virt::Error::FROM_QEMUβ QEMU virtualization driver.Sys::Virt::Error::FROM_REMOTEβ Remote client virtualization driver.Sys::Virt::Error::FROM_RPCβ XML-RPC handling code.Sys::Virt::Error::FROM_SECURITYβ Security services driver.Sys::Virt::Error::FROM_SEXPRβ SEXPR parsing code.Sys::Virt::Error::FROM_STATS_LINUXβ Device statistics code.Sys::Virt::Error::FROM_STORAGEβ Storage configuration handling.Sys::Virt::Error::FROM_TESTβ Test virtualization driver.Sys::Virt::Error::FROM_UMLβ UML virtualization driver.Sys::Virt::Error::FROM_XENβ Xen hypervisor driver.Sys::Virt::Error::FROM_XENDβ XenD daemon driver.Sys::Virt::Error::FROM_XENSTOREβ XenStore driver.Sys::Virt::Error::FROM_XENXMβ Xen XM configuration file driver.Sys::Virt::Error::FROM_XEN_INOTIFYβ Xen Inotify events driver.Sys::Virt::Error::FROM_XMLβ Low level XML parser.Sys::Virt::Error::FROM_ESXβ The VMWare ESX driver.Sys::Virt::Error::FROM_INTERFACEβ The host network interface driver.Sys::Virt::Error::FROM_ONEβ The Open Nebula driver. This constant is no longer used and retained only for backwards compatibility.Sys::Virt::Error::FROM_PHYPβ The IBM Power Hypervisor driver.Sys::Virt::Error::FROM_SECRETβ The secret management driver.Sys::Virt::Error::FROM_VBOXβ The VirtualBox driver.Sys::Virt::Error::FROM_AUDITβ The audit driver.Sys::Virt::Error::FROM_CPUβ The CPU information driver.Sys::Virt::Error::FROM_DOMAIN_SNAPSHOTβ The domain snapshot driver.Sys::Virt::Error::FROM_HOOKβ The daemon hook driver.Sys::Virt::Error::FROM_NWFILTERβ The network filter driver.Sys::Virt::Error::FROM_STREAMSβ The data streams driver.Sys::Virt::Error::FROM_SYSINFOβ The system information driver.Sys::Virt::Error::FROM_VMWAREβ The VMWare driver.Sys::Virt::Error::FROM_XENAPIβ The XenAPI driver.Sys::Virt::Error::FROM_EVENTβ The event driver.Sys::Virt::Error::FROM_LIBXLβ The libxl Xen driver.Sys::Virt::Error::FROM_LOCKINGβ The lock manager drivers.Sys::Virt::Error::FROM_HYPERVβ The Hyper-V driver.Sys::Virt::Error::FROM_CAPABILITIESβ The capabilities driver.Sys::Virt::Error::FROM_AUTHβ The authentication handling code.Sys::Virt::Error::FROM_URIβ The URI handling code.Sys::Virt::Error::FROM_DBUSβ The DBus handling code.Sys::Virt::Error::FROM_DEVICEβ The device handling code.Sys::Virt::Error::FROM_SSHβ The libSSH2 socket client.Sys::Virt::Error::FROM_PARALLELSβ The Parallels virtualization driver.Sys::Virt::Error::FROM_LOCKSPACEβ The lockspace handling code.Sys::Virt::Error::FROM_INITCTLβ The initctl client code.Sys::Virt::Error::FROM_CGROUPβ The cgroups code.Sys::Virt::Error::FROM_IDENTITYβ The identity management code.Sys::Virt::Error::FROM_ACCESSβ The access control code.Sys::Virt::Error::FROM_SYSTEMDβ The systemd init service.Sys::Virt::Error::FROM_BHYVEβ The FreeBSD BHyve driver.Sys::Virt::Error::FROM_CRYPTOβ The cryptographic helper APIs.Sys::Virt::Error::FROM_FIREWALLβ The firewall helper APIs.Sys::Virt::Error::FROM_POLKITβ The polkit authentication / authorization APIs.Sys::Virt::Error::FROM_THREADβ The thread helper utils.Sys::Virt::Error::FROM_ADMINβ The administrative service.Sys::Virt::Error::FROM_LOGGINGβ The logging service.Sys::Virt::Error::FROM_XENXLβ The Xen XL driver.Sys::Virt::Error::FROM_PERFβ The performance events subsystem.Sys::Virt::Error::FROM_LIBSSHβ The libSSH socket client.Sys::Virt::Error::FROM_RESCTRLβ The resource control subsystem.Sys::Virt::Error::FROM_FIREWALLDβ The firewalld service.Sys::Virt::Error::FROM_DOMAIN_CHECKPOINTβ The domain checkpoint.Sys::Virt::Error::FROM_TPMβ The TPM subsystem.Sys::Virt::Error::FROM_BPFβ The BPF subsystem.Sys::Virt::Error::FROM_CHβ The Cloud Hypervisor driver.
π§Ύ ERROR CODE CONSTANTS π§Ύ
The error codes allow for specific problems to be identified and handled separately from generic error handling. So you can catch the specific little gremlin instead of just "oops." πβ¨
Sys::Virt::Error::ERR_AUTH_FAILEDβ Authentication failure when connecting to a driver.Sys::Virt::Error::ERR_CALL_FAILEDβ Operation not supported by driver (DEPRECATED & unused).Sys::Virt::Error::ERR_CONF_SYNTAXβ Configuration file syntax error.Sys::Virt::Error::ERR_DOM_EXISTβ The domain already exists.Sys::Virt::Error::ERR_DRIVER_FULLβ Too many hypervisor drivers have been registered.Sys::Virt::Error::ERR_GET_FAILEDβ HTTP GET command failed talking to XenD.Sys::Virt::Error::ERR_GNUTLS_ERRORβ GNUTLS encryption error in RPC driver.Sys::Virt::Error::ERR_HTTP_ERRORβ Unexpected HTTP error code from XenD.Sys::Virt::Error::ERR_INTERNAL_ERRORβ Generic internal error.Sys::Virt::Error::ERR_INVALID_ARGβ Invalid argument supplied to function.Sys::Virt::Error::ERR_INVALID_CONNβ Invalid connection object.Sys::Virt::Error::ERR_INVALID_DOMAINβ Invalid domain object.Sys::Virt::Error::ERR_INVALID_MACβ Invalid MAC address string.Sys::Virt::Error::ERR_INVALID_NETWORKβ Invalid network object.Sys::Virt::Error::ERR_INVALID_NODE_DEVICEβ Invalid node device object.Sys::Virt::Error::ERR_INVALID_STORAGE_POOLβ Invalid storage pool object.Sys::Virt::Error::ERR_INVALID_STORAGE_VOLβ Invalid storage vol object.Sys::Virt::Error::ERR_NETWORK_EXISTβ Network with this name/uuid already exists.Sys::Virt::Error::ERR_NO_CONNECTβ Unable to connect to requested hypervisor driver.Sys::Virt::Error::ERR_NO_DEVICEβ Missing device information.Sys::Virt::Error::ERR_NO_DOMAINβ No such domain with that name/uuid/id.Sys::Virt::Error::ERR_NO_KERNELβ Missing kernel information in domain configuration.Sys::Virt::Error::ERR_NO_MEMORYβ Missing memory information in domain configuration.Sys::Virt::Error::ERR_NO_NAMEβ Missing name in object configuration.Sys::Virt::Error::ERR_NO_NETWORKβ No such network with that name/uuid.Sys::Virt::Error::ERR_NO_NODE_DEVICEβ No such node device with that name.Sys::Virt::Error::ERR_NO_OSβ Missing OS information in domain configuration.Sys::Virt::Error::ERR_NO_ROOTβ Missing root device information in domain configuration.Sys::Virt::Error::ERR_NO_SECURITY_MODELβ Missing security model information in domain configuration.Sys::Virt::Error::ERR_NO_SOURCEβ Missing source device information in domain configuration.Sys::Virt::Error::ERR_NO_STORAGE_POOLβ No such storage pool with that name/uuid.Sys::Virt::Error::ERR_NO_STORAGE_VOLβ No such storage volume with that name/path/key.Sys::Virt::Error::ERR_NO_SUPPORTβ This operation is not supported by the active driver.Sys::Virt::Error::ERR_NO_TARGETβ Missing target device information in domain configuration.Sys::Virt::Error::ERR_NO_XENβ Unable to connect to Xen hypervisor.Sys::Virt::Error::ERR_NO_XENSTOREβ Unable to connect to XenStorage daemon.Sys::Virt::Error::ERR_OKβ No error code. This should never be see.Sys::Virt::Error::ERR_OPEN_FAILEDβ Unable to open a configuration file.Sys::Virt::Error::ERR_OPERATIONED_DENIEDβ The operation is forbidden for the current connection.Sys::Virt::Error::ERR_OPERATION_FAILEDβ The operation failed to complete.Sys::Virt::Error::ERR_OS_TYPEβ Missing/incorrect OS type in domain configuration.Sys::Virt::Error::ERR_PARSE_FAILEDβ Failed to parse configuration file.Sys::Virt::Error::ERR_POST_FAILEDβ HTTP POST failure talking to XenD.Sys::Virt::Error::ERR_READ_FAILEDβ Unable to read from configuration file.Sys::Virt::Error::ERR_RPCβ Generic RPC error talking to XenD.Sys::Virt::Error::ERR_SEXPR_SERIALβ Failed to generic SEXPR for XenD.Sys::Virt::Error::ERR_SYSTEM_ERRORβ Generic operating system error.Sys::Virt::Error::ERR_UNKNOWN_HOSTβ Unknown hostname.Sys::Virt::Error::ERR_WRITE_FAILEDβ Failed to write to configuration file.Sys::Virt::Error::ERR_XEN_CALLβ Failure while talking to Xen hypervisor.Sys::Virt::Error::ERR_XML_DETAILβ Detailed XML parsing error.Sys::Virt::Error::ERR_XML_ERRORβ Generic XML parsing error.Sys::Virt::Error::WAR_NO_NETWORKβ Warning that no network driver is activated.Sys::Virt::Error::WAR_NO_NODEβ heads up bestie, no node device driver is activated π«ΆSys::Virt::Error::WAR_NO_STORAGEβ same vibe but for storage: no storage driver is activatedSys::Virt::Error::ERR_INVALID_INTERFACEβ that network interface object is invalid, not cute πSys::Virt::Error::ERR_NO_INTERFACEβ literally no interface with the matching name / mac addressSys::Virt::Error::ERR_OPERATION_INVALIDβ the requested operation is just not valid for the current object state, sorry babeSys::Virt::Error::WAR_NO_INTERFACEβ the network interface driver is not availableSys::Virt::Error::ERR_MULTIPLE_INTERFACESβ there are multiple interfaces with the requested MAC address, pick one πSys::Virt::Error::ERR_BUILD_FIREWALLβ the firewall could not be constructed, we triedSys::Virt::Error::WAR_NO_NWFILTERβ the network filter driver could not be activatedSys::Virt::Error::ERR_NO_NWFILTERβ there is no network filter driver available at allSys::Virt::Error::ERR_INVALID_NWFILTERβ the network filter object was invalidSys::Virt::Error::WAR_NO_SECRETβ the secret management driver is not available πSys::Virt::Error::ERR_NO_SECRETβ no secret with the matching uuid / usage IDSys::Virt::Error::ERR_INVALID_SECRETβ invalid secret objectSys::Virt::Error::ERR_CONFIG_UNSUPPORTEDβ the requested XML configuration is not supported by the hypervisorSys::Virt::Error::ERR_OPERATION_TIMEOUTβ the operation could not be completed in a satisfactory time β°Sys::Virt::Error::ERR_MIGRATE_PERSIST_FAILEDβ unable to persistent the domain configuration after migration successfully completed (yes, migration popped off but the config didn't save π¬)Sys::Virt::Error::ERR_HOOK_SCRIPT_FAILEDβ execution of a daemon hook script failedSys::Virt::Error::ERR_INVALID_DOMAIN_SNAPSHOTβ the domain snapshot object pointer was invalidSys::Virt::Error::ERR_NO_DOMAIN_SNAPSHOTβ no matching domain snapshot was foundSys::Virt::Error::ERR_INVALID_STREAMβ the stream object pointer was invalidSys::Virt::Error::ERR_ARGUMENT_UNSUPPORTEDβ the argument value was not supported by the driverSys::Virt::Error::ERR_STORAGE_POOL_BUILTβ the storage pool has already been built, it's giving done βSys::Virt::Error::ERR_STORAGE_PROBE_FAILEDβ probing the storage pool failedSys::Virt::Error::ERR_SNAPSHOT_REVERT_RISKYβ reverting the snapshot could cause data loss, so likeβ¦ be careful π¨Sys::Virt::Error::ERR_OPERATION_ABORTEDβ the asynchronous operation was aborted at admin requestSys::Virt::Error::ERR_AUTH_CANCELLEDβ the user cancelled the authentication process, fair enoughSys::Virt::Error::ERR_NO_DOMAIN_METADATAβ the requested metadata does not existSys::Virt::Error::ERR_MIGRATE_UNSAFEβ the migration operation would be unsafe to perform, don't do it bestieSys::Virt::Error::ERR_OVERFLOWβ the calculation would overflowSys::Virt::Error::ERR_BLOCK_COPY_ACTIVEβ action prevented by block copy jobSys::Virt::Error::ERR_AGENT_UNRESPONSIVEβ the guest agent is not respondingβ¦ hello?? πSys::Virt::Error::ERR_OPERATION_UNSUPPORTEDβ the operation is not supported on this hostSys::Virt::Error::ERR_SSHβ the SSH operation failedSys::Virt::Error::ERR_RESOURCE_BUSYβ the resource requested is already in use, it's bookedSys::Virt::Error::ERR_ACCESS_DENIEDβ not authorized to perform the operation, bestie you do not have the pass πSys::Virt::Error::ERR_DBUS_SERVICEβ an error from a DBus service APISys::Virt::Error::ERR_STORAGE_VOL_EXISTβ the storage volume already existsSys::Virt::Error::ERR_CPU_INCOMPATIBLEβ the CPUs are not compatible π§ π₯Sys::Virt::Error::ERR_INVALID_SCHEMAβ the XML document does not comply with the XML schemaSys::Virt::Error::ERR_MIGRATE_FINISH_OKβ migration finished but expected to returnNULLdomain. lowkey iconicSys::Virt::Error::ERR_AUTH_UNAVAILABLEβ authentication services were not availableSys::Virt::Error::ERR_NO_SERVERβ libvirt server was not foundSys::Virt::Error::ERR_NO_CLIENTβ libvirt client was not foundSys::Virt::Error::ERR_AGENT_UNSYNCEDβ libvirt guest agent replies with wrong id toguest-synccommandSys::Virt::Error::ERR_LIBSSHβ the libSSH operation failedSys::Virt::Error::ERR_DEVICE_MISSINGβ libvirt fail to find the desired device. gone. vanished.Sys::Virt::Error::ERR_INVALID_NWFILTER_BINDINGβ invalid nwfilter bindingSys::Virt::Error::ERR_NO_NWFILTER_BINDINGβ no nwfilter bindingSys::Virt::Error::ERR_INVALID_DOMAIN_CHECKPOINTβ invalid domain checkpointSys::Virt::Error::ERR_NO_DOMAIN_BACKUPβ domain checkpoint not foundSys::Virt::Error::ERR_NO_DOMAIN_CHECKPOINTβ domain backup job id not foundSys::Virt::Error::ERR_NO_NETWORK_PORTβ no matching network portSys::Virt::Error::ERR_INVALID_NETWORK_PORTβ invalid network port objectSys::Virt::Error::ERR_NETWORK_PORT_EXISTβ network port already existsSys::Virt::Error::ERR_NO_HOSTNAMEβ no domain hostname foundSys::Virt::Error::ERR_CHECKPOINT_INCONSISTENTβ the checkpoint is inconsistent πSys::Virt::Error::ERR_MULTIPLE_DOMAINSβ more than one matching domain found, now which one of y'allSys::Virt::Error::ERR_NO_NETWORK_METADATAβ the requested metadata does not existSys::Virt::Error::ERR_AGENT_COMMAND_TIMEOUTβ guest agent didn't respond to a non-sync command within timeoutSys::Virt::Error::ERR_AGENT_COMMAND_FAILEDβ guest agent responded with failure to a commandSys::Virt::Error::ERR_INVALID_ENCR_KEY_SECRETβ secret encryption key is invalid π
π§ AUTHORS
- Daniel P. Berrange
<berrange@redhat.com>β the main character who wrote all this, we stan π
π COPYRIGHT
Copyright (C) 2006 Red Hat Copyright (C) 2006-2007 Daniel P. Berrange
π LICENSE
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.
Like, go wild, remix it, redistribute it β just read the licenses, periodt.
π SEE ALSO
Sys::Virt::DomainSys::Virt"http://libvirt.org"
okay that's the whole page bestie, you're caught up β¨ go forth and catch those errors π¦
That was Sys::Virt::Error(3pm) from the User Contributed Perl Documentation, perl v5.40.2, dated 2026-06-08 β a whole read, but you ate it π
π
π¦ where this page comes from
- epel 10: perl-Sys-Virt 12.4.0-1.el10_3 Β· GPL-2.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms