[libvirt-users] Communication with Hyper-V
by Vadim Gurevich
Hi,
I'm interested in using libvirt to communicate with Microsoft's Hyper-V.
I'm trying to use virsh, but with no success. I have a machine that runs
Windows Server Developer Preview with Hyper-V on it, ip x.x.x.x
I set the service Basic and AlloUnencrypted properties on this machine
to true, as required
I also have a Linux machine x.x.y.y, with libvirt installed. This is
what I get:
virsh -c hyperv://x.x.x.x/?transport=http
error: Cannot read CA certificate '/etc/pki/CA/cacert.pem': No such file
or directory
error: failed to connect to the hypervisor
My questions are:
1. As I understand, if my hypervisor was on Linux, there's a daemon
"libvirtd" that should be installed on it. Is there an equivalent
service for Windows? I installed this thing on the Hyper-V machine:
http://libvirt.org/sources/win32_experimental/Libvirt-0.8.8-0.exe, but
am not sure about its purpose.
2. Why do I get an error about certificate, when I specified the
transport to be http?
Thanks,
Vadim
12 years, 9 months
[libvirt-users] Host and VM performance using libvirt
by Ananth
Hi,
Is there any libvirt API for measuring the Host and VM performance
parameters. Or is there any virsh command implementing the same for KVM?
eg: CPU utilization, memory utilization, load percentage, CPU Mhz etc.,
--
Regards
Ananth
12 years, 9 months
[libvirt-users] libvirt-bin always hung
by mao weijie
I have installed libvirt-bin in my ubuntu 11.10
libvirt-bin version is 0.9.2.-4 ubuntu15.1
But running after a time, it is always hung. It is not response if I use "virt" . And openstack using libvirt too, it also does not work.
非淡泊無以明志,非寧靜無以致遠
12 years, 9 months
[libvirt-users] hooks not working on Ubuntu
by Zoltan Lippai
Hi everybody!
I was trying to set up port forwarding to one of my VM's but I'm stuck.
I was following this guide:
http://wiki.libvirt.org/page/Networking#Forwarding_Incoming_Connections
So I've created the hook script but it seems like libvirt is not calling it upon the start of the VM.
I've put this into the hook script:
date >> /tmp/libvirt-hook-debug
but the file was never created.
Also I put this in the script:
echo "Could not find required XYZZY" >&2
exit 1
(just to make sure)
This should show up in the libvirt log, but it's not there.
I think it is safe to say, that this script is never called.
I am using Ubuntu 11.10 and I know about the apparmor.d bug (https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/891472) so I tried to change the apparmor profile as suggested, I even tried to turn apparmor off temporarily (service apparmor teardown) but still no luck.
I have libvirt 0.9.2-4ubuntu15.1 (they say the bug is fixed in 0.9.7 but it's not yet available in the repo and I'm not even sure, that my problem is related to that bug).
So do you have any idea what could be going on in here?
Thanks,
Zoltan Lippai
12 years, 9 months
[libvirt-users] Libvirtd slowness
by Nathan March
Hi,
Can anyone tell me if it's normal to take over 2 seconds to connect to
the libvirt daemon?
xen1 ~ # time virsh -c 'xen://xen5/' pwd
real 0m2.102s
xen1 ~ # time virsh -c 'xen://xen1/' pwd
real 0m2.217s
Strace shows it sitting for 2.08s on polling the remote socket:
poll([{fd=6, events=POLLIN}, {fd=7, events=POLLIN}], 2, -1) = 1 ([{fd=6,
revents=POLLIN}]) <2.082839>
Not quite sure why though? Experiencing this on both 0.9.7 and 0.9.0.
This happens both with virsh and the perl libvirt bindings.
If i just spawn virsh interactively I only incur that 2s hit on intial
spawn, all commands are very quick and responsive.
Anyone have any suggestions?
- Nathan
--
Nathan March<nathan(a)gt.net>
Gossamer Threads Inc. http://www.gossamer-threads.com/
Tel: (604) 687-5804 Fax: (604) 687-5806
12 years, 10 months
[libvirt-users] Python bindings for libvirt
by Ananth
Hi,
I referred to the developer guide in libvirt.org regarding python bindings.
But the document says TBD and it was last updated in 2010.
Could you point to any sources regarding python bindings to call libvirt
APIs?
--
Regards
Ananth
12 years, 10 months
[libvirt-users] Issue with event registration
by Tyrion Lannister
Hi,
I could find only one post related to this, but that did not address my
problem. I am trying to register for VM events using
virConnectDomainEventRegisterAny, but that is returning with the error
"libvir: Remote error : this function is not supported by the connection
driver: no event support"
I have registered for the default event implementation (as suggested in the
response to an earlier post related to this problem) prior to calling
*RegisterAny, but that is not helping.
Browsing through the coe, it seems to me this has to do with the timer
support in the domainEventState, just a guess.
if (priv->domainEventState->timer < 0) {
remoteError(VIR_ERR_NO_SUPPORT, "%s", _("no event support"));
goto done;
}
I am using Centos 6 with KVM QEMU.
Thanks,
Suresh
12 years, 10 months
[libvirt-users] libvirt-java: generate Java code from rng schema
by Celsina Bignoli
Hi,
I am a quite new to libvirt, and need to use it from within Java code. I was wondering if anyone has been able to generate Java classes from the publisher rng schema. I also wonder why rng format was used over more common formats, which would make things easier since there are a number of code generators for it which are well established, at least in the Java world...
Any suggestion would be greatly appreciated.
Thank you,
elsa
12 years, 10 months
[libvirt-users] Feasibility of iscsi storage pool
by Dennis Jacobfeuerborn
Hi,
I want to start using iscsi storage but ran into a problem. I defined a
storage pool and this contains my first LUN which is mounted on a
hypervisor. When I now add a second LUN on a target and do a tgt-admin
--update --force to reload the target the i/o to the first LUN seems to
freeze for a few seconds.
Now I'm wondering if I'm doing anything wrong? It's not really tolerable to
have all guests using this target freeze simply because I want to add
another LUN. The alternative is to use one LUN per target and define lots
of targets on the server but then the whole pool configuration no longer
makes sense as I would essentially end up with one pool per guest volume.
Does anyone have experience with this kind of setup?
Regards,
Dennis
12 years, 10 months
[libvirt-users] [LIBVIRT] Xen issue.
by Armand Leclercq
Hi everybody,
I'ld to use virsh over ssh in order to connect to my xen hypervisor from
one of my DomU.
I tried:
virsh -c xen+ssh://root@192.168.0.67:22 list --all
And it correctly listed the started virtual computers.
And when I tried
virsh connect xen+ssh://root@192.168.0.67:22
And I got.
error: no connection driver available for xen:///
error: failed to connect to the hypervisor
Does that mean I wrongly configured my computers or that libvirt does
not support such connection from a DomU.
--
Armand Leclercq
EPITA 2013
06 71 57 90 73
armand.leclercq(a)gmail.com.
/Computer Science is embarrassed by the computer./
_Alan Perlis_
12 years, 10 months