Skip to content

Instantly share code, notes, and snippets.

# main.tf
provider "github" {
token = "your-github-token"
owner = "your-github-username"
}
@bounteous17
bounteous17 / RaspberryPi4-qemu.md
Created January 18, 2024 19:18 — forked from cGandom/RaspberryPi4-qemu.md
Emulating Raspberry Pi 4 with Qemu

Emulating Raspberry Pi 4 with Qemu

Just a quick update before we dive in: what we're actually doing here is running Raspberry Pi OS (64-bit) on a QEMU virtual ARM setup. This isn't full-blown hardware emulation of the Raspberry Pi 4, but more about creating a virtual environment for the OS. It doesn't mimic all the specific hardware features of the Pi 4, but it's pretty useful and great for general testing. I turned to this solution mainly to extract a modified sysroot from the Raspberry Pi OS, something not readily available in other resources. For those looking into detailed emulation of the actual Raspberry Pi 4's hardware in QEMU, check out this link for the latest updates: https://gitlab.com/qemu-project/qemu/-/issues/1208.

Hope it helps! :D

Shortcomings: No GUI yet, only console.

Steps

URL="http://test.k6.io"
{
"name": "medium-load-testing",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"prebundle": "rm -rfv ./dist",
"set:unix:source:env": "echo \"Run command manually: 'source ./.env'\"",
"bundle": "webpack",
"k6:run:dist:debug": "K6_HTTP_DEBUG=full K6_DURATION=1s npm run k6:run:dist",
const path = require('path');
const { EnvironmentPlugin } = require('webpack');
module.exports = {
mode: 'production',
entry: {
'post-login': './src/test.js',
},
output: {
path: path.resolve(__dirname, 'dist'),
// Modules
const { sleep, check } = require('k6');
const http = require('k6/http');
const { Rate } = require('k6/metrics');
// Definitions
export const errorRate = new Rate('errors');
// Scenario
export const options = {