How to Install VirtualBox 7 on Debian 13

Quick Insight

You install VirtualBox 7 on Debian 13 by grabbing the official DEB package and fixing its missing links. Open the terminal and run "sudo apt update" to refresh your package list. Next, type "sudo apt install build-essential dkms" to add the needed kernel tools. Then, use "sudo dpkg -i" on the downloaded file and run "sudo apt install -f" to pull in any extra parts. This method gives you a free, stable Type-2 hypervisor for running many guest OS types at once. As a result, you create a safe test space that keeps your main Linux desktop clean and fully apart.

In this article, I will explain to you the method of creating virtual machines in the Debian 13 Linux distribution. Of course, I will also cover the process of installing and using Oracle VM VirtualBox.

First of all, VirtualBox lets you run Windows virtually. You can also use it for Linux and macOS systems. You can also use more than one OS, thanks to its flexibility and ease of use.

Installing VirtualBox on Debian PC

Why Should I Use VirtualBox on Debian?

You can get VirtualBox, made by Oracle, from its main web page. Notably, you can use this software free of charge. It also lets you run one or many pretend computers at the same time.

First, install Debian on your host computer. Debian is a very well-known type of Linux.

Next, you may choose to install the VirtualBox program on your system. As a result, you can create a Windows 10 virtual machine with this program.

If you install Windows with a Dual-Boot, you will need to restart your PC to switch between systems. So, moving between operating systems can be slow.

Thanks to Oracle VM, you don’t need to restart your PC. You can fast open your Windows virtual computer right after that. This way, you can start using it right away.

How to Use Oracle VM VirtualBox to Create a Virtual Machine on Debian

You have two ways to put it in place. First, you can set up the APT or Oracle sources. But the simplest way is to get the deb file straight from the website and put it in.

1. Download VirtualBox for Debian

Step 1

To get Oracle VirtualBox for Debian, first go to its website. Then, press the “Download” button as you see in the picture below.

VirtualBox 6.1 Download for Linux

Step 2

On the Download VirtualBox website, click Linux Distributions from Platform packages.

Linux Distributions

Step 3

Here, click on the Linux distribution on your computer. On the page that opens, select to save the deb package and click OK.

Downloading Deb Package for Debian 11

2. Update the Software Packages on Your Debian System

Step 1

Before you begin the setup, make the Debian package list new. To do this, type the “sudo apt update” command in the terminal window.

sudo apt update

Updating the Debian Package List

Step 2

After you update the package list, you must add some things for the VM manager. That is, you must add the needed Linux kernels to your system. So, use the command “sudo apt install build-essential dkms” in the terminal.

sudo apt install build-essential dkms

Installing Linux Kernels

Step 3

Check the new packages you will install on your system. Afterwards, type “Y” and press Enter to confirm.

Confirming Packages to Install

3. Install VirtualBox VM Software

Step 1

After you get everything ready, open the terminal. First, go to the Downloads folder with the “cd ~/Downloads” command. Use the “ls” command to see what is in the folder. Last, make sure the deb package is there.

To install the VBox.deb package in place using the terminal, use the command below:

sudo dpkg -i virtualbox-6.1_6.1.34-150636.1~Debian~bullseye_amd64.deb

Installing the VirtualBox.deb Package

Step 2

When you install VirtualBox, you might see extra parts in the terminal. Because of this, you must install these packages. To fix this, type the command “sudo apt install -f.”

sudo apt install -f

Force Installation of Dependent Packages

Step 3

Here, you must press “Y” and Enter to say yes to putting in the new packages.

Confirming Packages to Install

Step 4

You have now installed VirtualBox on your Debian 13 system without trouble. Now, find the program in the Activities area and start it.

Running VirtualBox

Step 5

Also, check the number of the Oracle virtual-computer tool. To do this, go to Help / About to see the number here.

Checking VirtualBox Version

4. Install Extension Pack

After installing VirtualBox on Debian, you need to install the Extension Pack to install the drivers for guest machines and to use devices such as USB and webcam.

Step 1

After clicking File / Preferences in the Oracle VM VirtualBox Manager tool menu, you can check whether the Extension Pack is installed in the Extensions section in the open window.

