[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libvir] Starting a domain



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 redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]