Configuring an Ubuntu Server VM created from a Skytap public template

VMs created from the Ubuntu Server public templates must be configured with a name server address. If the name server address isn’t set, the VM may not be able to ping other VMs or access the public internet.

If your Ubuntu Server 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’re 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 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 don’t provide a name server address, networking in the VM may not work properly. For example, you won’t 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