Libvirt errors with nested backeds QCOW2 images

Bug #1397506 reported by Javier Sánchez
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
virt-manager (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

This is due by an error with Apparmor profile created for the new machine. Simple get a working qcow2 image like:

- Windows7-Base.img

Do a new qcow2 image using this as backing:

- qemu-img create -f qcow2 -b Windows7-Base.qcow2 Windows7-Updated.qcow2

Now just do some things on it like running updates and then do a new image like:

- qemu-img create -f qcow2 -b Windows7-Updated.qcow2 Final.qcow2

Now try to run a MV using Final.qcow2 and you will get an error:

- backing file: Could not open '/var/lib/libvirt/images/Windows7-Base.img': Permission denied

The problem is the Apparmor profile inside /etc/apparmor.d/libvirt/ , it's missing a read entry for '/var/lib/libvirt/images/Windows7-Base.img'

HACK:
Just add to a new device with Windows7-Base.img as "read-only" and libvirt will generate properly apparmor access to it.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: virt-manager 0.9.5-1ubuntu3
ProcVersionSignature: Ubuntu 3.13.0-40.69-generic 3.13.11.10
Uname: Linux 3.13.0-40-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.5
Architecture: amd64
CurrentDesktop: Unity
Date: Sat Nov 29 10:11:28 2014
ExecutablePath: /usr/share/virt-manager/virt-manager.py
InstallationDate: Installed on 2014-10-12 (47 days ago)
InstallationMedia: Ubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=es
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=es_ES.UTF-8
 SHELL=/bin/bash
SourcePackage: virt-manager
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Javier Sánchez (donoban) wrote :
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
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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