Configuring an Ubuntu Server 17.10 or Ubuntu 18.04 Server LTS VM created from a Skytap Cloud public template

VMs created from the Ubuntu Server 17.10 or Ubuntu 18.04 Server LTS public templates need to be configured with a name server address. If the name server address is not set, the VM may not be able to ping other VMs or access the public internet.

If your Ubuntu Server 17.10 or Ubuntu Server 18.04 LTS VM contains an oem-config.log file in /var/log, it was likely created from a public template. These VMs come pre-installed with Firstboot, which is a technology similar to Windows Sysprep. The first time you run a machine with Firstboot, you are prompted to configure the operating system. This process leaves behind a log file.

Configuring the name server address during the initial setup process

During the setup process:

  1. Configure the VM by providing your language preference, location, etc.
  2. When prompted for the name server addresses, enter the gateway IP address for the Skytap Cloud virtual network. This IP address is listed on the Environment Details page or Network Settings page. For instructions, see Finding the network gateway IP address.

    Ubuntu configuration prompt

    If you do not provide a name server address, networking in the VM may not work properly. For example, you will not be able to access the public Internet from the VM.

  3. Select any of the available installation media options.

Configuring the name server address later

From a terminal session in the VM, run the following commands:

sudo rm -f /etc/resolv.conf
sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
systemctl restart systemd-resolved.service