Exercises: Introduction to Virtual Machines (Part 1)
Topic: VirtualBox Setup and Creation of Simple VM
1. Install VirtualBox (English version): [Link]
2. Download Damn Small Linux (DSL) – lightweight Linux distribution (53MB). ISO: dsl-
[Link]. Save to C:\Users\{USER}\VirtualBox VMs\ISOs\[Link]
3. Create a new Virtual Machine named DSL_VM:
- Type: Linux 32-bit
- RAM: 512MB
- Disk: 4GB dynamically allocated (VDI)
- Attach using IDE Controller, not SATA
4. Attach DSL ISO: Settings → Storage → CD/DVD (Empty) → choose [Link]
5. Start the VM and press <Enter> to boot.
6. Login details:
- Username: dsl
- Password: (empty)
- Use XShells or Root Access terminals.
7. Keyboard fix and GUI start:
sudo loadkeys de
startx
8. Open two terminals:
whoami
cd
pwd
ls -la
9. Create directory:
mkdir java
10. Create Java file ([Link]):
public class Hello {
public static void main(String[] args) {
[Link]("Hello, World.");
}
}
11. Compile and run:
javac [Link]
java Hello
12. Discuss: Why can’t [Link] be compiled or executed?
13. Shutdown DSL using:
sudo cat /etc/sudoers
sudo shutdown -h now
14. Power off DSL_VM → VirtualBox → Right-click → Power Off.
15. Restart DSL_VM.
16. If it fails to boot, reattach DSL ISO ([Link]).
17. Restart DSL_VM again.
18. Change directory and display file:
cd java
cat [Link]
19. Discuss: Why has ~/java disappeared?