Red Hat Bugzilla – Bug 705200
guestmount attempt results in access denied
Last modified: 2011-06-23 23:50:22 EDT
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):
Steps to Reproduce:
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?
For reference, I was able to access the data on the image using the kpartx approach:
Setting back to NEEDINFO on questions in comment 1.
(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.
That's OK. I have added a note to the manual page:
libguestfs-1.10.4-1.fc15 has been submitted as an update for Fedora 15.
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.