From Fedora Project Wiki

Revision as of 16:36, 24 January 2011 by Narendrak (talk | contribs)

Description

This test scenario make sure that ksdevice=<interface name> format will handle interface names of the form emN or pci<slot>#<port>. For example passing 'ksdevice=em1' will work without issues.

Setup

Make sure hardware requirements are met.

How To Test

  1. Start the Rawhide instllation by booting into the boot.iso from <here>
  2. In the welcome screen, press TAB to edit the grub command line and append ksdevice=em1 ks=ks.cfg location on network. More information on ks and ksdevice options can be found here. More information on creating a ks.cfg can be found here
  3. Make sure the ks.cfg file specifies the configuration paramters for the network interfaces using the new naming convention, as following
    network --onboot yes --device em1 --bootproto dhcp --ipv6 auto
    network --onboot yes --device pci1#2 --bootproto dhcp --ipv6 auto
    network --onboot no --device pci1#1  --noipv4 --noipv6 --hostname fedora-14-r710
  4. Complete the installation, login to the system.

      Expected Results

      1. Make sure ks.cfg is retrieved over the network through the interface specified with ksdevice option
      2. Make sure kickstart installation proceeds without any manual intervention required.
      3. Once you login to the system, make sure that onboard device names are of the form emN.
        [root@fedora-14-r710 ~]# ls /sys/class/net/
        em1  em2  em3  em4  lo
      4. Make sure that PCI add-in device names are of the form pci<slot>#<port>
        #[root@fedora-14-r710 ~]# ls /sys/class/net/
        lo  pci3#1 pci3#2 pci4#1
      5. Make sure the configuration parameters specified in the ks.cfg files are applied to the specified interfaces. Fox ex: if had specified em1 to be setup to boot automatically and DHCP IP address, verify using the command
        [root@fedora-14-r710 ~]# ifconfig em1
        em1       Link encap:Ethernet  HWaddr 00:24:E8:2E:DE:FF
                  inet addr:172.16.65.55  Bcast:172.16.127.255  Mask:255.255.192.0
                  inet6 addr: fe80::224:e8ff:fe2e:deff/64 Scope:Link
                  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
                  RX packets:778483 errors:0 dropped:0 overruns:0 frame:0
                  TX packets:95453 errors:0 dropped:0 overruns:0 carrier:0
                  collisions:0 txqueuelen:1000
                  RX bytes:133048578 (126.8 MiB)  TX bytes:25692991 (24.5 MiB)
                  Interrupt:36 Memory:d6000000-d6012800


      6. Make sure ifcfg-emN and ifcfg-pci<slot>#<port> files are created under the dir /etc/sysconfig/network-scripts after the installation is complete.
        # cat ifcfg-em3
        # Please read /usr/share/doc/initscripts-*/sysconfig.txt
        # for the documentation of these parameters.
        DEVICE=em3
        BOOTPROTO=dhcp
        TYPE=Ethernet
        HWADDR=00:24:e8:2e:df:03
        ONBOOT=yes
        USERCTL=no
        PEERDNS=yes
        IPV6INIT=no
        
        # cat ifcfg-pci3#1
        # Please read /usr/share/doc/initscripts-*/sysconfig.txt
        # for the documentation of these parameters.
        DEVICE='pci3#1'
        BOOTPROTO=dhcp
        TYPE=Ethernet
        HWADDR=00:1b:21:44:63:40
        ONBOOT=yes
        USERCTL=no
        PEERDNS=yes
        IPV6INIT=no