Re: How to start a defined domain

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

 



----- "éä" <lancerhuang@xxxxxxx> wrote:

> 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.
> 

no, it can :-)

If it really doesn't work for you, could you write a simple program to
reproduce it? and try to explain what's the version of libvirt you use,
on which distro, etc, any helpful info is welcomed. :-) 

Thanks

- Osier

> That's my situation, what do you suggest I do now?
> Thanks in advance.
> 
> 2010-10-26
> 
> Lancer 
> --
> libvir-list mailing list
> libvir-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/libvir-list

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]