For Cloud Servers

This guide describes how to configure the network and install SSH servers after installing an Ubuntu 16.04 ISO image. In addition, you will learn how to install 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 16.04.

  • You skipped the network configuration during the installation of the distribution.

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

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.

Configuring the Network

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

  • To open the configuration file /etc/network/interfaces with the vi editor, enter the following command:
    sudo vi /etc/network/interfaces

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.

  • Add the following lines below the entry iface lo inet loopback and replace the placeholder NETWORKINTERFACE with the used network interface:
    auto NETWORKINTERFACE
    iface NETWORKINTERFACE inet dhcp

    Example:
    auto ens192
    iface ens192 inet dhcp

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

  • To enable the interface, type the following command:
    systemctl restart networking

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. If that is the 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 download the VMWare Tools Linux DVD from the Cloud Panel and then install it. 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 an 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