LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-23-2014, 12:39 PM   #16
fdonkers
LQ Newbie
 
Registered: Dec 2013
Posts: 6

Rep: Reputation: Disabled

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.
 
Old 01-23-2014, 01:03 PM   #17
Gerardo Zamudio
Member
 
Registered: Jan 2011
Distribution: Slackware
Posts: 128

Rep: Reputation: 112Reputation: 112
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?
 
Old 01-23-2014, 01:40 PM   #18
fdonkers
LQ Newbie
 
Registered: Dec 2013
Posts: 6

Rep: Reputation: Disabled
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.
 
Old 01-23-2014, 02:05 PM   #19
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
maybe I have understood the culprit: virt-manager is fine, you got to upgrade libvirt/libvirt-python to 1.2.1.

the patches for them are in git and should go in the next upgrade

http://slackbuilds.org/cgit/slackbui...535b95ae48dea5
http://slackbuilds.org/cgit/slackbui...1db134b9ac936f

I just tried with libvirt-1.2.0 and got your same error, after upgrading to 1.2.1 all went fine.
 
1 members found this post helpful.
Old 01-23-2014, 02:27 PM   #20
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
ponce saves the day again!

Dude, what would we do without you?
 
Old 01-23-2014, 09:56 PM   #21
Gerardo Zamudio
Member
 
Registered: Jan 2011
Distribution: Slackware
Posts: 128

Rep: Reputation: 112Reputation: 112
Quote:
Originally Posted by ponce View Post
maybe I have understood the culprit: virt-manager is fine, you got to upgrade libvirt/libvirt-python to 1.2.1.

the patches for them are in git and should go in the next upgrade

http://slackbuilds.org/cgit/slackbui...535b95ae48dea5
http://slackbuilds.org/cgit/slackbui...1db134b9ac936f

I just tried with libvirt-1.2.0 and got your same error, after upgrading to 1.2.1 all went fine.
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?
 
Old 01-23-2014, 11:39 PM   #22
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
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.
 
Old 01-24-2014, 12:31 PM   #23
Gerardo Zamudio
Member
 
Registered: Jan 2011
Distribution: Slackware
Posts: 128

Rep: Reputation: 112Reputation: 112
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.
 
Old 01-25-2014, 08:52 AM   #24
fdonkers
LQ Newbie
 
Registered: Dec 2013
Posts: 6

Rep: Reputation: Disabled
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.
 
Old 02-19-2014, 10:19 PM   #25
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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.
 
Old 02-19-2014, 11:51 PM   #26
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
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.
Old 02-20-2014, 05:19 AM   #27
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

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


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
[SOLVED] "No KVM, No qemu-kvm" Available error while trying to install KVM on CentOS 6.3 sriramdas Linux - Virtualization and Cloud 5 01-01-2013 10:46 AM
[SOLVED] Centos 6 and KVM - how to setup bridged networking in KVM in a -Class B- environment? rylan76 Linux - Virtualization and Cloud 7 11-07-2012 06:46 AM
LXer: Implementation Qemu-kvm 0.15.0, SpiceServer and Spice-Gtk-0.7 on Ubuntu 11.10 KVM Server the m LXer Syndicated Linux News 0 08-30-2011 04:40 PM
[Debian/Qemu/KVM] Why qemu --enable-kvm works but not kvm directly? gb2312 Linux - Virtualization and Cloud 2 03-21-2011 02:05 PM
LXer: Install Oracle 11gR2 on SL6 KVM at KVM-QEMU Instance on SL 6 (alpha 3) LXer Syndicated Linux News 2 01-01-2011 06:42 AM

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

All times are GMT -5. The time now is 02:06 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