qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [Bug 1192780] Re: qemu-kvm with snapshot option always fail


From: Deepak C Shetty
Subject: [Qemu-devel] [Bug 1192780] Re: qemu-kvm with snapshot option always fails with Permission denied Could not open disk image
Date: Fri, 26 Jul 2013 04:55:45 -0000

Eric,
    Thanks for the quick reply. I saw the <transient/> desc. in 
formatdomain.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 up 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 <transient/> 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=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin 
QEMU_AUDIO_DRV=none /usr/bin/qemu-system-x86_64 -S -M pc-1.0 -no-kvm -m 512 
-smp 1,sockets=1,cores=1,threads=1 -name instance-0000002b -uuid 
2d600758-ae56-48b8-bd4d-999744a038e4 -nodefconfig -nodefaults -chardev 
socket,id=charmonitor,path=/var/lib/libvirt/qemu/instance-0000002b.monitor,server,nowait
 -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown 
-kernel /opt/stack/data/nova/instances/instance-0000002b/kernel -initrd 
/opt/stack/data/nova/instances/instance-0000002b/ramdisk -append root=/dev/vda 
console=ttyS0 -drive 
file=/opt/stack/data/nova/instances/instance-0000002b/disk,if=none,id=drive-virtio-disk0,format=qcow2,cache=none
 -device 
virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0 
-drive if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device 
ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev 
tap,fd=19,id=hostnet0 -device 
rtl8139,netdev=hostnet0,id=net0,mac=fa:16:3e:03:ab:18,bus=pci.0,addr=0x3 
-chardev 
file,id=charserial0,path=/opt/stack/data/nova/instances/instance-0000002b/console.log
 -device isa-serial,chardev=charserial0,id=serial0 -chardev pty,id=charserial1 
-device isa-serial,chardev=charserial1,id=serial1 -usb -device 
usb-tablet,id=input0 -vnc 127.0.0.1:26868 -k en-us -vga cirrus -device 
virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5 -snapshot
  Domain id=1 is tainted: custom-argv
  char device redirected to /dev/pts/18
  qemu-system-x86_64: -drive 
file=/opt/stack/data/nova/instances/instance-0000002b/disk,if=none,id=drive-virtio-disk0,format=qcow2,cache=none:
 could not open disk image 
/opt/stack/data/nova/instances/instance-0000002b/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=1400 audit(1371694399.156:17): apparmor="STATUS" 
operation="profile_remove" name="libvirt-2d600758-ae56-48b8-bd4d-999744a038e4" 
pid=4201 comm="apparmor_parser"

  
  libvirt.xml that I'm using:
  <domain type="qemu" xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
    <uuid>2d600758-ae56-48b8-bd4d-999744a038e4</uuid>
    <name>instance-0000002b</name>
    <memory>524288</memory>
    <vcpu>1</vcpu>
    <os>
      <type>hvm</type>
      <kernel>/opt/stack/data/nova/instances/instance-0000002b/kernel</kernel>
      <initrd>/opt/stack/data/nova/instances/instance-0000002b/ramdisk</initrd>
      <cmdline>root=/dev/vda console=ttyS0</cmdline>
    </os>
    <features>
      <acpi/>
      <apic/>
    </features>
    <clock offset="utc"/>
    <devices>
      <disk type="file" device="disk">
        <driver name="qemu" type="qcow2" cache="none"/>
        <source file="/opt/stack/data/nova/instances/instance-0000002b/disk"/>
        <target bus="virtio" dev="vda"/>
      </disk>
      <disk type="block" device="cdrom">
        <driver name="qemu" type="raw"/>
        <target tray="open" dev="hdc"/>
        <readonly/>
      </disk>
      <interface type="bridge">
        <mac address="fa:16:3e:03:ab:18"/>
        <source bridge="br100"/>
        <filterref filter="nova-instance-instance-0000002b-fa163e03ab18">
          <parameter name="IP" value="10.0.0.3"/>
          <parameter name="DHCPSERVER" value="10.0.0.1"/>
          <parameter name="PROJNET" value="10.0.0.0"/>
          <parameter name="PROJMASK" value="255.255.255.0"/>
        </filterref>
      </interface>
      <serial type="file">
        <source 
path="/opt/stack/data/nova/instances/instance-0000002b/console.log"/>
      </serial>
      <serial type="pty"/>
      <input type="tablet" bus="usb"/>
      <graphics type="vnc" autoport="no" port="32768" keymap="en-us" 
listen="127.0.0.1"/>
    </devices>
  <qemu:commandline>
     <qemu:arg value='-snapshot'/>
  </qemu:commandline>
  </domain>

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1192780/+subscriptions



reply via email to

[Prev in Thread] Current Thread [Next in Thread]