Received: from eggs.gnu.org ([2001:4830:134:3::10]:55381) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2a9V-0000SX-JK for qemu-devel@nongnu.org; Fri, 26 Jul 2013 01:01:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V2a9Q-00058W-Sp for qemu-devel@nongnu.org; Fri, 26 Jul 2013 01:01:17 -0400 Received: from indium.canonical.com ([91.189.90.7]:59842) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2a9Q-00058S-LU for qemu-devel@nongnu.org; Fri, 26 Jul 2013 01:01:12 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1V2a9O-0005Az-VA for ; Fri, 26 Jul 2013 05:01:10 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id CE1BF2E80EC for ; Fri, 26 Jul 2013 05:00:59 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Fri, 26 Jul 2013 04:55:45 -0000 From: Deepak C Shetty <1192780@bugs.launchpad.net> Sender: bounces@canonical.com References: <20130620024232.3801.5553.malonedeb@soybean.canonical.com> Message-Id: <20130726045546.17451.7437.malone@soybean.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1192780] Re: qemu-kvm with snapshot option always fails with Permission denied Could not open disk image Reply-To: Bug 1192780 <1192780@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Eric, Thanks for the quick reply. I saw the desc. in formatdomai= n.html and thought its supported. So does that mean its supported for other= hypervisors but not QEMU/KVM ? If not supported at all, why does it show u= p in the doc... its misleading. I had a recent need to start exploiting this feature and landed up here. I am willing to work on supporting with your guidance :) since I don't have much knowledge of SELinux. thanx, deepak -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1192780 Title: qemu-kvm with snapshot option always fails with Permission denied Could not open disk image Status in QEMU: New Bug description: I'm trying to use the option: -snapshot write to temporary files instead of disk image files How to reproduce? See following log: 2013-06-20 02:13:18.532+0000: starting up LC_ALL=3DC PATH=3D/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin= :/bin QEMU_AUDIO_DRV=3Dnone /usr/bin/qemu-system-x86_64 -S -M pc-1.0 -no-kv= m -m 512 -smp 1,sockets=3D1,cores=3D1,threads=3D1 -name instance-0000002b -= uuid 2d600758-ae56-48b8-bd4d-999744a038e4 -nodefconfig -nodefaults -chardev= socket,id=3Dcharmonitor,path=3D/var/lib/libvirt/qemu/instance-0000002b.mon= itor,server,nowait -mon chardev=3Dcharmonitor,id=3Dmonitor,mode=3Dcontrol -= rtc base=3Dutc -no-shutdown -kernel /opt/stack/data/nova/instances/instance= -0000002b/kernel -initrd /opt/stack/data/nova/instances/instance-0000002b/r= amdisk -append root=3D/dev/vda console=3DttyS0 -drive file=3D/opt/stack/dat= a/nova/instances/instance-0000002b/disk,if=3Dnone,id=3Ddrive-virtio-disk0,f= ormat=3Dqcow2,cache=3Dnone -device virtio-blk-pci,bus=3Dpci.0,addr=3D0x4,dr= ive=3Ddrive-virtio-disk0,id=3Dvirtio-disk0 -drive if=3Dnone,media=3Dcdrom,i= d=3Ddrive-ide0-1-0,readonly=3Don,format=3Draw -device ide-drive,bus=3Dide.1= ,unit=3D0,drive=3Ddrive-ide0-1-0,id=3Dide0-1-0 -netdev tap,fd=3D19,id=3Dhos= tnet0 -device rtl8139,netdev=3Dhostnet0,id=3Dnet0,mac=3Dfa:16:3e:03:ab:18,b= us=3Dpci.0,addr=3D0x3 -chardev file,id=3Dcharserial0,path=3D/opt/stack/data= /nova/instances/instance-0000002b/console.log -device isa-serial,chardev=3D= charserial0,id=3Dserial0 -chardev pty,id=3Dcharserial1 -device isa-serial,c= hardev=3Dcharserial1,id=3Dserial1 -usb -device usb-tablet,id=3Dinput0 -vnc = 127.0.0.1:26868 -k en-us -vga cirrus -device virtio-balloon-pci,id=3Dballoo= n0,bus=3Dpci.0,addr=3D0x5 -snapshot Domain id=3D1 is tainted: custom-argv char device redirected to /dev/pts/18 qemu-system-x86_64: -drive file=3D/opt/stack/data/nova/instances/instance= -0000002b/disk,if=3Dnone,id=3Ddrive-virtio-disk0,format=3Dqcow2,cache=3Dnon= e: could not open disk image /opt/stack/data/nova/instances/instance-000000= 2b/disk: Permission denied 2013-06-20 02:13:18.683+0000: shutting down Version: QEMU emulator version 1.0 (qemu-kvm-1.0), Copyright (c) 2003-2008 Fabrice Bellard Related info: The disk is a qcow2 image with a backing file. Both the backing file and = the disk are cmodded with 777. This is a log from dmesg related to apparmor: [ 236.531287] type=3D1400 audit(1371694399.156:17): apparmor=3D"STATUS" = operation=3D"profile_remove" name=3D"libvirt-2d600758-ae56-48b8-bd4d-999744= a038e4" pid=3D4201 comm=3D"apparmor_parser" = libvirt.xml that I'm using: 2d600758-ae56-48b8-bd4d-999744a038e4 instance-0000002b 524288 1 hvm /opt/stack/data/nova/instances/instance-0000002b/kernel /opt/stack/data/nova/instances/instance-0000002b/ramdisk root=3D/dev/vda console=3DttyS0 To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1192780/+subscriptions