Error launching manager: 'NoneType' object has no attribute 'get_default_storage_format' Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/engine.py", line 889, in _do_show_create self._get_create_dialog().show(src.topwin, uri) File "/usr/share/virt-manager/virtManager/create.py", line 170, in show self.reset_state(uri) File "/usr/share/virt-manager/virtManager/create.py", line 393, in reset_state self.addstorage.reset_state() File "/usr/share/virt-manager/virtManager/addstorage.py", line 196, in reset_state fmt = self.conn.get_default_storage_format() AttributeError: 'NoneType' object has no attribute 'get_default_storage_format'

Bug #1448631 reported by Oytun
40
This bug affects 8 people
Affects Status Importance Assigned to Milestone
virt-manager (Ubuntu)
Confirmed
Medium
Teodori Serge

Bug Description

Error launching manager: 'NoneType' object has no attribute 'get_default_storage_format'

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/engine.py", line 889, in _do_show_create
    self._get_create_dialog().show(src.topwin, uri)
  File "/usr/share/virt-manager/virtManager/create.py", line 170, in show
    self.reset_state(uri)
  File "/usr/share/virt-manager/virtManager/create.py", line 393, in reset_state
    self.addstorage.reset_state()
  File "/usr/share/virt-manager/virtManager/addstorage.py", line 196, in reset_state
    fmt = self.conn.get_default_storage_format()
