Diese Webseite nutzt nur technisch notwendige Cookies.

How to Setup a Virtual Machine on Windows – VMware (2024)

Setup a Virutal Machine - Coding Tutorials Steffen Lippke

Creating a virtual machine – easy?

How does a virtual machine works? This tutorial will give you an introduction to the world of virtualisation.

In 6 steps, I will show you how to create and use your own Linux virtual machine.

What is a virtual machine?

A virtual machine is a guest operating system in a host operating system that runs independently. The host operating system provides the resources (memory, CPU cores, RAM) that the guest operating system needs to run. From the user’s point of view, the guest operating system runs like a normal programme within the host operating system.

17 Installiere Linux Mint - Virtuelle Maschine erstellen Coding Steffen Lippke
17 Install Linux Mint

Hypervisor 2 – The engine behind virtual machines

A hypervisor manages memory, CPU, network requests and limits or allocates the resources for the virtual machines on the host operating system. The hypervisor tricks the guest operating system into believing that it is running on real hardware. The software “virtualises” physical hardware resources, which the software allocates to the guest operating system in exact chunks.

Hypervisor 1 – Virtual first

This form of hypervisor runs on the bare metal, the hardware without a fully-fledged host operating system. During operation, the hypervisor 2 system costs more resources because the host operating system requires RAM and computing power.

What do I need it for? – 6 use cases

Why do I need a virtual machine?

A VM has many different uses. The isolation, monitoring, easy recoverability and controllability make the VM interesting for the following test cases:

  • Operation: A large chunk of online services do not run on physical servers, but are virtualised.
  • Development of an operating system: Anyone working on boot processes and kernel code does not want to operate on their own system.
  • Cleanly separated files and programmes: The VM offers strict separation of data and programmes of the different operating systems e.g. private and business, customer 1 and customer 2
  • Malware: In order for an antivirus manufacturer to test new malware for its malicious function, it must use a VM. With good hypervisors, only the VM dies, and the host computer does not go up in flames.
  • Development environment: A VM is suitable for testing unstable software that can cause the operating system to crash.
  • Phishing: You can open dangerous and unknown email attachments within a VM to avoid infection on the main computer.

3 reasons – PRO for a virtual machine

Share resources better

With virtual machines, you can start and stop several operating systems on one computer. You can better utilise CPU, RAM and GPU resources with this strategy.

Test more operating systems

Access to different operating systems at the same time gives you extensive testing options for the programmes. You can test unknown operating systems and use a “quick” VM installation to check whether you want to switch to a different operating system permanently.

Bypass restrictions

VMs offer the advantage of testing operating systems with different computer architectures. Run a VM with Linux or macOS on Windows and run programmes there. Run Windows programmes on Linux with a Windows VM.

Computer architectures – RISC or CISC?

RISC use ARM chips, which are installed in smartphones and IoT devices. Complex Instruction Set Computer (CISC) requires less memory space on the CPU (register).

CISC uses many instructions and microcode sub-processes. Reduced Instruction Set Computer (RISC) requires a lot of memory on the CPU (registers).

Test these out in a VM!

Practice – Creating a virtual machine

As a hypervisor, VMware offers a free product version that you can use for private and university projects. Alternatively, you can use VirtualBox, a kind of open source version. If you can set up a VMWare VM, you can also set up a VirtualBox VM.

#1 VMware ready to run on Windows

  1. Go to
    https://www.vmware.com/de/products/workstation-player.html
    and download the VMware Workstation Player (NOT PRO).
    00 VMware Homepage - Virtuelle Maschine erstellen Coding Steffen Lippke
  2. Download VMware Workstation XX.X.X Player for Windows 64-bit Operating Systems
    01 64 Bit - Virtuelle Maschine erstellen Coding Steffen Lippke
  3. Execute .exe
    03 Einfach Next - - Virtuelle Maschine erstellen Coding Steffen Lippke
  4. Click Next
  5. Do not use the enhanced keyboard driver
    04 Verbesserete Tastatur - Virtuelle Maschine erstellen Coding Steffen Lippke
  6. Let the installation run through
  7. Confirm that you are not using the software commercially
    05 Nicht kommerziell - Virtuelle Maschine erstellen Coding Steffen Lippke
  8. The setup is ready for the operating system installation

