hyperv-vm-provisioning icon indicating copy to clipboard operation
hyperv-vm-provisioning copied to clipboard

Harddisks smaller than 30GB are not properly resized in Ubuntu

Open samstagern opened this issue 5 months ago • 0 comments

.\New-HyperVCloudImageVM.ps1 -VMProcessorCount 2 -VMMemoryStartupBytes 4GB -VHDSizeBytes 20GB -VMName $VMName -ImageVersion "22.04" -VirtualSwitchName $SwitchName -VMGeneration 2 -NetAddress $VMNetAddress -NetGateway $NATGatewayIP -NameServers $VMNameServers -ShowSerialConsoleWindow -ShowVmConnectWindow -GuestAdminUsername "admin" -GuestAdminPassword "admin" -GuestAdminSshPubKey "$key" -Verbose

VHD is set to 20GB and it provisions 2GB.

This is fixed in MR https://github.com/schtritoff/hyperv-vm-provisioning/pull/14/commits

samstagern avatar Sep 10 '24 16:09 samstagern