[virt-tools-list] virt-manager 2.2.1 does nothing when I click “New Virtual Machine”

George oVirt at goproject.info
Thu Oct 10 18:59:03 UTC 2019


Michael,


This does not directly help you, but I would not try to compile
Virt-Manager on a Debian computer. 



I recommend only installing the Virt-Manager that has been packaged
for Debian 9. I try my best never to install software that has not
been packaged for the version of Debian that I am using, too much risk
of missing dependencies. 

https://tracker.debian.org/pkg/virt-manager
https://packages.debian.org/stretch/virt-manager



I use both Debian 9 and Debian 10 to run Virt-Manager and qemu-kvm.
Both of these have their own packages for Virt-Manager (and qemu-kvm)
which I find very useful.


George.


On Friday, 11-10-2019 at 05:39 Michael wrote:


Hi All,

Newbie with virt-manager, 20+ yrs w/ Linux.

I tried the Debian 9 (stretch) default install (virt-manager 1.4.0-5),
but it 
wasn’t working [“python 3.4 or later is required, your's is 
sys.version_info(major=2, minor=7, micro=13, releaselevel='final', 
serial=0)”].

Since virt-manager 2.2.1 was just released,  I compiled it
(./setup.py 
install), but while it launches without complaint it does nothing when
I 
click “New Virtual Machine.”

(Way too many copy/pasted notes below for reference.)

The virt-manager.log says:

“python guestfs is not installed”

but both python-guestfs and libguestfs-tools are installed.  It is
also saying 
a pool 'default' already exists, but there’s nothing in the dir it
talks 
about.

It also states

“Uncaught exception: Namespace GtkSource not available”

which lead me to these posts [1], but none of the packages listed to
install 
are found (gtksourceview4, gir1.2-gtksource-4, libgtksourceview-4-0, 
libgtksourceview-4-common).  At the bottom of the bug report it
seems to 
indicate gtksourceview3 is acceptable (which is installed).

At this point I’m a bit lost on what to try next.  Would some kind
soul skim 
my virt-manager.log and give me a pointer on what’s needed to get 
virt-manager to let me create a new VM?

Thanks,
Michael

[1]
https://unix.stackexchange.com/questions/526243/nothing-happened-when-trying-to-add-new-vm-on-virt-manager
https://bugs.archlinux.org/task/62960


###########################

michael at local [/]# cat /etc/os-release && uname -a
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
Linux anon 4.19.0-1-amd64 #1 SMP Debian 4.19.5-2~mx17+1 (2018-12-12)
x86_64 
GNU/Linux

michael at local [/]# python -V
Python 2.7.13
michael at local [/]# python3 -V
Python 3.5.3

michael at local [~]# apt-cache show python-guestfs
Package: python-guestfs
Source: libguestfs
Version: 1:1.34.6-2
Installed-Size: 1819

michael at local [~]# apt-cache show libguestfs-tools
Package: libguestfs-tools
Source: libguestfs
Version: 1:1.34.6-2
Installed-Size: 27629

michael at local [~]# apt-cache show gobject-introspection
Package: gobject-introspection
Source: gobject-introspection (1.50.0-1)
Version: 1.50.0-1+b1
Installed-Size: 1419


root at local [~/apps-manual/virt-manager-2.2.1]# ll
/var/lib/libvirt/boot/
total 8
drwx--x--x 2 root root 4096 Mar 12  2018 .
drwxr-xr-x 6 root root 4096 Oct 10 11:27 ..
root at local [~/apps-manual/virt-manager-2.2.1]# ll
/var/lib/libvirt/images
total 8
drwx--x--x 2 root root 4096 Mar 12  2018 .
drwxr-xr-x 6 root root 4096 Oct 10 11:27 ..


Package: libgtksourceview-3.0-1
Source: gtksourceview3
Version: 3.22.2-1
Installed-Size: 721



