qemu/kvm cloudimg with run_archiso
I've toyed with whether one could (easily) run the *cloudimg*.qcow2
images produced by this project locally with just "pure" qemu/kvm (CLI), instead of through Vagrant. It doesn't quite seem to work today, but there's probably little missing - perhaps we could use this issue to figure out together why, and get it working, if people think this could be fun/interesting/useful?
Instead of writing another qemu/kvm launch script, I've attempted to simply use the convenient run_archiso.sh
script from https://gitlab.archlinux.org/archlinux/archiso/-/blob/master/scripts/run_archiso.sh (there is actually nothing much archiso specific about that script; it's really more of a general convenience utility; perhaps we should rename it to run_vm.sh
).
There's a very minor issue in that script, which archiso!132 (closed) fixes.
With that, it then (obviously) does boot - but you cannot login. Here's how to reproduce it:
-
archiso/scripts/cloud-init.sh
(from archiso!117 (closed)) -
archiso/scripts/run_archiso.sh -d -i Arch-Linux*.qcow2 -c cloud-init.iso
(with archiso!132 (closed)) - it seems to struggle to get networking?
-
ssh -p 60022 localhost
fails - you can't login on the console, neither as
arch
(see also #130 (closed)), nor with a user fromcloud-config
(even with aplain_text_passwd
)
If we get this working, we could document it on https://gitlab.archlinux.org/archlinux/arch-boxes#usage.