[Libvir] Difference between API functions virConnectNumOfDefinedDomains and virConnectNumOfDomains
by Jan Michael
Hello libvirt fellows,
I have some problems to distinguish between those function calls in libvirt
API:
> virConnectNumOfDefinedDomains
> virConnectNumOfDomains
The API description states on both function that they will return me the
number of active domain.
Am I right if I assume that the first function virConnectNumOfDefinedDomains
returns me all defined, but necessarily not running domains, and the second
one only running and therefore active domains?
Can you please help me and clarify this?
Didn't had the chance to test this so far. But I will do so asap. Maybe the
API documentation has to be updated in this point.
Cheers,
Jan
17 years, 7 months
[Libvir] [PATCH] If xenHypervisorInit fails, produce an error message
by Richard W.M. Jones
.. and if opening the Xen HV file under /proc fails, show us the errno.
Rich.
--
Emerging Technologies, Red Hat http://et.redhat.com/~rjones/
64 Baker Street, London, W1U 7DF Mobile: +44 7866 314 421
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.
Registered in England and Wales under Company Registration No. 3798903
Directors: Michael Cunningham (USA), Charlie Peters (USA) and David
Owens (Ireland)
17 years, 7 months
[Libvir] Remote patch, 2007-04-27
by Richard W.M. Jones
This (re-)adds support for TLS and TCP sockets, the configuration file,
certificate checking, clients IP address whitelists.
Rich.
--
Emerging Technologies, Red Hat http://et.redhat.com/~rjones/
64 Baker Street, London, W1U 7DF Mobile: +44 7866 314 421
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.
Registered in England and Wales under Company Registration No. 3798903
Directors: Michael Cunningham (USA), Charlie Peters (USA) and David
Owens (Ireland)
17 years, 7 months
[Libvir] Relax NG for network XML
by David Lutterkort
Hi,
I wrote up a basic Relax NG schema for the network XML. It would be nice
if those who know these things could look over/expand on the comments on
what the various elements do.
David
17 years, 7 months
[Libvir] about domctl
by Atsushi SAKAI
Hi, Dan
I have a question about domctl(Xen hypervisor call).
It seems not working on Fedora7(i386).
But sysctl works fine.
for example
"virsh setmem" does not set memory.
"virsh vcpuinfo " shows following message on dom0 (strange)
VCPU: 0
CPU: 0
State: blocked
CPU time: 0.0s
CPU Affinity: -
Would you investigate this issue?
I look around the code but it should be works.
Thanks
Atsushi SAKAI
17 years, 7 months
[Libvir] Remote patch, 2007-04-26
by Richard W.M. Jones
Been on holiday last week, and then got massively sidetracked with query
strings in libxml2, so there's not been much progress. Nevertheless,
here is the current remote patch. It still needs GnuTLS support to be
copied over from the old version, so currently it only listens on Unix
sockets.
Rich.
--
Emerging Technologies, Red Hat http://et.redhat.com/~rjones/
64 Baker Street, London, W1U 7DF Mobile: +44 7866 314 421
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.
Registered in England and Wales under Company Registration No. 3798903
Directors: Michael Cunningham (USA), Charlie Peters (USA) and David
Owens (Ireland)
17 years, 7 months
[Libvir] [PATCH][RFC] Adding Cloning Feature
by Kazuki Mizushima
Hi all,
I've been planing to adding cloning feature.
Then, I tried to make the patch in the following way.
1)Get the XML used virDomainGetXMLDesc
2)Delete <uuid>, <mac> node element
This intened to automatically generated.
3)Changing <name>, <source dev> string node element
4)Fork "dd" process
5)Define XML used virDomainDefineXML
This feature is just a first revision,
because I make this patch within current libvirt API limitation.
Also Remote Cloining is Limited.
But if we can libvirtd for feature, it will be enhance remote cloning
based on this pach
(as http://libvirt.org/remote.html#Remote_libvirtd_configuration)
Finally, to have to communicate with the demon remotely as libvirt library,
actually I want to put down to new libvirt API (e.g. virDomainClone).
Could you hear your comments about this ?
Attached patch shows below.
---------------------------------------------
# ./virsh --help clone
NAME
clone - clone a domain
SYNOPSIS
virsh clone <domain> <devices,...>
DESCRIPTION
Clone a domain.
OPTIONS
<domain> shut off state domain name
<devices> destination devices (comma separated)
# ./virsh clone PV_RH5 /dev/sdb2
Cloning from /dev/sda5 to /dev/sdb2 .....
# ./virsh list --all
Id Name State
----------------------------------
0 Domain-0 running
- PV_RH5 shut off
- PV_RH5_CLONE shut off
#./virsh start PV_RH5_CLONE
Domain PV_RH5_CLONE started
---------------------------------------------
Thanks,
Kazuki Mizushima
17 years, 7 months
Re: [Libvir] [PATCH][RFC] Adding Cloning Feature
by Kazuki Mizushima
Hi Rich,
> I think cloning is a great feature. From when I used to sysadmin a Xen
> server, I used cloning as the main technique to create new servers - ie.
> take an existing machine which is similar to the new one which I want,
> and just clone it.
Thank you for your comments and agreement.
> There is no problem with interaction with the remote patch. Nor do you
> have to worry about the remote stuff when implementing this (the "dd"
> will fork on the remote libvirtd automagically).
O.K. I understood it.
I warry about remote support for libvirt architecture always.
> So the idea is that you can only clone an inactive domain?
This first revision, only inactive domain. But next step,
I think snapshot command will be able to used instead of "dd".
Thanks,
Kazuki Mizushima
17 years, 7 months