Friday, January 13, 2017

virtualising raspberry pi.



seems trick is because pi uses ARM processor, need to use QEMU virtualiser.

the basic requirements are
QEMU
kernel to emulate physical environment
OS img to run



here's a simple download, runs on windows, once downloaded and unzipped, run.bat and bob's your aunties live in lover.

http://www.makeuseof.com/tag/emulate-raspberry-pi-pc/

longer do it yourself version with outdated versions

https://www.pcsteps.com/1199-raspberry-pi-emulation-for-windows-qemu/





tips. 


change screen resolution for gui.

sudo nano /etc/X11/xorg.conf

Type the following into the file you have just created:-

Section "Screen"
Identifier "Default Screen"
SubSection "Display"
Depth 16
Modes "800x600" "640x480"
EndSubSection
EndSection


http://web.archive.org/web/20150103125008/http://www.soslug.org/wiki/raspberry_pi_emulation
 


change VM img/HDD size.

qemu-img.exe resize 2015-02-16-raspbian-wheezy.img +10G

when you run the OS, you will then need to "Expand Filesystem" to fill entire image, else you will only have access to the size of the original img
this is done in the Raspberry Pi Software Configuration, which should open on initial boot up, then reboot.
to access configuration

sudo raspi-config

(see
https://www.pcsteps.com/1199-raspberry-pi-emulation-for-windows-qemu/)


change swap size from default 100mb

sudo nano /etc/dphys-swapfile
change to whatever. to restart swap file, can reboot or

sudo /etc/init.d/dphys-swapfile stop
sudo /etc/init.d/dphys-swapfile start


https://www.bitpi.co/2015/02/11/how-to-change-raspberry-pis-swapfile-size-on-rasbian/

No comments:

Post a Comment