Difference between revisions of "Fedora11"
(15 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | ==Installing VNUML over Fedora 11 | + | ==Installing VNUML over Fedora 11/12 == |
− | + | This HowTo describes how to install VNUML over a fresh Fedora 11/12 installation. | |
− | |||
− | This HowTo describes how to install VNUML over a fresh Fedora 11 installation. | ||
<br> | <br> | ||
Line 10: | Line 8: | ||
<ol> | <ol> | ||
− | <li>Install Fedora | + | <li>Install Fedora 11 and update it: |
− | |||
− | |||
− | |||
− | |||
</li> | </li> | ||
− | |||
yum update | yum update | ||
− | <li>Install | + | <li>Install basic development tools and other packages needed by VNUML: |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</li> | </li> | ||
− | perl - | + | 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 | ||
− | + | <li>Install VNUML. Dowload latest vnuml tar file from http://prdownloads.sourceforge.net/vnuml/vnuml_1.8.9.orig.tar.gz?download and: | |
− | |||
− | |||
− | |||
− | <li>Install | ||
</li> | </li> | ||
− | + | tar xfvz vnuml_1.8.9.orig.tar.gz | |
− | + | cd vnuml-1.8.9 | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | tar xfvz | ||
− | cd vnuml-1.8. | ||
ln -s /usr/lib/perl5 /usr/local/lib/ | ln -s /usr/lib/perl5 /usr/local/lib/ | ||
ln -s /usr/local/lib/perl5/vendor_perl /usr/local/lib/perl5/site_perl | ln -s /usr/local/lib/perl5/vendor_perl /usr/local/lib/perl5/site_perl | ||
Line 53: | Line 30: | ||
make install # You have to press ENTER several times | make install # You have to press ENTER several times | ||
− | <li>Install VNUML kernel. Download the latest UML kernel from | + | <li>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: |
</li> | </li> | ||
cd /usr/share | cd /usr/share | ||
− | tar xfvz linux-um_2.6. | + | tar xfvz linux-um_2.6.28.10-1m.orig.tar.gz |
− | ln -s linux-um-2.6. | + | ln -s linux-um-2.6.28.10-1m/ linux-um |
− | mv linux-um/linux-2.6. | + | mv linux-um/linux-2.6.28.10-1m /usr/share/vnuml/kernels/ |
− | ln -s /usr/share/vnuml/kernels/linux-2.6. | + | ln -s /usr/share/vnuml/kernels/linux-2.6.28.10-1m /usr/share/vnuml/kernels/linux |
− | <li>Install root-filesystem. Download | + | <li>Install root-filesystem. Download and install the latest filesystemwith: |
</li> | </li> | ||
− | |||
cd /usr/share/vnuml/filesystem/ | cd /usr/share/vnuml/filesystem/ | ||
− | + | wget http://www.dit.upm.es/vnuml/download/scripts/root-fs-installer | |
+ | perl root-fs-installer | ||
<li>Create ssh keys with: | <li>Create ssh keys with: | ||
Line 75: | Line 52: | ||
</li> | </li> | ||
cd /usr/share/vnuml/examples | cd /usr/share/vnuml/examples | ||
− | vnumlparser.pl -t simple.xml -v -u root | + | vnumlparser.pl -t simple.xml -v -u root -Z -w 45 |
+ | |||
+ | <li>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:</li> | ||
+ | |||
+ | 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... | ||
</ol> | </ol> |
Latest revision as of 17:43, 18 February 2010
Installing VNUML over Fedora 11/12
This HowTo describes how to install VNUML over a fresh Fedora 11/12 installation.
Installation steps:
- Install Fedora 11 and update it:
- Install basic development tools and other packages needed by VNUML:
- Install VNUML. Dowload latest vnuml tar file from http://prdownloads.sourceforge.net/vnuml/vnuml_1.8.9.orig.tar.gz?download and:
- 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:
- Install root-filesystem. Download and install the latest filesystemwith:
- Create ssh keys with:
- Test the installation with:
- 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:
yum update
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
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
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
cd /usr/share/vnuml/filesystem/ wget http://www.dit.upm.es/vnuml/download/scripts/root-fs-installer perl root-fs-installer
ssh-keygen -t rsa1
cd /usr/share/vnuml/examples vnumlparser.pl -t simple.xml -v -u root -Z -w 45
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...