1. Instance creation
Highlights:
• Create a VM instance
• Connect to the created instance
Demo steps:
In this demo, you’ll go through a series of steps that show how to create a VM instance in Compute
Engine and how to connect to it
1. Instance creation
Highlights:
• Create a VM instance
• Connect to the created instance
Demo steps:
In this demo, you’ll go through a series of steps that show how to create a VM instance in Compute Engine and how to connect to it
Step 1:
To access GCE service, go to Console and click on compute engine and then select VM instances
Step 2:
a. In the settings page, give it a name, and choose correct regions and zonesz.
b. In the machine configuration tab, choose a suitable machine type.
c. Configure the boot disk OS and size , First click on change button, then select the operating system
and the boot disk type.
d. Configure firewall rules and click create
Step 3: VM instance will be created, as shown.
Step 4: Click on the SSH tab to connect to the instance.
Commands to install Apache web server:
1. sudo apt-get update -y
2. sudo apt-get install apache2 -y
2. echo '<!doctype html><html><body><h1>Web page launched!</h1></body></html>' | sudo tee /var/www/html/index.html
Note: Delete the resources after completing the exercise.
b. In the machine configuration tab, choose a suitable machine type.
No comments:
Post a Comment