tony@thor:~$ podman pull ubuntu:focal tony@thor:~$ podman run --security-opt label=disable --volume ${HOME}/Downloads:/Downloads --volume ${HOME}/src:/src --userns keep-id --detach --rm --name focal --hostname focal ubuntu:focal sleep inf tony@thor:~$ podman exec -it --user root focal bash --login root@focal:~# apt-get update root@focal:~# DEBIAN_FRONTEND=noninteractive apt-get install -y sudo software-properties-common root@focal:~# add-apt-repository ppa:openstack-ci-core/vhd-util root@focal:~# DEBIAN_FRONTEND=noninteractive apt-get install -y qemu-utils vhd-util root@focal:~# logout tony@thor:~$ podman exec -it --user tony focal bash --login tony@focal:/$ cd /Downloads tony@focal:/Downloads$ wget https://cloud-images.ubuntu.com/noble/20240724/noble-server-cloudimg-amd64.img tony@focal:/Downloads$ qemu-img convert -p -S 512 -f qcow2 -O raw noble-server-cloudimg-amd64.img noble-server-cloudimg-amd64.raw tony@focal:/Downloads$ cp --sparse=always noble-server-cloudimg-amd64.raw noble-server-cloudimg-amd64.tmp tony@focal:/Downloads$ vhd-util convert -s 0 -t 1 -i noble-server-cloudimg-amd64.tmp -o noble-server-cloudimg-amd64.tmp tony@focal:/Downloads$ vhd-util convert -s 1 -t 2 -i noble-server-cloudimg-amd64.tmp -o noble-server-cloudimg-amd64.vhd tony@focal:/Downloads$ qemu-img info noble-server-cloudimg-amd64.img tony@focal:/Downloads$ qemu-img info noble-server-cloudimg-amd64.raw tony@focal:/Downloads$ vhd-util read -p -n noble-server-cloudimg-amd64.vhd tony@focal:/Downloads$ rm noble-server-cloudimg-amd64.tmp.bak tony@focal:/Downloads$ ls -lh noble-server-cloudimg-amd64.* tony@focal:/Downloads$ md5sum noble-server-cloudimg-amd64.* tony@focal:/Downloads$ logout tony@thor:~$ podman kill focal