qemu-kvm

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
hello_world
Posts: 25
Joined: 3. May 2011, 23:25
Location: Poland

qemu-kvm

Post by hello_world »

Hi,
I installed qemu-kvm, virt-manager, libvirt and wants to open the virt-manager gives me this error

Code: Select all

tk@salix:~$ virt-manager 
Traceback (most recent call last):
  File "/usr/share/virt-manager/virt-manager.py", line 422, in <module>
    _show_startup_error(str(run_e), "".join(traceback.format_exc()))
  File "/usr/share/virt-manager/virt-manager.py", line 62, in _show_startup_error
    from virtManager.error import vmmErrorDialog
  File "/usr/share/virt-manager/virtManager/error.py", line 25, in <module>
    import virtManager.util as util
  File "/usr/share/virt-manager/virtManager/util.py", line 29, in <module>
    import virtinst
ImportError: No module named virtinst
I did modprobe kvm

Code: Select all

lsmod |grep kvm
kvm                   253376  0
My hardware:

Code: Select all

root@salix:~# inxi -F
System:    Host salix Kernel 2.6.37.6-smp i686 (32 bit) Distro Slackware 13.37.0
CPU:       Dual core Intel Core i3 M 370 (-HT-MCP-) cache 3072 KB flags (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bmips 9574.62                                                                                               
           Clock Speeds: (1) 933.00 MHz (2) 933.00 MHz (3) 933.00 MHz (4) 933.00 MHz                             
Graphics:  Card Intel Core Processor Integrated Graphics Controller X.org 1.9.5 Res: 113x37 Gfx Data: N/A for root                                                                                                                
Audio:     Card Intel 5 Series/3400 Series Chipset High Definition Audio driver HDA Intel BusID: 00:1b.0         
           Sound: Advanced Linux Sound Architecture Version 1.0.23                                               
Network:   Card-1 Atheros AR9287 Wireless Network Adapter (PCI-Express) driver ath9k BusID: 02:00.0              
           Card-2 Broadcom NetLink BCM57780 Gigabit Ethernet PCIe driver tg3 v: 3.115 BusID: 01:00.0             
Disks:     HDD Total Size: 320.1GB (0.3% used) 1: /dev/sda WDC_WD3200BEVT 320.1GB                                
Partition: ID:/ size: 9.2G used: 5.2G (59%) fs: ext4 ID:/home size: 23G used: 792M (4%) fs: ext4                 
           ID:swap-1 size: 1.00GB used: 0.00GB (0%) fs: swap                                                     
Info:      Processes 155 Uptime 2:19 Memory 309.3/1744.8MB Runlevel 4 Client Shell inxi 1.4.22
Freedom for all
User avatar
laprjns
Salix Warrior
Posts: 1113
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: qemu-kvm

Post by laprjns »

Maybe try

Code: Select all

slapt-src -u
slapt-src -i virtinst 
“The past was erased, the erasure was forgotten, the lie became the truth.”
― George Orwell, 1984
hello_world
Posts: 25
Joined: 3. May 2011, 23:25
Location: Poland

Re: qemu-kvm

Post by hello_world »

@laprjns
Thanks
It show

Code: Select all

Traceback (most recent call last):
  File "/usr/share/virt-manager/virt-manager.py", line 415, in <module>
    main()
  File "/usr/share/virt-manager/virt-manager.py", line 344, in main
    from virtManager.config import vmmConfig
  File "/usr/share/virt-manager/virtManager/config.py", line 20, in <module>
    import gconf
ImportError: No module named gconf
slapt-get --list |grep GConf

Code: Select all

root@salix:~# slapt-get --list |grep GConf
GConf-2.32.1-i486-1 [inst=nie]: GConf (GNOME configuration library)
GConf-2.32.1-i486-1gv [inst=nie]: GConf (the GNOME Configuration database system)
gconfmm-2.28.2-i486-1gv [inst=nie]: gconfmm (provides C++ wrappers for GConf)
GConf-2.32.4-i486-1_SBo [inst=tak]: GConf (GNOME configuration library)
Legend:
[inst=nie] > [inst=no]
[inst=tak] > [inst=yes]
Freedom for all
User avatar
gapan
Salix Wizard
Posts: 6353
Joined: 6. Jun 2009, 17:40

Re: qemu-kvm

Post by gapan »

You don't have pygtk/pygobject installed.
Image
Image
hello_world
Posts: 25
Joined: 3. May 2011, 23:25
Location: Poland

Re: qemu-kvm

Post by hello_world »

root@salix:~# slapt-get --search pygtk

Code: Select all

comix-4.0.4-i486-1gv [inst=nie]: comix (comic book viewer)
devede-3.16.9-i486-2ab [inst=nie]: devede (a graphical tool to create video DVDs and CDs)
gnome-python-2.28.1-i486-1gv [inst=nie]: gnome-python (GNOME Python Bindings)
gpodder-2.13-i486-1gv [inst=nie]: gPodder (GTK2 media aggregator)
mirage-0.9.5.2-i486-1ab [inst=nie]: mirage (a fast and simple image viewer)
pygobject-2.26.0-i486-1 [inst=tak]: pygobject (GObject bindings for Python)
pygtk-2.22.0-i486-1 [inst=tak]: pygtk (GTK+ bindings for Python)
system-config-printer-1.2.7-i486-1 [inst=nie]: system-config-printer (CUPS printer administration tool)
were installed
Freedom for all
User avatar
gapan
Salix Wizard
Posts: 6353
Joined: 6. Jun 2009, 17:40

Re: qemu-kvm

Post by gapan »

Try gnome-python.
Image
Image
hello_world
Posts: 25
Joined: 3. May 2011, 23:25
Location: Poland

Re: qemu-kvm

Post by hello_world »

@gapan
bingo
I had to install gtk-vnc

Code: Select all

slapt-src -i gtk-vnc
and
libvirtd -d
And it is now ok
Thanks
Freedom for all
hello_world
Posts: 25
Joined: 3. May 2011, 23:25
Location: Poland

Re: qemu-kvm

Post by hello_world »

I want to add storage pool:

Code: Select all

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/createpool.py", line 386, in forward
    if(self.validate(notebook.get_current_page()) != True):
  File "/usr/share/virt-manager/virtManager/createpool.py", line 484, in validate
    self._pool = self._pool_class(name=name, conn=conn)
  File "/usr/lib/python2.6/site-packages/virtinst/Storage.py", line 496, in __init__
    target_path=target_path, uuid=uuid, conn=conn)
  File "/usr/lib/python2.6/site-packages/virtinst/Storage.py", line 343, in __init__
    name=name, conn=conn)
  File "/usr/lib/python2.6/site-packages/virtinst/Storage.py", line 128, in __init__
    self.conn = conn
  File "/usr/lib/python2.6/site-packages/virtinst/Storage.py", line 147, in set_conn
    if not _util.is_storage_capable(val):
  File "/usr/lib/python2.6/site-packages/virtinst/util.py", line 499, in is_storage_capable
    return support.check_conn_support(conn, support.SUPPORT_CONN_STORAGE)
  File "/usr/lib/python2.6/site-packages/virtinst/support.py", line 366, in check_conn_support
    return _check_support(conn, feature, conn)
  File "/usr/lib/python2.6/site-packages/virtinst/support.py", line 279, in _check_support
    actual_drv_ver = _hv_ver(conn)
  File "/usr/lib/python2.6/site-packages/virtinst/support.py", line 232, in _hv_ver
    return cmd()
  File "/usr/lib/python2.6/site-packages/libvirt.py", line 1620, in getVersion
    if ret == -1: raise libvirtError ('virConnectGetVersion() failed', conn=self)
libvirtError: internal error cannot parse /usr/bin/qemu version number in 'QEMU emulator version 0.13.0 (qemu-kvm-0.13.0), Copyright (c) 2003-2008 Fabrice Bellard'
I want to add the network is shown:

Code: Select all

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/createnet.py", line 350, in finish
    self.conn.create_network(xml)
  File "/usr/share/virt-manager/virtManager/connection.py", line 663, in create_network
    net.undefine()
  File "/usr/lib/python2.6/site-packages/libvirt.py", line 775, in undefine
    if ret == -1: raise libvirtError ('virNetworkUndefine() failed', net=self)
libvirtError: internal error network is still active
Freedom for all
Post Reply