local-kvm-cloudimage icon indicating copy to clipboard operation
local-kvm-cloudimage copied to clipboard

Misleading extension for "raw" not "qcow2" file from cloud-localds

Open NGenetzky opened this issue 5 years ago • 0 comments

First, Thank you for your examples; they provided a good resource for a few topics related to KVM and cloud-init.

From your blog you use commands that reference "qcow2" files. These are actually just "img" files as the qemu-img info command indicates. It is possible this repo also includes misleading references, but this seemed like the easiest way to notify you.

# insert network and cloud config into seed image
cloud-localds -v --network-config=network_config_static.cfg test1-seed.qcow2 cloud_init.cfg

# show seed disk just generated
$ qemu-img info test1-seed.qcow2 

image: test1-seed.qcow2
file format: raw
virtual size: 368K (376832 bytes)
disk size: 368K

The help indicates that -d raw is the default`

cloud-localds --help | grep 'raw' -A 2
     -d | --disk-format D    disk format to output. default: raw
                             can be anything supported by qemu-img or
                             tar, tar-seed-local, tar-seed-net

NGenetzky avatar May 22 '20 02:05 NGenetzky