0% found this document useful (0 votes)
8 views2 pages

VirtualBox: Setup & Simple VM Creation

The document provides a step-by-step guide for setting up a Virtual Machine using VirtualBox and installing Damn Small Linux. It includes instructions for creating the VM, configuring settings, and executing basic commands to create and run a Java program. Additionally, it prompts discussions on issues related to file persistence and compilation errors.

Uploaded by

Moena Luca
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views2 pages

VirtualBox: Setup & Simple VM Creation

The document provides a step-by-step guide for setting up a Virtual Machine using VirtualBox and installing Damn Small Linux. It includes instructions for creating the VM, configuring settings, and executing basic commands to create and run a Java program. Additionally, it prompts discussions on issues related to file persistence and compilation errors.

Uploaded by

Moena Luca
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

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?

You might also like