Difference between revisions of "Fedora11"

From VNUML-WIKI
Jump to: navigation, search
Line 8: Line 8:
 
<ol>
 
<ol>
  
<li>Install Fedora 11 and make sure basic development tools are installed. Use the following command to install them if needed:
+
<li>Install Fedora 11 and update it:
 
</li>
 
</li>
yum groupinstall "Development Tools"
 
 
<li>Update the system with:
 
</li>
 
 
 
  yum update
 
  yum update
  
<li>Install the following packages needed by VNUML:
+
<li>Install basic development tools and other packages needed by VNUML:
 
</li>
 
</li>
  
 +
yum -y groupinstall "Development Tools"
 
  yum -y install bridge-utils readline-devel perl-Module-Build screen expat-devel libpcap-devel   
 
  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-Net-Pcap perl-NetAddr-IP perl-Net-IPv6Addr perl-XML-DOM perl-Exception-Class

Revision as of 15:27, 18 February 2010

Installing VNUML over Fedora 11

This HowTo describes how to install VNUML over a fresh Fedora 11 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 [VNUML site] 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 
    make install   # You have to press ENTER several times
    
  7. Install VNUML kernel. Download the latest UML kernel from [VNUML site] and:
  8.  cd /usr/share
     tar xfvz linux-um_2.6.28.10-1m.orig.tar.gz
     ln -s linux-um-2.6.28.10-1m/ linux-um
     mv linux-um/linux-2.6.28.10-1m /usr/share/vnuml/kernels/
     ln -s /usr/share/vnuml/kernels/linux-2.6.28.10-1m /usr/share/vnuml/kernels/linux
    
  9. Install root-filesystem. Download one of the latest filesystems from [VNUML site] and
  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: 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...