DietPi on KVM-Qemu can't install, image is too small

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
dsal2018
Posts: 12
Joined: Tue Aug 21, 2018 12:56 pm

DietPi on KVM-Qemu can't install, image is too small

Post by dsal2018 » Sun Aug 25, 2019 2:01 am

Hello,

I am trying to install dietpi.img as a VM in a virt KVM-QEMU setup.

I can get the image to boot, but it doesn't have enough space to install anything, the VM sees only exactly the size of the image. I used the qemu tool to increase the .img size, but the dietpi install doesn't "See" the extra 20GB I added to the .img file. I think I need to use fdisk with the image booted or something

dsal2018
Posts: 12
Joined: Tue Aug 21, 2018 12:56 pm

Re: DietPi on KVM-Qemu can't install, image is too small

Post by dsal2018 » Sun Aug 25, 2019 2:12 am

Ok,

To use DietPi in KVM-Qemu, you first download the DietPi .img file. You then open a terminal and increase its size to whatever you want with the command:

qemu-img resize -f raw /path/to/dietpi.img 20G

replace the 20G with whatever size you want the image to have.

After this resize, you open up virt-manager, click on make new VM, select the import existing image and select you new, giant file.

Post Reply