Vyatta NOS documentation

Learn how to install, configure, and operate Vyatta Network Operating System (Vyatta NOS), which helps to drive our virtual networking and physical platforms portfolio.

Set up the HTTP server

How to configure the HTTP server and modify the file and directory names.

You can use any HTTP server for access to the ISO image.

This example gives the procedure for an Apache2 server.

Modify the file and directory names as needed for your release.

  1. Install the Apache server.
    ~$ sudo apt-get install apache2
  2. Navigate to the HTML root directory.
    This varies by distribution. In Debian, it is located under /var/www/html/.
    ~$ cd /var/www/html/
  3. Create the boot directory.
    ~$ sudo mkdir iso
  4. Place the Vyatta NOS ISO in the directory you created.
    ~$ pwd 
    /var/www/html/iso 
    ~$ 1$ ls -la 
    total 318472 
    drwxrwxrwx 2 root root  4096      Jun 6 14:38 . 
    drwxr-xr-x 3 root root  4096      Jun 6 13:22 .. 
    -rwx------ 1 tme  tme   326107136 Jun 6 14:46 livecd-VR5600_4.2R1_amd64.iso
    ~$
  5. Place the memdisk utility in ${html_root}/memdisk.
    ~$ sudo cp /usr/lib/syslinux/memdisk /var/www/html/memdisk 
    ~$ ls -la /var/www/html/ 
    total 52 
    drwxr-xr-x 3 root root      4096   Jun 7 19:28 . 
    drwxr-xr-x 3 root root      4096   Jun 6 13:17 .. 
    drwxrwxrwx 2 root root      4096   Jun 6 14:38 4.2R1 
    -rw-r--r-- 1 root root      11510  Jun 6 13:17 index.html 
    -rw-r--r-- 1 root root      26140  Jun 7 19:28 memdisk
    ~$
  6. If you want to boot using a custom command instead of memdisk, extract initrd.img and vmlinuz and place them in the http home directory.
    In the example, the directory is /var/www/html.
    ~$ sudo mount /var/www/html/iso/livecd-VR5600_5.2R1_amd64.iso /mnt
    mount: block device /var/www/html/iso/livecd-VR5600_5.2R1_amd64.iso is write-protected, 
    mounting read-only 
    ~$ ls -la /mnt 
    total 17 
    dr-xr-xr-x 1 root root 2048 May 12 22:15 . 
    drwxr-xr-x 22 root root 4096 Jun 5 19:29 .. 
    dr-xr-xr-x 1 root root 2048 May 12 22:15 .disk 
    dr-xr-xr-x 1 root root 2048 May 12 22:15 isolinux 
    dr-xr-xr-x 1 root root 2048 May 12 22:15 live 
    -r--r--r-- 1 root root 1605 May 12 22:15 md5sum.txt 
    -r--r--r-- 1 root root 2414 May 12 22:15 sha256sum.txt 
    
    ~$ ls -la /mnt/live/ 
    total 317542 
    dr-xr-xr-x 1 root root 2048       May 12 22:15 . 
    dr-xr-xr-x 1 root root 2048       May 12 22:15 .. 
    dr-xr-xr-x 1 root root 2048       May 12 22:15 config 
    -r--r--r-- 1 root root 655        May 12 12:19 config.conf 
    dr-xr-xr-x 1 root root 2048       May 12 22:15 config-hooks 
    -r--r--r-- 1 root root 22705      May 12 22:15 filesystem.packages 
    -r--r--r-- 1 root root 1          May 12 22:15 filesystem.packages-remove 
    -r--r--r-- 1 root root 11         May 12 22:15 filesystem.size 
    -r--r--r-- 1 root root 301760512  May 12 22:15 filesystem.squashfs 
    -r--r--r-- 1 root root 19063020   May 12 22:15 initrd.img 
    -r--r--r-- 1 root root 107778     May 12 22:15 packages.txt 
    -r--r--r-- 1 root root 4197632    May 12 22:15 vmlinuz 
    
    ~$ sudo cp /mnt/live/vmlinuz /var/www/html/ 
    ~$ sudo cp /mnt/live/initrd.img /var/www/html/

The ISO for Vyatta NOS is now available at:http://server-ip/5.2R1/livecd-VR5600_5.2R1_amd64.iso, where server-ip is the IP address of the HTTP server (in this case, 192.168.100.10).