Test setup: Difference between revisions

From FAIWiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 5: Line 5:
* Set up a Debian mirror in your local LAN (using debmirror(1) and /usr/share/doc/fai-doc/examples/utils/mkdebmirror)
* Set up a Debian mirror in your local LAN (using debmirror(1) and /usr/share/doc/fai-doc/examples/utils/mkdebmirror)
* 2GB RAM for this mirror should be fine, GBit LAN is required
* 2GB RAM for this mirror should be fine, GBit LAN is required
* A host on which I run all tests has a Q4 Core i7 960, 3.2GHz, 6GB RAM, GBit LAN
* The host on which I run all tests has a Q4 Core i7 960, 3.2GHz, 6GB RAM, GBit LAN
* /etc/default/tmpfs: SHM_SIZE=5g
* /etc/default/tmpfs: SHM_SIZE=5g
* Set up a software bridge, so kvm can use a tap device (using the script [[File:bridge-on.sh]])
* Set up a software bridge, so kvm can use a tap device (using the script [[File:bridge-on.sh]])
* Install fai packages, create the nfsroot
* Install fai packages, create the nfsroot
* Using [[File:fai-kvm.sh]] you can start a test client via PXE or from FAI CD
* Using [[File:fai-kvm.sh]] you can boot a test client via PXE or from FAI CD
<pre>fai-kvm.sh -n pxe</pre>  
<pre>fai-kvm.sh -n pxe</pre>  
<pre>fai-kvm.sh pxe</pre>  
<pre>fai-kvm.sh pxe</pre>  

Revision as of 12:52, 19 April 2011

A nice test setup

This is how Mrfai does testing (using FAI 3.4.8)

  • Set up a Debian mirror in your local LAN (using debmirror(1) and /usr/share/doc/fai-doc/examples/utils/mkdebmirror)
  • 2GB RAM for this mirror should be fine, GBit LAN is required
  • The host on which I run all tests has a Q4 Core i7 960, 3.2GHz, 6GB RAM, GBit LAN
  • /etc/default/tmpfs: SHM_SIZE=5g
  • Set up a software bridge, so kvm can use a tap device (using the script File:Bridge-on.sh)
  • Install fai packages, create the nfsroot
  • Using File:Fai-kvm.sh you can boot a test client via PXE or from FAI CD
fai-kvm.sh -n pxe
fai-kvm.sh pxe
fai-kvm.sh -n faicd
  • A simple installation takes about 30 to 90 seconds.


Creating a FAI-CD ISO image

  • Create a partitial mirror containing the packages needed (16s needed)
fai-mirror -m9999  -xXEN,I386,CHROOT,LILO,GRUB,GNOME,GERMAN /dev/shm/m1
  • Create the ISO image (run this as root, 1.3s needed)
fai-cd -m /dev/shm/m1 /files/scratch/fai-cd.iso