CoLinux-vnuml

From VNUML-WIKI
Jump to: navigation, search

VNUML coLinux image

As stated in coLinux web site, "Cooperative Linux is the first working free and open source method for optimally running Linux on Microsoft Windows natively".

VNUML coLinux image allows you to easily test and use VNUML over a Microsoft Windows machine. It is based on coLinux Debian Etch root file system with VNUML tool version 1.8.3 installed, together with root_fs_tutorial-0.5.1 and n3vlr-0.11-vnuml-v0.1.img root file systems. The default file system used is n3vlr-0.11-vnuml-v0.1.img.

Requirements:

  • To run most of VNUML example scenarios over colinux-vnuml using the full rootfile system (root_fs_tutorial-0.5.1) you need a Windows host machine with more that 512 Mbytes of memory (750 Mbytes recomended).
  • Small root file system (n3vlr-0.11-vnuml-v0.1.img) allows running most of the examples over a computer with just 512 Mbytes.

To install and use colinux-vnuml:

  • Install coLinux in your computer. Just download coLinux-0.7.2 installation exe file and execute it. Install it on whatever directory you want (i.e. c:\colinux); you do not need to download any root file system during instalation.
  • Download coLinux VNUML image 1.0 and unzip it to the directory where you have installed coLinux (i.e. c:\colinux).
  • Enter colinux-vnuml directory (i.e c:\colinux\colinux-vnuml-1.0) and double click on the start.bat script. That will start the Debian virtual machine. Once the virtual machine has started you can login using:
  •  username: root
     password: root
    
  • In order to have network connectivity between the virtual machine and the host, you have to configure the ip address of the TAP interface automatically created during coLinux instalation. Just go to "Control Panel->Network" and set the IP address of the TAP interface to 10.0.2.1/255.255.255.0. Once it is configured, test the connectivity between the host and the virtual machine with a ping:
  • C:\>ping 10.0.2.15 -n 2
    
    Haciendo ping a 10.0.2.15 con 32 bytes de datos:
    
    Respuesta desde 10.0.2.15: bytes=32 tiempo<1m TTL=64
    Respuesta desde 10.0.2.15: bytes=32 tiempo<1m TTL=64
    
    Estadísticas de ping para 10.0.2.15:
        Paquetes: enviados = 2, recibidos = 2, perdidos = 0
        (0% perdidos),
    Tiempos aproximados de ida y vuelta en milisegundos:
        Mínimo = 0ms, Máximo = 0ms, Media = 0ms
    
  • To access the xterm consoles of VNUML virtual machines from the host, you need to install an X-windows server (you can install, for example Xming). Start the x-window server and test that you can open windows by executing on the virtual machine:
  •  export DISPLAY=10.0.2.1:0.0
     xterm
    

    You should see the xterm window opened in your host.

    If you get the error message "xterm Xt error: Can't open display: %s", check the x-windows permissions. For example, if you use Xming, just start the server using "Xlaunch" and check the "No access control option". Alternatively, you can access the virtual machine using an ssh client (i.e. putty) with X11 forwarding enabled.


  • Finally, you can test VNUML from the virtual machine:
  •  cd /usr/share/vnuml/examples
     vnumlparser.pl -t tutorial_root2.xml -v -u root
    

    Colinux-vnuml1-small.jpg