- Visit the official Debian website: Debian Download
- Open VirtualBox and click "New".
- Enter the following details:
- Name: Debian
- Type: Linux
- Version: Debian (64-bit)
- Click Next.
- Recommended: At least 2048 MB (2 GB), or 4096 MB (4 GB) for better performance.
- Select "Create a virtual hard disk now" → Click Create.
- Choose "VDI (VirtualBox Disk Image)" → Click Next.
- Storage type:
- Choose "Dynamically allocated".
- Set disk size:
- Recommended: 40 GB or more.
- Click Create.
- Select your Debian VM in VirtualBox.
- Click Settings → Storage.
- Under Controller: IDE, click Empty.
- Click Choose a disk → Select the Debian ISO file you downloaded.
- Click OK.
- Click Start to boot the VM.
- Choose "Graphical Install" or "Install".
- Language: Choose your preferred language.
- Location: Select your country.
- Keyboard: Choose the layout (default: US).
- If using bridged networking or NAT, it will auto-detect.
- If using Wi-Fi, connect and enter your password.
- Set a hostname (e.g.,
debian-vm
). - Leave the domain name empty (or set one if needed).
- Set Root Password .
- Create a new user:
- Enter full name, username, and password.
-
Select "Manual" partitioning.
-
Select the virtual hard disk.
-
Delete any existing partitions (if any).
-
Create the following partitions manually:
(If disk size is 40 GB)
🔹 Boot Partition (
/boot
)- Size: 4 GB
- Type: Primary
- Filesystem: ext4
- Mount point: /boot
🔹 Swap Partition
- Size: 2 GB (or equal to RAM)
- Type: Logical
- Use as: Swap area
🔹 Root Partition (
/
)- Size: Remaining size
- Type: Primary
- Filesystem: ext4
- Mount point: /
- Wait while Debian installs the base system.
- Select a desktop environment:
- GNOME (default), KDE, XFCE, LXDE, Cinnamon, etc.
- Select "Standard system utilities".
- Choose "SSH Server" if you want remote access.
- Click Continue to install.
- Select Yes to install GRUB.