Configuring a Server with an ISO Image Installed (Ubuntu 18.04 or 20.04)

For Cloud Servers

This article explains how to configure the network and install the SSH server after installing an Ubuntu 18.04 or an Ubuntu 20.04 ISO image. Additionally, you will learn how to install the open-vm-tools after installing a custom ISO image or an older version of an installation.

By default, the IONOS images include VMware Tools. These VMware Tools consist of a set of utilities that are needed to ensure the proper operation of your server. In the ISO images offered by IONOS, the open-vm-tools are already pre-installed. The open-vm-tools are the open-source implementation of the VMware Tools.

Requirements
  • You have already installed Ubuntu 18.04 or Ubuntu 20.04.

  • You skipped the network configuration during the distribution installation.

  • You are in the Cloud Panel in the Infrastructure > Server section.

Logging In to the Server Using the KVM Console

After installing the ISO image, the server is only accessible using the KVM console if the network is not configured. To log in to the server using the KVM console, follow these steps:

  • Click Actions > Start KVM Console, and then click OK in the KVM Console window.

    The KVM Console opens in a new tab.

  • Log in to the server as an administrator.

Configuring the Network

The method of configuring the network in Ubuntu 18.04 is different from older methods. Unlike previous versions, Ubuntu 18.04 uses Netplan. Netplan is used to configure network interfaces and replaces the previous configuration using the /etc/network/interfaces file. The configuration is done using .yaml files.

To configure the network, follow these steps:

  • To identify the network interface, enter the following command:
    ip link

  • To open the configuration file with the vi editor, enter the following command:

    Ubuntu 18.04
    sudo vi /etc/netplan/50-cloud-init.yaml
    Ubuntu 20.04
    sudo vi /etc/netplan/99_config.yaml

Note

The vi editor has an insert mode and a command mode. You can enter the insert mode by pressing the i key. In this mode, the entered characters are immediately inserted into the text. To enter the command mode, press the ESC key afterwards. When you use command mode, your keyboard input is interpreted as a command.

  • Insert the following lines and replace the placeholder INTERFACE with the used network interface:
    network:
    version: 2
    renderer: networkd
    ethernets:
    INTERFACE:
    dhcp4: yes

    Example:
    network:
    version: 2
    renderer: networkd
    ethernets:
    ens192:
    dhcp4: yes

  • To save the changes, press ESC and type :wq. Then press Enter.

Attention

Take note the exact number of spaces while entering. Otherwise, an error message will be displayed.

  • To validate the network configuration, enter the following command:
    sudo netplan try
    If an error is displayed, enter the following command to debug the network configuration:
    sudo netplan --debug apply

  • To apply the changes, enter the following command:
    sudo netplan apply

Installing open-vm-tools

By default, the open-vm-tools are already pre-installed in the ISO images offered by IONOS. If you use your own ISO image or an older version of an installation, the open-vm-tools may not be included. In this case, follow these steps to install the open-vm-tools:

  • Run an update:
    sudo apt-get update

  • If your server does not have a graphical interface installed, install open-vm-tools. To do this, type the following command:
    sudo apt-get install open-vm-tools
    If your server's operating system has a graphical interface, install open-vm-tools-desktop. To do this, type the following command:
    sudo apt-get install open-vm-tools-desktop

Please Note

If your Linux distribution does not offer the open-vm-tools package, you can load the VMWare Tools Linux DVD from the Cloud Panel and then install VMWare Tools. Please note that this is not the method recommended by VMWare.

For more information about open-vm-tools, click here:

VMware Support for open-vm-tools (2073803)

Installing the SSH Server

SSH is installed by default in the IONOS images. If you are using an ISO image, you can select and install SSH during the operating system installation process. If you did not install SSH during the installation of the ISO image, you can install this service later. To do this, follow these steps:

  • Perform an update. To do this, enter the following command:
    sudo apt-get update

  • To install the OpenSSH software package, type the following command:
    sudo apt-get install openssh-server

  • Check if the installation was successful. To do this, enter the following command:
    sudo service ssh status

  • If the SSH service is active, type q to return to the command prompt.

    If the SSH service is not active, restart the SSH service and then check the status again. To restart the SSH service, type the following command:

    sudo service ssh restart