root at local [~/.cache/virt-manager]# cat virt-manager.log
[Thu, 10 Oct 2019 12:14:37 virt-manager 10291] DEBUG (cli:208)
Launched with 
command line: /usr/share/virt-manager/virt-manager
[Thu, 10 Oct 2019 12:14:37 virt-manager 10291] DEBUG
(virt-manager:223) 
virt-manager version: 2.2.1
[Thu, 10 Oct 2019 12:14:37 virt-manager 10291] DEBUG
(virt-manager:224) 
virtManager import: 
[Thu, 10 Oct 2019 12:14:37 virt-manager 10293] DEBUG
(virt-manager:274) 
PyGObject version: 3.22.0
[Thu, 10 Oct 2019 12:14:37 virt-manager 10293] DEBUG
(virt-manager:278) GTK 
version: 3.22.11
[Thu, 10 Oct 2019 12:14:37 virt-manager 10293] DEBUG (systray:71) 
AppIndicator3 is available, but didn't find any dbus watcher.
[Thu, 10 Oct 2019 12:14:37 virt-manager 10293] DEBUG (systray:213)
Showing 
systray: False
[Thu, 10 Oct 2019 12:14:37 virt-manager 10293] DEBUG (inspection:41)
python 
guestfs is not installed
[Thu, 10 Oct 2019 12:14:37 virt-manager 10293] DEBUG (engine:116)
Loading 
stored URIs:
qemu:///system
[Thu, 10 Oct 2019 12:14:37 virt-manager 10293] DEBUG (engine:537)
processing 
cli command uri= show_window=manager domain=
[Thu, 10 Oct 2019 12:14:37 virt-manager 10293] DEBUG (engine:539) No
cli 
action requested, launching default window
[Thu, 10 Oct 2019 12:14:37 virt-manager 10293] DEBUG (manager:184)
Showing 
manager
[Thu, 10 Oct 2019 12:14:37 virt-manager 10293] DEBUG (engine:391)
window 
counter incremented to 1
[Thu, 10 Oct 2019 12:14:37 virt-manager 10293] DEBUG (engine:285)
Initial 
gtkapplication activated
[Thu, 10 Oct 2019 12:14:37 virt-manager 10293] DEBUG (connection:533) 
conn=qemu:///system changed to state=Connecting
[Thu, 10 Oct 2019 12:14:37 virt-manager 10293] DEBUG (connection:946) 
Scheduling background open thread for qemu:///system
[Thu, 10 Oct 2019 12:14:37 virt-manager 10293] DEBUG (connection:986)
libvirt 
version=3000000
[Thu, 10 Oct 2019 12:14:37 virt-manager 10293] DEBUG (connection:988)
daemon 
version=3000000
[Thu, 10 Oct 2019 12:14:37 virt-manager 10293] DEBUG (connection:989)
conn 
version=2008001
[Thu, 10 Oct 2019 12:14:37 virt-manager 10293] DEBUG (connection:991) 
qemu:///system capabilities:


  
    a1c28570-c088-0000-0000-000000000000
    
      x86_64
      Opteron_G3
      AMD
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
    
    
      
      
      
    
    
      
	* 
      
        tcp
        rdma
      
    
    
      
        
          65957440
          16489360
          0
          0
          
            
          
          
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
          
        
      
    
    
      apparmor
      0
    
    
      dac
      0
      +64055:+64055
      +64055:+64055
    
  

  
    hvm
    
      64
      /usr/bin/qemu-system-alpha
      clipper
      
    
    
      
      
      
    
  

  
    hvm
    
      32
      /usr/bin/qemu-system-arm
      integratorcp
      nuri
      verdex
      ast2500-evb
      smdkc210
      collie
      imx25-pdk
      spitz
      realview-pbx-a9
      realview-eb
      versatilepb
      realview-pb-a8
      musicpal
      z2
      akita
      virt-2.7
      kzm
      virt-2.8
      virt
      realview-eb-mpcore
      sx1
      sx1-v1
      virt-2.6
      cubieboard
      highbank
      raspi2
      netduino2
      terrier
      n810
      mainstone
      palmetto-bmc
      sabrelite
      midway
      cheetah
      tosa
      borzoi
      versatileab
      lm3s6965evb
      n800
      connex
      xilinx-zynq-a9
      vexpress-a9
      vexpress-a15
      canon-a1100
      lm3s811evb
      
    
    
      
      
      
    
  

  
    hvm
    
      64
      /usr/bin/qemu-system-aarch64
      integratorcp
      nuri
      verdex
      ast2500-evb
      smdkc210
      collie
      imx25-pdk
      spitz
      realview-pbx-a9
      realview-eb
      versatilepb
      realview-pb-a8
      musicpal
      z2
      akita
      virt-2.7
      kzm
      virt-2.8
      virt
      realview-eb-mpcore
      sx1
      sx1-v1
      virt-2.6
      cubieboard
      highbank
      raspi2
      netduino2
      terrier
      n810
      mainstone
      palmetto-bmc
      sabrelite
      midway
      cheetah
      tosa
      borzoi
      versatileab
      lm3s6965evb
      n800
      connex
      xilinx-zynq-a9
      xlnx-ep108
      vexpress-a9
      vexpress-a15
      xlnx-zcu102
      canon-a1100
      lm3s811evb
      
    
    
      
      
      
    
  

  
    hvm
    
      32
      /usr/bin/qemu-system-cris
      axis-dev88
      
    
    
      
      
    
  

  
    hvm
    
      32
      /usr/bin/qemu-system-i386
      pc-i440fx-2.8
      pc
      pc-0.12
      pc-i440fx-2.4
      pc-1.3
      pc-q35-2.7
      pc-q35-2.6
      xenpv
      pc-i440fx-1.7
      pc-i440fx-1.6
      pc-i440fx-2.7
      pc-0.11
      pc-i440fx-2.3
      pc-0.10
      pc-1.2
      pc-i440fx-2.2
      isapc
      pc-q35-2.5
      xenfv
      pc-0.15
      pc-0.14
      pc-i440fx-1.5
      pc-i440fx-2.6
      pc-i440fx-1.4
      pc-i440fx-2.5
      pc-1.1
      pc-i440fx-2.1
      pc-q35-2.8
      q35
      pc-1.0
      pc-i440fx-2.0
      pc-q35-2.4
      pc-0.13
      
    
    
      
      
      
      
      
      
      
    
  

  
    hvm
    
      32
      /usr/bin/qemu-system-lm32
      lm32-evr
      milkymist
      lm32-uclinux
      
    
    
      
      
    
  

  
    hvm
    
      32
      /usr/bin/qemu-system-m68k
      mcf5208evb
      dummy
      an5206
      
    
    
      
      
      
    
  

  
    hvm
    
      32
      /usr/bin/qemu-system-microblaze
      petalogix-s3adsp1800
      petalogix-ml605
      
    
    
      
      
    
  

  
    hvm
    
      32
      /usr/bin/qemu-system-microblazeel
      petalogix-s3adsp1800
      petalogix-ml605
      
    
    
      
      
    
  

  
    hvm
    
      32
      /usr/bin/qemu-system-mips
      malta
      mips
      mipssim
      
    
    
      
      
      
    
  

  
    hvm
    
      32
      /usr/bin/qemu-system-mipsel
      malta
      mips
      mipssim
      
    
    
      
      
      
    
  

  
    hvm
    
      64
      /usr/bin/qemu-system-mips64
      malta
      mips
      magnum
      mipssim
      pica61
      
    
    
      
      
      
    
  

  
    hvm
    
      64
      /usr/bin/qemu-system-mips64el
      malta
      mips
      magnum
      mipssim
      pica61
      fulong2e
      
    
    
      
      
      
    
  

  
    hvm
    
      32
      /usr/bin/qemu-system-or32
      or32-sim
      
    
    
      
      
    
  

  
    hvm
    
      32
      /usr/bin/qemu-system-ppc
      g3beige
      ref405ep
      virtex-ml507
      ppce500
      mpc8544ds
      bamboo
      prep
      mac99
      taihu
      
    
    
      
      
      
    
  

  
    hvm
    
      64
      /usr/bin/qemu-system-ppc64
      pseries-2.8
      pseries
      ref405ep
      virtex-ml507
      powernv
      ppce500
      mpc8544ds
      bamboo
      g3beige
      prep
      mac99
      pseries-2.6
      pseries-2.7
      pseries-2.4
      pseries-2.5
      pseries-2.2
      taihu
      pseries-2.3
      pseries-2.1
      
    
    
      
      
      
    
  

  
    hvm
    
      64
      /usr/bin/qemu-system-ppc64
      pseries-2.8
      pseries
      ref405ep
      virtex-ml507
      powernv
      ppce500
      mpc8544ds
      bamboo
      g3beige
      prep
      mac99
      pseries-2.6
      pseries-2.7
      pseries-2.4
      pseries-2.5
      pseries-2.2
      taihu
      pseries-2.3
      pseries-2.1
      
    
    
      
      
      
    
  

  
    hvm
    
      32
      /usr/bin/qemu-system-ppcemb
      ref405ep
      virtex-ml507
      bamboo
      taihu
      
    
    
      
      
      
    
  

  
    hvm
    
      64
      /usr/bin/qemu-system-s390x
      s390-ccw-virtio-2.8
      s390-ccw-virtio
      s390-ccw-virtio-2.7
      s390-ccw-virtio-2.6
      s390-ccw-virtio-2.5
      s390-ccw-virtio-2.4
      
    
    
      
      
      
    
  

  
    hvm
    
      32
      /usr/bin/qemu-system-sh4
      shix
      r2d
      
    
    
      
      
      
    
  

  
    hvm
    
      64
      /usr/bin/qemu-system-sh4eb
      shix
      r2d
      
    
    
      
      
      
    
  

  
    hvm
    
      32
      /usr/bin/qemu-system-sparc
      SS-5
      SS-10
      LX
      SS-20
      SPARCClassic
      SS-600MP
      Voyager
      SPARCbook
      SS-4
      leon3_generic
      
    
    
      
      
    
  

  
    hvm
    
      64
      /usr/bin/qemu-system-sparc64
      sun4u
      sun4v
      Niagara
      
    
    
      
      
      
    
  

  
    hvm
    
      32
      /usr/bin/qemu-system-unicore32
      puv3
      
    
    
      
      
    
  

  
    hvm
    
      64
      /usr/bin/qemu-system-x86_64
      pc-i440fx-2.8
      pc
      pc-0.12
      pc-i440fx-2.4
      pc-1.3
      pc-q35-2.7
      pc-q35-2.6
      xenpv
      pc-i440fx-1.7
      pc-i440fx-1.6
      pc-i440fx-2.7
      pc-0.11
      pc-i440fx-2.3
      pc-0.10
      pc-1.2
      pc-i440fx-2.2
      isapc
      pc-q35-2.5
      xenfv
      pc-0.15
      pc-0.14
      pc-i440fx-1.5
      pc-i440fx-2.6
      pc-i440fx-1.4
      pc-i440fx-2.5
      pc-1.1
      pc-i440fx-2.1
      pc-q35-2.8
      q35
      pc-1.0
      pc-i440fx-2.0
      pc-q35-2.4
      pc-0.13
      
    
    
      
      
      
      
      
    
  

  
    hvm
    
      32
      /usr/bin/qemu-system-xtensa
      sim
      kc705
      lx200
      lx60
      ml605
      
    
    
      
      
    
  

  
    hvm
    
      32
      /usr/bin/qemu-system-xtensaeb
      sim
      kc705
      lx200
      lx60
      ml605
      
    
    
      
      
    
  



