[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [Bug 658610] Re: Check whether images have write permission
From: |
Michael Tokarev |
Subject: |
[Qemu-devel] [Bug 658610] Re: Check whether images have write permissions |
Date: |
Fri, 26 Oct 2012 08:07:02 -0000 |
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 qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/658610
Title:
Check whether images have write permissions
Status in QEMU:
Confirmed
Status in “qemu-kvm” package in Ubuntu:
Confirmed
Bug description:
KVM/Qemu should check whether the disk images have write permissions
in order to prevent users from getting weird IO errors in their VMs
without understanding what's happening.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/658610/+subscriptions
- [Qemu-devel] [Bug 658610] Re: Check whether images have write permissions,
Michael Tokarev <=