Unable to resize disk - Ubuntu VM - Initramfs issue

modem7

Member
Nov 2, 2021
35
2
13
38
Hi guys,

I'm having a problem where I'm not able to resize a disk on an Ubuntu VM using Proxmox.

I've run apt install -y cloud-init cloud-initramfs-growroot qemu-guest-agent on the template to make sure the tools are there to do the task, but get stuck on initramfs with what seems like a kernel panic.

When the VM starts after a disk resize change:
1635875739331.png

Then shows:
1635875761668.png


Created the VM with Ubuntu 20.04, cloud-init (works absolutely fine bar the disk resize), and using SeaBIOS.

1635875945357.png

I'm pretty new to Proxmox/cloud-init so this could easily be an ID10T issue. Not quite sure where to start my investigation though - my Googlefu is failing me.
 

Attachments

  • 1635875907374.png
    1635875907374.png
    20.2 KB · Views: 3
It seems removing the package cloud-initramfs-growroot allows things to work.

If anyone has an answer as to why it would break things, that'd certainly be a good learning experience!

Thanks!
 
I have the same problem with Ubuntu 22.04 have you found a solution yet?

Sorry for pushing an old article.
 
It seems removing the package cloud-initramfs-growroot allows things to work.

If anyone has an answer as to why it would break things, that'd certainly be a good learning experience!

Thanks!

An answer? No.
A solution? Yes.

The only packages you should install are:

Bash:
export DEBIAN_FRONTEND=noninteractive
apt-get install -y \
cloud-guest-utils \
cloud-init \
cloud-utils

From there on, it'll work.
Having cloud-initramfs-growroot installed breaks it.

Here is a script I made which installs all the relevant bits and creates a VM. Needs to be run on your proxmox host.

Code:
https://github.com/modem7/public_scripts/blob/master/Bash/Proxmox%20Scripts/create-jammy-cloud-template.sh
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!