In this part of the lab, you install an Apache server on a workload VSI.
By default, the workload VSI (Virtual Server Instance) is locked down from the management VPC. You need to allow access through the access control list.
-
In the Access control list, click the ACL labeled
<your_initials>-workload-acl
. -
In the Access control list, click the ACL labeled
<your_initials>-management-acl
.- Create an ACL inbound rule to allow ssh access from the Workload VPC.
- Create an ACL outbound rule to allow ssh access from the Workload VPC.
-
Access the workload VSI by completing the following steps:
-
Go to Virtual server instances for VPC. Take note of the private IP("Reserved IP") for the VSI labeled
<your_initials-workload-server-1
(10.40.10.4
in this example). You need it later. -
From your computer, copy the private key that is labeled `lab_key`` to the Bastion host.
scp -i lab-key lab-key root@<Floating IP address of bastion host>:/root
-
SSH to the bastion host
ssh -i ./lab-key root@<Floating IP of Virtual server instance>
-
Change permissions of the private key
chmod 600 lab-key
-
SSH to the workload VSI
ssh -i ./lab-key root@<Private IP address of the workload VSI>
-
-
Install the Apache web server by issuing the following commands:
apt-get update apt-get install apache2 --yes
-
(Optional) You can repeat steps 3 and 4 for the workload VSIs
<your_initials>-workload-server-2
and<your_initials>-workload-server-3