From: Onkar N Mahajan <kernzap@gmail.com>
To: qemu-devel@nongnu.org, libvir-list@redhat.com
Subject: [Qemu-devel] unable to set security context error ...
Date: Wed, 02 Nov 2011 23:04:06 +0530 [thread overview]
Message-ID: <4EB17F0E.5020808@gmail.com> (raw)
I am getting 'system_u:object_r:svirt_image_t:s0:c129,c783' on
'/var/lib/libvirt/images/vm01.img': Permission denied'
when I try to install using virt-manager.
#semanage fcontext -l | grep images
/var/lib/libvirt/images(/.*)? all files
system_u:object_r:svirt_image_t:s0
/var/lib/tftpboot/images(/.*)? all files
system_u:object_r:cobbler_var_lib_t:s0
/var/lib/xen/images(/.*)? all files
system_u:object_r:xen_image_t:s0
/var/www/cobbler/images(/.*)? all files
system_u:object_r:cobbler_var_lib_t:s0
and
#ls -aZ
drwxr-xr-x. root root unconfined_u:object_r:virt_var_lib_t:s0 .
drwxr-xr-x. root root system_u:object_r:virt_var_lib_t:s0 ..
-rw-------. root root system_u:object_r:svirt_image_t:s0 vm01.img
Installation fails with following error message :
Unable to complete install: 'unable to set security context
'system_u:object_r:svirt_image_t:s0:c129,c783' on
'/var/lib/libvirt/images/vm01.img': Permission denied'
Traceback (most recent call last):
File "/usr/local/share/virt-manager/virtManager/asyncjob.py", line
44, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/local/share/virt-manager/virtManager/create.py", line
1902, in do_install
guest.start_install(False, meter=meter)
File "/usr/lib/python2.7/site-packages/virtinst/Guest.py", line 1224,
in start_install
noboot)
File "/usr/lib/python2.7/site-packages/virtinst/Guest.py", line 1292,
in _create_guest
dom = self.conn.createLinux(start_xml or final_xml, 0)
File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1277, in
createLinux
if ret is None:raise libvirtError('virDomainCreateLinux() failed',
conn=self)
libvirtError: unable to set security context
'system_u:object_r:svirt_image_t:s0:c129,c783' on
'/var/lib/libvirt/images/vm01.img': Permission denied
also,
[/usr/libexec]#which qemu-kvm
/usr/bin/qemu-kvm
[/usr/libexec]#ls -aZ /usr/bin/qemu-kvm
-rwxr-xr-x. root root unconfined_u:object_r:qemu_exec_t:s0 /usr/bin/qemu-kvm
[/usr/libexec]#which libvirtd
/usr/local/sbin/libvirtd
[/usr/libexec]#ls -aZ /usr/local/sbin/libvirtd
-rwxr-xr-x. root root system_u:object_r:bin_t:s0
/usr/local/sbin/libvirtd
Please help me as to where I am going wrong..
Regards,
Onkar
reply other threads:[~2011-11-02 17:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EB17F0E.5020808@gmail.com \
--to=kernzap@gmail.com \
--cc=libvir-list@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).