Reinstalling vSLX in a container

After reinstalling the xlxc bash scripts, perform this task to upgrade or downgrade a vSLX container installation—preserving your vSLX objects and configurations.

Note

Note

This flow installs new vSLX and SLX-OS versions—while maintaining support for existing and new objects of currently installed SLX-OS versions. But if you need a clean upgrade, refer to Uninstalling vSLX completely.
  1. In vShell, make sure that all devices (chassis and workstations) are powered off.
    (vsh) poweroff ch_9540_01
  2. Make sure that any container VMs are closed.
  3. Verify that all is ready for vSLX reinstallation, as follows:
    1. List the new SLX distribution directory.
      root@VLAB1:~# ls /slxos-dist
      extreme-lxc_2.1.0.deb  slxos18r.2.00  slxos18r.2.00.tar.gz  vslx_2.1.0.deb  vslx2.1.0.tar.gz
      Note

      Note

      You can also list included directories.
    2. Enter the ping command—specifying a known URL—to verify that you have internet connectivity.
      root@VLAB1:~# ping example.com
  4. Uninstall the current vSLX distribution—preserving your vSLX objects and configurations.
    root@VLAB1:~$ sudo dpkg -r vslx
  5. Install the vSLX debian package.
    root@VLAB1:/slxos-dist# sudo dpkg -i /slxos-dist/vslx_2.1.0.deb
    Selecting previously unselected package vslx.
    (Reading database ... 13616 files and directories currently installed.)
    Preparing to unpack ./vslx_2.1.0.deb ...
    Unpacking vslx (2.1.0) ...
    Setting up vslx  (2.1.0) ...
  6. Run the post-installation script.
    root@VLAB1:~# /VM/postinst-setup.sh
    Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
    Hit:2 http://archive.ubuntu.com/ubuntu xenial InRelease 
    Get:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]           
    Fetched 204 kB in 1s (202 kB/s)                              
    Reading package lists... Done
    Reading package lists... Done
  7. On the host, stop and restart the container.
    vlab1_user@ubuntu:~$ sudo xlxc stop VLAB1
    vlab1_user@ubuntu:~$ sudo xlxc start VLAB1
    
  8. Verify that vSLX and Extreme-lxc are installed.
    user@ubuntu1:~$ dpkg --get-selections  | grep vslx
    vslx                                            install
    user@ubuntu1:~$ dpkg --get-selections  | grep extreme-lxc
    extreme-lxc                                     install