Vnx-install-fedora

From VNX
Jump to: navigation, search

VNX Installation over Fedora

Follow this steps to install VNX over Fedora 11:

  • Install packages:
  • yum -y groupinstall "Development Tools"
    yum install qemu-kvm libvirt virt-manager virt-viewer perl-XML-LibXML
    yum install perl-XML-DOM perl-NetAddr-IP perl-Readonly perl-TermReadKey
    yum install perl-Net-Pcap perl-Net-IPv6Addr perl-Net-Telnet perl-Error
    yum install perl-Exception-Class perl-ExtUtils-MakeMaker tunctl screen wget
    yum install libxml2-devel gnutls-devel device-mapper-devel uml_utilities 
    yum install roxterm xterm graphviz perl-AppConfig tree libio-pty-perl curl w3m  picocom expect pv
    
  • Install libvirt 0.8.5:
  • /etc/init.d/libvirtd stop
    wget http://libvirt.org/sources/libvirt-0.8.5.tar.gz
    tar xfvz libvirt-0.8.5.tar.gz
    cd libvirt-0.8.5
    ./configure --without-xen --prefix=/usr && make && make install
    /etc/init.d/libvirtd start
    
  • Install SysVirt manually:
  • wget http://search.cpan.org/CPAN/authors/id/D/DA/DANBERR/Sys-Virt-0.2.4.tar.gz
    tar xfvz Sys-Virt-0.2.4.tar.gz
    cd Sys-Virt-0.2.4
    perl Makefile.PL
    make install
    
  • Add symbolic link for kvm:
  • ln -s /usr/bin/qemu-kvm /usr/bin/kvm
    
  • Install VNX:
  • mkdir /tmp/vnx-update
    cd /tmp/vnx-update
    wget -N http://vnx.dit.upm.es/vnx/vnx-latest.tgz
    tar xfvz vnx-latest.tgz
    cd vnx-*
    ./install_vnx
    
  • Create the VNX config file (/etc/vnx.conf). You just can move the sample config file:
  • mv /usr/share/vnx/etc/vnx.conf.sample /etc/vnx.conf
    
  • Disable host firewall or, alternatively, configure "tun" type network interfaces as trusted interfaces (System->Firewall->Trusted Interfaces).
  • Download root file systems from http://idefix.dit.upm.es/download/vnx/filesystems and install them following these instructions
  • Additional install steps for Dynamips support

    • Install Dynamips and Dynagen:
    wget http://downloads.sourceforge.net/project/dyna-gen/dynamips%20Linux%20RPM/0.2.8-RC2/dynamips-0.2.8RC2-1.i386.rpm
    rpm -i dynamips-0.2.8RC2-1.i386.rpm
    wget http://downloads.sourceforge.net/project/dyna-gen/dynagen%20source%20_%20Linux/dynagen%200.11.0/dynagen-0.11.0-1.fc9.noarch.rpm
    rpm -i dynagen-0.11.0-1.fc9.noarch.rpm
    
    • Add dynamips to system start-up and start it manually for this time:
    chkconfig --add dynamips
    /etc/init.d/dynamips start
    
    • Download and install cisco IOS image:
     cd /usr/share/vnx/filesystems
     # Cisco image
     wget ... c3640-js-mz.124-19.image
     ln -s c3640-js-mz.124-19.image c3640
    
    dynagen /usr/share/vnx/examples/R.net
    console R     # type 'no' to exit the config wizard and wait 
                  # for the router to completely start 
    idle-pc get R
    

    Once you know the idle-pc value for your system, include it in /etc/vnx.conf file.