Cloud Computing integrated lab BCS601
1. CREATING A VIRTUAL MACHINE: CONFIGURE AND DEPLOY A VIRTUAL MACHINE WITH SPECIFIC
CPU AND MEMORY REQUIREMENTS IN GOOGLE CLOUD.
Step1: Sign in to Google Cloud Console
1. Go to Google Cloud Console: [Link]
2. Log in with your Google Account.
3. Select or create a new project from the top navigation bar.
Step2: Enable the Google Cloud Compute Engine API
1. Open the Google Cloud Console.
2. In the Navigation menu, go to API & Services -> Library.
3. Search for Compute Engine API and click Enable.
[Link] Krishna. U, Assistant Professor, Dept of CSE, Brce 1
Cloud Computing integrated lab BCS601
Step:4 Create VM instances:
1. In the left sidebar, navigate to "Compute Engine" → Click "VM instances".
2. Click "Create Instance".
Step 3: Configure the Virtual Machine
1. Name the VM
2. Select the Region and Zone
• Enter a name for your VM instance.
• Choose a region close to your target audience or users.
• Choose an availability zone (e.g., us-central1-a).
3. Choose the Machine Configuration
• Under "Machine Configuration", select: Series (E2, N1, N2, etc.) -> select E2
o Machine type (Select based on your CPU & RAM needs)
4. Boot Disk (Operating System)
• Click "Change" under Boot Disk.
• Choose an Operating System ->Ubuntu
• Select disk size (e.g., 20GB or more).
[Link] Krishna. U, Assistant Professor, Dept of CSE, Brce 2
Cloud Computing integrated lab BCS601
5. Networking and Firewall
• Enable "Allow HTTP Traffic" or "Allow HTTPS Traffic" if needed.
• Click "Advanced options" for networking configurations.
Step 4: Create and Deploy the VM
1. Review all the configurations.
2. Click "Create" to deploy the VM.
3. Wait for the instance to be provisioned.
[Link] Krishna. U, Assistant Professor, Dept of CSE, Brce 3
Cloud Computing integrated lab BCS601
[Link] Krishna. U, Assistant Professor, Dept of CSE, Brce 4
Cloud Computing integrated lab BCS601
Step5: Once the VM instances is created ,Now select SSH
Click on Authorize, then ssh session terminal will be opened
[Link] Krishna. U, Assistant Professor, Dept of CSE, Brce 5
Cloud Computing integrated lab BCS601
Step6: Verify your VM’s resources
[Link] Krishna. U, Assistant Professor, Dept of CSE, Brce 6
Cloud Computing integrated lab BCS601
Step 7: Install required software (example: Apache web server)
sudo apt update && sudo apt install apache2 -y
type y to install
Step 7: Stop or Delete the VM (Optional)
• Stop the VM:
gcloud compute instances stop your-instance-name --zone=us-central1-a
• Delete the VM:(optional)
gcloud compute instances delete your-instance-name --zone=us-central1-a
[Link] Krishna. U, Assistant Professor, Dept of CSE, Brce 7
Cloud Computing integrated lab BCS601
[Link] Krishna. U, Assistant Professor, Dept of CSE, Brce 8