[libvirt] Using Restore in another host.

Eric Blake eblake at redhat.com
Tue Apr 5 15:42:47 UTC 2011


On 04/05/2011 09:17 AM, Michal Novotny wrote:
> On 04/05/2011 05:15 PM, Eric Blake wrote:
>> On 04/05/2011 09:09 AM, Michal Novotny wrote:
>>> Hi Marcela,
>>> I was investigating the log file and it seems like the image file cannot
>>> be opened on the remote host.
>> Are you using SELinux, and is your shared storage on NFS?  If so, did
>> you run 'setsebool -P virt_use_nfs on' to let the destination properly
>> access the shared storage from NFS?
>>
> Eric, I'm not too familiar with SELinux. Do you think the
> virFileOpenAs() would fail if the SELinux context won't be set properly?

Yes, if you are running with SELinux enforcing, then it is possible for
all attempts to open() to fail due to denied permissions, even with
virFileOpenAs() trying different uids, if you haven't told SELinux to
allow NFS images.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110405/b720f25e/attachment-0001.sig>


More information about the libvir-list mailing list