#2 Download the operating system for the VM

Many Linux operating systems are free.

On distrowatch.com you can see which Linux is currently in vogue. Choose an operating system depending on your purpose, use and requirements. I have created a Linux starter course for beginners, which you can read for free.

1MX Linuxhttps://mxlinux.org/download-links#Mirrors
2Manjarohttps://manjaro.org/download/
3Minthttp://www.linuxmint.com/download.php
4Debianhttp://www.debian.org/distrib/ftplist
5Ubuntuhttps://www.ubuntu.com/download/
Download favourites

Download the latest version of your favourite in 64 bit as an .iso file. The Geek normally burns an .iso file onto a CD or USB stick so that you can switch to a different installation medium when booting the computer. With VMWare, you insert a virtual USB stick into the VM as the installation medium.

06 Installation beendet - Virtuelle Maschine erstellen Coding Steffen Lippke
06 Installation completed

The other Linux systems are set up in the same way.

The following image sequence shows the installation of Linux Mint with VMware. All Ubuntu / Debian operating systems with a graphical user interface have similar steps.

#3 Create a virtual machine in VMware

  1. Create a new machine
  2. Select ISO
  3. Search for the ISO file in your file system
  4. Next
  5. Select Linux
  6. Select Other Linux 3.x Kernel 64-Bit
    09 Systemart - Virtuelle Maschine erstellen Coding Steffen Lippke
  7. Select a name
    10 Wähle eine Namen - Virtuelle Maschine erstellen Coding Steffen Lippke
  8. Select the size of the hard drive. My recommendation is at least 80 GB, although only 10 GB would be necessary. As soon as you have installed 4-5 programmes, the 10 GB will overflow.
    12 Mehr RAM - Virtuelle Maschine erstellen Coding Steffen Lippke

Configuration tips:

  • Use a 1-FACHE file. This trick will increase the speed of the virtual machine.
  • Set the RAM allocation to at least 3 GB, preferably 10 GB and allow the use of 4 CPU cores
  • Close all programmes besides VMware and this tab with the tutorial to save RAM. Also close the background services.

#5 Unlock virtualisation

  1. Open the Group Policy Management Console Computer Configuration > Administrative Templates > System > Device Guard
    13 Virtualiserung erlauben - Virtuelle Maschine erstellen Coding Steffen Lippke
  2. Select the list entry Turn On Virtualisation Based Security
  3. Activate and set Platform Security Level to Secure Boot and DMA Protection and the Credential Guard Configuration field to Enabled with UEFI lock
  4. Click on Apply and Close
  5. Open PowerShell with administrator rights (right-click on the icon)
  6. Enter
    gpupdate /force
    and confirm with Enter
  7. Do the same with
    bcdedit /set hypervisorlaunchtype off
  8. Restart your computer

#6 Start operating system

  1. Open VMware
  2. Start the VM
  3. Click on the starting boot screen to switch to the guest operating system
  4. Press any key to initiate the boot process
    16 Es startet - Virtuelle Maschine erstellen Coding Steffen Lippke
  5. Wait until the VM has booted (10s – 10 min depending on computing power)
    17 Installiere Linux Mint - Virtuelle Maschine erstellen Coding Steffen Lippke
  6. Start the installation of the operating system. The installation is similar to the real installation on a real hard drive. Follow the instructions and give the VM a user name and password.
  7. Finished

Leave a Reply

Your email address will not be published. Required fields are marked *


Jeden Monat teile ich mit Mitgliedern
4 neue praxisnahe Tutorials (je 1000+ Wörter).


Trage Deine Mail, damit Du
Deine Coding + Hacking Skills erweitern kannst!