Difference between revisions of "Fedora7"

From VNUML-WIKI
Jump to: navigation, search
(Installing VNUML over Fedora 7)
(Installing VNUML over Fedora 7)
Line 54: Line 54:
 
  make install
 
  make install
  
 +
<li>Install VNUML kernel. Download "linux-um" package from VNUML site and:
 +
<7li>
 +
  cd /usr/share
 +
  tar xfvz linux-um_2.6.18.1-bb2-xt-2m.orig.tar.gz
 +
  ln -s linux-um_2.6.18.1-bb2-xt-2m linux-um
 +
  mv linux-um/linux-um_2.6.18.1-bb2-xt-2m /usr/share/vnuml/kernels
 +
  ln -s /usr/share/vnuml/kernels/linux-um_2.6.18.1-bb2-xt-2m /usr/share/vnuml/kernels/linux
  
 
+
<li>Install root_fs. Download root-fs-instaler installer script from http://www.dit.upm.es/vnumlwiki/index.php/Root-fs-installer and:
 
 
 
 
 
 
 
 
 
 
<li>Install "bridge-utilities" which is available from Yast2
 
 
</li>
 
</li>
 +
  cd /usr/share/vnuml/filesystems
 +
  perl root-fs-instaler
  
<li>Download uml-utilities from [http://download.opensuse.org/distribution/10.2/repo/oss/suse/i586/uml-utilities-20040406-35.i586.rpm here] and install them:
+
<li>Create ssh keys with:
 
</li>
 
</li>
 +
  ssh-keygen -t rsa1
  
rpm -i uml-utilities-20040406-35.i586.rpm
+
<li>Test the installation with:
 
 
<li>Install the following perl modules from CPAN using this command:
 
</li>
 
  perl -MCPAN -e "install Net::Pcap; install Module::Build; install Net::IPv6Addr; force install NetAddr::IP"
 
 
 
Note: basic c/c++ development tools (gcc, make, etc) must be installed for this step to work.
 
 
 
<li>Download the latest version of vnuml parser from [http://www.dit.upm.es/vnuml/#download VNUML site] and install it:  
 
 
</li>
 
</li>
 +
  cd /usr/share/vnuml/examples:
 +
  vnumlparser.pl -t simple.xml -v -u root
  
 
</ol>
 
</ol>

Revision as of 14:30, 22 September 2007

Installing VNUML over Fedora 7


Important note:

Do not use <consoles> with id=0 (use id="1" instead). For example, edit your scenarios and change:

   <console id="0">xterm</console>

to:

   <console id="1">xterm</console>

If you use console id="0" the scenarios will start and work normally, but the virtual machines will hang when stopping the scenario using "-d" option.


This HowTo describes how to install VNUML over a fresh Fedora 7 installation. Note that it is a preliminary version. Let us know if it does not work for you.

Installation steps:

  1. Install Fedora 7 and make sure basic development tools are installed.
  2. Update the system with:
  3. yum update
    
  4. Install the following packages needed by VNUML:
  5. yum install bridge-utils readline-devel perl-Module-Build screen expat-devel libpcap-devel
    
  6. Install the following perl modules:
  7. perl -MCPAN -e "install Net::Pcap; Net::IPv6Addr; NetAddr::IP"
    

    If any of the modules does not install correctly, try with "force". For example:

    perl -MCPAN -e "force install Net::Pcap"
    
  8. Install uml_utilities:
  9. wget http://www.user-mode-linux.org/~blaisorblade/uml-utilities/uml_utilities_20060323.tar.bz2
    tar xfvj uml_utilities_20060323.tar.bz2
    cd tools-20030323
    make 
    make install
    
  10. Install VNUML kernel. Download "linux-um" package from VNUML site and: <7li> cd /usr/share tar xfvz linux-um_2.6.18.1-bb2-xt-2m.orig.tar.gz ln -s linux-um_2.6.18.1-bb2-xt-2m linux-um mv linux-um/linux-um_2.6.18.1-bb2-xt-2m /usr/share/vnuml/kernels ln -s /usr/share/vnuml/kernels/linux-um_2.6.18.1-bb2-xt-2m /usr/share/vnuml/kernels/linux
  11. Install root_fs. Download root-fs-instaler installer script from http://www.dit.upm.es/vnumlwiki/index.php/Root-fs-installer and:
  12.  cd /usr/share/vnuml/filesystems
     perl root-fs-instaler
    
  13. Create ssh keys with:
  14.  ssh-keygen -t rsa1
    
  15. Test the installation with:
  16.  cd /usr/share/vnuml/examples:
     vnumlparser.pl -t simple.xml -v -u root