Week 7 Lab: Preparing for the Cloud (Importing the Appliance)
Module: Operating Systems 3 (Virtualisation & Cloud Technologies)
Estimated Time: 45 Minutes
Lab Type: Deployment / Verification
Lab Overview
Installing OpenStack from scratch ("The Hard Way") takes hours and requires complex networking capable of failing easily. To allow us to focus on Using the cloud rather than debugging installations, the instructor has prepared a "Golden Image" (Appliance).
In this lab, you will import this pre-configured OpenStack Virtual Machine into VirtualBox and verify it is ready for next week.
Objectives:
- Import Appliance: Deploy the OpenStack
.ovafile into VirtualBox. - Verify Resources: Ensure the VM has the required 16GB RAM and 4 vCPUs.
- Network Check: Verify connectivity between your Host (Ubuntu) and the Guest (OpenStack).
Prerequisites:
1. Host OS: Ubuntu Desktop (Physical Lab Machine).
2. Hypervisor: Oracle VirtualBox 7.x installed.
3. Source File: OpenStack_Lab_Appliance_v1.ova (Located on the Shared Drive / USB).
Part 1: Importing the Appliance
-
Open VirtualBox:
- Launch Oracle VM VirtualBox from the applications menu.
-
Start Import Wizard:
- Click File > Import Appliance... (or
Ctrl+I). - Browse to the location of
OpenStack_Lab_Appliance_v1.ova. - Click Next.
- Click File > Import Appliance... (or
-
Review Settings (Critical):
- Name: Change to
OpenStack-Lab-StudentName(e.g.,OpenStack-Lab-Carlos). - RAM: Ensure it is set to 16384 MB (16 GB).
- CPU: Ensure it is set to 4 (or more).
- MAC Address Policy: Select "Generate new MAC addresses for all network adapters".
- Click Finish/Import.
- Name: Change to
-
Wait:
- The import process may take 5-10 minutes depending on disk speed.
Part 2: Network Configuration
The appliance expects specific network settings to allow you to access the Dashboard (Horizon) from your browser.
-
Settings Check:
- Right-click your new
OpenStack-LabVM and select Settings. - Go to Network.
- Right-click your new
-
Adapter 1 (Management/NAT):
- Attached to: NAT.
- Purpose: Allows the VM to access the internet to download packages.
-
Adapter 2 (Host-Only / Expose):
- Attached to: Host-Only Adapter.
- Name:
vboxnet0(or similar). - Purpose: This is the "Data Cable" connecting your web browser to the OpenStack Dashboard.
-
Start the VM:
- Click Start.
- Do not Login yet. Just wait for the login prompt:
openstack login:
Part 3: Connectivity Verification
-
Find the IP:
- On the VM console (the black window), log in with:
- User:
student - Pass:
password
- User:
- Type
ip a. - Look for the IP address on the second interface (usually
enp0s8oreth1). It should be something like192.168.56.101.
- On the VM console (the black window), log in with:
-
Ping from Host:
- Open a Terminal on your physical Ubuntu computer.
-
Ping the guest:
bash ping -c 4 192.168.56.101 -
Success: You receive replies.
- Failure: Check VirtualBox "Host Network Manager" settings.
-
SSH Access:
-
From your host terminal:
bash ssh student@192.168.56.101 -
Say "yes" to the fingerprint.
-
Part 4: The Ultimate Test (Horizon Login)
If you can see the web dashboard, your cloud is ready for next week.
-
Open Firefox:
- On your physical host machine.
-
Navigate to the URL:
http://<IP_ADDRESS_FROM_PART_3>/dashboard- Example:
http://192.168.56.101/dashboard
-
Login:
- Domain:
Default - User:
admin - Password:
password(or as provided by instructor).
- Domain:
-
Verification:
- You should see the OpenStack Overview page showing Compute limits (VCPUs, RAM).
- If you see this, Success! You have a private cloud in your pocket.
Part 5: Hello, CLI (Command Line Interface)
Real cloud engineers use the terminal. Let's verify our cloud's "Heartbeat" using the OpenStack Client.
-
Back to Terminal:
- Return to your SSH session (
ssh student@...).
- Return to your SSH session (
-
Source the Credentials:
-
OpenStack requires authentication. We use a "RC" file to load our passwords into environment variables.
bash source admin-openrc -
Note: If you don't do this, every command will say "Missing credentials".
-
-
Check Compute Services (Nova):
-
Ask Nova: "Are all your agents alive?"
bash openstack compute service list -
Goal: Look for the
Statecolumn. It should sayup:-) - Record Status:
[ _____________________________ ](e.g., up)
-
-
Check Network Agents (Neutron):
-
Ask Neutron: "Is the virtual switch running?"
bash openstack network agent list -
Goal: Verify
Metadata agent,DHCP agent, andL3 agentare all:-). - How many agents are listed?:
[ ________ ]
-
-
Check Service Catalog (Keystone):
-
Ask the Cloud: "What APIs do you have?"
bash openstack endpoint list -
Goal: You should see a long list of URLs (Keystone, Nova, Glance, Neutron, Placement). This proves the Identity Service is healthy.
- Field Check: Write down the Public URL for Keystone:
[ _________________________________________________________________ ]
-
-
Check Hypervisor Status:
-
Ask Nova: "Do you have any CPU power?"
bash openstack hypervisor list -
Goal: You should see your node listed with
State: up. - Record Hypervisor Hostname:
[ _____________________________ ]
-
Lab Checkpoint
- I have imported the OpenStack OVA into VirtualBox.
- The VM is configured with 16GB RAM and 4 vCPUs.
- I can ping the Guest VM from my Host machine.
- I can SSH into the Guest VM.
- I have successfully logged into the Horizon Dashboard.
- I have verified services on the CLI using
source admin-openrc.
Reflection:
- Why do we use "Generate new MAC addresses" when importing?
- What is the difference between the NAT adapter and the Host-Only adapter in this setup?
Instructor Signature: ___ Date: ___