How To Set up a Raspberry Pi emulator in Windows
If you read most Raspberry Pi emulator tutorials, they usually concentrate on running other applications within Raspberry Pi. How about the other way round? How about setting up a Raspberry Pi emulator in Windows? It is possible and it works quite well.
Why anyone would want to try to get Android or Windows 10 running on the limited hardware of a Raspberry Pi I do not know. I imagine it’s partly because they want the kudos and partly because they can. Personally, I would much rather use a more powerful computer to run a more basic operating system rather than the other way around.
There are two ways to set up a Raspberry Pi emulator in Windows. You can use the ready-made Microsoft Azure platform or set one up yourself with VirtualBox. I’ll show you both.
Raspberry Pi emulation with Microsoft Azure
Microsoft Azure has a downloadable Raspberry Pi emulator and also a neat client simulator online. These two are easy ways to experiment with Raspberry Pi without buying the hardware. It is also a useful way to simulate your code purely in software before installing it onto hardware.
I won’t pretend to know how to code but I know how to get the Raspberry Pi emulator working.
- Visit this page on the Microsoft Azure website.
- Download the .zip file onto your own Azure server or use the client simulator to play online.
- Type your code into the right pane in the simulator and experiment as you see fit.
This is a very simple way to play with Raspberry Pi. If you don’t have an Azure server lying around, the software client is a neat online emulator that seems to work just fine.
Raspberry Pi emulator in Windows 10
You can emulate Raspberry Pi rather easier in Windows 10 if you have VirtualBox. You download the OS, install it in VirtualBox and run Raspberry Pi within the virtual machine. It works with most architecture types and most versions of Windows 10 so you should be fine. VirtualBox is free too.
You need to make sure you download the correct version of VirtualBox for your computer but the rest is easy. It will ask to install some drivers, which are necessary so agree to the install and you should be up and running in a couple of minutes.
- Download and install VirtualBox from here.
- Download Raspberry Pi Desktop from the official website here.
- Launch VirtualBox.
- Change the Type to Linux and Version to Debian 64-bit.
- Select Next.
- Set 1024MB RAM in the next window.
- Set 8-10GB of disk space in the next window and then select Create.
VirtualBox may take a few seconds to create the virtual machine. Once complete, it should appear in the left pane of the main VirtualBox window.
- Select Start in the main VirtualBox window to start the VM.
- Select the Raspberry Pi Desktop download as the start-up disk when prompted and select Start.
- Select Install when prompted.
- Set up language and keyboard and use Guided Installation.
- Select the drive you want to install and the partitioning scheme. Defaults should do.
- Select to install the GRUB bootloader when prompted. Select /dev/sda from the options.
- Allow the VM to boot into Raspberry Pi Desktop.
You should now see the Raspberry Pi Desktop. We have almost completed the installation and have just a couple of configuration changes to make.
- Open Terminal from the Raspberry Pi Desktop.
- Type ‘sudo apt update’ and hit Enter to update Raspberry Pi.
- Type ‘sudo apt install virtualbox-guest-dkms virtualbox-guest-x11 linux-headers-$(uname -r)’ and hit Enter to install VirtualBox guest extensions.
- Navigate to Devices, Shared Clipboard and set it to Bidrectional.
- Type ‘sudo reboot’ and hit Enter to reboot your virtual machine to enable the updates.
- Open Terminal once more.
- Type ‘sudo adduser pi vboxsf’ and hit Enter to enable file sharing.
- Type ‘shutdown -h now’ and hit Enter and wait for Raspberry Pi to shut down.
- In the main VirtualBox window, select the Raspberry Pi VM.
- Select Settings and Shared Folders.
- Select the add icon on the right of the window and add the folders you want to share between Windows and Raspberry Pi.
- Select Auto-mount in the selection window.
You now have a fully functional Raspberry Pi Desktop running on Windows. You can now code to your heart’s content. I wouldn’t pretend to know what to do with Raspberry Pi how it is installed but I’m sure you do!