Commit 8b4e9195 authored by Kristian Klausen's avatar Kristian Klausen 🎉
Browse files

Refer to man cloud-localds for how to test cloud-init

parent d80e3770
......@@ -47,26 +47,4 @@ Releases are done automatically via [GitLab CI schedule](https://gitlab.archlinu
No manual intervention is required or desired.
## Checking cloud-init support in our cloud image:
$ packer build -only=cloud -except=sign config.json
$ cp Arch-Linux-cloudimg-2020-02-24.qcow2 disk.qcow2
# Copied from (with minor changes):
$ { echo instance-id: iid-local01; echo local-hostname: cloudimg; } > meta-data
$ printf "#cloud-config\npassword: passw0rd\nchpasswd: { expire: False }\nssh_pwauth: True\n" > user-data
## create a disk to attach with some user-data and meta-data (require cdrkit)
$ genisoimage -output seed.iso -volid cidata -joliet -rock user-data meta-data
## create a new qcow image to boot, backed by your original image
$ qemu-img create -f qcow2 -b disk.qcow2 boot-disk.qcow2
## boot the image and login as 'arch' with password 'passw0rd'
## note, passw0rd was set as password through the user-data above,
## there is no password set on these images.
$ qemu-system-x86_64 -m 256 \
-net nic -net user,hostfwd=tcp::2222-:22 \
-drive file=boot-disk.qcow2,if=virtio \
-drive file=seed.iso,if=virtio
Please see the example in `man cloud-localds`.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment