[Bug 490264] [NEW] kvm wont boot off a qcow2 overlay disk image

Duncan Ferguson duncan_j_ferguson at yahoo.co.uk
Mon Nov 30 09:47:42 GMT 2009


Public bug reported:

Binary package hint: qemu-kvm

kvm no longer booted domains based on overlay disk images:

$ kvm-img create -f qcow2 /srv/vm_disks/dev20/disk0.qcow2 8192M
Formatting '/srv/vm_disks/dev20/disk0.qcow2', fmt=qcow2 size=8589934592 encryption=off cluster_size=0 
$ kvm-img create -f qcow2 -b /srv/vm_disks/dev20/disk0.qcow2 /srv/vm_disks/dev20/disk0_snapshot.ovl
Formatting '/srv/vm_disks/dev20/disk0_snapshot.ovl', fmt=qcow2 size=8589934592 backing_file='/srv/vm_disks/dev20/disk0.qcow2' encryption=off cluster_size=0 
$ virt-install --connect qemu:///system --name dev20 --ram 512 --arch x86_64 --vcpus 2 --check-cpu --file /srv/vm_disks/dev20/disk0_snapshot.ovl --nonsparse --network network:default --vnc --noautoconsole --hvm --accelerate --cdrom /home/dferguson/Disk_Images/debian-40r7-amd64-netinst.iso --os-type linux --os-variant debianEtch
Starting install...
internal error unable to start guest: qemu: could not open disk image /srv/vm_disks/dev20/disk0_snapshot.ovl

Domain installation may not have been
 successful.  If it was, you can restart your domain
 by running 'virsh start dev20'; otherwise, please
 restart your installation.
ERROR    internal error unable to start guest: qemu: could not open disk image /srv/vm_disks/dev20/disk0_snapshot.ovl
Traceback (most recent call last):
  File "/usr/bin/virt-install", line 780, in <module>
    main()
  File "/usr/bin/virt-install", line 678, in main
    start_time, guest.start_install)
  File "/usr/bin/virt-install", line 733, in do_install
    dom = install_func(conscb, progresscb, wait=(not wait))
  File "/usr/lib/python2.6/dist-packages/virtinst/Guest.py", line 541, in start_install
    return self._do_install(consolecb, meter, removeOld, wait)
  File "/usr/lib/python2.6/dist-packages/virtinst/Guest.py", line 633, in _do_install
    self.domain = self.conn.createLinux(install_xml, 0)
  File "/usr/lib/python2.6/dist-packages/libvirt.py", line 1077, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: internal error unable to start guest: qemu: could not open disk image /srv/vm_disks/dev20/disk0_snapshot.ovl

$ ls -la /srv/vm_disks/dev20/disk0_snapshot.ovl
-rw-r--r-- 1 dferguson dferguson 262144 2009-11-30 09:28 /srv/vm_disks/dev20/disk0_snapshot.ovl
$  file /srv/vm_disks/dev20/disk0_snapshot.ovl
/srv/vm_disks/dev20/disk0_snapshot.ovl: Qemu Image, Format: Qcow , Version: 2
$ kvm-img info /srv/vm_disks/dev20/disk0_snapshot.ovl
image: /srv/vm_disks/dev20/disk0_snapshot.ovl
file format: qcow2
virtual size: 8.0G (8589934592 bytes)
disk size: 131K
cluster_size: 65536
backing file: /srv/vm_disks/dev20/disk0.qcow2 (actual path: /srv/vm_disks/dev20/disk0.qcow2)
$ apt-cache policy qemu-kvm
qemu-kvm:
  Installed: 0.11.0-0ubuntu6.3
  Candidate: 0.11.0-0ubuntu6.3
  Version table:
 *** 0.11.0-0ubuntu6.3 0
        500 http://gb.archive.ubuntu.com karmic-updates/main Packages
        100 /var/lib/dpkg/status
     0.11.0-0ubuntu6 0
        500 http://gb.archive.ubuntu.com karmic/main Packages
$ lsb_release -rd
Description:	Ubuntu 9.10
Release:	9.10

This was fine when running Intrepid - happened immediately on upgrading
to Karmic.  I see the same error on creating a new vm or trying to boot
a vm that worked without issue prior to the upgrade.

** Affects: qemu-kvm (Ubuntu)
     Importance: Undecided
         Status: New

-- 
kvm wont boot off a qcow2 overlay disk image
https://bugs.launchpad.net/bugs/490264
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in ubuntu.



More information about the Ubuntu-server-bugs mailing list