{"id":28211335,"url":"https://github.com/airborne-commando/rpi-qemu-scripts","last_synced_at":"2026-05-01T06:34:03.587Z","repository":{"id":39640363,"uuid":"497780451","full_name":"airborne-commando/rpi-qemu-scripts","owner":"airborne-commando","description":"shell scripts to start raspberry pi with virsh in qemu.","archived":false,"fork":false,"pushed_at":"2023-03-03T12:44:26.000Z","size":73,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-17T18:09:16.876Z","etag":null,"topics":["qemu-arm","raspberry-pi","virtualization"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/airborne-commando.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-30T03:52:45.000Z","updated_at":"2023-12-17T03:32:22.000Z","dependencies_parsed_at":"2024-12-04T03:38:06.192Z","dependency_job_id":null,"html_url":"https://github.com/airborne-commando/rpi-qemu-scripts","commit_stats":null,"previous_names":["airborne-commando/rpi-qemu-scripts","nthompson096/rpi-qemu-scripts"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/airborne-commando/rpi-qemu-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airborne-commando%2Frpi-qemu-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airborne-commando%2Frpi-qemu-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airborne-commando%2Frpi-qemu-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airborne-commando%2Frpi-qemu-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/airborne-commando","download_url":"https://codeload.github.com/airborne-commando/rpi-qemu-scripts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airborne-commando%2Frpi-qemu-scripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32487576,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["qemu-arm","raspberry-pi","virtualization"],"created_at":"2025-05-17T18:09:16.688Z","updated_at":"2026-05-01T06:34:03.582Z","avatar_url":"https://github.com/airborne-commando.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RPI emulation via qemu/virsh\n\nProvided is some simple scripts; feel free to modify these scripts in `/usr/share/rpi/`\n\nthe .img file is stored in `/var/lib/libvirt/images/` as an .img file, name `2021-12-02-raspios-buster-armhf.zip`.\n\n# Prerequisite before running\n\n1. qemu (qemu-full for arch)\n2. zip utils mainly unzip on the distro of your choice.\n\n# How to install?\n\nSimply clone this repository with git, enter `cd` into the cloned directory and enter `sudo sh ./instrpi-sel.sh`; it will ask for how'd you'd like to interface the initial install.\n\nWhen installing for console; you will instead install the lite variant of RPI for either bullseye or buster, for graphical you would get the desktop experience.\n\nIf you had installed the console route and would like to edit the virtual machine's XML files to include a graphical interface, feel free to use `sudo virsh edit rpios`;\ninclude it the bottom before the end of `\u003c/devices\u003e`\n\n        \n    \u003cgraphics type=\"vnc\" port=\"-1\" autoport=\"yes\"\u003e\n    \u003clisten type=\"address\"/\u003e\n    \u003c/graphics\u003e\n    \u003c/devices\u003e\n\nMind you this will not prohibit you from using rpicon; which is the console shortcut for lite users.\nWhat I'd also recommend to do is to compare a config if you have one, or just do some google-fu. If you'd want, install virt-manager with the distro of your choice.\n\n*You cannot initialize the installer again to edit the xml doucments to add in graphics; this will not work.*\n\nIf you do not edit the XML file and instead installed the rpi system this way; you'll have to stick using `rpicon`.\n\n\n# What are the commands?\n\nto shutdown the guest machine, run rpishut, to start it up; enter rpistart. To connect to the rpi guest machine via console enter rpicon; to connect to the rpi guest via gui enter `rpivga`. to uninstall it completely enter `uninstrpi`; this will shutdown the running pi vm and it will be undefined (removed).\n\n# How can i resize the img\n                \n    sudo qemu-img resize /var/lib/libvirt/images/rpi.img 10G\n\nis a good example. You may use whichever size you'd like, just be careful and be sure the guest is shut down.\n\n# How can I transfer the img to a drive?\n\nyou would enter this command:\n\n    sudo dd if=/var/lib/libvirt/images/rpi.img of=/dev/sd status=progress bs=4M\n\nSuppliment the info from the drive you are trying to flash with ``fdisk -l`` or ``blkid`` and replace /dev/sd with that instead.\n\nI may also recommend the rpi-imager if that is available on the distro that you use; just be sure to choose custom rom.\n\n\n### EoF:\n\n[How to run the Raspberry Pi OS in a virtual machine with Qemu and Kvm](https://linuxconfig.org/how-to-run-the-raspberry-pi-os-in-a-virtual-machine-with-qemu-and-kvm) \u003c/br\u003e\n[Virtualization Administration Guide](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/virtualization_administration_guide/index) \u003c/br\u003e\n[dhruvvyas90 for the RPI kernel in order for this to run.](https://github.com/dhruvvyas90/qemu-rpi-kernel)\n\nPlease star this repository if you ever found this useful.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fairborne-commando%2Frpi-qemu-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fairborne-commando%2Frpi-qemu-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fairborne-commando%2Frpi-qemu-scripts/lists"}