[Pkg-libvirt-maintainers] Bug#600017: virtinst: qcow2 disks aren't available in the guest after --import

Jamie Strandboge jamie at ubuntu.com
Tue Oct 12 20:10:55 UTC 2010


Package: virtinst
Version: 0.500.3-2
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu natty ubuntu-patch


In Ubuntu, we've applied the attached patch to achieve the following:

  * debian/patches/9002-libvirt_disk_format.patch: update to allow setting
    the driver type with --disk format= (LP: #655392)
  * debian/patches/9003-fix-path-to-hvmloader-in-testsuite.patch: adjust
    testsuite for 0001-fix-path-to-hvmloader.patch and
    0002-Fix-path-to-pygrub.patch

libvirt 0.8.3 and later does not probe qemu disks for the image format
and defaults to 'raw' when the format is not specified in the XML.[1]
This breaks virt-install --import because the version in sid and sqeeze
do not allow for specifying a disk format and does not specify a format
in the XML.

The second patch adjusts the testsuite for the changes in the Debian
patches. The testsuite can be run with:

$ fakeroot debian/rules build
$ python setup.py test

It would also be nice if this test was run during the build, but I
didn't submit a patch for that. Others tests (see HACKING in the source)
include:
$ python setup.py check		# doesn't seem to work with our pylint
$ python setup.py test_urls	# fetches install media
$ python setup.py test_cli	# works fine as long as locales is setup

[1] https://bugs.launchpad.net/ubuntu/+source/virtinst/+bug/655392

-- System Information:
Debian Release: squeeze/sid
  APT prefers maverick-updates
  APT policy: (500, 'maverick-updates'), (500, 'maverick-security'), (500, 'maverick')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.35-22-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tmp2Fvdbz
Type: text/x-diff
Size: 29022 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-libvirt-maintainers/attachments/20101012/87ccbce9/attachment-0001.diff>


More information about the Pkg-libvirt-maintainers mailing list