Skip to content

Instantly share code, notes, and snippets.

@sokomo
sokomo / ubuntu-xenial-armfh-qemu.md
Created November 3, 2016 16:04
Running Ubuntu 16.04.1 armhf on Qemu

Running Ubuntu 16.04.1 armhf on Qemu

This is a writeup about how to install Ubuntu 16.04.1 Xenial Xerus for the 32-bit hard-float ARMv7 (armhf) architecture on a Qemu VM via Ubuntu netboot.

The setup will create a Ubuntu VM with LPAE extensions (generic-lpae) enabled. However, this writeup should also work for non-LPAE (generic) kernels.

The performance of the resulting VM is quite good, and it allows VMs with >1G ram (compared to 256M on versatilepb and 1G on versatile-a9/versatile-a15). It also supports virtio disks whereas versatile-a9/versatile-a15 only support SD cards via the -sd argument.

Get netboot files

|-------------------------------| |----------------------------------|
| SYN | | TCU |
|-------------------------------| |----------------------------------|
| | | |
| Wifi (en0): 192.168.1.100/24 | | |
| |_______________________| |
| Ethernet (en1): 192.168.5.1 _________________________ Ethernet (eth0): 192.168.5.2 |
| | | |
| | | |

Wrk tools Guide

The script using tool from Wrk

Preparation

  1. Modify variable file (vars file):
# Number of connection
CONNUM=10