CentOS Xen local NFS mount?

Discussion in 'HOWTO-Related Questions' started by unclecameron, Feb 3, 2008.

  1. unclecameron

    unclecameron New Member

    I'm attempting to install CentOS Xen DomU using virt-install after setting up a local NFS mount like this:

    mount -ro loop CentOS-5.0-i386-bin-DVD.iso /mnt/mount
    cp -ar /mnt/mount/. /var/www/html/mount
    vi /etc/exports
    /var/www/html/mount *(ro,sync)
    exportfs -a
    service nfs restart
    showmount -e
    /var/www/html/mount *

    and also pointing http://localhost/ to
    /var/www/html/mount/

    where http://localhost/EULA shows the EULA from the CentOS .iso and the file structure looks intact. But when I run the virt-install I get invalid install location whether I specify:

    http://localhost/
    http://10.1.10.43/
    nfs://10.1.10.43:/

    but if I specify http://ftp.osuosl.org/pub/centos/5/os/i386/

    it works. Why don't my local mounts work? I can see both the http and nfs structure from other clients on the network.
     
  2. topdog

    topdog Active Member

    Can you access the files from a web browser ? If you cannot i suspect selinux is blocking access. If you can then take a look at the access logs of apache to see what files the installer is requesting for.
     
  3. unclecameron

    unclecameron New Member

    SElinux is disabled, and I can access all the file using either NFS or HTTP from a remote computer
     
  4. topdog

    topdog Active Member

    Take a look at the logs and see what files the installer is looking for it will help you figure out what the path it is expecting.
     
  5. unclecameron

    unclecameron New Member

    Indexing wasn't allowed in http.conf, which caused the install to fail...really stupid. I also found out if you specify the install source location of http://localhost/ it will fail to find the stage2.img, you have to leave off the trailing slash, otherwise it will fail later during the install :(
     
    Last edited: Feb 5, 2008
  6. unclecameron

    unclecameron New Member

    Still trying to figure out why it fails when mounting NFS, any ideas?
     
  7. falko

    falko Super Moderator ISPConfig Developer

    Any errors in your logs?
     
  8. unclecameron

    unclecameron New Member

    nothing in /var/log/messages
     
  9. falko

    falko Super Moderator ISPConfig Developer

    Did you check the other logs as well?
     

Share This Page