[Bug 658610] Re: Check whether images have write permissions
So closing it with "fix released". (which had a complication for me: I changed status for ubuntu package instead of changing it for qemu line, and now I can't restore it back for ubuntu - since I don't know how/when ubuntu bugs are closed, only upstream) ** Changed in: qemu-kvm (Ubuntu) Status: Confirmed => Fix Released ** Changed in: qemu Status: Confirmed => Fix Released -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu-kvm in Ubuntu. https://bugs.launchpad.net/bugs/658610 Title: Check whether images have write permissions To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/658610/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 658610] Re: Check whether images have write permissions
When I submitted this bug (2 years ago) that was not what happened. Apparently they fixed it in a newer version. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu-kvm in Ubuntu. https://bugs.launchpad.net/bugs/658610 Title: Check whether images have write permissions To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/658610/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 658610] Re: Check whether images have write permissions
by default images are expected to be open read-write. I'm against too much "intelligence" here, -- we may be running qemu as wrong user, or with wrong permissions of the image in question, and qemu should fail to start if the image can't be open using specified access flags (which is read-write by default). There's "readonly={on|off}" attribute of a block device which can be used to control this behavour. And this is, in fact, exactly the behavour: $ qemu -drive file=/bin/ls qemu: -drive file=/bin/ls,if=virtio: could not open disk image /bin/ls: Permission denied $ qemu -drive file=/bin/ls,readonly=on qemu: -drive file=/bin/ls,readonly=on: readonly not supported by this bus type $ qemu -drive file=/bin/ls,if=virtio,readonly=on (works) (Running as non-root ofcourse) So I for one don't see what's the problem. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu-kvm in Ubuntu. https://bugs.launchpad.net/bugs/658610 Title: Check whether images have write permissions To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/658610/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 658610] Re: Check whether images have write permissions
We can always improve the information to the user for something like so I've marked this as wishlist. ** Changed in: qemu Importance: Undecided => Wishlist ** Changed in: qemu Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu-kvm in Ubuntu. https://bugs.launchpad.net/bugs/658610 Title: Check whether images have write permissions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
Re: [Bug 658610] Re: Check whether images have write permissions
Thanks, Anthony. Does that mean that the bug should be 'Invalid', or perhaps just 'Wontfix' (for the IDE case)? -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu-kvm in Ubuntu. https://bugs.launchpad.net/bugs/658610 Title: Check whether images have write permissions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 658610] Re: Check whether images have write permissions
This is a legacy behavior in QEMU. There are a number of legitimate use cases where a user may only have read access to an image and as long as that image is mounted read-only, everything will work okay. Virtio and SCSI will expose the read-only attribute to the guest so it should be very obvious what's happening. Unfortunately, IDE does not support the concept of read-only. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu-kvm in Ubuntu. https://bugs.launchpad.net/bugs/658610 Title: Check whether images have write permissions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 658610] Re: Check whether images have write permissions
I think what it means that, if the file permission for the disk image in host OS is read only for the user running qemu, then it is not saying that clearly. May be qemu should just exit as soon as it sees that image is read only. I am not sure if in some kind of mode it is possible to run a VM without the need of writing anything on the image. If that is the case then probably it should give an option or default to run in that mode under such circumstances. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu-kvm in Ubuntu. https://bugs.launchpad.net/bugs/658610 Title: Check whether images have write permissions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 658610] Re: Check whether images have write permissions
Can you please add steps to reproduce this bug? It's not clear to me when this happens. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu-kvm in Ubuntu. https://bugs.launchpad.net/bugs/658610 Title: Check whether images have write permissions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 658610] Re: Check whether images have write permissions
** Package changed: kvm (Ubuntu) => qemu-kvm (Ubuntu) ** Changed in: qemu-kvm (Ubuntu) Importance: Undecided => Wishlist ** Changed in: qemu-kvm (Ubuntu) Status: New => Confirmed -- Check whether images have write permissions https://bugs.launchpad.net/bugs/658610 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to qemu-kvm in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs