Libvirt Functions
PHP Manual


(php-libvirt 0.1)

libvirt_domain_suspendSuspend a domain


bool libvirt_domain_suspend ( resource $domain )

Suspends an active domain, the process is frozen without further access to CPU resources and I/O but the memory used by the domain at the hypervisor level will stay allocated. Use libvirt_domain_resume() to reactivate the domain. This function may requires privileged access.



Domain resource of domain to suspend.You can get domain resource using various functions (i.e. libvirt_domain_lookup_by_uuid() or libvirt_list_domains()).

Return Values

TRUE on success and FALSE on failure

See Also

Libvirt Functions
PHP Manual