[libvirt] How to start a defined domain
黄亮
lancerhuang at 163.com
Tue Oct 26 02:19:27 UTC 2010
I've create a domain called "vm01" using Virt-Manager, the GUI tool.
Now I wanna use libvirt api to control the life cycle of vm01.
It went on well with shutdown and reboot, but how to start it became a problem.
I was intended to get the virDomainPtr by using virDomainLookupByName api, and then start it using virDomainCreate api.
But it turns out that virDomainLookupByName api cannot return a virDomainPtr for a defined but not running domain.
That's my situation, what do you suggest I do now?
Thanks in advance.
2010-10-26
Lancer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20101026/2c3e7cb8/attachment-0001.htm>
More information about the libvir-list
mailing list