Set hostname domain to .local in /etc/hosts.

This fixes fqdn warnings with some config management tools.
Fixes qemu-img create by adding backing file format

Not providing backing_fmt to the qemu-create when creating qcow
images results in failure. Fixed by finding the file format and
adding the backing_fmt argument.