[Thu, 10 Oct 2019 12:14:37 virt-manager 10293] DEBUG (storage:157)
Attempting 
to build default pool with target '/var/lib/libvirt/images'
[Thu, 10 Oct 2019 12:14:37 virt-manager 10293] DEBUG (storage:380)
Creating 
storage pool 'default' with xml:

  default
  
    /var/lib/libvirt/images
  


[Thu, 10 Oct 2019 12:14:37 virt-manager 10293] DEBUG (connection:998)
Building 
default pool failed: Couldn't create default storage 
pool '/var/lib/libvirt/images': Could not define storage pool:
operation 
failed: pool 'default' already exists with uuid 
65fe61e2-c387-4863-9320-2520dd9dc766
[Thu, 10 Oct 2019 12:14:37 virt-manager 10293] DEBUG (connection:797)
Using 
domain events
[Thu, 10 Oct 2019 12:14:37 virt-manager 10293] DEBUG (connection:831)
Using 
network events
[Thu, 10 Oct 2019 12:14:37 virt-manager 10293] DEBUG (connection:850)
Using 
storage pool events
[Thu, 10 Oct 2019 12:14:37 virt-manager 10293] DEBUG (connection:868)
Using 
node device events
[Thu, 10 Oct 2019 12:14:37 virt-manager 10293] DEBUG (connection:749)
storage 
pool refresh event: pool=default
[Thu, 10 Oct 2019 12:14:37 virt-manager 10293] DEBUG (connection:1113)

