Bug 1021615 - Permission denied after changing permissions in virt-manager on virt-install step
Summary: Permission denied after changing permissions in virt-manager on virt-install ...
Keywords:
Status: CLOSED DUPLICATE of bug 1025355
Alias: None
Product: Fedora
Classification: Fedora
Component: virt-manager
Version: 20
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Cole Robinson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-21 16:00 UTC by Ilia Gradina
Modified: 2016-07-27 13:36 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-11-06 18:30:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ilia Gradina 2013-10-21 16:00:14 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Open virt-manager
2. Add new VM
3. Choose iso and click yes

Actual results:
Unable to complete install: 'internal error: process exited while connecting to monitor: Warning: option deprecated, use lost_tick_policy property of kvm-pit instead.
qemu-system-x86_64: -drive file=/home/ilgrad/Documents/Fedora-20-Beta-x86_64-netinst.iso,if=none,id=drive-ide0-0-0,readonly=on,format=raw: could not open disk image /home/ilgrad/Documents/Fedora-20-Beta-x86_64-netinst.iso: Permission denied
'

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 91, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/create.py", line 1959, in do_install
    guest.start_install(meter=meter)
  File "/usr/share/virt-manager/virtinst/guest.py", line 388, in start_install
    noboot)
  File "/usr/share/virt-manager/virtinst/guest.py", line 453, in _create_guest
    dom = self.conn.createLinux(start_xml or final_xml, 0)
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2897, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: internal error: process exited while connecting to monitor: Warning: option deprecated, use lost_tick_policy property of kvm-pit instead.
qemu-system-x86_64: -drive file=/home/ilgrad/Documents/Fedora-20-Beta-x86_64-netinst.iso,if=none,id=drive-ide0-0-0,readonly=on,format=raw: could not open disk image /home/ilgrad/Documents/Fedora-20-Beta-x86_64-netinst.iso: Permission denied

Expected results:
virt-install compelete w/o/ errors

Additional info:

Comment 1 Giuseppe Scrivano 2013-11-04 16:12:17 UTC
are you running Fedora where by default libvirt runs qemu with the user qemu:qemu credentials?  If so, can the user qemu access the file /home/ilgrad/Documents/Fedora-20-Beta-x86_64-netinst.iso?

It can also be a SElinux related problem, please take a look at "restorecon" and how to reset the context for the file Fedora-20-Beta-x86_64-netinst.iso.

Comment 2 Cole Robinson 2013-11-06 18:30:07 UTC

*** This bug has been marked as a duplicate of bug 1025355 ***


Note You need to log in before you can comment on or make changes to this bug.