In this article, we will set up the latest version of Debian 12 Bookworm, an excellent Linux distribution, on a new virtual machine with VMware Workstation 17 Pro virtualization software installed on a Windows 10 PC and then configure VMware Tools to be able to share files between the host and the VM.
How to Set Up Debian 12 on a Virtual Machine using VMware Workstation 17 Pro on Windows 10
Debian Linux is a free, open-source operating system. It includes many free tools that can be used by home or business users to do all their work. Examples of these applications are LibreOffice for creating or editing office documents and VLC Media Player for opening various video files.
You can use and experience Debian Live via a DVD or USB memory without using your computer’s hard disk and without destroying your current operating system. If you plan to install this system on your PC later, you can start the system installation from the Live CD.
Instead of using the Debian operating system as Live, you can use virtualization software such as VMware Workstation in the system installed on your host computer. In particular, it might be a brilliant idea to use a Linux distribution you want to experience in a virtual machine.
Workstation Pro software developed by VMware company is paid for, but you can use the Player version for the free version. Workstation Pro allows you to activate more advanced features of the system you will install or to create a VM professionally to test new technologies.
How to Download Debian ISO Installation Image File
To download Debian Linux as an ISO to your computer, you must first visit the debian.org website.
After viewing the website, click Getting Debian from the options in the top menu to download the ISO file. Then, click on the “complete installation image” link under the Download an installation image option. Then click the “Download CD/DVD images using HTTP” link, and then click amd64 in the subheading “Official CD/DVD images of the stable release.”
You will see two titles, a CD and a DVD. Suppose you click on the amd64 option in the DVD title. In that case, you will be directed to the DVD image web page, which contains many tools for environments where an Internet connection is not available or very slow.
After downloading the website a little bit, you can download the 3.6 GB ISO file named “debian-11.5.0-amd64-DVD-1.iso” to your computer.
How to Create a New Virtual Machine for Debian
Before you can properly install and run an operating system in VMware virtualization software, you must configure the virtual machine settings correctly.
Steps:
Step 1
After running the VMware virtualization software and clicking Create a New Virtual Machine, a Wizard will open, as shown below. Select the Custom (advanced) option in the Virtual Machine Wizard, and then click the Next button.
Step 2
Configure the hardware compatibility setting of the virtual machine to 17.x. If you upgrade the Workstation program to a newer version after installing the VM, do not forget to change the hardware compatibility.
Step 3
Please select I will install the operating system later in the Guest Operating System Installation wizard, then click Next.
Step 4
From this window, you can configure the type and version of the operating system you will install on the virtual computer. First, select the Linux option and select Debian 12.x 64-bit from the options listed in the Version section, then click Next.
Step 5
From this window, you can choose the location where you want to install your virtual computer. Suppose you have an old computer and are using a mechanical disk. In that case, you can gain further performance gain by storing the VM’s location on an external SSD disk in this window.
Type a name for your virtual machine, choose where you want to store it and continue with Next.
Step 6
In the Processor Configuration window, specify a value for your virtual machine according to the processor power of your PC and click Next.
Step 7
Similarly, in the Memory window, set a value according to the RAM size of your existing host.
Step 8
In the Network Type window, you can use the NAT selected by default. If you have configured a Bridged network on Virtual Network Editor, you can choose this type.
Step 9
Leave the default option (LSI Logic) for the controller type enabled and click the Next button.
Step 10
Select the NVMe type, known as the newest technology, which is the type of virtual disk. If you try to install older versions of the Debian system, you need to find out if it supports the NVMe disk structure. If not, you can change the disk type to SATA or SCSI.
Step 11
In the Select a Disk window, you must select the Create a new virtual disk option as you will be installing a Debian from scratch.
Suppose you want to use the VMDK file instead of the Debian ISO file. In that case, you need to select the Use an existing virtual disk option in this window during the virtual machine setup.
Step 12
In the Specify Disk Capacity window, specify a size for the new virtual disk and tick to store the virtual disk as a single file, then click Next.
Step 13
You can change the location where you want to back up the disk file from this window. The configuration in this window will only change the location of the virtual disk to be created.
Step 14
The summary hardware information for the virtual computer is as follows. Now, click on the Customize Hardware button to enable a few extra settings.
Step 15
After clicking the Processors device, enable all virtualization options under Virtualization Engine displayed on the right.
- Virtualize Intel VT-x/EPT or AMD-V/RVI
- Virtualize CPU Performance Counters
- Virtualize IOMMU (IO Memory Management Unit)
Step 16
To add the Debian 12 ISO file to the VM, click the CD/DVD / Use ISO image file / Browse button and add the file.
Step 17
In your Debian VM, change the Compatibility setting to 3.1 in the USB Controller device settings so that you can transfer files faster using USB 3.0/3.1 devices.
Step 18
Finally, enable the 3D Graphics (Accelerate 3D Graphics) option in the Display device settings and configure the video memory to a size that your host can support.
Step 19
After configuring all the settings of your Debian virtual computer correctly, check the settings in the summary window again and click Finish to close the wizard.
Step 20
Until this step, you have prepared a new virtual system for Debian distribution. Now, click Power on this VM to run the VM and begin the system setup.
How to Install Debian 12
After preparing the Debian guest operating system, all you have to do is install the Linux distribution on the VM.
Steps:
Step 1
After running your virtual computer, press Enter on the Graphical Install option on the Debian GNU/Linux installer menu (BIOS mode) screen.
Step 2
Select the Debian operating system language that is, the display language, and click the Continue button.
Step 3
In the Select your location window, select your country of residence and click the Continue button.
Step 4
In the Configure the keyboard window, configure the keyboard layout you want to use and click Continue.
Step 5
In the Configure the Network window, you need to type the hostname to identify your system to a network. You can choose the default configured name as in the image below, or you can specify a hostname according to your network environment.
Step 6
If you are a home user, you can leave the Domain Name blank.
Step 7
In this step, create a strong password for the root account of your Debian system and click Continue.
Step 8
To define a new account to be created instead of the Root account for non-administrative activities, type your full name or something else in the Set up users and passwords window and then click Continue.
Step 9
Re-type your username for your account in lowercase letters. Or, if you write your Name and Surname in the previous step, you can only write your name in this window.
Step 10
To add a password to the new user account you created, type a strong password in both text fields in this window.
Step 11
Select your time zone according to where you live and click Continue.
Step 12
In the Partition Disks window, if you are a first-time user of the Linux/Debian system, we recommend that you continue by selecting the Guided – Use Entire Disk option.
Step 13
At this stage, select your virtual disk to partition.
Step 14
Likewise, if you are a new user, as indicated by the installation wizard, select All files in one partition and click Continue.
Step 15
A summary of the disk settings for the Debian VM will be shown in the window below. Suppose you are going to make a change to the partition. In that case, you can return to the previous configuration step by clicking the Go Back button.
Continue by selecting Finish partitioning and write changes to the disk option.
Step 16
Select Yes for the changes made to the virtual NVMe disk to take effect, and then click Continue.
Step 17
If you want the wizard to scan additional DVD installation media to install some extra packages on your system, continue by ticking the Yes option.
Step 18
When you try to download and install a program from the Internet on your Debian system, the mirror addresses defined in your system are used. If you want to add these addresses to your system manually later, you can select the No option here.
When trying to install a program, the installation media will be scanned first instead of the repository addresses. If the program you want to install is not available on the DVD media, you need to pull it from the mirror network on the Internet. Therefore, continue with Yes, as you will need to use Network Mirror.
Step 19
In the Debian archive mirror country window, you can select your country for the Network Mirror setting because you can download files faster from servers that are closer to you.
Step 20
For the Debian archive mirror, choose the most preferred server (deb.debian.org) and continue.
Step 21
If you are using a proxy server in your network environment, you can configure it from this window. If you are not using it, leave this box blank and continue.
Step 22
Suppose you send the statistics of the applications you use most frequently on your system to the server every week. In that case, you can continue with Yes to configure the settings.
Step 23
You can continue with GNOME, the default desktop environment of the Debian system, and choose a desktop environment of your choice.
In the Software Selection window, select the desktop environment you want to use. Generally, it is the user’s choice to choose the desktop environment in Linux systems.
Step 24
Select Yes to install the GRUB Boot Loader on the primary virtual drive and continue.
Step 25
For boot loader installation, select the /dev/nvme0n1/ drive and click Continue.
Step 26
After completing the Debian installation, remove the installation media from the VM and restart your system.
Step 27
Press Enter in the Debian GNU/Linux option in the GNU GRUB menu.
Step 28
After typing the username and password you created, log in by pressing Enter.
Step 29
You can check the version of the Debian system you have installed from the Settings / About section.
How to Install VMware Tools on Debian
After installing Debian with VMware Workstation, you may need to install the drivers for the virtual computer. Under normal conditions, if the host computer has a network connection, VMware Tools, that is, virtual machine tools, are installed automatically.
If you need to connect your virtual machine to the Internet later, you must install VMware Tools manually.
Steps:
Step 1
If VMware Tools is not installed automatically, the screen resolution of your guest system will be the same as the image below. You need to install these tools in order to both fix the screen resolution problem and transfer files with the host.
Step 2
After making sure that your guest machine is connected to the Internet, open the terminal and execute the command “sudo apt install open-vm-tools-desktop” and press Y and Enter to confirm the new packages to be installed.
sudo apt install open-vm-tools-desktop
Step 3
After installing VMware Tools, reboot your system with the “sudo reboot” command and check the screen resolution.
sudo reboot
Step 4
When you drag and drop a document from the desktop or a different location of your host system to your virtual computer, you can see that the file is copyable to the VM.
How to Configure Shared Folder
You can additionally use the Shared Folder feature to make file transfers between the host and the VM faster. VMware Tools must be installed to use this feature; otherwise, you cannot use it.
Step 1
Click VM / Settings from the tool menu of the VMware Workstation program and open the virtual machine settings window. In the settings window with the Hardware and Options tabs, click Options and then select Shared Folders.
Configure the Folder Sharing feature as Always Enabled from the settings listed on the right, and then click the Add button in the Folders section. Then, click Next to make the necessary settings in the Add Shared Folder Wizard window.
Step 2
Click the Browse button in the Name the Shared Folder window and create and select a new folder in any location of your host PC.
Step 3
Check the Enable This Share option in the Shared Folder Attributes settings and close the virtual machine settings after clicking Finish.
Step 4
You can find the shared folder on your Debian machine at /mnt/hgfs/FolderName. Create a file or folder in the shared folder and check it on your host PC, and you can see that the file-sharing is successful.
Step 5
You can create a shortcut for the shared folder in any location on your Debian system. For example, you can use the command below in the terminal to create a shortcut in Documents.
sudo ln -s /mnt/hgfs/DebianSharedFolder/ ~/Documents
Step 6
To access the shared folder faster, right-click on the shortcut location and click Add to Bookmarks.
Step 7
When you restart your virtual computer and click Shared Folder, you may see the error “This location could not be displayed.”
Step 8
To fix the Shared Folder error and make it permanent, you need to edit /etc/fstab. To do this, execute the “sudo nano /etc/fstab” command in the terminal and view the contents of the file.
sudo nano /etc/fstab
Step 9
Type the command below at the bottom of fstab, press CTRL + X, and then Enter to save the file.
.host:/DebianSharedFolder /mnt/hgfs/DebianSharedFolder fuse.vmhgfs-fuse allow_other
How to Use USB Flash Memory in Debian VM
It may make more sense to use a USB flash drive when you want to copy huge files to your virtual system, or you can connect your external SSD storage device to the VM and back up your data faster.
Step 1
Insert a flash memory into one of the USB ports of your host computer and create a folder named Backup, for example.
Step 2
You need to click VM / Removable Devices / Name of your USB from the VMware tool menu to mount the USB disk in your guest operating system. However, if you see the Connect option disabled or grayed out, you need to edit the VMX file to fix this issue.
Step 3
Go to the location where you installed your Debian 12 system, open the VMX file with Notepad, and change the value (USB.restrictions.defaultAllow = “FALSE” ) to “TRUE,” and save the file.
Change: usb.restrictions.defaultAllow = "FALSE"
To: usb.restrictions.defaultAllow = "TRUE"
Step 4
After connecting your USB flash memory to your virtual system without any problems, you can see the folder called Backup that you created in it.
Video
Installing Old Versions
Debian / VMware Workstation Version | YouTube Video | Slide |
9 / 14 Pro | Watch | – |
10 / 15 Pro | Watch | View |
11 / 16 Pro | Watch | View |
11 / 17 Pro | Watch | – |
Conclusion
As a result, setting up a VM like Debian 12 with VMware on Windows 10 or 11 is simple. When you follow the steps I explained correctly, you will be able to adjust the hardware compatibility settings properly. For example, the choice of RAM and disk space is essential. Additionally, with the correct and robust ISO image file, you can experience Debian OS without needing a physical machine.
Debian is a very well-established and robust operating system. So, many users, including me, like to try it on a virtual machine. However, I suggest not to neglect the VMware Tools package. Because of that, you need it to get full performance from your VM.
Works well except some small diff. caused by versions dissimilarity probably. Great help, especially for the part with installing boot loader, which was not understandable intuitively, thx
Fantastic guide!
Thanks for the effort!
You’re welcome, thanks for your nice comment.