aboutsummaryrefslogtreecommitdiff
path: root/_screencasts/2021-02-07-autoqemu-automate-installation-and-ssh-setup-of-iso-os-images.md
blob: 20efabff724893a70b7caa8b612e971ae1651c8e (about) (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
---

title: AutoQEMU - automate installation and SSH setup of ISO OS images

date: 2021-02-07

layout: post

lang: en

ref: autoqemu-automate-installation-and-ssh-setup-of-iso-os-images

video: true

---

After reading begriffs "[Tips for stable and portable software][begriffs-article]", the "Begriffs Buildfarm?" section caught my attention, as this is something I would be interested in.

After emailing the author, a [public thread] began on the subject.

As we discussed how it could be done, I decided to experiment with the idea of automating the setup of virtual environments with QEMU.

This screencast is a simple demo of automating the installation of Alpine Linux 3.12.3 standard x86_64 with [AutoQEMU], which is nothing more than POSIX sh, [expect] scripts and Makefiles glued together.

As of this writing, I just worked on it for 2~3 days, so everything is still pretty ad-hoc.

The commands from the screencast were[^script-command]:

[^script-command]: Only now, writing again what I ran on the screencast I thought that I should have tried something like [script](https://www.man7.org/linux/man-pages/man1/script.1.html). Maybe next time (thanks [klaatu](https://gnuworldorder.info/) for the tip!).

```shell
pushd `mktemp -d`
git clone https://euandreh.xyz/autoqemu.git .
make
make install PREFIX=$HOME/.local
autoqemu ssh alpine
```

It assumes that `$HOME/.local/bin` is in `$PATH`.

[begriffs-article]: https://begriffs.com/posts/2020-08-31-portable-stable-software.html
[public thread]: https://talk.begriffs.com/pipermail/friends/2021-February/001263.html
[AutoQEMU]: https://euandreh.xyz/autoqemu.git/about
[expect]: https://core.tcl-lang.org/expect/index