Difference between revisions of "Fedora7"

From VNUML-WIKI
Jump to: navigation, search
(Installing VNUML over Fedora 7)
m (Reverted edits by Fgalan (Talk); changed back to last version by David)
 
(34 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Installing VNUML over Fedora 7==
+
==Installing VNUML over Fedora 7/8==
 +
 
 +
This HowTo describes how to install VNUML over a fresh Fedora 7/8 installation. Note that it is a preliminary version. Let us know if it does not work for you.
  
 
<br>
 
<br>
  
{| border="1" cellspacing="0" cellpadding="5" align="center" style="width:85%"
+
Installation steps:
! style="font-weight:bold;color:#ffffff;background:#C00000" | '''Important note:'''
+
 
|-
+
<ol>
|
 
Do not use <consoles> with id=0 (use id="1" instead). For example, edit your scenarios and change:
 
  
    <console id="0">xterm</console>
+
<li>Install Fedora 7/8 and make sure basic development tools are installed. Use the following command to install them if needed:
 +
</li>
 +
yum groupinstall "Development Tools"
  
to:
+
<li>Update the system with:
 +
</li>
  
    <console id="1">xterm</console>
+
yum update
  
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.
+
<li>Install the following packages needed by VNUML:
|-
+
</li>
|}
 
  
<br>
+
yum install bridge-utils readline-devel perl-Module-Build screen expat-devel libpcap-devel perl-Net-Pcap perl-NetAddr-IP perl-Net-IPv6Addr perl-XML-DOM perl-Exception-Class perl-TermReadKey perl-Error perl-CPAN
  
 +
<!--li>Install the following perl modules:
 +
</li>
  
Installation steps:
+
perl -MCPAN -e "install Net::IPv6Addr; NetAddr::IP"
  
<ol>
+
Answer "no" when asked if you are ready for manual configuration. If any of the modules does not install correctly, try with "force". For example:
  
<li>Install "bridge-utilities" which is available from Yast2
+
perl -MCPAN -e "force install Net::Pcap"
 +
-->
 +
<li>Install uml_utilities:
 
</li>
 
</li>
  
<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:
+
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
 +
 
 +
<li>Installl VNUML. Dowload latest vnuml tar file from http://www.dit.upm.es/vnumlwiki/index.php/Download and:
 
</li>
 
</li>
 +
tar xfvz  vnuml_1.8.3.orig.tar.gz
 +
cd vnuml-1.8.3
 +
./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....")
  
rpm -i uml-utilities-20040406-35.i586.rpm
+
<li>Install VNUML kernel. Download "linux-um" package from VNUML site and:
 +
</li>
 +
  cd /usr/share
 +
  tar xfvz linux-um_2.6.18.1-bb2-xt-4m.orig.tar.gz
 +
  ln -s linux-um-2.6.18.1-bb2-xt-4m linux-um
 +
  mv linux-um/linux-2.6.18.1-bb2-xt-4m /usr/share/vnuml/kernels
 +
  ln -s /usr/share/vnuml/kernels/linux-2.6.18.1-bb2-xt-4m /usr/share/vnuml/kernels/linux
  
<li>Install the following perl modules from CPAN using this command:
+
<li>Install root_fs using [http://www.dit.upm.es/vnumlwiki/index.php/Root-fs-installer root-fs-instaler] installer script:
 
</li>
 
</li>
   perl -MCPAN -e "install Net::Pcap; install Module::Build; install Net::IPv6Addr; force install NetAddr::IP"
+
  cd /usr/share/vnuml/filesystems
 +
  wget http://www.dit.upm.es/vnuml/download/scripts/root-fs-installer
 +
   perl root-fs-installer
  
Note: basic c/c++ development tools (gcc, make, etc) must be installed for this step to work.
+
<li>Create ssh keys with:
 +
</li>
 +
  ssh-keygen -t rsa1
  
<li>Download the latest version of vnuml parser from [http://www.dit.upm.es/vnuml/#download VNUML site] and install it:  
+
<li>Test the installation with:
 
</li>
 
</li>
 +
  cd /usr/share/vnuml/examples:
 +
  vnumlparser.pl -t simple.xml -v -u root
  
 
</ol>
 
</ol>
 +
 +
 +
<br>
 +
 +
{| border="1" cellspacing="0" cellpadding="5" align="center" style="width:85%"
 +
! style="font-weight:bold;color:#ffffff;background:#C00000" | '''Important note:'''
 +
|-
 +
|
 +
If you use kernel 2.6.18.1-bb2-xt-3m or older, 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.
 +
 +
In any case, it is strongly recommended to update to the latests kernel version to avoid this problem.
 +
 +
|-
 +
|}

Latest revision as of 21:34, 9 July 2008

Installing VNUML over Fedora 7/8

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


Installation steps:

  1. Install Fedora 7/8 and make sure basic development tools are installed. Use the following command to install them if needed:
  2. yum groupinstall "Development Tools"
    
  3. Update the system with:
  4. yum update
    
  5. Install the following packages needed by VNUML:
  6. yum install bridge-utils readline-devel perl-Module-Build screen expat-devel libpcap-devel perl-Net-Pcap perl-NetAddr-IP perl-Net-IPv6Addr perl-XML-DOM perl-Exception-Class perl-TermReadKey perl-Error perl-CPAN
    
  7. Install uml_utilities:
  8. 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
    
  9. Installl VNUML. Dowload latest vnuml tar file from http://www.dit.upm.es/vnumlwiki/index.php/Download and:
  10. tar xfvz  vnuml_1.8.3.orig.tar.gz
    cd vnuml-1.8.3
    ./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....")
    
  11. Install VNUML kernel. Download "linux-um" package from VNUML site and:
  12.  cd /usr/share
     tar xfvz linux-um_2.6.18.1-bb2-xt-4m.orig.tar.gz
     ln -s linux-um-2.6.18.1-bb2-xt-4m linux-um 
     mv linux-um/linux-2.6.18.1-bb2-xt-4m /usr/share/vnuml/kernels
     ln -s /usr/share/vnuml/kernels/linux-2.6.18.1-bb2-xt-4m /usr/share/vnuml/kernels/linux
    
  13. Install root_fs using root-fs-instaler installer script:
  14.  cd /usr/share/vnuml/filesystems
     wget http://www.dit.upm.es/vnuml/download/scripts/root-fs-installer
     perl root-fs-installer
    
  15. Create ssh keys with:
  16.  ssh-keygen -t rsa1
    
  17. Test the installation with:
  18.  cd /usr/share/vnuml/examples:
     vnumlparser.pl -t simple.xml -v -u root
    



Important note:

If you use kernel 2.6.18.1-bb2-xt-3m or older, 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.

In any case, it is strongly recommended to update to the latests kernel version to avoid this problem.