[libvirt-users] New vs old API usages
by Shahar Havivi
Hi,
Currently I am using the latest libvirt API listAllDomains() to probe for domains.
I may need to fall back to older API for old libvirt server such as: listDefinedDomains() and lookupByName()
instead of listAllDomains().
Is there any disadvantage to using listAllDomains instead of listAllDomains
or its the same results via different API?
Thank you,
Shahar.
8 years, 12 months
[libvirt-users] Spice and client usb-redirection
by Dominique Ramaekers
Hi,
Is there anybody who got the usb-redirection working with remote-viewer on Windows?
If I install remote-viewer, the option to redirect usb devices is grayed out in the menu.
Greetings,
Dominique.
8 years, 12 months
[libvirt-users] SOLVED: failed to connect to the hypervisor
by Ken D'Ambrosio
Ubuntu, for the loss. Turned out to be an apparmor issue; as I hadn't
touched the profiles, it must've been something else going on.
-Ken
------------------------- original issue ----------------------------
When I try, I get this:
root@kilo-VirtualBoxHost:~# virsh -c vbox:///session
error: failed to connect to the hypervisor
error: internal error: nsIEventQueue object is null
----------------------------------
The part that puzzles me is that it *used* to work, but no longer.
"virsh -V" shows me running libvirt 1.2.2, with VirtualBox enabled. I'm
running stock Ubuntu VirtualBox v. 4.3.10. I've rebooted; I've tried
running it as different users. Googling comes up with some
five-year-old Solaris patch discussions. My
/var/log/libvirt/libvirtd.log shows stuff like this:
2015-11-25 02:21:39.381+0000: 3893: error : virNetSocketReadWire:1454 :
End of file while reading data: Input/output error
2015-11-25 02:26:38.953+0000: 3897: error : vboxInitialize:932 :
internal error: nsIEventQueue object is null
2015-11-25 02:26:38.954+0000: 3893: error : virNetSocketReadWire:1454 :
End of file while reading data: Input/output error
Any pointers would be greatly appreciated.
Thanks!
-Ken
8 years, 12 months
[libvirt-users] XenServer Support
by Martin Juhl
Hi
I'm trying to get libvirt/virsh to work with Citrix XenServer...
I have recompiled libvirt from RHEL7 (1.2.8+patches) with xenapi support.. and it seems to be working:
[root@dantooine etc]# virsh --debug=4 -c xenapi://192.168.60.82/?no_verify=1
Enter username for 192.168.60.82: root
Enter root's password for 192.168.60.82:
Velkommen til virsh, den interaktive terminal for virtualisering.
Skriv: 'help' for hjælp med kommandoer
'quit' for at afslutte
virsh # list
Struct did not contain expected field hardware_platform_version.
Struct did not contain expected field hardware_platform_version.
Struct did not contain expected field hardware_platform_version.
Struct did not contain expected field hardware_platform_version.
Struct did not contain expected field hardware_platform_version.
Struct did not contain expected field hardware_platform_version.
Struct did not contain expected field hardware_platform_version.
Struct did not contain expected field hardware_platform_version.
Struct did not contain expected field hardware_platform_version.
Struct did not contain expected field hardware_platform_version.
Id Navn Tilstand
----------------------------------------------------
0 Control domain on host: endor2.outerrim.lan kører
3 CloudCity kører
5 R2D2 kører
6 Naboo kører
7 Jarjar kører
8 Dantooine_NY kører
9 Deathstar kører
10 Vader kører
11 Bespin kører
12 Kessel kører
Now I want to be able to auto-login (to do scripting and Satellite 6)... But I can't get it to work...
My /etc/libvirt/auth.conf:
[root@dantooine etc]# cat /etc/libvirt/auth.conf
[credentials-endor]
authname=root
password=<password>
[auth-libvirt-192.168.60.82]
credentials=endor
I have also tried with "xen" and "xenapi" instead of libvirt... But I am still prompted for a user and password....
[root@dantooine etc]# virsh --debug=4 -c xenapi://192.168.60.82/?no_verify=1
Enter username for 192.168.60.82:
Can someone help me out here???
Thanks
/Martin
8 years, 12 months
[libvirt-users] failed to connect to the hypervisor
by Ken D'Ambrosio
When I try, I get this:
root@kilo-VirtualBoxHost:~# virsh -c vbox:///session
error: failed to connect to the hypervisor
error: internal error: nsIEventQueue object is null
----------------------------------
The part that puzzles me is that it *used* to work, but no longer.
"virsh -V" shows me running libvirt 1.2.2, with VirtualBox enabled. I'm
running stock Ubuntu VirtualBox v. 4.3.10. I've rebooted; I've tried
running it as different users. Googling comes up with some
five-year-old Solaris patch discussions. My
/var/log/libvirt/libvirtd.log shows stuff like this:
2015-11-25 02:21:39.381+0000: 3893: error : virNetSocketReadWire:1454 :
End of file while reading data: Input/output error
2015-11-25 02:26:38.953+0000: 3897: error : vboxInitialize:932 :
internal error: nsIEventQueue object is null
2015-11-25 02:26:38.954+0000: 3893: error : virNetSocketReadWire:1454 :
End of file while reading data: Input/output error
Any pointers would be greatly appreciated.
Thanks!
-Ken
9 years
[libvirt-users] esx/vcenter: create a domain inside an folder
by Cyrill von Wattenwyl
Hello at all
Im trying to create a domain inside a folder:
Host: foo.tld
Datacenter: dc1
Cluster: cluster name1
Host: esx.tld
Folder: folder/subfolder (inside Cluster bar.tld)
URL: vpx://foo.tld/dc1/cluster%20name1/folder/subfolder/esx.tld
I tried nearly every combination since the documentation is not 100% clear about that, but libvirt allways creates the domains inside vpx://foo.tld/dc1/ and not goes "deeper".
My questions:
- Is it even possible to create domains inside of a folder inside a cluster? If yes, how?
- Could the whitespace in cluster name be a problem?
- The user im trying to create the vms does not have permissions to view/change things on level datacenter/cluster/main folder. it can only view things in the subfolder. Could this be the issue?
Thanks for your time and best regards,
Cyrill
9 years
[libvirt-users] removing PS/2 keyboard
by Tadas
Hello lists,
I wonder, is there a way to remove a PS/2 keyboard from a guest and
leave it only with USB bus one? Problem is that if i edit guest (via
virsh edit) and change keyboard bus from ps2 to usb, I end up with two
keyboards: ps2 and usb one.
--
9 years
[libvirt-users] libvirt prepare and start hooks not callled
by Sundar Nadathur
Hello,
I am using RHEL 7.1 and libvirt 1.2.8. My intention is to intercept the prepare and start hooks of libvirt during VM placement to inject a virtio PCI device into the VM's domain xml.
I placed a python script with execute permissions in /etc/libvirt/hooks/qemu. In there, I opened a log file to record the arguments received:
log.write("avfd called with args: %s\n" % sys.argv)
But all I get in the log file is:
avfd called with args: ['/etc/libvirt/hooks/qemu', 'vm1', 'started', 'begin', '-']
There are no prepare or start calls. Can somebody explain what it takes to fix this?
Cheers,
Sundar
________________________________
Confidentiality Notice.
This message may contain information that is confidential or otherwise protected from disclosure. If you are not the intended recipient, you are hereby notified that any use, disclosure, dissemination, distribution, or copying of this message, or any attachments, is strictly prohibited. If you have received this message in error, please advise the sender by reply e-mail, and delete the message and any attachments. Thank you.
9 years
[libvirt-users] ANNOUNCE: ruby-libvirt 0.6.0
by Chris Lalancette
All,
I'm pleased to release ruby-libvirt 0.6.0. ruby-libvirt is a ruby
wrapper around the libvirt API. The changelog between 0.5.2 and 0.6.0
is:
* Fix possible buffer overflow
* Fix storage volume creation error messages
* Add additional storage pool defines
* Implement Network dhcp_leases method
* Implement Connect node_alloc_pages method
* Implement Domain time method
* Implement Connect domain_capabilities method
* Implement Domain core_dump_with_format method
* Implement Domain fs_freeze method
* Implement Domain fs_info method
* Implement Connect node_free_pages method
Version 0.6.0 is available from http://libvirt.org/ruby:
Tarball: http://libvirt.org/ruby/download/ruby-libvirt-0.5.2.tgz
Gem: http://libvirt.org/ruby/download/ruby-libvirt-0.5.2.gem
It is also available from rubygems.org; to get the latest version, run:
$ gem install ruby-libvirt
Packages for it are also built for Fedora, and will be released shortly.
As usual, if you run into questions, problems, or bugs, please feel free to
mail me (clalancette gmail com) and the libvirt mailing list.
Thanks to those who contributed to this release.
9 years
[libvirt-users] Can't take live snapshot, not supported with this QEMU binary
by Tashi Lu
Hi all,
I was trying to take live snapshot of VMs, but I got the following error:
[root@localhost ~]# virsh snapshot-create-as 1 test desc --live
--memspec file=mem.bak,snapshot=external --diskspec
vda,snapshot=external,file=/root/root.bak.qcow2
error: Operation not supported: live disk snapshot not supported with
this QEMU binary
I upgraded my qemu-kvm 0.12.1 to qemu 1.2, the error still exists. Is
this really the problem of my qemu version or I did something wrong?
To what version should I upgrade? Thanks.
virsh version:
Compiled against library: libvirt 0.10.2
Using library: libvirt 0.10.2
Using API: QEMU 0.10.2
Running hypervisor: QEMU 0.12.1
uname -r: 2.6.32-504.el6.x86_64
9 years