Ubuntu Linked Clone - jwells24/Tech-Journal GitHub Wiki
Creating an Ubuntu Server Linked Clone
- For this part of milestone 4, we will be creating a linked clone for Ubuntu Server. For the first part of this milestone, we have to create the base VM for ubuntu server. The first step to this is downloading the ISO to super7, which was documented in a previous tech journal.
Creating Ubuntu Server Base VM
-
Create the new VM on your ESXi host, and ensure that you are setting the VM with: 2 CPUs, 20 GB Storage, and 2 GB Memory. Make sure to set the ISO file as well and set it to connect at power on.
-
Now, we enter the installation phase of the ubuntu-server VM. Make sure to update to the new installer, and set a rangeuser and hostname for the computer.
-
Make sure to select Install OpenSSH and skip server snaps. Disable IPv6 with the commands below once you have reached the command line.
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=1
- Lastly, pull the script from this link and run the script on the server. Make sure to set the script to be executable with the command below. Once the script has finished, restart and make sure to remove the CD drive from the VM.
chmod u+x ubuntu-server.sh
Create a Linked Clone of ubuntu-server
- Using the script that we have created, called linkedcloner.ps1, created a linked clone of ubuntu-server using the command and arguments below.
.\linkedcloner.ps1 "ubuntu-server" "192.168.7.17" "datastore1-super7" "awx"
- Change the network adapter in powershell using the command below.
$linkedvm | Get-NetworkAdapter | Set-NetworkAdapter -NetworkName 480-WAN