Create Two Servers Deployed from a Template:

  • The following steps will be demo’d in class, but here is a helpful summary:
  1. Deploy a Client VM from the client template using the profile for your group.
    • Configure the VM Name, IP, and resources.
  2. Deploy a Rocky Linux Server using the correct template and profile for your group.
  3. Install the httpd Apache Web Service using dnf:
1dnf install httpd -y
  1. Enable the httpd daemon using systemctl:
2systemctl enable httpd
  1. Start the service:
3systemctl start httpd
  1. Configure the firewall to allow the server to accept outside connections
4firewall-cmd --add-port=80/tcp --permanent
  1. Test to see if you can access the Web Server from your Client VM

  2. Use vi to create a webpage at /var/www/html/ named, index.html with the following text:

1<html>
2<body> Hi, my name is YOURNAME. <br>
3I am student X from group X. 
4</body> 
5</html>
  1. To create the page in the above step, type:
1vi /var/www/html/index.html
  1. To begin writing inside the visual editor (vi), press i to enter insert mode.

  2. To save and close your file, once you have entered the above text, first, click ESC on your keyboard, then type :wq (colon w q ). This will save and close the file.

  3. Test your page again from your Client VM; it should now show your custom page.