network=default status=Inactive added
[Thu, 10 Oct 2019 12:14:37 virt-manager 10293] DEBUG (connection:1113)

interface=lo status=Active added
[Thu, 10 Oct 2019 12:14:37 virt-manager 10293] DEBUG (connection:1113)

pool=default status=Active added
[Thu, 10 Oct 2019 12:14:37 virt-manager 10293] DEBUG (connection:533) 
conn=qemu:///system changed to state=Active
[Thu, 10 Oct 2019 12:14:41 virt-manager 10293] DEBUG (cli:200)
Uncaught 
exception:
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/xmleditor.py", line 11,
in 

    gi.require_version("GtkSource", "4")
  File "/usr/lib/python3/dist-packages/gi/__init__.py", line 118, in

require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace GtkSource not available

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/manager.py", line 456,
in new_vm
    from .createvm import vmmCreateVM
  File "/usr/share/virt-manager/virtManager/createvm.py", line 31,
in 
    from .storagebrowse import vmmStorageBrowser
  File "/usr/share/virt-manager/virtManager/storagebrowse.py", line
11, in 

    from .hoststorage import vmmHostStorage
  File "/usr/share/virt-manager/virtManager/hoststorage.py", line
16, in 

    from .createpool import vmmCreatePool
  File "/usr/share/virt-manager/virtManager/createpool.py", line 19,
