[Bug 696318] [NEW] Starting VMs on qcow2 format with base images in level three fails
Robert Larsen
696318 at bugs.launchpad.net
Sat Jan 1 19:45:01 UTC 2011
Public bug reported:
Also, for some reason the ownership of the base images changes.
To recreate the problem:
/tmp $ kvm-img create -f qcow2 level1.img 10G
Formatting 'level1.img', fmt=qcow2 size=10737418240 encryption=off cluster_size=0
/tmp $ kvm-img create -f qcow2 -b level1.img level2.img
Formatting 'level2.img', fmt=qcow2 size=10737418240 backing_file='level1.img' encryption=off cluster_size=0
/tmp $ kvm-img create -f qcow2 -b level2.img level3.img
Formatting 'level3.img', fmt=qcow2 size=10737418240 backing_file='level2.img' encryption=off cluster_size=0
/tmp $ grep -E '(<name>)|(<source file)' vm.xml
<name>TestVM</name>
<source file='/tmp/level3.img'/>
<source file='/tmp/ubuntu-10.10-server-amd64.iso'/>
/tmp $ virsh define vm.xml
Domain TestVM defined from vm.xml
/tmp $ virsh start TestVM
error: Failed to start domain TestVM
error: internal error process exited while connecting to monitor: char device redirected to /dev/pts/6
qemu: could not open disk image /tmp/level3.img: Permission denied
/tmp $ ls -l *.img
-rw-r--r-- 1 robert robert 262144 2011-01-01 20:37 level1.img
-rw-r--r-- 1 libvirt-qemu kvm 262144 2011-01-01 20:37 level2.img
-rw-r--r-- 1 root root 262144 2011-01-01 20:37 level3.img
/tmp $
If you change the source file in the VM definition to 'level2.img' then the VM starts fine.
This worked perfectly in Ubuntu 10.04.
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: libvirt-bin 0.8.3-1ubuntu14
ProcVersionSignature: Ubuntu 2.6.35-24.42-generic 2.6.35.8
Uname: Linux 2.6.35-24-generic x86_64
NonfreeKernelModules: fglrx
Architecture: amd64
Date: Sat Jan 1 20:32:01 2011
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
ProcEnviron:
PATH=(custom, user)
LANG=en_DK.utf8
SHELL=/bin/bash
SourcePackage: libvirt
** Affects: libvirt (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug maverick
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libvirt in ubuntu.
https://bugs.launchpad.net/bugs/696318
Title:
Starting VMs on qcow2 format with base images in level three fails
More information about the Ubuntu-server-bugs
mailing list