94

I have tried Debian on VirtualBox and would like to check out Raspbian. How do I install Raspbian on VirtualBox?

85

VirtualBox lets you run x86 virtual machines on an x86 processor. Raspbian is a distribution for ARM processors. Raspbian cannot run in VirtualBox.

Raspbian is essentially Debian with binaries compiled to match the Pi's processor more closely than the official Debian binaries. So if you're going to your system in a virtual machine rather than on Pi hardware, there is very little reason to run Raspbian and not Debian.

If you really want to run Raspbian in a virtual machine on your PC (again, for most purposes, you might as well run Debian x86), you need one that emulates the hardware, such as QEmu. See Emulation on a Windows PC

  • 23
    There is a very good reason to run Raspbian and not Debian, and that is to make sure that your code can compile with a ARM toolset. – JBentley Jan 17 '14 at 1:19
  • 2
    @JBentley Most people cross-compile. – Gilles 'SO- stop being evil' Jan 17 '14 at 1:30
  • 26
    Another reason (the reason I came here) might be to configure your raspbian before copying on PI. I can't connect the PI to the network or screen with keyboard... – Tomáš Zato - Reinstate Monica Jun 19 '14 at 16:52
  • If that so, why there is a virtualbox version for DietPi... DietPi is used for RaspberryPi/ OrangePi/ etc. ? – Sidhi Ciang Jan 11 '17 at 1:55
  • 1
    @SidhiCiang DietPi is an operating system which has both an ARM release (that you can use on a Raspberry Pi) and an x86 release (that you can use on a PC or in VirtualBox). Raspbian only has an ARM release (it's pretty much just a rebranded Debian, so if you want to run it on a PC, just run Debian). – Gilles 'SO- stop being evil' Jan 11 '17 at 1:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.