Ubuntu Server Cloning
Clone VM Template
Check current hostname
hostnamectlhostnameChange the Hostname (Permanently)
sudo nano /etc/hostnamesudo nano /etc/hostsApply Changes
sudo systemctl restart systemd-logindsudo reboothostnamectlAssign static IP in UDM SE
ip aReboot
sudo rebootAssign Static IP
Login to the new cloned Ubuntu VM and run the following commands to assign a static IP address.
[OPTIONAL]
sudo ls /etc/netplansudo vim /etc/netplan/50-cloud-init.yaml:%d [ENTER]
network:
version: 2
ethernets:
enp6s18:
dhcp4: no
addresses:
- 192.168.8.xx/22
gateway4: 192.168.8.1
nameservers:
addresses:
- 192.168.8.4
- 1.1.1.1
- 8.8.8.8sudo netplan apply