How to Install Debian Linux in VirtualBox on Windows 10 | Beginners Guide | (Buster)
Вставка
- Опубліковано 7 лют 2025
- How to Install Debian Linux in VirtualBox on Windows 10 a 2021 Tutorial. We'll run through the steps to Install Debian Linux Buster in VirtualBox on Windows 10. This Debian Linux Install on VirtualBox is intended for beginners. The guide will show you How to Install Debian Linux on VirtualBox. Install and Try Debian Linux for the first time today.
Debian is great and many other distributions are based off of it. Debian is totally free and the community focuses on stability making it one of the most reliable linux distributions out there. Debian is also tailored for intermediate to advanced users and is great for using as a server or firewall setup. Debian mainly covers the middle ground where the barriers of entry are large enough that some newer users will steer away from this distribution, but the vast documentation and helpful community should be a reason that newer users decide to go with Debian. It's great for learning and expanding your knowledge about operating systems.
My Linux Bundle is here:
📚 savvynik.com
Share this free tool and support Small UA-camrs
editbulk.com
(I made this tool to help creators)
Discord Link: / discord
Useful Links:
Beginners Guide to VirtualBox - • VirtualBox for Beginne...
Debian - debian.org
Debian Download - www.debian.org...
Balena Etcher - www.balena.io/...
VirtualBox Linux Installs:
Debian Linux on VirtualBox - • How to Install Ubuntu ...
Kali Linux on VirtualBox - • How to Install Kali Li...
Linux Install Videos:
ExTiX - • ExTiX Linux Install Tu...
Ubuntu 19 - • Ubuntu 19.10 Eoan Ermi...
Ubuntu 18 - • Ubuntu 18.04.3 Bionic ...
Kali Linux - • Kali Linux Install Tut...
openSUSE: • openSUSE Tumbleweed In...
Fedora 31: • Fedora 31 Workstation ...
MX Linux 19: • MX Linux 19 Install | ...
CentOS 8 NetInstall : • CentOS 8 NetInstall Li...
Parrot Security OS: • Parrot Security OS | L...
CentOS 8: • CentOS 8 Install Linux...
Arch Linux : • Arch Linux Install 201...
Linux Talk :
Talk #1 ZFS vs EXT4 Storage Benchmark - • Linux Talk : Ubuntu 19...
Talk #2 ZFS vs EXT4 Memory Usage - • Linux Talk #2: Ubuntu ...
Talk #3 Supervisor Process Control - • Linux Talk #3: Supervi...
Talk #4 LVM vs Standard Partition - • Logical Volume Managem...
Talk #5 Linux Static IP Address - • Linux Talk #5: Static ...
Talk #6 Flatpak Install - • Linux Talk #6: Flatpak...
Talk #7 Linux Static IP Setup (GUI) - • Linux Talk #7: Static ...
Talk #8 Desktop Setup and Must Have Programs - • Desktop Setup and My M...
Talk #10 Live Wallpapers - • Install Komorebi and S...
Review and Walkthrough:
Kali Linux - • Kali Linux Review & Wa...
PCLinuxOS - • PCLinuxOS Review, Prev...
Fedora 31 - • Fedora 31 Workstation ...
MX Linux - • MX Linux 19 Review, Pr...
ArcoLinux - • ArcoLinux Review, Prev...
CentOS 8 - • CentOS 8 Review, Previ...
Parrot Security OS: • Parrot Security OS 4.7...
MX Linux: • MX Linux 18.3 Review &...
C++ Programming Episodes:
Episode 1 - Visual Studio Setup: • C++ Tutorial for Begin...
Episode 2 - Adding the Makefile Extension and Compiling: • C++ Tutorial for Begin...
Episode 3 - Creating our first program: • C++ Tutorial for Begin...
Episode 4 - For Loops & Vectors: • C++ Tutorial for Begin...
Episode 5 - Classes & Objects: • C++ Tutorial for Begin...
Episode 6 - Git Source Control: • C++ Tutorial for Begin...
Episode 7 - Read/Write a File: • C++ Tutorial for Begin...
Episode 8 - 2D Vector Read: • C++ Tutorial for Begin...
Download a 25 page Linux Checklist here - learn.savvynik.com
00:20 - Download Debian
01:40 - Starting up VirtualBox
02:16 - Create new Virtual Machine
04:20 - Editing Properties and Attach Debian Disk File
06:30 - Start Debian Install
12:25 - Debian Desktop Selection
14:04 - Starting Debian in Virtual Machine after Installing
15:10 - Inserting Guest Additions CD
15:40 - Exploring the Desktop
Thank you so much for this video! I followed a tutorial the first time I did this, but I had to reset my PC and install VirtualBox all over again, and I'd lost the tutorial-you helped me immensely!!
Awesome Maya, super glad it helped you out! Thanks for the comment. =)
Thank you so much! Amazing video. I went through tons of installation guides and i kept getting failed system install. Your guide was 100% on the first try. Keep up the good work
No problem!! Glad you found it helpful and thanks for posting the kind remarks. It's great to hear =)
I was having issues with installing GRUB ,but your steps fixed it.
Thank You
Awesome! Glad you found it helpful. Make sure to smash that like button for me if you haven't already on the vid =)
Same comments as the previous video.
I usually run 1-2 GB RAM for graphical installation and if only CLI I can go down to 256 MB RAM and then from there add whatever the applications do need. RAM is easy to add after and Debian do create a Swap disk partition which size is dependent on the RAM used. And Swap files/partitions can be added later.
The virtual disk size do need to be adjusted depending on the RAM size (remember the Swap storage). So if you set RAM size to 4 GB RAM, you need to add at least 4 GB Disk to the 8 GB minimum disk suggested. And as always, virtual disks can be added later, but if you know that your application you want to run in your virtual machine need more storage, add that when installing.
About virtual CPU:s, go for one or two when installing, you probably doesn't need more which installing. Again, easy to add more if you really need that for your application.
The ISO files are better stored in a map of them own. And I uses bit torrent to download and share the ISO images, as it save resources for Debian.
About installation of Debian.
1) Name the machine same as your virtual machine name in VirtualBox, to reduce confusion.
2) If you don't have a domain, you could use example.com or example.org. Surf to example.com/ for some fun.
3) Don't set root password! Not set the password for root will lock root from being able to log in, which increases security. It will also install sudo(8) and add your user to the sudo group so you can use sudo(1) to manage your machine. The you only need one secure password, and not two.
4) You could use your full name, and the installer will suggest a login name. You can change that.
5) If you use a minimal machine, then consider using LVM, as it is much easier to add/remove (virtual) disks to your virtual machine later.
A tip is to create a virtual machine with the base system/software/configuration you want. Then you don't run that more then upgrade the software. (sudo apt update; sudo apt upgrade; sudo apt clean)
Then later you can clone that machine each time you need new virtual machine with same distribution. No need to wait through the installation when you create a new machine, just clone and create new MAC addresses for each NIC you have in your virtual machine.
After you cloned the machine, you then need to adjust the new machine. You basically only need to change at least the files /etc/hostname, /etc/hosts, /etc/mailname and a file under /etc/exim4/ (easy to do with sed(1), so you could even make a script that does this).
After that, reboot the machine, and if you have openssh-server installed, remove /etc/ssh/ssh_host* and recreate with 'sudo dpkg-reconfigure openssh-server'. Now you have a clean new clone that you can install all needed software.
This is at least how I work with virtualization software like VirtualBox and Debian.
@Anders Jackson - Again, I really appreciate it!! Thanks for posting this here as well it will help many other ^^ (pinned)
VirtualBox support in Debian.
1) Login in using Xorg. The VirtualBox companion installation script will complain if you don't do that
2) Install package build-essential and linux-headers-amd64 'sudo apt install build-essential linux-headers-amd64'
3) Mount the VirtualBox CD, do not run the installation script
4) Run the installation as root. 'sudo ./autostart.sh' (from memory, you need to check that up)
5) If the previous stage take time and doesn't complain, then reboot and you have support installed
I think this will work, it is basically written down from memory.
@Anders Jackson - Thanks!
@@SavvyNik test it to see if it works. :-)
@@AndersJackson - I've actually done this already on another video haha! I think for the most part you have a good lay out of how it should go =)
ua-cam.com/video/NH2kQPDPvks/v-deo.html
A virtual machine within a virtual machine within a virtual machine.
damn dude thanks a lot ure a lifessaver god bless u
thanks bro! gretings from bolivia
No problem!
thank you for the detailed guide!
You're welcome! Glad you found the video helpful.
Great tutorial, really informative.
Awesome! Thanks, Chris. Glad you found it helpful =)
Thank you so much, man. You've really helped me out. Cheers!
Awesome! No problem. Make sure you smash that like button for me if you haven't already on the vid =)
@@SavvyNik Already did ;D
@@david-memes you the best :D
After all setup it asks for grub and the if I give it to virtual box then it goes black and a hifen blinking
I have the same problem. Does anybody know what to do?
Hello and thanks for the video, I got it right on the first try. Only now I can't see de virtual debian in the network, also, debian can't connect to the company's network. What did I miss?
Try using a bridged adapter for your network adapter
@@SavvyNik it worked, thank you. Now the virtual debian can access other computers and the NAS on the network. Still, I can't access debian from other computers. I used the mac to ping the ip of debian and got responses. I'm going to work on that again tomorrow.
Great tutorial...very helpful! Thanks!
You're welcome!! Glad you found it helpful. If you haven't already make sure to destroy that like button for me =)
thank you soo much now I finally can use linux
許瀚文 - Awesome!! I'm glad you finally found a way to use it ^^ make sure to destroy that like button for me if you haven't already.
please help, i try installing debian 11 only to end up on a command line (tty1). what can i do to boot up to a GUI
Greeting
1- when instal on real harddisk i know that "the boot partition is the only partition that should be physical partition".
2- my question " there's any different will happen if i make one physical partition for boot and one extend partition and then divided the extend partition to (root, home, swap + partition for long time save data ntfs) ?
3- or i should make physical partition?
Thanks in advance
This was so helpful thank you for your upload
You're welcome! Glad you found it helpful. Make sure to smash that like button on the video if you haven't already =)
i don't have the white bar that is on the bottom of the desktop at the end of the video. do you know why?
Check your settings in the user interface. There's a checkbox of the settings to add/remove the bar.
Thx for the Tutorial, really useful and informative
You're welcome! Glad you enjoyed it. Make sure to smash that like button for me if you haven't already.
But I'm having some issues while installing Debian in VirtualBox on a old PC
I get this error
Install the GRUB boot loader on a hard disk
Installation step failed
An installation step failed. You can try to run the failing item again
from the menu, or skip it and choose something else. The failing step is:
Install the GRUB boot loader on a hard disk
I went back and selected no bootloader and now my VM Doesn't Start
Usually this issue happens when you don't give enough storage to the system. I suggest at least 32GB disk storage for Debian.
@@SavvyNik I did give it exactly 32 GB
@@SavvyNik Don't think it matters but I'm Running 32 bit Debian
Thank you! Nice tutorial! :)
Stay safe and God bless you!
No problem! Glad you found it useful and thanks for the kind remarks =)
oooo, debian boi
woooot 😋
haha yes =D
HI I get the moklistrt write protected error plz someone help
how do you change the setting to ssh i missed it?
I'm not sure I follow. If you want to use ssh I would set the network adapter to be bridged and make sure install openssh-server as a package (sudo apt install openssh-server). That should allow you to connect to the vbox via ssh using the ip address of the debian vm.
after getting everything setup in virtualBox, when I launch Debian and try to select the graphical install, my VM crashes.... I have no idea why, and I followed the steps up until that point very carefully... I am using a Mac, but the setup to that point was virtually the same.
I would try and update virtual box. Is there a GTK install option on the menu instead of the graphical method? If there is.. does that work?
Hi i can't choose 64bit Debian it says 32 bit
You probably don't have virtualization enabled in your BIOS.
@@SavvyNik thank you i solved it and thank you for the video too😀👍
You're welcome! Make sure to smash that like button for me on the video if you haven't already =)
I did everything like you said but after I upload the debian file a message popped- Invalid settings detected that said "The hardware virtualization is enabled in the Acceleration section of the System page although it is not supported by the host system. It should be disabled in order to start the virtual system."
and i need to say that also only 32 bit version is avalible for me in the virtual box but my CPU suppose to support 62 bit version :(
my CPU is Intel(R) Core(TM) i5-9400F
Sounds like you need to enable virtualization in your BIOS.
@@SavvyNik thanks for the response! sorry for this obvious question 😅
All good, make sure to smash that like button for me ;)
Install went well. And since this is a 'beginners guide', I thought I'd ask: I can log in as myself, but when I want to log in as root, I select other, enter root, and the pw I had setup during install. Unfortuantely, it doesn't work. What am I doing wrong???
@Richard C - When you're in the system you can't just login as the root user. It's only a special privileged account. Instead you can elevate your permission if needed. If you use a terminal in order to run a terminal with those elevated permissions just run: sudo su and that will log you in as the root user. Otherwise put sudo in front of any command to elevate privileges on the given command. Hope that helps =) let me know if you need more of an explanation, but it's similar to how the administrative user works in Windows. You have to click yes once the dialog pops up to give your program administrative privileges.
@@SavvyNik Thank you. That gets me part of the way there.
@@richardc8129 - No problem, hope you get things figured out. Come back and ask questions if you get stuck again.
Super User permission lets you screw around with the system . Its sort of like a device administrator permission, but doesnt take up a folder in your home directory, as a regular user.
run "su" in the terminal (when you want to do something superuser-y), then "exit" once youre done. all commands between su and exit will be executed with those privilleges.
if you only want to execute one command as SU, then precede it by "sudo" (Super User DO ). you will not have to exit.
Will it run good on GeForce GTX 1650-4GB Intel Core i5-9400F 2,90 GHz / 4,10 GHz. 2x 16gb ram ddr4 2666 MHz
Yeah I don't think you'll have any problem running a VM on that system.
Update: I tried the netinst for Debian 10.9 and there were no options for a graphical desktop environment when using my network to install updates. However when I downloaded the DVD.iso files I did get the graphical desktop environments in the install.
Weird I haven't had this issue.
Hi SavvyNik, I have a question. I tried to install a REST API service package to Linux VM (Ubuntu). But when I run the install command, the service file was saved in folder /run/systemd/generator.late/ rather than the folder of /etc/systemd/sysem. Can anyone tell me what I should do with the installation package so that the service file ( serviceName.service) can be saved to /etc/systemd/system/ during the installation? Do I have to manually create such a file in /etc/systemd/system/ before installation? Thanks.
Can't say I've tried this before so I'm uncertain. Maybe someone who has messed with the package before can answer this.
I stuck graphical start no loads idid all steps ?
Everything installed.. you restarted? And got stuck?
@@SavvyNik yes
Can you net install?
Sure there's a net installer version as well.
The installer is just throwing me into a shell. What am I doing wrong? I believe I followed all steps up to the point of starting the debian install
I'd recreate the VM if it's just throwing you into a EFI shell.
i have an error before the process is completed: says error with installation the system
Did you make sure to at least give 32GB of storage space?
@@SavvyNik no, i will try to give it 32gb, thank you for the answer🤙
Good luck and make sure to smash that like button for me!
Thanks
You're welcome! Make sure to smash that like button for me if you haven't already ^^
Cool
Glad you think so :D
@@SavvyNik Also I am working on downloading Debian too all is going great
@@itsamazing22 Awesome to hear =)
15:10 I have no bottom!
Not sure what that means.. but your resolution could be off..
Hey savvy are you there?
possibly..
@@SavvyNik I'm having an issue while installing debian
"An installation step failed. You can try to run the failing item again from the menu, or skip it and choose something else. The failing step is: Select and install software"
What does this mean?
Sometimes Debian fails to install if you didn't give enough storage space for the system to install.
@@SavvyNik oh so that's why....
Thanks for the info!
i don't think that was 2021
lol I think Debian 10 still works in 2021 =D happy new years!!
@@SavvyNik ohhh ok.. happty new years to you too! :)