Professional Documents
Culture Documents
0
Installation Guide for Docker Hosts
Table of Content
The CSM Server 4.0 architecture is based on Docker containers which gives an easy and fast
upgrade path to the latest releases.
Please note this installation guide is not applicable to any CSM versions prior 4.0.
Prerequisites
System Requirements
The host operating system requires SystemD Linux distribution with Docker installed.
The minimum hardware requirements:
• 2 CPUs
• 8 GB RAM
• 30 GB HDD
For the larger network it is recommended to increase the number of vCPUs to be able to run
more network installation operations at the same time effectively. Also, the hard disk space
may be adjusted to store images and packages and logs from the operations.
SystemD
The list of popular Linux distribution where SystemD is supported by default is provided in
below table.
It is assumed that Docker is installed on the host operating system. CSM works with both
Docker Community Edition (CE) and Docker Enterprise Edition (EE).
The Table 2 provides links to detailed Docker installation guides for various operating
systems.
Cisco recommends using CentOS or Red Hat Enterprise Linux for host operating system
running CSM Server 4.0.
If CSM is installed behind a HTTPS proxy, for example in corporate settings, it is required to
add specific configuration in the Docker SystemD service file. This configuration allows the
Docker daemon to pull the containers from the repository using the HTTPS Proxy.
4. Restart Docker:
$ sudo systemctl restart docker
5. Verify that the configuration has been loaded:
$ systemctl show --property=Environment docker
Environment=HTTPS_PROXY=http://proxy.example.com:443/
To check if Docker is installed properly and up and running the following command can be
issued:
To verify whether the Docker demon is configured properly and able to pull the images from
the repository pull and execute the test container:
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/
If CSM is installed behind a HTTPS proxy, for example in corporate settings, it is required to
add specific configuration in the Docker SystemD service file. This configuration allows the
Docker daemon to pull the containers from the repository.
4. Restart Docker:
$ sudo systemctl restart docker
CSM Server requires a HTTPS connection to Cisco Site for downloading the latest information
about the currently posted software packages and SMUs. It also periodically checks if there
is the newer version of the CSM itself. Please follow the below section, if the host server
requires proxy configuration.
If the host server is located behind the corporate proxy make sure the http_proxy
environment variable is set:
$ export https_proxy=http://proxy.example.com:80/
To make proxy setting permanent many operations systems uses /etc/environment file to
setup the system wide proxy.
cat /etc/environment
https_proxy=<your proxy address here>
To verify that corporate proxy is set up properly for the installation run:
$ sudo env | grep proxy
https_proxy=http://proxy.esl.cisco.com:80/
$
You should see the https_proxy variable set accordingly your corporate requirements.
Running the installation script
$ curl -L https://devhub.cisco.com/artifactory/software-manager-install-group/install.sh -O
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 15544 100 15544 0 0 33089 0 --:--:-- --:--:-- --:--:-- 33072
$
$ chmod +x install.sh
The CSM Server uses TCP port 5000 to provide access to Graphical User Interface (GUI).
To get access to the CSM Server page open http://<server_ip>:5000 in web browser, where
“server_ip” is the IP address or Hostname of the Linux server.
After couple of seconds the splash screen should be available informing about the
installation process in progress.
Depending on the Internet connection throughput the installation process should not take
more than 10 minutes to get the CSM Server fully installed and operating.
After a while the initial login window appears automatically. If not please refresh the page.
It is strongly recommended to change the password for user root right after the first login.
For more information please refer to the CSM User Guide by clicking Help from the top
menu bar of the CSM GUI, and selecting “Admin Tools”.
$ sudo csm-uninstall
Warning: This command will DELETE all the CSM containers and shared data folder from the host.
Are you sure you wish to continue (yes/no)? yes
Stopping csm-supervisor service
Disabling csm-supervisor service
Stopping CSM containers
Removing CSM containers
Removing CSM images
Removing CSM Docker bridge network
Removing CSM config file: /etc/csm.json
Removing CSM data folder /usr/share/csm (database, logs, certificated, plugins, local repository)
Are you sure you wish to continue (yes/no)? yes
CSM data folder deleted
$
During the uninstallation the CSM data folder can be saved. It gives possible to completely
remove the CSM images and then reinstall with preserving the data.