* create a virtual machine in `virt-manager` using the image
There is not an os template for Clear Linux, but **Fedora29** works fine for me.
As a bonus, `virsh console` is configured and ready to go.
## **Convert Raw -> Qcow2 and Resize**
The image has a gpt partition table. I am not sure if that is the reason why,
but `fdisk` does not seem to work for resizing the partition. However, `parted` works fine.
The [image download](https://cdn.download.clearlinux.org/releases/current/clear/){target=_blank} is an 8gb sparse raw image. You may wish to convert that to qcow2
and and resize before creating the virtual machine. Here is how to do that.
1. convert the sparse raw image to qcow2
```console
qemu-img convert -f raw -O qcow2 clear*.img clear.qcow2
```
1. resize the image to taste
```console
qemu-img resize clear.qcow2 20G
```
1. create the virtual machine in `virt-manager` gui
1. boot the virtual machine: `virsh start clearvm`
1. log in: `virsh console clearvm`
1. install a bundle which contains `parted`
```console
swupd bundle-add clr-installer
```
1. expand `/` partition and file system with `parted` and `resize2fs`