in 

    from .xmleditor import vmmXMLEditor
  File "/usr/share/virt-manager/virtManager/xmleditor.py", line 14,
in 

    gi.require_version("GtkSource", "3.0")
  File "/usr/lib/python3/dist-packages/gi/__init__.py", line 118, in

require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace GtkSource not available

[Thu, 10 Oct 2019 12:14:43 virt-manager 10293] DEBUG (manager:195)
Closing 
manager
[Thu, 10 Oct 2019 12:14:43 virt-manager 10293] DEBUG (engine:398)
window 
counter decremented to 0
[Thu, 10 Oct 2019 12:14:43 virt-manager 10293] DEBUG (engine:418) No
windows 
found, requesting app exit
[Thu, 10 Oct 2019 12:14:43 virt-manager 10293] DEBUG (connection:884) 
conn.close() uri=qemu:///system
[Thu, 10 Oct 2019 12:14:43 virt-manager 10293] DEBUG (connection:533) 
conn=qemu:///system changed to state=Disconnected
[Thu, 10 Oct 2019 12:14:43 virt-manager 10293] DEBUG (engine:444)
Exiting app 
normally.


_______________________________________________
virt-tools-list mailing list
virt-tools-list at redhat.com
https://www.redhat.com/mailman/listinfo/virt-tools-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20191011/8cffc351/attachment.htm>


More information about the virt-tools-list mailing list