(initially reported in kubernetes-sigs/cluster-api-provider-vsphere#3734)
What steps did you take and what happened:
- deploy using photon-5-kube-v1.34.0.ova (from here) using cluster-apri-provider-vsphere
- image works but root partition / is still at 20G and not resized to expected partition
NB: we already use cloneMode: fullClone
What did you expect to happen:
root partition is resized
Anything else you would like to add:
How to reproduce:
-
Upload photon-5-kube-v1.34.0.ova, and convert as template
-
Create a VM manually from the template
-
boot as root (press "e" during boot, append init=/bin/sh to linux command line, and press F10)
-
run resize2fs /dev/sda3, you'll get:
resize2fs: Bad magic number is super-block while trying to open /dev/sda3
Couln't find a valid filesystm superblock.
-
the reason? partition is xfs!
-
the problem? xfs_growfs binary is not installed, so the filesystem cannot be expanded
Environment:
- Cluster-api-provider-vsphere version: N/A (image v1.34.0)
- Kubernetes version: (use
kubectl version): v1.34.0
- OS (e.g. from
/etc/os-release): photon 5
/kind bug
(initially reported in kubernetes-sigs/cluster-api-provider-vsphere#3734)
What steps did you take and what happened:
NB: we already use
cloneMode: fullCloneWhat did you expect to happen:
root partition is resized
Anything else you would like to add:
How to reproduce:
Upload
photon-5-kube-v1.34.0.ova, and convert as templateCreate a VM manually from the template
boot as root (press "e" during boot, append
init=/bin/shto linux command line, and press F10)run
resize2fs /dev/sda3, you'll get:the reason? partition is xfs!
the problem? xfs_growfs binary is not installed, so the filesystem cannot be expanded
Environment:
kubectl version): v1.34.0/etc/os-release): photon 5/kind bug