AttributeError: 'NoneType' object has no attribute 'get_default_storage_format'

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: ubuntu-release-upgrader-core 1:15.04.14
ProcVersionSignature: Ubuntu 3.19.0-15.15-generic 3.19.3
Uname: Linux 3.19.0-15-generic x86_64
NonfreeKernelModules: vboxpci vboxnetadp vboxnetflt vboxdrv fglrx
ApportVersion: 2.17.2-0ubuntu1
Architecture: amd64
CrashDB: ubuntu
CurrentDesktop: Unity
Date: Sun Apr 26 12:37:25 2015
EcryptfsInUse: Yes
InstallationDate: Installed on 2015-04-25 (0 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
PackageArchitecture: all
SourcePackage: ubuntu-release-upgrader
Symptom: dist-upgrade
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Oytun (oytunistrator) wrote :
affects: ubuntu-release-upgrader (Ubuntu) → virt-manager (Ubuntu)
Revision history for this message
Thomas Mashos (tgm4883) wrote :

This looks to be the same bug as
https://bugzilla.redhat.com/show_bug.cgi?id=1074120

Reproducible by installing Kubuntu (maybe any non-gnome based flavor), installing virt-manager and trying to make a new VM. Looks to be a dependency issue as qemu-kvm is missing. Maybe virt-manager should depend on qemu-kvm (or at least recommend). After installling qemu-kvm, restart and it works fine.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in virt-manager (Ubuntu):
status: New → Confirmed
Changed in virt-manager (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Teodori Serge (teodori-serge) wrote :

I have the same problem:

Error launching manager: 'NoneType' object has no attribute 'get_default_storage_format'

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/engine.py", line 889, in _do_show_create
    self._get_create_dialog().show(src.topwin, uri)
  File "/usr/share/virt-manager/virtManager/create.py", line 170, in show
    self.reset_state(uri)
  File "/usr/share/virt-manager/virtManager/create.py", line 393, in reset_state
    self.addstorage.reset_state()
  File "/usr/share/virt-manager/virtManager/addstorage.py", line 196, in reset_state
    fmt = self.conn.get_default_storage_format()
AttributeError: 'NoneType' object has no attribute 'get_default_storage_format'

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

@teodori-serge,

are you trying to create kvm vms? Can you show the output of

dpkg -l | grep qemu

?

Changed in virt-manager (Ubuntu):
assignee: nobody → Teodori Serge (teodori-serge)
Revision history for this message
Trent Lloyd (lathiat) wrote :

Installing qemu-kvm fixes this for me, so the bug here is that it should present a more friendly error message.

Even if you went based on the error presented, storage is highly misleading.

Revision history for this message
Kyle Gordon (kylegordon) wrote :

Confirmed, installing qemu-kvm resolves this issue.

Revision history for this message
Duncan Thomas (duncan-thomas) wrote :

Installing qemu-kvm resolves this issue for me too. Thanks tgm4883.

Revision history for this message
Matt Keys (mk6032) wrote :

I was editing vm details within virt-manager of a running win7_x64 machine. I added 250gb, virtio bus, qcow2, and cache none. I rebooted windows and this error appeared. I already have qemu-kvm installed. OS is Debian 8 amd64.

Error launching details: 'NoneType' object has no attribute 'set_label'

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/engine.py", line 610, in _show_vm_helper
    details.show()
  File "/usr/share/virt-manager/virtManager/details.py", line 569, in show
    self.refresh_vm_state()
  File "/usr/share/virt-manager/virtManager/details.py", line 1417, in refresh_vm_state
    self.change_run_text(vm.hasSavedImage())
  File "/usr/share/virt-manager/virtManager/details.py", line 1400, in change_run_text
    self.widget("details-menu-run").get_child().set_label(text)
AttributeError: 'NoneType' object has no attribute 'set_label'

root@vm1:~# cat /etc/debian_version
jessie/sid
root@vm1:~# cat /etc/os-release
NAME="Ubuntu"
VERSION="14.04.4 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.4 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
root@vm1:~# dpkg -l | grep qemu
ii ipxe-qemu 1.0.0+git-20131111.c3d1e78-2ubuntu1.1 all PXE boot firmware - ROM images for qemu
ii qemu-keymaps 2.0.0+dfsg-2ubuntu1.24 all QEMU keyboard maps
ii qemu-kvm 2.0.0+dfsg-2ubuntu1.24 amd64 QEMU Full virtualization
ii qemu-system-common 2.0.0+dfsg-2ubuntu1.24 amd64 QEMU full system emulation binaries (common files)
ii qemu-system-x86 2.0.0+dfsg-2ubuntu1.24 amd64 QEMU full system emulation binaries (x86)
ii qemu-utils 2.0.0+dfsg-2ubuntu1.24 amd64 QEMU utilities
root@vm1:~# dpkg -l | grep libvirt
ii libvirt-bin 1.2.2-0ubuntu13.1.17 amd64 programs for the libvirt library
ii libvirt0 1.2.2-0ubuntu13.1.17 amd64 library for interfacing with different virtualization systems
ii python-libvirt 1.2.2-0ubuntu2 amd64 libvirt Python bindings
root@vm1:~# dpkg -l | grep virt-manager
ii virt-manager 0.9.5-1ubuntu3 all desktop application for managing virtual machines
root@vm1:~#

Revision history for this message
Mike Iokhahon (iokhahon) wrote :

I hit the same problem with Fedora 24 workstation, the solution was to install qemu-kvm-tools
$sudo dnf install qemu-kvm-tools

Revision history for this message
Eugeniy (eugeniy-im) wrote :
Download full text (5.1 KiB)

Same problem.

virt-manager --debug:
[Ср, 23 май 2018 12:17:53 virt-manager 9023] DEBUG (guest:248) Setting Guest.os_variant to 'generic'
[Ср, 23 май 2018 12:17:53 virt-manager 9023] DEBUG (distroinstaller:191) Error validating install location
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtinst/distroinstaller.py", line 186, in _validate_location
    dev.path = val
  File "/usr/share/virt-manager/virtinst/devicedisk.py", line 511, in _set_path
    self._set_xmlpath(self.path)
  File "/usr/share/virt-manager/virtinst/devicedisk.py", line 712, in _set_xmlpath
    if self._storage_backend.get_dev_type() == "network":
  File "/usr/share/virt-manager/virtinst/diskbackend.py", line 600, in get_dev_type
    self._conn.is_remote())
  File "/usr/share/virt-manager/virtinst/diskbackend.py", line 203, in _get_dev_type

uname -a
Linux adm2 4.4.0-127-generic #153-Ubuntu SMP Sat May 19 10:58:46 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

    if vol_xml.file_type == libvirt.VIR_STORAGE_VOL_BLOCK:
  File "/usr/share/virt-manager/virtinst/storage.py", line 717, in _get_vol_type
    return self._pool_xml.get_disk_type()
AttributeError: 'NoneType' object has no attribute 'get_disk_type'
[Ср, 23 май 2018 12:17:53 virt-manager 9023] ERROR (error:142) Ошибка валидации: Ошибка при выборе расположения установочного носителя. Validating install media '/data/iso/zentyal-3.2-amd64.iso' failed: 'NoneType' object has no attribute 'get_disk_type'
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/create.py", line 1820, in _validate_install_page
    self._guest.installer.location = location
  File "/usr/share/virt-manager/virtinst/installer.py", line 80, in set_location
    self._location = self._validate_location(val)
  File "/usr/share/virt-manager/virtinst/distroinstaller.py", line 193, in _validate_location
    (str(val), e))
ValueError: Validating install media '/data/iso/zentyal-3.2-amd64.iso' failed: 'NoneType' object has no attribute 'get_disk_type'

dpkg -l | grep qemu
rc aqemu 0.8.2-2build1 amd64 Qt4 front-end for QEMU and KVM
ii ipxe-qemu 1.0.0+git-20150424.a25a16d-1ubuntu1.2 all PXE boot firmware - ROM images for qemu
ii qemu 1:2.5+dfsg-5ubuntu10.29 amd64 fast processor emulator
ii qemu-block-extra:amd64 1:2.5+dfsg-5ubuntu10.29 amd64 extra block backend modules for qemu-system and qemu-utils
ii qemu-kvm 1:2.5+dfsg-5ubuntu10.29 amd64 QEMU Full virtualization
ii qemu-slof 20151103+dfsg-1ubuntu1.1 all Slimline Open Firmware -- QEMU PowerPC version
ii qemu-system 1:2.5+dfsg-5ubuntu10.29 ...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.