« Previous 1 2 3 Next »
Server administration with Cockpit
Fly by Sight
System Insights
The dashboard (Figure 1) provides a quick overview of CPU usage, memory consumption, and the status of other hardware components. Here, you can add more servers or edit the existing ones by clicking the plus symbol. You can toggle back and forth between the configured servers quite quickly. If no user name is specified, Cockpit prompts you for one during the login process. If errors occur, messages to that effect are displayed.
On the left side, the Cockpit's graphical web interface lists the existing or installed services and applications. Admins can see a wide variety of parameters. The Logs section contains error messages from the connected machines. You can filter error messages by Severity , with a choice of Everything , Critical , Notice , or Debug . When you click on such a message, additional details are displayed.
The Storage entry takes you to a central display that you can use to keep track of hard drive read and write speeds. You can also check out an overview of mounted mass storage devices with their partitions and remaining capacity. Another area shows data about existing NFS mounts. This section also usefully provides logfiles from the mounted storage systems.
In the Networking section, Cockpit tells you about the current network throughput on a server, also detailing the configured firewall rules, which you can edit. The network interfaces are also shown, including details about MTUs or IPv4 and IPv6 support.
New: Virtual Machines
One of the new features in Cockpit since the last article is the Virtual Machines option, where you can create and manage virtual machines. Under the hood, Cockpit relies on KVM/Qemu, and Libvirt. To use this feature, you also need to install the cockpit-machines package and set up the Libvirt daemon:
# dnf install libvirt cockpit-machines # systemctl enable libvirtd --now # systemctl enable cockpit.socket --now
Once the service is running, you can set up a new virtual machine by pressing the Create New VM
button. Managing virtual machines in Cockpit offers a central advantage over the Virtual Machine Manager (virt-manager
): You do not need a graphical interface on the server, which is probably one of the reasons Cockpit replaced virt-manager in Fedora, RHEL, and CentOS [7].
In the Pod
Wherever you find virtual machines, you normally don't have to look hard to find containers. The Podman Container section (Figure 2) is where Cockpit groups various options for Red Hat's variant of Docker. Unlike Docker, Podman doesn't use root privileges or a central daemon; otherwise, it is compatible with Docker.
The user interface in Cockpit makes using Podman even easier. Pressing the Get new image link provisions Docker images from the official repository. In the example in Figure 2, I installed the Nextcloud image from Own Your Bits [8].
Various services can be started and stopped from the Services sidebar item. Updates lets you check for new updates for the packages that make up Cockpit; further modules for Cockpit can be installed in Applications . The tools include the Image builder extension [9], which admins should be able to use to create image files (e.g., an Anaconda boot image or Live CDs). For reasons hitherto unknown, this feature did not work in our lab.
Even though admins can complete some tasks in the intuitively designed interface, you still have to switch to a terminal from time to time. Thankfully, Cockpit also comes with a terminal, found in the Terminal section on the left side of the web interface.
« Previous 1 2 3 Next »
Buy this article as PDF
(incl. VAT)