LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-07-2012, 12:51 PM   #1
rpedrica
Member
 
Registered: Nov 2008
Location: Cape Town
Distribution: Slackware64 -current
Posts: 281

Rep: Reputation: 42
libvirtd and hal on -current


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?

Regards, Robby
 
Old 08-07-2012, 01:08 PM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
you can rebuild it passing "--without-hal" to configure: if you like, I have an updated SlackBuild for -current (note that now libvirt needs yajl)

http://cgit.ponce.cc/slackbuilds/commit/?h=libvirt

(you can find also the other virt-manager related stuff updated in my repository for -current)
 
Old 08-07-2012, 01:31 PM   #3
rpedrica
Member
 
Registered: Nov 2008
Location: Cape Town
Distribution: Slackware64 -current
Posts: 281

Original Poster
Rep: Reputation: 42
Thanks Ponce, I'll take a look!
 
Old 08-08-2012, 04:17 AM   #4
rpedrica
Member
 
Registered: Nov 2008
Location: Cape Town
Distribution: Slackware64 -current
Posts: 281

Original Poster
Rep: Reputation: 42
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?

I've targeted the following packages so far:

system/virtinst
system/virt-manager
system/virt-viewer
libraries/libvirt

And maybe

network/openvswitch

Is there anything I'm missing?

Regards, Robby
 
Old 08-08-2012, 04:33 AM   #5
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
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!)
Code:
rarian
tunctl
urlgrabber
gtk-vnc
celt051
spice-protocol
spice
vala
spice-gtk | VALA=yes
qemu
yajl
libvirt
virtinst
gnome-python
virt-manager
if you are not interested in spice support, you can omit
Code:
celt051
spice-protocol
spice
vala
spice-gtk | VALA=yes
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
 
Old 08-08-2012, 07:46 AM   #6
rpedrica
Member
 
Registered: Nov 2008
Location: Cape Town
Distribution: Slackware64 -current
Posts: 281

Original Poster
Rep: Reputation: 42
Thanks Ponce!

I've decided to use the sbopkg git option as that is probably the easiest. I'd like spice support but get an error when doing the spice-gtk package:

Quote:
GISCAN SpiceClientGtk-2.0.gir
GICOMP SpiceClientGLib-2.0.gir
GICOMP SpiceClientGtk-2.0.gir
make all-recursive
make[3]: Entering directory `/tmp/SBo/spice-gtk-0.7/gtk'
Making all in controller
make[4]: Entering directory `/tmp/SBo/spice-gtk-0.7/gtk/controller'
pkg gio-2.0 --pkg spice-protocol --vapidir=../../data --pkg custom --vapidir=. -C -g --pkg gio-unix-2.0 menu.vala controller.vala -H spice-controller.h
make[4]: pkg: Command not found
make[4]: [controller.vala.stamp] Error 127 (ignored)
make all-am
make[5]: Entering directory `/tmp/SBo/spice-gtk-0.7/gtk/controller'
make[5]: *** No rule to make target `menu.c', needed by `menu.lo'. Stop.
make[5]: Leaving directory `/tmp/SBo/spice-gtk-0.7/gtk/controller'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/tmp/SBo/spice-gtk-0.7/gtk/controller'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/tmp/SBo/spice-gtk-0.7/gtk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/SBo/spice-gtk-0.7/gtk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/SBo/spice-gtk-0.7'
make: *** [all] Error 2
Not sure what the
Quote:
pkg: Command not found
is all about ...

Any ideas?
 
Old 08-08-2012, 07:49 AM   #7
rpedrica
Member
 
Registered: Nov 2008
Location: Cape Town
Distribution: Slackware64 -current
Posts: 281

Original Poster
Rep: Reputation: 42
I'm also getting a failure on your netcat-openbsd package with the patch checksum:

Quote:
Found netcat-openbsd_1.89-4.diff.gz in /var/cache/sbopkg.
Checking MD5SUM:
MD5SUM check for netcat-openbsd_1.89-4.diff.gz ... FAILED!
Expected: 1dee057d6fbf6859a7112198cd8c6c56
Found: 00c65aa22243b76998174c733cbb64cc
 
Old 08-08-2012, 08:24 AM   #8
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
- build spice-gtk with the option VALA=yes (needs vala installed): you can also set it in the queuefile with
Code:
spice-gtk | VALA=yes
or on the command line
Code:
sbopkg -i spice-gtk:VALA=yes
- the patch checksum is wrong, so I think you can say to sbopkg to build it regardlessly.
 
Old 08-08-2012, 09:16 AM   #9
rpedrica
Member
 
Registered: Nov 2008
Location: Cape Town
Distribution: Slackware64 -current
Posts: 281

Original Poster
Rep: Reputation: 42
Sorry my mistake - I didn't read your original response well enough.

I had a number of other dependencies that needed to be upgraded as follows:

libsigc++
glibmm
gconf

At least virt-manager istarting now but I've got some further errors. Will need to troubleshoot further. Thanks for all your help!
 
Old 08-08-2012, 09:31 AM   #10
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
GConf in -current should be enough, the other two shouldn't be needed.
try to start from a clean configuration for libvirt: run
Code:
slackpkg new-config
substituting /etc/libvirt/* with the new versions.

Last edited by ponce; 08-08-2012 at 09:38 AM.
 
Old 08-08-2012, 10:11 AM   #11
rpedrica
Member
 
Registered: Nov 2008
Location: Cape Town
Distribution: Slackware64 -current
Posts: 281

Original Poster
Rep: Reputation: 42
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.
 
Old 08-08-2012, 10:16 AM   #12
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
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
Code:
auth_unix_ro = "none"
auth_unix_rw = "none"
then issue an
Code:
/etc/rc.d/rc.libvirt restart

Last edited by ponce; 08-08-2012 at 10:19 AM.
 
Old 08-08-2012, 11:06 AM   #13
rpedrica
Member
 
Registered: Nov 2008
Location: Cape Town
Distribution: Slackware64 -current
Posts: 281

Original Poster
Rep: Reputation: 42
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 ...
 
Old 08-08-2012, 11:49 AM   #14
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
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.

Last edited by ponce; 08-08-2012 at 11:55 AM.
 
Old 08-08-2012, 12:07 PM   #15
rpedrica
Member
 
Registered: Nov 2008
Location: Cape Town
Distribution: Slackware64 -current
Posts: 281

Original Poster
Rep: Reputation: 42
Thanks Ponce, yeah that's my thoughts as well:

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.

Regards, Robby
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Detecting current keyboard layout (using hal) wgac Slackware 10 12-09-2009 09:21 AM
kde4 + hal + dbus problems on -current (24 mar) janhe Slackware 1 03-29-2009 02:18 PM
Problem with Slackware current KDE4 and HAL I guess heimdal Slackware 6 11-05-2008 02:03 AM
Request for Testing - hal-0.5.11rc1 in -current rworkman Slackware 11 03-18-2008 01:23 PM
Aug 28 current : no HAL, no mouse, no good ! EvilBill Slackware 32 09-02-2006 08:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration