[Libvir] Starting a domain

Daniel Veillard veillard at redhat.com
Thu Jul 12 09:03:42 UTC 2007


On Thu, Jul 12, 2007 at 02:28:16PM +0530, Shuveb Hussain wrote:
> Hi,
> 
> suspend() -> resume()
> save() -> restore()
> shutdown() -> ???
> 
> Which method should I map in the OpenVZ driver that starts a domain that
> has been shutdown. Does the 'reboot' method do the job here as well?

  Assuming you can get a pointer to the xmlDomainPtr of the defined
but not running domain, then the entry point is domainCreate in the driver.
If the domain is not defined, then the entry point is domainCreateLinux
and it takes an XML descritpion in. The corresponding entry point in the
API are:
     http://libvirt.org/html/libvirt-libvirt.html#virDomainCreate
  and
     http://libvirt.org/html/libvirt-libvirt.html#virDomainCreateLinux

  Hope this clarifies things :-)

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard at redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/




More information about the libvir-list mailing list