[libvirt-users] Way for a VM to reboot from a snapshot?
by Ken Coar
Using the koan command, a VM can essentially request
that it be reprovisioned.
Is there any way for a VM to request that it reboot from
a snapshot taken with virsh?
Thanks..
--
#ken B-)}
Ken Coar, RHCE, RHCSA, Sanagendamgagwedweinini
IT Engineering Tower, Red Hat/RDU
"Millennium hand and shrimp!"
11 years, 6 months
[libvirt-users] latency between LIFECYCLE event and notification generation
by nishant burte
Hi,
I have registered for LIFECYCLE events of libvirt.
But I don't know,
1. about the the latency of these events happening and notification
generation.
e.g. suppose a VM goes down. How much time it takes to realize that the
particular VM has gone down(going to say, DEFINED state) and then
notification is generated?
2. Second question is, can someone please explain what are the sequence of
steps happen between a VM going down and the notification is generated?
Coul you please answer both the queries?
Thanks
Nishant
11 years, 6 months
[libvirt-users] libvirt daemon and numad daemon
by Gao Yongwei
Hello all, I installed libvirt-0.10.2-18.el6.x86_64 ,is there any
relationship between libvirtd and numad ? I found that when I started numad
daemon , the vm can start in a shorter time, but when
numad daemon stoped , vm could still start ,just with a longer start time.
how does this work with the two daemons? thanks.
11 years, 6 months
[libvirt-users] unable to do kerberos authentication
by Parker Schmitt
Hello,
I am trying to do kerberos (sasl+gssapi) authentication for a hypervisor
running libvirt. When I have valid kerberos credentials these errors end up
in my logs. I have no idea what this all means. More info is in my bug
report https://bugzilla.redhat.com/show_bug.cgi?id=958589
Thank you for your help.
2013-05-08 16:25:30.564+0000: 28934: error :
virNetSASLSessionServerStart:533 : authentication failed: Failed to start
SASL negotiation: -13 (SASL(-13): authentication failure: GSSAPI Failure:
gss_accept_sec_context)
2013-05-08 16:25:30.564+0000: 28934: debug :
remoteDispatchAuthSaslStart:2636 : RPC_SERVER_CLIENT_AUTH_FAIL:
client=0x716391d0b0 auth=1
2013-05-08 16:25:30.564+0000: 28934: debug : virObjectUnref:258 :
OBJECT_UNREF: obj=0x337e4000ba0
2013-05-08 16:25:30.564+0000: 28934: debug : virObjectUnref:260 :
OBJECT_DISPOSE: obj=0x337e4000ba0
2013-05-08 16:25:30.564+0000: 28934: error :
remoteDispatchAuthSaslStart:2651 : authentication failed: authentication
failed
2013-05-08 16:25:30.564+0000: 28934: debug :
virNetServerProgramSendError:151 : prog=536903814 ver=1 proc=68 type=1
serial=2 msg=0x716391e480 rerr=0x337f90d9c20
2013-05-08 16:25:30.564+0000: 28934: debug : virNetMessageEncodePayload:364
: Encode length as 180
2013-05-08 16:25:30.564+0000: 28934: debug :
virNetServerClientSendMessageLocked:1287 : msg=0x716391e480 proc=68 len=180
offset=0
2013-05-08 16:25:30.564+0000: 28934: debug :
virNetServerClientSendMessageLocked:1295 : RPC_SERVER_CLIENT_MSG_TX_QUEUE:
client=0x716391d0b0 len=180 prog=536903814 vers=1 proc=68 type=1 status=1
serial=2
2013-05-08 16:25:30.564+0000: 28934: debug :
virNetServerClientCalculateHandleMode:148 : tls=(nil) hs=-1,
rx=0x71639257d0 tx=0x716391e480
2013-05-08 16:25:30.564+0000: 28934: debug :
virNetServerClientCalculateHandleMode:183 : mode=3
2013-05-08 16:25:30.564+0000: 28934: debug : virEventPollUpdateHandle:147 :
EVENT_POLL_UPDATE_HANDLE: watch=9 events=3
2013-05-08 16:25:30.564+0000: 28934: debug :
virEventPollInterruptLocked:716 : Interrupting
11 years, 6 months
[libvirt-users] migration job: unexpectedly failed
by Daniele
Hi, I am trying to run some test and analysis while performing a wide live
migration of a VM between two different network location. I use libvirt and
qemu-kvm as hypervisor on Linux.
The live wide migration from A to B completes successfully, instead I can't
achieve the reverse path, from B to A (and that is right what I am
interested to). To perform the migration I run this command in virsh: *"migrate
--live --verbose uno qemu+ssh://root@ip.address/system"*
*
*
Even if dramatically slow (i guess due to some network bottleneck) the
migration starts correctly, but it gets stuck at 96% and after some minute
it returns this error: *"Migration: [ 96 %]error: operation failed:
migration job: unexpectedly failed" *without further details.
The libvirtd.log file in the source host says:
*2013-05-07 11:01:18.739+0000: 9538: error :
qemuMigrationUpdateJobStatus:945 : operation failed: migration job:
unexpectedly failed*
*
*
Apparently i can't find any clue of what is causing the error, do you have
any idea/solution?
*
*
(I'm not sure if this is the appropriate mailing-list, maybe it was better
the devs list?)
Thanks for your help
Daniele
11 years, 6 months
[libvirt-users] Java client error on Windows 7 64 bit for Libvirt on KVM
by george john
Hi,
I need some help in building a Java client on Windows 7 64 bit plaftorm to manage a KVM using the libvirt APIs. Using the instructions at http://libvirt.org/java.html, i was able to build libvirt.jar. My understanding is that libvirt.jar uses JNA to call libvirt's native windows library. I tried using the libvirt dlls in the experimental Windows installation package mentioned in http://libvirt.org/windows.html at http://libvirt.org/sources/win32_experimental/Libvirt-0.8.8-0.exe
but whenever I try to connect to my remote API, I get the below Java exception :
Exception in thread "main" java.lang.UnsatisfiedLinkError: %1 is not a valid Win32 application.
at com.sun.jna.Native.open(Native Method)
at com.sun.jna.Native.open(Native.java:1718)
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:210)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:322)
at com.sun.jna.Library$Handler.<init>(Library.java:142)
at com.sun.jna.Native.loadLibrary(Native.java:387)
at com.sun.jna.Native.loadLibrary(Native.java:366)
at org.libvirt.jna.Libvirt.<clinit>(Unknown Source)
at org.libvirt.Library.<clinit>(Unknown Source)
at org.libvirt.Connect.<init>(Unknown Source)
at Main.main(Main.java:8)
But when I try the same client code on a Windows XP 32 bit machine (with 32 bit JVM), I don't see this problem and the connection succeeds. So it looks like the problem is that I am not using 64 bit windows libvirt dlls. Is my assumption correct? Is there a Windows installer with 64 bit Libvirt dlls ? Or are the 64 bit version of DLLs published somewhere?
I tried using Matthias Bolte's msys_setup script (I tried in 2 machines) and in both machines, I get the below error when I try to run compile_libxml2.sh as per instructions https://github.com/photron/msys_setup/blob/master/readme_libvirt.txt
Last few lines before the error is :
>>>>>>>>>>>>>>>>>
make[5]: Leaving directory `/src/libxml2/libxml2-2.9.0-0/python'
make[4]: Leaving directory `/src/libxml2/libxml2-2.9.0-0/python'
Making install in tests
make[4]: Entering directory `/src/libxml2/libxml2-2.9.0-0/python/tests'
make[5]: Entering directory `/src/libxml2/libxml2-2.9.0-0/python/tests'
make[5]: Nothing to be done for `install-exec-am'.
test -z "/share/doc/libxml2-python-2.9.0/examples" || /bin/mkdir -p "/share/doc/
libxml2-python-2.9.0/examples"
/bin/install -c -m 644 build.py attribs.py tst.py tstxpath.py xpathext.py push.
py pushSAX.py pushSAXhtml.py error.py serialize.py validate.py tstURI.py cutnpas
te.py xpathret.py xpath.py outbuf.py inbuf.py resolver.py regexp.py reader.py re
ader2.py reader3.py reader4.py reader5.py reader6.py reader7.py reader8.py reade
rnext.py walker.py nsdel.py ctxterror.py readererr.py relaxng.py schema.py threa
d2.py sync.py tstLastError.py indexes.py dtdvalid.py tstmem.py '/share/doc/libxm
l2-python-2.9.0/examples'
/bin/install -c -m 644 validDTD.py validSchemas.py validRNG.py compareNodes.py
xpathns.py xpathleak.py tst.xml valid.xml invalid.xml test.dtd '/share/doc/libxm
l2-python-2.9.0/examples'
make[5]: Leaving directory `/src/libxml2/libxml2-2.9.0-0/python/tests'
make[4]: Leaving directory `/src/libxml2/libxml2-2.9.0-0/python/tests'
make[3]: Leaving directory `/src/libxml2/libxml2-2.9.0-0/python'
make[2]: Leaving directory `/src/libxml2/libxml2-2.9.0-0/python'
make[1]: Leaving directory `/src/libxml2/libxml2-2.9.0-0'
+ cp /python/Lib/site-packages/libxml2mod.dll /python/DLLs/libxml2mod.pyd
cp: cannot stat `/python/Lib/site-packages/libxml2mod.dll': No such file or dire
ctory
>>>>>>>>>>>>>>>>>>
Do you know how this error could be resolved? All help will be greatly appreciated.
Thank you.
11 years, 6 months
[libvirt-users] hyperv connection failing with libvirt 1.0.4 virsh.
by D e e p a k
Trying to use virsh for hyperv and getting this.
virsh # connect hyperv://172.168.1.111:5985/?transport=http
Enter username for 172.168.1.111 [administrator]:
administrator
Enter administrator's password for 172.168.1.111:
2013-04-29 10:36:48.690+0000: 13991: error :
hypervDebugHandler:1444 : openwsman error: NULL response
error: Failed to connect to the hypervisor
error: internal error Transport error during enumeration:
User, password or similar was not accepted (26)
Using libvirt 1.0.4 from source code.
What is going wrong in this hyperv connection ?
Regards,
Deepak
11 years, 6 months