From Fedora Project Wiki

(add a tip on loop mounting the DVD to provide a repository)
(update for Fedora 18)
Line 1: Line 1:
{{QA/Test_Case
{{QA/Test_Case
|description=This test case verifies that installing using an NFS installation repository works by <code>'''repo='''</code>. See [[Anaconda/Options]] for information on supported boot options.
|description=This is to verify that [[Anaconda]]'s <code>inst.repo</code> [[Anaconda Boot Options|boot option]] works together with an NFS repository.
|setup=
# You need to have a Fedora repository accessible over an NFS protocol. If you do have it, no further setup is needed. If you don't, you can mount a {{filename|DVD.iso}} image and export it over NFS this way:
#* Mount the image over loopback: {{command|# mount -o loop Fedora-{{FedoraVersionNumber|next}}-x86_64-DVD.iso /mnt/repo}}
#* Install {{package|nfs-utils}}.
#* Let's say your (virtual) test machine is in the <code>192.168.1.0/24</code> subnet. Put the following line into {{filename|/etc/exports}}: <pre>/mnt/repo    192.168.1.0/24(ro)</pre>
#* Restart NFS service: {{command|# systemctl restart nfs-server.service}}
#* The repository is now accessible over NFS via <code>&lt;your_IP&gt;:/mnt/repo</code>
# Prepare any non-live media for booting the installer (anything except {{filename|Live.iso}}).
|actions=
|actions=
# Boot the installer using any available means ({{filename|netinst.iso}}, pxeboot images or {{filename|DVD.iso}})
# Before booting the installer, specify a target NFS repository by adding a following boot option: <pre>inst.repo=nfs[:options]:<server>:/<path></pre> Example: <pre>inst.repo=nfs:your_IP:/mnt/repo</pre>
# Direct anaconda to use the package repo from a NFS server by adding <code>repo=</code> boot command. For example:<pre>repo=nfs[:options]:<server>:/<path></pre>
{{admon/tip|Loop mount a DVD ISO|You can easily set up a repository for this test case by just loopback mounting the DVD ISO. For instance, {{command|mount -o loop Fedora-17-x86_64-DVD.iso /mnt/repo}}, and then ensure the /mnt/repo directory is exported via NFS}}
# Proceed with installation
# Proceed with installation
|results=
|results=
# Anaconda uses the package repository from the NFS server provided.  
<ol>
# Install completes successfully
<li>The installer auto-selects requested NFS repository as the installation source in its GUI</li>
# Package errors (install.log) should not occur
<li>The requested repository is used to download and install required packages. This can be checked by inspecting {{filename|/tmp/packaging.log}}. Example output:
# System boots successfully
<pre>14:44:07,093 INFO packaging: mounting 192.168.1.1:/mnt/repo: on /mnt/install/source
...
14:44:07,545 DEBUG packaging: adding yum repo anaconda with baseurl file:///mnt/install/source and mirrorlist None
14:44:07,568 DEBUG packaging: disabling repo fedora
14:44:07,569 DEBUG packaging: disabling repo updates-testing
14:44:07,569 DEBUG packaging: disabling repo updates</pre></li>
</ol>
}}
}}



Revision as of 14:49, 29 October 2012

Description

This is to verify that Anaconda's inst.repo boot option works together with an NFS repository.

Setup

  1. You need to have a Fedora repository accessible over an NFS protocol. If you do have it, no further setup is needed. If you don't, you can mount a DVD.iso image and export it over NFS this way:
    • Mount the image over loopback: # mount -o loop Fedora-42-x86_64-DVD.iso /mnt/repo
    • Install nfs-utils.
    • Let's say your (virtual) test machine is in the 192.168.1.0/24 subnet. Put the following line into /etc/exports:
      /mnt/repo    192.168.1.0/24(ro)
    • Restart NFS service: # systemctl restart nfs-server.service
    • The repository is now accessible over NFS via <your_IP>:/mnt/repo
  2. Prepare any non-live media for booting the installer (anything except Live.iso).

How to test

  1. Before booting the installer, specify a target NFS repository by adding a following boot option:
    inst.repo=nfs[:options]:<server>:/<path>
    Example:
    inst.repo=nfs:your_IP:/mnt/repo
  2. Proceed with installation

Expected Results

  1. The installer auto-selects requested NFS repository as the installation source in its GUI
  2. The requested repository is used to download and install required packages. This can be checked by inspecting /tmp/packaging.log. Example output:
    14:44:07,093 INFO packaging: mounting 192.168.1.1:/mnt/repo: on /mnt/install/source
    ...
    14:44:07,545 DEBUG packaging: adding yum repo anaconda with baseurl file:///mnt/install/source and mirrorlist None
    14:44:07,568 DEBUG packaging: disabling repo fedora
    14:44:07,569 DEBUG packaging: disabling repo updates-testing
    14:44:07,569 DEBUG packaging: disabling repo updates