Checking for Extension Pack Installed

Step 2

After you get VirtualBox, you must also add the extra pack. First, go back to the VBox get-page. Then, press the “All Supported Platforms” choice and keep the “VBox-Extpack” file on your computer.

Extension Pack Download

Step 3

Go to Downloads and double-click on the VBox-Extpack package to start the installation.

Installing VBox-Extpack

Step 4

Click the Install button to configure the Extension package in the open information window.

Starting Installation

Step 5

If you want to read the license thoroughly, click the “I Agree” button and scroll down the opened page.

Accepting the License Agreement

Step 6

After successfully installing the Oracle virtualization software tools, click OK.

Ext Pack Installed Successfully

Step 7

Now that you view the Extensions settings again, you can see that the Ext Pack has been installed in your VBox program.

Checking Extensions

How to Create a New Virtual Machine in Debian

You can now use Oracle tools on your Debian computer. In short, this lets you make new virtual machines. For example, you can run Win10 or other systems on them.

1. Create a Windows 10 VM

Step 1

Open VirtualBox Manager and click the New icon to start the virtual machine wizard.

Creating a New Virtual Machine on Debian

Step 2

Type a name for the operating system you will install in the virtual machine creation wizard and click Next after selecting the installation location.

Configuring the Guest OS Name and Location

Step 3

For the virtual operating system to work more efficiently, determine a suitable virtual memory size according to the memory capacity of your host.

Increasing Memory Size

Step 4

For the hard disk configuration of the virtual PC, choose to create a new virtual disk and click Create.

Create a New Virtual Hard Disk Now

Step 5

Configure the file type of the virtual hard disk as VDI (VirtualBox Disk Image).

Selecting VDI (VirtualBox Disk Image)

Step 6

You can set up both fixed-size and dynamically expanding virtual disk storage on your physical computer. If you want the virtual system to take up less space on your host disk, check Dynamically Allocated and continue.

Choosing a Dynamically Allocated Disk Structure

Step 7

Configure an appropriate disk size depending on what you will do in your Windows virtual system.

Configuring Virtual Disk Size

2. Configure the Advanced Settings of the VM

Step 1

After preparing your virtual computer, open advanced settings to adjust performance and other locations.

Opening Virtual Machine Settings

Step 2

To share files between your Win10 VM and your host system, go to Advanced settings.

First, set the Shared Clipboard feature to Bidirectional. Also, change the Drag’n’Drop setting to Bidirectional. So, you can easily move files and copy text.

Enabling Shared Clipboard and Drag and Drop Features

Step 3

Open the main board settings of the virtual computer. First, turn off Floppy from the Start Up list. Then, set the CD device as the first startup choice.

Changing the Boot Order

Step 4

According to the processor type of your host computer, set a suitable vCPU number for your guest machine in the Processor settings.

Increasing the Number of Virtual Processors

Step 5

Open the Display settings for better graphics on the Win10 VM. First, turn on the 3D Acceleration option. Then, pick a video memory size that fits your host PC’s GPU’s power.

Enabling 3D Graphics Acceleration

Step 6

From the Storage Devices section, pick Controller: SATA. Then, go to the Attributes section. Right here, turn on the Host I/O Cache option.

Enable Host I/O Cache

Step 7

Likewise, configure the Win10.vdi virtual disk file as a Solid-State Drive (SSD) to increase disk performance.

Configuring VDI Virtual Disk Type as SSD

3. Add an ISO File to the VM

Step 1

To add the Windows 10 image to the virtual PC you created, first select the Empty optical drive. Here, click on the CD/DVD icon. Now, click on the “Choose a disk file” option from the menu that opens.

Adding a Debian ISO File to a Virtual Machine

Step 2

Access the Windows 10 ISO file from its downloaded location, be it an internal or external drive.

Choosing the Debian ISO File

Step 3

You may want to use USB 3.x devices on your VM. To do so, disable the settings by selecting the USB 3.0 (xHCI) Controller.

Selecting a USB 3.0 Controller

Step 4

Run your Debian virtual computer to start the Windows installation.

Running the Virtual Computer

Step 5

The setup wizard for Windows 10 will be initiated shortly after the virtual computer is launched.

