Suse10.3

From VNUML-WIKI
Jump to: navigation, search

Installing VNUML over Suse 10.3

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.


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. See https://lists.dit.upm.es/pipermail/vnuml-users/2007-September/000664.html for more details.


Installation steps:

  1. Install Suse 10.3 and make sure basic development tools are installed (base development package group).
  2. Enable community repositories in Yast2


  3. Install the following packages needed by VNUML:
  4. zypper install readline-devel bridge-utils screen perl-Module-Build 
    
    yum install expat-devel libpcap-devel perl-Net-Pcap perl-NetAddr-IP perl-Net-IPv6Addr
    
  5. Install uml_utilities:
  6. wget http://www.user-mode-linux.org/~blaisorblade/uml-utilities/uml_utilities_20060323.tar.bz2
    tar xfvj uml_utilities_20060323.tar.bz2
    cd tools-20060323
    make 
    make install
    
  7. Installl VNUML. Dowload latest vnuml tar file from http://www.dit.upm.es/vnumlwiki/index.php/Download and:
  8. tar xfvz  vnuml_1.8.2beta3.orig.tar.gz
    cd vnuml-1.8.2beta3
    ./configure --with-build_modules --prefix="/usr"
    make 
    make install   # answer NO when asked about manual configuration; 
                   # answer YES when asked "Shall I follow them and prepend....")
    
  9. Install VNUML kernel. Download "linux-um" package from VNUML site and:
  10.  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-2.6.18.1-bb2-xt-2m /usr/share/vnuml/kernels
     ln -s /usr/share/vnuml/kernels/linux-2.6.18.1-bb2-xt-2m /usr/share/vnuml/kernels/linux
    
  11. Install root_fs using root-fs-instaler installer script:
  12.  cd /usr/share/vnuml/filesystems
     wget http://www.dit.upm.es/vnuml/download/scripts/root-fs-installer
     perl root-fs-installer
    
  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