Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

permission denied libvirt

Hi, I'm trying to setup a new VM in virt-manager under Fedora 29, and i always et a permission denied at the end end of the setup, when qemu-system-x86_64 has been started and attempts to access my ISO in /home/wenzel/Downloads/ubuntu-18.04.1-desktop-amd64.iso. permission_denied_libvirt

Libvirtd has the default configuration, and my ISO is now owned by qemu:qemu: -rw-rw-r--. 1 qemu qemu 1,9G 26 oct. 00:33 ubuntu-18.04.1-desktop-amd64.iso

I don't understand what is going on.

  • there is no apparmor DENIEDmessages in dmesg
  • in /etc/libvirt/qemu.conf, the default user and group configured are root:root, so root should be able to access this file ?

/etc/libvirt/qemu.conf user configuration:

# The user for QEMU processes run by the system instance. It can be
# specified as a user name or as a user id. The qemu driver will try to
# parse this value first as a name and then, if the name doesn't exist,
# as a user id.
#
# Since a sequence of digits is a valid user name, a leading plus sign
# can be used to ensure that a user id will not be interpreted as a user
# name.
#
# Some examples of valid values are:
#
#       user = "qemu"   # A user named "qemu"
#       user = "+0"     # Super user (uid=0)
#       user = "100"    # A user named "100" or a user with uid=100
#
# user = "qemu"

# The group for QEMU processes run by the system instance. It can be
# specified in a similar way to user.
# group = "qemu"

# Whether libvirt should dynamically change file ownership
# to match the configured user/group above. Defaults to 1.
# Set to 0 to disable file ownership changes.
#dynamic_ownership = 1

Can somebody help me diagnose the problem ? Thank you !

permission denied libvirt

Hi, I'm trying to setup a new VM in virt-manager under Fedora 29, and i always et a permission denied at the end end of the setup, when qemu-system-x86_64 has been started and attempts to access my ISO in /home/wenzel/Downloads/ubuntu-18.04.1-desktop-amd64.iso. permission_denied_libvirt

Libvirtd has the default configuration, and my ISO is now owned by qemu:qemu: -rw-rw-r--. 1 qemu qemu 1,9G 26 oct. 00:33 ubuntu-18.04.1-desktop-amd64.iso

I don't understand what is going on.

  • there is no apparmor DENIEDmessages in dmesg
  • in /etc/libvirt/qemu.conf, the default user and group configured are root:root, so root should be able to access this file ?

/etc/libvirt/qemu.conf user configuration:

# The user for QEMU processes run by the system instance. It can be
# specified as a user name or as a user id. The qemu driver will try to
# parse this value first as a name and then, if the name doesn't exist,
# as a user id.
#
# Since a sequence of digits is a valid user name, a leading plus sign
# can be used to ensure that a user id will not be interpreted as a user
# name.
#
# Some examples of valid values are:
#
#       user = "qemu"   # A user named "qemu"
#       user = "+0"     # Super user (uid=0)
#       user = "100"    # A user named "100" or a user with uid=100
#
# user = "qemu"
"root"

# The group for QEMU processes run by the system instance. It can be
# specified in a similar way to user.
# group = "qemu"
"root"

# Whether libvirt should dynamically change file ownership
# to match the configured user/group above. Defaults to 1.
# Set to 0 to disable file ownership changes.
#dynamic_ownership = 1

Can somebody help me diagnose the problem ? Thank you !