Bug 705200 - guestmount attempt results in access denied
Summary: guestmount attempt results in access denied
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libguestfs
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-16 23:33 UTC by Julian Sikorski
Modified: 2011-06-24 03:50 UTC (History)
4 users (show)

Fixed In Version: libguestfs-1.10.4-1.fc15
Clone Of:
Environment:
Last Closed: 2011-05-17 18:10:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
output of guestmount --trace --verbose (36.35 KB, text/plain)
2011-05-16 23:33 UTC, Julian Sikorski
no flags Details

Description Julian Sikorski 2011-05-16 23:33:34 UTC
Created attachment 499243 [details]
output of guestmount --trace --verbose

Description of problem:
I am unable to mount my windows VM image - guestmount apparently succeeds, but then any attempt to access the mount point results in access denied, even as root.

Version-Release number of selected component (if applicable):
libguestfs-1.10.2-1.fc15.x86_64

How reproducible:
always

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Richard W.M. Jones 2011-05-17 07:30:35 UTC
Are you running guestmount as root?

What precise guestmount command do you run?

After it has mounted, what command do you run on the mount point?

Do you run these other command(s) as root or non-root?

Do you run fusermount -u and if so, when?

Comment 2 Julian Sikorski 2011-05-17 08:43:35 UTC
For reference, I was able to access the data on the image using the kpartx approach:
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualization/sect-Virtualization-Troubleshoot_on_guest_disk_image.html

Comment 3 Richard W.M. Jones 2011-05-17 09:08:01 UTC
Setting back to NEEDINFO on questions in comment 1.

Comment 4 Julian Sikorski 2011-05-17 18:10:16 UTC
(In reply to comment #1)
> Are you running guestmount as root?
> 
> What precise guestmount command do you run?

The exact command used to produce this log was the following:
$ sudo guestmount -a/var/lib/libvirt/images/windows.img -m /dev/vda2 --trace --verbose --ro /mnt/loop > guestmount.log 2>&1

> After it has mounted, what command do you run on the mount point?

I did not run any commands on the mount point. I tried running chown and chmod to enable access, but to no avail
 
> Do you run these other command(s) as root or non-root?
> 
> Do you run fusermount -u and if so, when?

I did not try fusermount -u.

I could have sworn I tried to access the mounted system as root, but my console logs prove otherwise. It was late, I guess...
Anyway, I tried with -o allow_other and now everything seems to work fine. This command makes the image browsable in nautilus:
$ sudo guestmount -d windows -i --ro -o allow_other /mnt/loop
Sorry for the noise, I guess.

Comment 5 Richard W.M. Jones 2011-05-17 18:52:47 UTC
That's OK.  I have added a note to the manual page:

http://git.annexia.org/?p=libguestfs.git;a=commitdiff;h=b777a5a64926e9bf9b7109a0e4fb1332b20fa37f

Comment 6 Fedora Update System 2011-06-13 20:52:29 UTC
libguestfs-1.10.4-1.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/libguestfs-1.10.4-1.fc15

Comment 7 Fedora Update System 2011-06-24 03:50:09 UTC
libguestfs-1.10.4-1.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.


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