2.3.1. Debian Linux¶
2.3.1.1. Setting The hostname¶
The default hostname of the virtual machine is NAA.
This should be changed to the DNS hostname that will be used externally. To set the hostname execute the command below from the console, changed the values as necessary.
sudo hostnamectl set-hostname eventideNAA.dealer.com
Verify that the hostname was updated by executing the command hostname -f
2.3.1.2. Setting A Static IP address¶
The virtual machine is configured to use DHCP by default. We recommend that your set a static IP address to prevent any future IP address issues.
By default you will find the following configuration within the /etc/network/interfaces network config file:
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug ens32
iface ens32 inet dhcp
Update the iface ens32 inet dhcp to iface ens32 inet static. Append the following lines to the end of the file.
address 192.168.1.101
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.1 8.8.8.8 8.8.4.4
The resulting content of /etc/network/interfaces network config file should look similar to the one below:
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug ens32
iface ens32 inet static
address 192.168.1.101
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.1 8.8.8.8 8.8.4.4
Save the changes to the file and restart the networking service with the command sudo systemctl restart networking
Verify that the new IP address is set with the command ip addr show dev ens32.
You should now be able to SSH into the virtual machine with the new IP address and the password.