[libvirt-users] Libvirt qemu permission denied error

Hello, I am trying run a simple VM (qemu1.4.2) on RHEL 6.5 through libvirt (0.10). virsh create throws the error: *error: Failed to create domain from vm1.xml* *error: internal error process exited while connecting to monitor:* The libvirt log for VM shows: *libvir: error : cannot execute binary /usr/bin/qemu-system-x86_64: Permission denied* I am running VM as root and all disk images/ISOs required for VM are read/write/executable. -- Asadullah Hussain

On 04/23/2014 05:44 AM, Asadullah Hussain wrote:
Hello,
I am trying run a simple VM (qemu1.4.2) on RHEL 6.5 through libvirt (0.10). virsh create throws the error:
*error: Failed to create domain from vm1.xml* *error: internal error process exited while connecting to monitor:*
The libvirt log for VM shows:
*libvir: error : cannot execute binary /usr/bin/qemu-system-x86_64: Permission denied*
I am running VM as root and all disk images/ISOs required for VM are read/write/executable.
The disk images may be accessible, but did you check that the actual qemu binary was accessible? Given that you are using RHEzL, have you considered opening a support ticket with Red Hat? -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org

The qemu binary is accessible as I can create VM through command line. That is why I thought it may be a libvirt issue. I have also contacted Red Hat support and will post my findings here if the issue is resolved. On 23 April 2014 17:16, Eric Blake <eblake@redhat.com> wrote:
On 04/23/2014 05:44 AM, Asadullah Hussain wrote:
Hello,
I am trying run a simple VM (qemu1.4.2) on RHEL 6.5 through libvirt (0.10). virsh create throws the error:
*error: Failed to create domain from vm1.xml* *error: internal error process exited while connecting to monitor:*
The libvirt log for VM shows:
*libvir: error : cannot execute binary /usr/bin/qemu-system-x86_64: Permission denied*
I am running VM as root and all disk images/ISOs required for VM are read/write/executable.
The disk images may be accessible, but did you check that the actual qemu binary was accessible? Given that you are using RHEzL, have you considered opening a support ticket with Red Hat?
-- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
-- Asadullah Hussain

On 04/23/2014 06:36 AM, Asadullah Hussain wrote: [please don't top-post on technical lists]
The qemu binary is accessible as I can create VM through command line. That is why I thought it may be a libvirt issue.
*libvir: error : cannot execute binary /usr/bin/qemu-system-x86_64: Permission denied*
On my RHEL 6.5 box, /usr/bin/qemu-system-x86_64 does not exist. Instead, Red Hat provides support only for /usr/libexec/qemu-kvm. How does your system have a /usr/bin/qemu-system-x86_64, through self-installation? Or is this a case of your vm1.xml incorrectly calling out an <emulator> line that does not exist? -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
participants (2)
-
Asadullah Hussain
-
Eric Blake