'AttributeError: ParaVirtGuest' object has no attribute 'get_virtio_blk'

Bug #237113 reported by Paul McEnery on 2008-06-03
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
virt-manager (Ubuntu)
Undecided
Paul McEnery

Bug Description

Binary package hint: virt-manager

virt-manager doesn't appear to be able to create a Xen domU. When you run the wizard to create a new VM on a Xen server, you are unable to select a disk that exists or create a new image. In fact, no error appears, the interface simply doesn't respond when you click "Next". Looking at ~/.virt-manager/virt-manager.log, you get the following:

=============== 8< ===============
[Mon, 02 Jun 2008 15:03:59 virt-install 5460] ERROR (virt-install:523) 'ParaVirtGuest' object has no attribute 'get_virtio_blk'
Traceback (most recent call last):
  File "/usr/bin/virt-install", line 519, in <module>
    main()
  File "/usr/bin/virt-install", line 438, in main
    guest, hvm, conn)
  File "/usr/bin/virt-install", line 134, in get_disks
    disk, size)
  File "/usr/bin/virt-install", line 133, in <lambda>
    map(lambda d, s: get_disk(d, s, sparse, guest, hvm, conn),
  File "/usr/bin/virt-install", line 108, in get_disk
    d.virtio = guest.get_virtio_blk()
AttributeError: 'ParaVirtGuest' object has no attribute 'get_virtio_blk'
=============== >8 ===============

This could be an issue with libvirt as I get the same error with virt-install:

The libvirt-bin package has the following description:

=============== 8< ===============
Description: the programs for the libvirt library
 Libvirt is a C toolkit to interact with the virtualization capabilities
 of recent versions of Linux (and other OSes). The library aims at providing
 a long term stable C API for different virtualization mechanisms. It currently
 supports QEMU and KVM.
 =============== >8 ===============

Umm. What happened to Xen? According to libvirt.org, it should support Xen, QEMU and KVM.

Revision history for this message
Leon (leonbo) wrote :

I'm having the exact same problem. Did a clean hardy installed. Did sudo "apt-get install ubuntu-xen-server libvirt-bin python-virtinst"
And when I do "virt-install --connect xen:///" and answer the questions it fails with the same error:

root@xen:~# virt-install --connect xen:///
What is the name of your virtual machine?
 ERROR: System name must be a string greater than 0 and no more than 50 characters
What is the name of your virtual machine? as
 How much RAM should be allocated (in megabytes)? 256
 What would you like to use as the disk (file path)? /media/sdablaat/test.img
 How large would you like the disk (/media/sdablaat/test.img) to be (in gigabytes)? 4
Sun, 15 Jun 2008 01:50:21 ERROR 'ParaVirtGuest' object has no attribute 'get_virtio_blk'
Traceback (most recent call last):
  File "/usr/bin/virt-install", line 519, in <module>
    main()
  File "/usr/bin/virt-install", line 438, in main
    guest, hvm, conn)
  File "/usr/bin/virt-install", line 139, in get_disks
    get_disk(disk, size, sparse, guest, hvm, conn)
  File "/usr/bin/virt-install", line 108, in get_disk
    d.virtio = guest.get_virtio_blk()
AttributeError: 'ParaVirtGuest' object has no attribute 'get_virtio_blk'

Revision history for this message
Leon (leonbo) wrote :

I it's helpful: I can probide a virtualbox image which has this behaviour.

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

Thanks for reporting this issue. Are you still having it?
Can the issue be reproduced on a recent version of Ubuntu, such as Karmic or Lucid?

Changed in virt-manager (Ubuntu):
assignee: nobody → Paul McEnery (pmcenery)
status: New → Incomplete
Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to 'New'. Thanks again!

Changed in virt-manager (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers