Jump to: navigation, search

Installing VNUML over Fedora 11/12

This HowTo describes how to install VNUML over a fresh Fedora 11/12 installation.

Installation steps:

  1. Install Fedora 11 and update it:
  2. yum update
  3. Install basic development tools and other packages needed by VNUML:
  4. yum -y groupinstall "Development Tools"
    yum -y install bridge-utils readline-devel perl-Module-Build screen expat-devel libpcap-devel  
    yum -y install perl-Net-Pcap perl-NetAddr-IP perl-Net-IPv6Addr perl-XML-DOM perl-Exception-Class
    yum -y install perl-TermReadKey perl-Error perl-CPAN uml_utilities xterm tunctl
  5. Install VNUML. Dowload latest vnuml tar file from http://prdownloads.sourceforge.net/vnuml/vnuml_1.8.9.orig.tar.gz?download and:
  6. tar xfvz vnuml_1.8.9.orig.tar.gz 
    cd vnuml-1.8.9
    ln -s /usr/lib/perl5 /usr/local/lib/
    ln -s /usr/local/lib/perl5/vendor_perl /usr/local/lib/perl5/site_perl
    ./configure --with-build_modules --prefix="/usr"
    make install   # You have to press ENTER several times
  7. Install VNUML kernel. Download the latest UML kernel from http://prdownloads.sourceforge.net/vnuml/linux-um_2.6.28.10-1m.orig.tar.gz?download and:
  8.  cd /usr/share
     tar xfvz linux-um_2.6.28.10-1m.orig.tar.gz
     ln -s linux-um- linux-um
     mv linux-um/linux- /usr/share/vnuml/kernels/
     ln -s /usr/share/vnuml/kernels/linux- /usr/share/vnuml/kernels/linux
  9. Install root-filesystem. Download and install the latest filesystemwith:
  10. cd /usr/share/vnuml/filesystem/
    wget http://www.dit.upm.es/vnuml/download/scripts/root-fs-installer
    perl root-fs-installer
  11. Create ssh keys with:
  12.  ssh-keygen -t rsa1
  13. Test the installation with:
  14.  cd /usr/share/vnuml/examples
     vnumlparser.pl -t simple.xml -v -u root -Z -w 45
  15. Note for Fedora 11 only: If SElinux is activated (it is by default) it gives an error when starting VNUML scenarios: SELinux is preventing linux (unconfined_t) "mmap_zero" to <Unknown> (unconfined_t)". To solve the error, it is suggested to execute the following command:
  16.  setsebool -P allow_unconfined_mmap_low 1

    Disclaimer: I do not know exactly what are the security implications of executing this command. But it solves the problem and VNUML works...