blob: 623594dc34f91c754060e6c24b64feb6bb0bb134 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# OpenBSD Packer Template
This repository contains a template for building OpenBSD boxes for QEMU using Packer.
I only use it for running OpenBSD on an ARM Mac and for building QEMU images to
run in Hetzner on x86_64 machines, so that is the only configuration that is
actively tested.
## Installation
First, ensure you have QEMU installed:
```sh
brew install qemu
```
Then, you can build the box with the following, either for ARM64 or AMD64:
```sh
ARCH=amd64 make
ARCH=arm64 make
```
## Usage
Once your image is built, you can run it:
```sh
ARCH=arm64 make run
```
Once the system is up, you can SSH in using:
```sh
make ssh
```
```
The authenticity of host '[127.0.0.1]:2222 ([127.0.0.1]:2222)' can't be established.
ED25519 key fingerprint is: SHA256:GnVug9cxjtROdVCbDsaxG7Co/E1j060B9U+bmY2lqOk
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '[127.0.0.1]:2222' (ED25519) to the list of known hosts.
OpenBSD 7.9 (GENERIC) #211: Wed May 6 17:30:57 MDT 2026
Welcome to OpenBSD: The proactively secure Unix-like operating system.
Please use the sendbug(1) utility to report bugs in the system.
Before reporting a bug, please try to reproduce it with the latest
version of the code. With bug reports, please try to ensure that
enough information to reproduce the problem is enclosed, and if a
known fix for it exists, include that as well.
openbsd-vm$
```
|