Virtual Machine not booting when defining root device size below (unknown?) threshold


lxc launch images:ubuntu/22.04/desktop --vm --device root,size=9GB myvm --console=vga

the machine doesn’t boot, that is the boot process is stuck at the LXD container logo (actually I don’t know how to show the boot log in the console, tried without success sending several Fn key).


lxc launch images:ubuntu/22.04/desktop --vm --device root,size=11GB myvm --console=vga

works fine.

Indeed when booting with no size defined the system partition is 10G in size.

It’s fine that the minimum partition size is 10GB, but I spent a fair amount of time trying to understand the issue. So, assuming that the issue is that you cannot define a root device with a smaller size than a given threshold, maybe let the user know with an error at launch?

Are you running latest/edge snap channel?

If so, you’re being affected by this

This will be fixed in latest/edge shortly, and will once again allow VMs smaller than the default volume size of the pool to be created by triggering a fresh unpack of the image.

Ok thanks!