- Advertisement -
HomeVirtualizationVMwareRaspberry Pi OS in a Virtual Machine with VMware

Raspberry Pi OS in a Virtual Machine with VMware

Although the Raspberry Pi OS is designed and optimized to run in the Raspberry Pi module, is possible to test and use it without its hardware, with VMware. Running Raspberry Pi OS in a Virtual Machine can be useful if you are a developer (or just a curious guy) and don't have a Raspberry Pi module with you. Also, if you want to experiment without breaking your installation on the SD card.

About Raspberry Pi OS

Raspberry Pi OS, formerly known as Raspbian, is packed with plenty of software for education, programming, and general use. It has Scratch, Python, Sonic Pi, Java, and more. Its OS is a distribution of Debian Linux, just like Ubuntu. So if you are familiar with Ubuntu, the Raspberry Pi OS should be friendly to you.  

There are several ways to virtualize the Raspberry Pi module. You can emulate the module with QEMU, a free and open-source emulator and virtualizer that can perform hardware virtualization. It also can be used with Kernel-based Virtual Machine (KVM) to run virtual machines at near-native speed. 

However, the best option is to use a more recognized open-source hypervisor such as VirtualBox or VMware Workstation. If you are familiar with this website, you know that we are going to use VMware. :). Let's run Raspberry Pi OS in a Virtual Machine with VMware.

Raspberry Pi OS on VMware Workstation

Step 1: Download

The first thing is to download Raspberry Pi OS from the link below. Select: Raspberry Pi OS (32-bit) with desktop and recommended software. The recommendation is to use the torrent file.

- Advertisement -

Raspberry Pi OS

VMware-Raspberry-Pi-OS-download

After downloading the ISO, it would be good to verify the file's integrity. For doing so, take a look at this article. 

Files Integrity Check Using Cryptographic Hashes

Step 2: Create a New VM in VMware Workstation

Note: For this post, I will skip these elementary steps (images), assuming that you are familiar with VMware Workstation.

During the virtual machine creation, select:

  • Select Typical 
  • Mount the disc image
  • Select Linux as OS, Debian 10x as version.
  • Name the VM and verify the location.
  • Leave Specify Disk Capacity by default.
  • Review and Finish.
mulcas.com-VMware-Debian-OS-Workstation

Step 3: Raspberry Pi OS - Install

- Advertisement -

Power On the VM

Select Graphical Install. The most user-friendly option, it lets you use a mouse to select options.

What is Persistence:

  • Run with persistence runs the Raspberry Pi OS from the USB stick, with a separate partition where data can be saved. When you reboot, you don't start from zero.
  • Run and reset persistence wipes the persistence partition during boot, so you can start over. 
  • Run without persistence would be useful to boot and test Raspberry Pi OS on your hardware before installing.
VMware-Raspberry-Installation

Configure the Keyboard language of your choice. Click Continue, and the installation wizard will start.

Under Partition disks, select Guided - use entire disk.

VMware-Raspberry-Pi-OS-Installation

In the new menu, select the partition disk. Then, select All files in one partition (recommended for new users). In the next menu, select Finish partitioning and write changes to disk. Under Write the changes to disks?, select Yes. Click Continueto start the installation.

VMware-Raspberry-Pi-OS-Installation

Under Install the GRUB boot loader to the master boot record?, select Yes. Then select /dev/sda. Click Continue.

VMware-Raspberry-Pi-/dev/sda

Remove the installation media (ISO), and Click Continue to finalize the installation. The VM will be rebooted.

VMware-Raspberry-Pi-OS-Installation

Step 4: Raspberry Pi OS in a Virtual Machine - Initial Set-Up

After the VM is rebooted, you will see the Raspberry Pi Desktop welcome wizard. Click Next.

VMware-Raspberry-Pi-OS-initial-set-up

Here, set country, language, and time zone. 

VMware-Raspberry-Pi-OS-initial-set-up
- Advertisement -

Enter Password.

VMware-Raspberry-Pi-OS-initial-set-up

Next, update the software. Depending on your downloaded file, this will take about 15 min. You can also skip this step and update the OS later from the terminal, using: sudo apt update and sudo apt full-upgrade.

Note: Before doing this, make sure you have connected the VM to the internet. Go to the VM setting and change the network if necessary.

VMware-Raspberry-Pi-OS-initial-set-up

After the update is completed, restart the system.

VMware-Raspberry-Pi-OS-initial-set-up

We are now emulating the Raspberry Pi OS in a VM.

VMware-Raspberry-Pi-OS-initial-set-up

The next step is installing VMware Tools. Follow this blog post: How to install VMware Tools in Raspberry Pi OS - Linux Debian.

Resources:

VMware

Raspberry Pi

Juan Mulford
Juan Mulford
I have been active in IT for over fourteen years now. I am a solutions architect, working with storage, virtualization, and VDI solutions. For the past ten years, I have been living and working in Taiwan.

4 COMMENTS

  1. Hi: You forget to mention, that this only works with the “Raspberry Pi Desktop for PC”-ISO – the standard-images for native PI do NOT run because these are compiled for ARM-architecture, which is not supported by VMWare.

Leave a Reply

- Advertisement -

Popular Articles

Unable to delete inaccessible datastore

Unable to delete an "inaccessible" datastore

4
I was switching my storage array, so I migrated the VMs from that old datastore/storage to a new datastore/storage. The old datastore was shared by 3 ESXi hosts, no cluster. After migrating the VMs and unmount/delete the datastore, it was still presented in two of the ESXi hosts and was marked as inaccessible.
mulcas.com-VMware-OVF-Tool

How to export a Virtual Machine using the VMware OVF Tool

8
The VMware OVF Tool is implemented by VMware for easily importing and exporting virtual machines in Open Virtualization Format (OVF) standard format. Here, I want to show you how to download and install it, and then how to use it from a Windows machine.
This is not a valid source path / URL

This is not a valid source path / URL - SourceTree and Gitlab

0
I have been working on a project with a friend who set up a repository in Gitlab but even though I was able to view all projects on it, I couldn’t really join the repository. I was using SourceTree and Gitlab.
WinSCP VCSA

Unable to Access the VCSA 6.7 via WinSCP

8
One of the many and easiest ways to get the logs from the ESXi hosts and vCenter Server Appliance (VCSA), is accessing directly to the files directory using tools such as WinSCP, which helps to transfer the files between a local and a remote computer ( Ex. VCSA). I never have had issues with the ESXi hosts and WinSCP, however, trying to access the VCSA is a different story.
This request is not authorized to perform this operation.

This request is not authorized to perform this operation - Azure-Veeam

1
Attempting to add a new external repository (Azure blob storage container) to the Veeam Backup and Replication console throws the following error: This request is not authorized to perform this operation.
- Advertisement -

Recent Comments