Method: Libvirt::Domain#suspend

Defined in:
lib/libvirt/domain.rb

#suspendBoolean

Suspends an active domain, the process is frozen but the memory is still allocated. Returns a boolean of whether the call succeeded or not.

Returns:

  • (Boolean)


183
184
185
# File 'lib/libvirt/domain.rb', line 183

def suspend
  FFI::Libvirt.virDomainSuspend(self) == 0
end