SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I tried to fire up VirtManager today for the first time since the recent round of updates but libvirtd is looking for libhal ( which no longer exists? )
Any ideas on this dependency? Can I use the 13.37 package?
Hi Ponce, I need a little more help. I downloaded the slackbuilds-libvirt.tar.gz file from your link however it appears to have the entire slackbuilds repo in it rather than just the libvirt stuff - is this correct?
that .tar.gz is a git snapshot of the only libvirt branch (it contains only modifications to the libvirt.SlackBuild).
you can easily use the -current repo with sbopkg or just clone the default branch from github
Code:
git clone git://github.com/Ponce/slackbuilds.git
you will have a folder with all the modified slackbuilds (but using with sbopkg is more practical)
note that I haven't modified openvswitch: you can see my modifications in the branches details.
if you want to build the updated libvirt/virt-manager stuff, this a possible queue you can use (you can also save it as /var/lib/sbopkg/queues/myvirt.sqf and build everything with "sbopkg -i myvirt" -that's the slack!)
the same with qemu, if you are not interested in that version (that includes qemu-1.1.1 and qemu-kvm-1.1.1) and prefer using your own.
you will probably need also to build netcat-openbsd to use in place of the default netcat in slackware, as this latest lack some options used by libvirt: install it, then
Code:
cd /usr/bin ; mv nc nc.orig ; ln -s nc.openbsd nc
Last edited by ponce; 08-08-2012 at 09:46 AM.
Reason: added vala to fix error in post below
Ok the error I have now is libvirt-related - when starting virt-manager I get:
Unable to connect to libvirt.
Cannot recv data: Connection reset by peer
Libvirt URI is: qemu:///system
I've checked that libvirtd is running and also enabled logging ( info level ) - there is nothing beyond normal stuff in /var/log/messages.
Quote:
Aug 8 16:40:03 googly libvirtd: 32343: info : libvirt version: 0.9.13
Aug 8 16:40:03 googly libvirtd: 32343: info : virNetlinkEventServiceStart:418 : starting netlink event service
Aug 8 16:40:03 googly libvirtd: 32354: info : networkReloadIptablesRules:1512 : Reloading iptables rules
Aug 8 16:40:03 googly libvirtd: 32354: info : virStorageBackendVolOpenCheckMode:1063 : Skipping special dir '..'
Aug 8 16:40:03 googly libvirtd: 32354: info : virStorageBackendVolOpenCheckMode:1063 : Skipping special dir '.'
Aug 8 16:40:03 googly libvirtd: 32354: info : virStorageBackendVolOpenCheckMode:1063 : Skipping special dir '..'
Aug 8 16:40:03 googly libvirtd: 32354: info : virStorageBackendVolOpenCheckMode:1063 : Skipping special dir '.'
Aug 8 16:40:03 googly libvirtd: 32354: info : virStorageBackendVolOpenCheckMode:1063 : Skipping special dir '..'
Aug 8 16:40:03 googly libvirtd: 32354: info : virStorageBackendVolOpenCheckMode:1063 : Skipping special dir '.'
Aug 8 16:40:03 googly libvirtd: 32354: info : qemudLoadDriverConfig:332 : Configured cgroup controller 'cpu'
Aug 8 16:40:03 googly libvirtd: 32354: info : qemudLoadDriverConfig:332 : Configured cgroup controller 'cpuacct'
Aug 8 16:40:03 googly libvirtd: 32354: info : qemudLoadDriverConfig:332 : Configured cgroup controller 'cpuset'
Aug 8 16:40:03 googly libvirtd: 32354: info : qemudLoadDriverConfig:332 : Configured cgroup controller 'memory'
Aug 8 16:40:03 googly libvirtd: 32354: info : qemudLoadDriverConfig:332 : Configured cgroup controller 'devices'
Aug 8 16:40:03 googly libvirtd: 32354: info : qemudLoadDriverConfig:332 : Configured cgroup controller 'blkio'
Aug 8 16:40:03 googly libvirtd: 32354: info : virDomainLoadAllConfigs:13396 : Scanning for configs in /var/run/libvirt/qemu
Aug 8 16:40:03 googly libvirtd: 32354: info : virDomainLoadAllConfigs:13396 : Scanning for configs in /etc/libvirt/qemu
Aug 8 16:40:03 googly libvirtd: 32354: info : virDomainLoadAllConfigs:13418 : Loading config file 'centos55.xml'
Aug 8 16:40:03 googly libvirtd: 32354: info : virDomainLoadAllConfigs:13418 : Loading config file 'centos61.xml'
Aug 8 16:40:03 googly libvirtd: 32354: info : virDomainLoadAllConfigs:13418 : Loading config file 'slack64-13.37.xml'
Aug 8 16:40:03 googly libvirtd: 32354: info : qemuDomainSnapshotLoad:343 : Scanning for snapshots for domain centos55 in /var/lib/libvirt/qemu/snapshot/centos55
Aug 8 16:40:03 googly libvirtd: 32354: info : qemuDomainSnapshotLoad:343 : Scanning for snapshots for domain centos61 in /var/lib/libvirt/qemu/snapshot/centos61
Aug 8 16:40:03 googly libvirtd: 32354: info : qemuDomainSnapshotLoad:343 : Scanning for snapshots for domain slack64-13.37 in /var/lib/libvirt/qemu/snapshot/slack64-13.37
Aug 8 16:40:03 googly libvirtd: 32354: info : lxcSecurityInit:2595 : lxcSecurityInit (null)
Aug 8 16:40:03 googly libvirtd: 32354: info : virDomainLoadAllConfigs:13396 : Scanning for configs in /var/run/libvirt/lxc
Aug 8 16:40:03 googly libvirtd: 32354: info : virDomainLoadAllConfigs:13396 : Scanning for configs in /etc/libvirt/lxc
Aug 8 16:40:03 googly libvirtd: 32354: info : umlStartup:479 : Adding inotify watch on /var/run/libvirt/uml-guest
Aug 8 16:40:03 googly libvirtd: 32354: info : virDomainLoadAllConfigs:13396 : Scanning for configs in /etc/libvirt/uml
Even at debug level, there are no additional messages in messages log when connecting from virt-manager. I've tired virsh as well:
I thought might be due to the fact that I only installed qemu-kvm ( and not qemu ) which is what I've done in the past. Only problem is that your qemu package compiles for all archs which takes a really long time. In any case, I'm not convinced it's required.
no, qemu shouldn't be a problem. BTW, you can build qemu-kvm, that is at the same version and builds only qemu-kvm (it's my qemu package that builds both).
set in /etc/libvirt/libvirtd.conf, uncommenting the relative lines
Still no luck - same error. I've removed all of these packages and recompile/installed them again in case there was some issue in the upgrade process. I did note the following during the sbopkg build of virt-manager:
Libvirtd packages: none
KVM Packages: none
It seems that virt-manager configure is not picking up the dependencies? And because there is not kvm/libvirtd support in the build, it won't connect to the qemu service ...
that messages during the build of virt-manager are normal (got the same here).
if a simple (as root), from the host running libvirt (it tries to connect by default to qemu:///system, as you can see in /etc/libvirt/libvirt.conf)
Code:
virsh list --all
don't list your vms, the only thing I can guess is that you got some problems with the configuration files (virt-manager is not even involved in this case): as your log shows, libvirtd seems to be running fine.
maybe setting log_level = 1 (debug) could help diagnose the problem, that apparently seems that you cannot just connect to it.
virsh list --all
error: Failed to reconnect to the hypervisor
error: no valid connection
error: Unable to encode message header
error: Failed to reconnect to the hypervisor
I'm going to setup a slack14 vbox system ( the irony! ) for testing and redo these packages from start. My current system has been upgraded all the way from 13.0 so there may be something there causing an issue. Thanks very much for your help in any case.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.