Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
01-23-2014, 12:39 PM
|
#16
|
LQ Newbie
Registered: Dec 2013
Posts: 6
Rep: 
|
I had the same error when I tried to install windows server. It seems that the new 0.10.0 version of virt-manager doesn't create a USB host controller in the virtual machine. Also, the default pointer device seems to be a graphics USB tablet instead of a mouse. Without a USB bus, the graphics tablet cannot be handled correctly.
I got around that by copying an existing machine using virsh. The "virsh dumpxml" command will output the XML definition of an existing machine. I copied it to a file and edited the definition to match my new machine (name, hd path). Be sure to remove the unique uuid string. Then I used "virsh define" to define the new machine.
Note: when i create a new slackware vm, it works without errors. This new vm has a PS/2 mouse and no USB bus.
|
|
|
01-23-2014, 01:03 PM
|
#17
|
Member
Registered: Jan 2011
Distribution: Slackware
Posts: 128
Rep: 
|
Do you recommend downgrading to the previous version of virt-manager, then? I don't have any machines created at the moment as I've just set up this box. Would creating a new Slackware VM then dumping and editing its xml to create the Windows VM work?
|
|
|
01-23-2014, 01:40 PM
|
#18
|
LQ Newbie
Registered: Dec 2013
Posts: 6
Rep: 
|
When I create a new Slackware vm, it adds a PCI, SATA and IDE controller, but not USB. So copying from that machine won't work.
Perhapt your best bet is to downgrade virt-manager. Make sure you check the required packages, because those have changed in the latest version.
|
|
|
01-23-2014, 02:27 PM
|
#20
|
Senior Member
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,860
|
ponce saves the day again!
Dude, what would we do without you?
|
|
|
01-23-2014, 09:56 PM
|
#21
|
Member
Registered: Jan 2011
Distribution: Slackware
Posts: 128
Rep: 
|
Quote:
Originally Posted by ponce
|
Thanks for this, it worked! Now I have the other issue which is virt-manager appears to not be picking up my QtCurve/icon theme in KDE. My other GTK programs like Firefox and Pidgin recognize it just fine after installing the QtCurve-Gtk2 package and changing the etc/gtk-2.0/gtkrc symlink. It looks like an issue similar to this one. I suspected spice-gtk and gtk-vnc were using GTK3, so I rebuilt those packages explicitly using only their GTK2 version, but still no go. I get the following error:
Code:
Error starting Virtual Machine Manager: Requiring namespace 'Gtk' version '2.0', but '3.0' is already loaded
Traceback (most recent call last):
File "/usr/share/virt-manager/virt-manager", line 303, in <module>
main()
File "/usr/share/virt-manager/virt-manager", line 267, in main
from virtManager.engine import vmmEngine
File "/usr/share/virt-manager/virtManager/engine.py", line 45, in <module>
from virtManager.details import vmmDetails
File "/usr/share/virt-manager/virtManager/details.py", line 37, in <module>
from virtManager.console import vmmConsolePages
File "/usr/share/virt-manager/virtManager/console.py", line 27, in <module>
from gi.repository import GtkVnc
File "/usr/lib64/python2.7/site-packages/gi/importer.py", line 68, in load_module
dynamic_module._load()
File "/usr/lib64/python2.7/site-packages/gi/module.py", line 289, in _load
self._introspection_module = get_introspection_module(self._namespace)
File "/usr/lib64/python2.7/site-packages/gi/module.py", line 268, in get_introspection_module
module = IntrospectionModule(namespace, version)
File "/usr/lib64/python2.7/site-packages/gi/module.py", line 117, in __init__
repository.require(namespace, version)
RepositoryError: Requiring namespace 'Gtk' version '2.0', but '3.0' is already loaded
Any thoughts?
|
|
|
01-23-2014, 11:39 PM
|
#22
|
LQ Guru
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,465
|
virt-manager 0.10 uses gtk+3 so you *have* to build gtk-vnc and spice-gtk with gtk+3 support and use a gtk+3 theme.
|
|
|
01-24-2014, 12:31 PM
|
#23
|
Member
Registered: Jan 2011
Distribution: Slackware
Posts: 128
Rep: 
|
Thanks for the reply, yesterday I fiddled around with it and did discover from the virt-manager changelog that as of version 0.10.0, it has been ported over to GTK3.
|
|
|
01-25-2014, 08:52 AM
|
#24
|
LQ Newbie
Registered: Dec 2013
Posts: 6
Rep: 
|
You can install "kde-gtk-config" from slackbuilds.org. It shows up in KDE System Settings, Application appearance, GTK configuration. There you can set the themes for GTK2 and GTK3. It fixes the icon visibility issue in virt-manager.
|
|
|
02-19-2014, 10:19 PM
|
#25
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
I just had the same problem with this error-message
Quote:
Unable to complete install: 'Controller 'devices' is not wanted, but 'cpu' is co-mounted: Invalid argument'
|
with libvirt 1.2.1 and libvirt-python 1.2.1.
I found this blog post with the solution, after putting that script into my rc.local (before the start of libvirtd) it works without a problem, though I am using Qemu and not LXC.
https://strangeworlds.co.uk/blog/201...and-slackware/
Last edited by TobiSGD; 02-19-2014 at 10:26 PM.
|
|
|
02-19-2014, 11:51 PM
|
#26
|
LQ Guru
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,465
|
Hi TobiSGD,
if you're using 14.1 mounting cgroups in subfolder is already done by the /etc/rc.d/rc.S script, as it contains this block that should take care of it
Code:
# Mount Control Groups filesystem interface:
if grep -wq cgroup /proc/filesystems ; then
if [ -d /sys/fs/cgroup ]; then
# See linux-*/Documentation/cgroups/cgroups.txt (section 1.6)
# Check if we have some tools to autodetect the available cgroup controllers
if [ -x /usr/bin/lssubsys -a -x /usr/bin/tr -a -x /usr/bin/sed ]; then
# Mount a tmpfs as the cgroup filesystem root
mount -t tmpfs -o mode=0755 cgroup_root /sys/fs/cgroup
# Autodetect available controllers and mount them in subfolders
controllers="$(lssubsys -a 2>/dev/null | tr '\n' ' ' | sed s/.$//)"
for i in $controllers; do
mkdir /sys/fs/cgroup/$i
mount -t cgroup -o $i $i /sys/fs/cgroup/$i
done
unset i controllers
else
# We can't use autodetection so fall back mounting them all together
mount -t cgroup cgroup /sys/fs/cgroup
fi
else
mkdir -p /dev/cgroup
mount -t cgroup cgroup /dev/cgroup
fi
fi
I'm guessing, maybe for some reason autodetecting doesn't work?
have a look also at this topic.
Last edited by ponce; 02-20-2014 at 12:14 AM.
Reason: added reference to other topic
|
|
1 members found this post helpful.
|
02-20-2014, 05:19 AM
|
#27
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
OK, the problem was that in the rc.S on my laptop that I used for testing the mounting of cgroups looked totally different. This may be a remainder from previous experiments of from version upgrades, I replaced it with a stock rc.S and now it works as it should. Thanks for that link.
|
|
|
All times are GMT -5. The time now is 01:08 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|