Article

Raspberry Pi Emulator for Windows 10

In this article, you are going to learn how to run Raspbian on your Windows 10 PC.

If you really enjoy this article, consider checking out my TechWizTime YouTube Channel.

And for an awesome source of Raspberry Pi Accessories, check out my Raspberry Pi Amazon List.

Let’s get started!

What You’ll Need

Download QEMU

Go to http://qemu.weilnetz.de/w32/

Select the 32-bit folder.

Click on the version with the most recent modify date.

When it downloads, use 7zip to extract it’s contents into a folder.

Download The Kernel

Go to https://github.com/dhruvvyas90/qemu-rpi-kernel

Select the most recent file.

Click on the “Download” at the left of “History”

After it downloads, place the file inside the folder where you extracted the QEMU

Download Raspbian

Go to http://downloads.raspberrypi.org/

Click on “Downloads”

Select “Raspbian”

Download the Pixel desktop version.

After it downloads, extract the contents on the same folder where you extracted QEMU.

Set Up The Emulator

Get inside the folder where you extracted Raspbian, QEMU and placed the Kernel.

Create a new text file and name it “start.bat”

Right click on it and press “Edit”

Type in “qemu-system-arm -kernel kernel-qemu-4.4.34-jessie -cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio -append “root=/dev/sda2 panic=1 rootfstype=ext4 rw init=/bin/bash” -drive “file=2017-03-02-raspbian-jessie.img,index=0,media=disk,format=raw” -redir tcp:2222::22″

Save the file and close it.

Type “cmd” on the address bar to start up the command prompt.

In the command prompt, type “start.bat”

Type in “sudo nano /etc/udev/rules.d/90-qemu.rules”

Press “Enter”

Type in “KERNEL==”sda”, SYMLINK+=”mmcblk0″
KERNEL==”sda?”, SYMLINK+=”mmcblk0p%n”
KERNEL==”sda2″, SYMLINK+=”root””

Press “Ctrl X” “Y” “Enter”

Close the emulator.

Go to the “start.bat” file.

Delete the line “init=/bin/bash””

Save and close the file.

In the cmd, type in “qemu-img.exe resize 2017-03-02-raspbian-jessie.img +4G”

Press “Enter”

A small error will appear, but the resizing will take effect.

Type in “start.bat”

Press “Enter”

Optimize The Emulator

Once it loads, open up the Terminal.

Type in “sudo fdisk/dev/sda”

Press “Enter”

Type “P”

Press “Enter”

Type “D”

Press “Enter”

Type “2”

Press “Enter”

Type “N”

Press “Enter”

Type “P”

Press “Enter”

You’ll be asked for the first sector of the partition, type in the number you see on the first partition +1. IE: 20298 + 1 = 20299

Press “Enter”

When it ask for the last sector, press “Enter” to use the whole ammount of the image.

Type “W”

Press “Enter”

You’ll get a message stating that the creation of the partition failed, shut down the emulator for the changes to take effect.

In the cmd, start the emulator by starting the “start.bat” file.

Get inside the Terminal of Raspbian once it loads.

Type in “sudo resize2fs /dev/sda2”

Press “Enter”

A message will appear saying that the partition rezise was successful.

Type in “sudo nano /etc/dphys-swapfile”

Press “Enter”

Go down to where it says “conf_swapsize=100” and change the “100” to “1024”

Press “Ctrl X” “Y” and “Enter”

Type in “sudo /etc/init.d/dphys-swapfile stop”

Press “Enter”

Type in “sudo /etc/init.d/dphys-swapfile start”

Go to “Raspberry Pi Configuration”

Click on “Enabled”

Locate “SSH” and press “Enable”

Click on “Performance”

On “Overclock”, select “Tubo (1000GHz)”

EXTRA: You can go to Localization and select your country of residence or the country you prefer and then click on “Keyboard” to change your keyboard settings.

Press “OK” to save all of your changes.

Shut down the Emulator.

Open it again via cmd using the “start.bat”

If you turned on SSH, you’ll see a warning, click on “Yes”

Installation Of Rasbian On Windows 10 Finished

Congratulations, you’ve just installed Raspbian on your Windows 10 PC via QEMU, configured it, optimized it and that’s it for this tutorial.

Could you install it by yourself? Did you had any problems during the installation? Have any suggestion? Have any tips to make it run smoother? Then leave a comment below.

 

 

 

 

 

Dereck Frost

I write tech articles and tutorials based around a number of topics.

View Comments

  • 1. I could not obtain the kernel-qemu--Jessie using github.com/dhruvvyas90/qemu-rpi-kernal. I joined GitHub and did a search and got it.
    2. It is not clear in the long command line whether "-drive" should be copied explicitly or whether a drive identifier should be substituted. I will try the explicit method. (I never got that far, see next comment
    3. When I entered the file path to the start.bat file, I got a copy of the long command line and the following comment:
    'qemu-system-arm" is not recognized as an internal or external command, operable program, or batch file.
    4. My cmd window prompt is C:\WINDOWS\System32>, instead of no prompt as in your example.

Share
Published by
Dereck Frost

Recent Posts

12 Major Reasons to Upgrade to Window 11 Now!

Windows 11 has improved a lot since its release a few years ago. So much…

11 hours ago

MIND-BLOWING 6-in-1 Air Fryer Microwave Combo – Toshiba Morandi Grey Microwave Oven

Discover the ultimate kitchen game-changer: the MIND-BLOWING 6-in-1 Air Fryer Microwave Combo by Toshiba! This…

16 hours ago

Pixel Magic Editor Updates + How to Use Add Me on Pixel 9 Pro

Pixel Magic Editor updates are here! 🔔 SUBSCRIBE for more Tech Tips: https://www.youtube.com/tasiacustode?Sub_Confirmation=1 Support me…

1 day ago

Affordable Black Shark GS3 Smartwatch (AMOLED, GPS, 5ATM, MIL-STD)

Unboxing the ultimate affordable smartwatch, the Black Shark GS3, packed with cutting-edge features like an…

2 days ago

8 Amazing Websites You Didn’t Know Existed! (2024 Update)

There are a lot of amazing websites on the internet. In this video I will…

2 days ago

Top 8 Best AI Search Engines in 2024

There have been several companies as of late releasing AI search engines. The goal of…

4 days ago