[Fedora-xen] Unable to get working guest on FC6

Daniel P. Berrange berrange at redhat.com
Sun Feb 4 16:01:53 UTC 2007


On Thu, Feb 01, 2007 at 03:38:33PM -0500, Bill Zingler wrote:
> The following command yeilds the error below.  Anyone have any ideas what
> could be the problem.  Am I encountering a problem due to using the x86_64
> version of FC6?
> 
> Thanks,
> 
> Bill
> 
> virt-install --name=fc6g3 --ram=512 --vcpus=1 --file=/home/admin/fc6g3.img
> --file-size=5 --paravirt --location=
> http://download.fedora.redhat.com/pub/fedora/linux/core/6/x86_64/os --vnc

If you have SELinux enabled, then this will fail because the disk image is
under in a permitted directory. SELinux policy requires disk images to be
in either /xen (for legacy compat), or /var/lib/xen/images (current preferred).

If you really really want to keep disk images elsewhere, then you need to
add the extra directory to the policy & make sure its labelled, eg

To add to policy:

    semanage fcontext --add -t xen_image_t '/home/admin/xen(/.*)?'

And then to label the dir:

    restorecon /home/admin/xen

Regards,
Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 




More information about the Fedora-xen mailing list