Here’s how you can play with the Fedora cloud images on your local machine with KVM.
Download a cloud image.
Make a new local backing image (so that we don’t write to our downloaded image) called my-disk.qcow2.
qemu-img create -f qcow2 -b Fedora-Cloud-Base-30-1.2.x86_64.qcow2 my-disk.qcow2 20G
The cloud image uses cloud-init to configure itself on boot which sets things like hostname, usernames, passwords and ssh keys, etc. You can also run specific commands at two stages of the boot process (see bootcmd and runcmd below) and output messages (see final_message below) which is useful for scripted testing.Continue reading