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

This article describes how to install and configure the network after installing the Ubuntu 18.04 ISO image.

Requirements
  • You have already installed Ubuntu 18.04.

  • You skipped the network configuration during installation of Ubuntu 18.04.

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

The VMware Tools is a set of utilities that you can install into the server's operating system. Install the VMware Tools to ensure the proper operation of your server.

Note

If you have not configured the server yet, you can access it only using the KVM console.

Installing VMWare Tools:

Preparation

  • Select a server.

  • Click DVD Drive.

  • In the Applications tab, select the VMware Tools Linux DVD.

  • Click Load DVD.

Server Login Using the KVM Console

  • Click Actions > Start KVM Console. Then, click OK in the KVM Console window. 
    The KVM console opens in a new tab.

  • Log in to the server.

Install VMware Tools

  • To create the directory where you want to mount the DVD drive, type the following command:
    sudo mkdir /mnt/dvd

  • To mount the DVD, type the following command:
    sudo mount /dev/sr0 /mnt/dvdThe DVD will be mounted.

  • To open the /mnt/dvd directory, enter the following command:
    cd /mnt/dvd

  • To view the content of the DVD, enter the following command: ls

  • Note the name of the archive that contains the installation script. The file name of the archive has the following format: VmwareTools-VERSION.tar.gz
    Example:
    VmwareTools-10.3.2-9925305.tar.gz

  • Change to the directory in which you want to extract the archive.

  • To extract the archive containing the installation script, type the following command:
    sudo tar -xzf /mnt/dvd/VmwareTools-VERSION.tar.gz -C /tmp
    Example:
    sudo tar -xzf /mnt/dvd/VMwareTools-10.3.2-9925305.tar.gz -C /tmpThe file is extracted in the /tmp directory.

  • To call the install script and install the tools with the default specifications, enter the following command:
    sudo /tmp/vmware-tools-distrib/vmware-install.pl
    After entering the command, the following message is displayed:

    The installer has detected an existing installation of open-vm-tools packages on this system and will not attempt to remove and replace these user-space applications. It is recommended to use the open-vm-tools packages provided by the operating system. If you do not want to use the existing installation of open-vm-tools packages and use Vmware Toools, you must uninstall the open-vm-tools-packages and re-run this installer. 
    The packages that need to be removed are:
    open-vm-tools
    Packages must be removed with the –purge option.

    The installer will next check if there are any missing kernel drivers. Type yes if you want to do this, otherwise type no.

  • Type yes and press Enter.

    The following message will be displayed:
    In which directory do you want to install the binary files? [/usr/bin]

  • Press Enter

    After entering the command, the following message is displayed:What is the directory that contains the init directories (rc0.d/ to rc6.d/)?

  • Press Enter.

    The following message will be displayed:
    What is the directory that contains the init scripts? [/etc/init.d]

  • Press Enter.

    The following message will be displayed:
    In which directory do you want to install the deamon files? [/usr/sbin]

  • Press Enter.

    The following message will be displayed:
    In which directory do you want to install the library files? [/usr/lib/vmware-tools]

  • Press Enter.

    The following message will be displayed:
    The path "/usr/lib/vmware-tools" does not exist currently. This program is going to create it, including needed parent directories. Is this what you want?

  • Type yes and press Enter.

    After entering the command, the following message is displayed:
    In which directory do you want to install the documentation files? [/usr/share/doc/vmware-tools]

  • Press Enter.

    The following message will be displayed:
    The path "/usr/share/doc/vmware-tools" does not exist currently. This program is going to create it, including needed parent directories. Is this what you want?

  • Type yes and press Enter.

    After entering the command, the following message is displayed:
    The installation of Vmware Tools 10.3.2 build-9925305 for Linux completed successfully. You can decide to remove this software from your system at any time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".

    Before running Vmware Tools for the first time, you need to configure it by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl". Do you want this program to invoke the command for you now?[yes]

  • Type yes and press Enter.

    The following message will be displayed:
    You have chosen to install VMware Tools on top of an open-vm-tools package.
    You will now be given the option to replace some commands provided by open-vm-tools. Please note that if you replace any commands at this time and later remove VMware Tools, it may be necessary to re-install the open-vm-tools.

    The file /usr/bin/vmware-hgfsclient that this program was about to install already exists. Overwrite? [no] 

  • Type yes and press Enter.

    The following message will be displayed:The file /sbin/mount.vmhgfs that this program was about to install already exists. Overwrite? [no]

  • Type yes and press Enter.

    The following message will be displayed:The file /usr/bin/vmhgfs-fuse that this program was about to install already exists. Overwrite? [no]

  • Type yes and press Enter.

    After entering the command, the following message is displayed:The VMware Host-Guest Filesystem allows for shared folders between the host OS and the guest OS in a Fusion or Workstation virtual environment. Do you wish to enable this feature? [no]

  • Type yes and press Enter.
    The vmxnet driver is no longer supported on kernels 3.3 and greater. Please upgrade to a newer virtual NIC. (e.g., vmxnet3 or e100e).

    Vmware automatic kernel modules enables automatic building and installation of VMware kernel modules at boot that are not already present. This feature can be enabled/disabled by re-running vmware-config-tools.pl.

    Would you like to enable Vmware automatic kernel modules?

  • Type no and press Enter.

    The VMware Tools will be installed.

Configuring the Network

The network configuration method for Ubuntu 18.04 differs from older versions. Unlike previous versions, Ubuntu 18.04 uses Netplan. Netplan is used to configure network interfaces and replaces the configuration with the /etc/network/interfaces file. The configuration is done using .yaml files. 

To configure the network, follow these steps:

Requirements
  • You have logged in to the server using the KVM console.

  • You have configured the keyboard language English (US) on the server. 

  • You have selected English as the language in the KVM console.

  • To open the configuration file with the vi editor, type the following command:
    sudo vi /etc/netplan/50-cloud-init.yaml

Note

The vi editor has an insert mode and a command mode. You can access the insert mode with the i key. In this mode, any characters entered are immediately inserted in the text. To switch to command mode, press the ESC key. When you are in command mode, your keyboard entries are interpreted as a command.

  • Insert the following lines:
    network:
      version: 2
      renderer: networkd
      ethernets:
        enp0s3:
          dhcp4: yes

Please Note

Please note the exact number of spaces during the input. Otherwise, an error message will be displayed.

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

  • To save the changes, type the following command:
    sudo netplan apply