[Libvir] API "int virDomainRestore(Conn, from)"
veillard at redhat.com
Wed Jan 23 14:43:40 UTC 2008
On Wed, Jan 23, 2008 at 03:18:32PM +0100, Daniel Schwager wrote:
> I would like to restore a domain.
> I think, after restoring the domain, the vnc-port
> maybe has changed (because e.g. another domain use the old VNC-port
> at the meantime).
I guess this could happen yes.
> If I do not know the domainname I restored, I have no possibility
> to get this vnc-port or connect to the restored domain. Is this correct ?
You would need the name or UUID, yes to then do a lookup
> So, would it not be better to change the API to
> virDomainPtr virDomainRestore(Conn, from)
In theory, yes. In practice we can't change an existing API,
and that assumes the given hypervisor used at that point will give
the information back. The format for the save are hypervisor specific
(though there is some talks of convergences) but in any case the
UUID and name informations are embedded in the file, whether it's feasible
to extract the informations and add an API is a bit unclear but I guess
that should be feasible generally by just looking at the first blocks of
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