If you do a 'sudo apt-cache search xfs' it will return a number of package hits, what you want specifically is to do:
sudo apt-get install xfs libguestfs-xfs partman-xfs xfslibs-dev xfsprogs
This will give you the XFS filesystem, libraries, partition management dependencies and management utilities you need. Recompiling the kernel is not necessary and way out of the scope of installing XFS. In fact in Ubuntu, I would recommend installing an upgrade well before recompiling the kernel.
when I typed the command above I got the following message:
" Package xfs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'xfs' has no installation candidate
E: Unable to locate package libguest-xfs
E: Unable to locate package partman-xfs "
I just wanted to have installed and practice the xfs section of this course.