Windows 10 Setup Wizard

4. Delete the Virtual Machine from Debian

You can quickly delete a guest machine installed with Oracle VM VirtualBox software from your Linux computer.

Step 1

Press the right button on your vPC in the VirtualBox list. Pick the “Remove” choice from the menu that shows up.

Then, press “Delete All Files” in the confirmation box that opens. This will erase your virtual PC and all its files.

Completely Deleting the Created Virtual Machine from Disk

Step 2

After you erase the pretend computer from your Debian system, you must do one more thing. So, look in the “VirtualBox VMs” folder under the “Home” area. This way, you know that the files for the machine are also gone.

Checking VirtualBox VMs Location

How to Uninstall VirtualBox from Debian

If you want to uninstall VirtualBox software from Debian, you can do this via the terminal. This way, you can remove the software in a very short time.

1. Uninstall VirtualBox

Step 1

After backing up your installed systems, execute the “sudo apt remove –purge *virtualbox*” command in the terminal to uninstall the VM software.

sudo apt remove --purge *virtualbox*

Uninstalling Oracle VM VirtualBox

Step 2

Press Y and Enter to confirm VBox-related packages are to be removed.

Confirming Packages to be Deleted

Step 3

Some folders or files may still be on your system when you uninstall VirtualBox. To delete unnecessary folders from your system, execute the commands below in the terminal.

sudo rm -rf ~/"VirtualBox VMs"
sudo rm -rf /usr/lib/"virtualbox"

Deleting Unnecessary Directories

Step 1

After you remove VirtualBox, you should also clear away the extra packages. To do this, type the command “sudo apt autoremove && sudo apt autoclean” in the terminal. This will make your Debian system totally clean.

sudo apt autoremove && sudo apt autoclean

Deleting Relic Packages

Step 2

Now, remove the VBoxUsers group created when you set it up. First, see if the group is there. Then, you can take out the group without worry.

compgen -g | grep -i "vbox"
sudo groupdel vboxusers

Deleting the VBoxUsers Group

Video

Video Thumbnail
Watch on YouTube

Frequently Asked Questions (FAQ) About Debian & VirtualBox

  1. Do I need the Extension Pack for VirtualBox in Debian?
The Extra Pack for Oracle VM Manager is not needed. But I say you should get it based on what you need. Really, the simple parts work without the extra.
But, you might want more tools; for example, USB 2.0/3.0 help or VRDP. In this case, install it in this pack and see if it works.
  1. What are the system requirements for VirtualBox on Debian?
Make sure you are using Debian 9 or a newer system. Also, you need to use a CPU with virtualization support. For example, Intel VT-x or AMD-V is essential.
At least 4 GB of memory is enough, but I say use 8 GB or more. The initial installation requires 30 MB of disk space. However, you will need more space for virtual machines. Additionally, your kernel version must be 4.19 or higher.
  1. If I use the Oracle program on Debian, will it harm my system?
Using VirtualBox is mostly safe. If you set it up right, it will not hurt your computer. It is perfect for trying out other systems.
But VMs use a lot of your system’s power. For example, they use the CPU, memory, and storage space, which can make your host slower.
Because of this, you should often watch the resource sharing. Also, make sure your system has the least needs. This way, you use both your main and virtual PCs without problems.

Conclusion

As a result, VirtualBox allows us to create and run virtual machines on the Debian 13 Linux release. This feature provides a versatile and user-friendly platform.

If you follow all the steps I have outlined in this article, you can install it effortlessly. Moreover, you can install the necessary extensions and know how to run various operating systems.

This way, you can test different software environments or use other operating systems if you are developing applications.

In summary, it offers a powerful solution to meet your virtualization needs. Plus, you can seamlessly experience various OSes on a single host without the hassle of rebooting the system.

Also, you might be thinking about growing your virtualization skills. If so, I say you should read our article called Installing VirtualBox on Ubuntu. For example, if you want to run Windows or other Linux systems, our guide will give you a smooth time.

They'll Thank You for Discovering This Guide!

Ready to do your loved ones a huge favor with just one click? Knowledge grows as it is shared.

Be the first to share your comment