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 the ERROR LEVEL CONSTANTS. Check the list below, bestie. πŸ‘‡
  • my $code = $err->code β€” Return the raw error code represented by this error. One of the ERROR CODE CONSTANTS. Yep, there's a whole menu of them. πŸ“
  • my $from = $err->domain β€” Return the error domain raising this error. One of the ERROR 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 activated
  • Sys::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 address
  • Sys::Virt::Error::ERR_OPERATION_INVALID β€” the requested operation is just not valid for the current object state, sorry babe
  • Sys::Virt::Error::WAR_NO_INTERFACE β€” the network interface driver is not available
  • Sys::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 tried
  • Sys::Virt::Error::WAR_NO_NWFILTER β€” the network filter driver could not be activated
  • Sys::Virt::Error::ERR_NO_NWFILTER β€” there is no network filter driver available at all
  • Sys::Virt::Error::ERR_INVALID_NWFILTER β€” the network filter object was invalid
  • Sys::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 ID
  • Sys::Virt::Error::ERR_INVALID_SECRET β€” invalid secret object
  • Sys::Virt::Error::ERR_CONFIG_UNSUPPORTED β€” the requested XML configuration is not supported by the hypervisor
  • Sys::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 failed
  • Sys::Virt::Error::ERR_INVALID_DOMAIN_SNAPSHOT β€” the domain snapshot object pointer was invalid
  • Sys::Virt::Error::ERR_NO_DOMAIN_SNAPSHOT β€” no matching domain snapshot was found
  • Sys::Virt::Error::ERR_INVALID_STREAM β€” the stream object pointer was invalid
  • Sys::Virt::Error::ERR_ARGUMENT_UNSUPPORTED β€” the argument value was not supported by the driver
  • Sys::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 failed
  • Sys::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 request
  • Sys::Virt::Error::ERR_AUTH_CANCELLED β€” the user cancelled the authentication process, fair enough
  • Sys::Virt::Error::ERR_NO_DOMAIN_METADATA β€” the requested metadata does not exist
  • Sys::Virt::Error::ERR_MIGRATE_UNSAFE β€” the migration operation would be unsafe to perform, don't do it bestie
  • Sys::Virt::Error::ERR_OVERFLOW β€” the calculation would overflow
  • Sys::Virt::Error::ERR_BLOCK_COPY_ACTIVE β€” action prevented by block copy job
  • Sys::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 host
  • Sys::Virt::Error::ERR_SSH β€” the SSH operation failed
  • Sys::Virt::Error::ERR_RESOURCE_BUSY β€” the resource requested is already in use, it's booked
  • Sys::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 API
  • Sys::Virt::Error::ERR_STORAGE_VOL_EXIST β€” the storage volume already exists
  • Sys::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 schema
  • Sys::Virt::Error::ERR_MIGRATE_FINISH_OK β€” migration finished but expected to return NULL domain. lowkey iconic
  • Sys::Virt::Error::ERR_AUTH_UNAVAILABLE β€” authentication services were not available
  • Sys::Virt::Error::ERR_NO_SERVER β€” libvirt server was not found
  • Sys::Virt::Error::ERR_NO_CLIENT β€” libvirt client was not found
  • Sys::Virt::Error::ERR_AGENT_UNSYNCED β€” libvirt guest agent replies with wrong id to guest-sync command
  • Sys::Virt::Error::ERR_LIBSSH β€” the libSSH operation failed
  • Sys::Virt::Error::ERR_DEVICE_MISSING β€” libvirt fail to find the desired device. gone. vanished.
  • Sys::Virt::Error::ERR_INVALID_NWFILTER_BINDING β€” invalid nwfilter binding
  • Sys::Virt::Error::ERR_NO_NWFILTER_BINDING β€” no nwfilter binding
  • Sys::Virt::Error::ERR_INVALID_DOMAIN_CHECKPOINT β€” invalid domain checkpoint
  • Sys::Virt::Error::ERR_NO_DOMAIN_BACKUP β€” domain checkpoint not found
  • Sys::Virt::Error::ERR_NO_DOMAIN_CHECKPOINT β€” domain backup job id not found
  • Sys::Virt::Error::ERR_NO_NETWORK_PORT β€” no matching network port
  • Sys::Virt::Error::ERR_INVALID_NETWORK_PORT β€” invalid network port object
  • Sys::Virt::Error::ERR_NETWORK_PORT_EXIST β€” network port already exists
  • Sys::Virt::Error::ERR_NO_HOSTNAME β€” no domain hostname found
  • Sys::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'all
  • Sys::Virt::Error::ERR_NO_NETWORK_METADATA β€” the requested metadata does not exist
  • Sys::Virt::Error::ERR_AGENT_COMMAND_TIMEOUT β€” guest agent didn't respond to a non-sync command within timeout
  • Sys::Virt::Error::ERR_AGENT_COMMAND_FAILED β€” guest agent responded with failure to a command
  • Sys::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 (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


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