schtritoff / hyperv-vm-provisioning

Quick provisioning of Linux VM using Hyper-V on Windows
76 stars 28 forks source link

Harddisks smaller than 30GB are not properly resized in Ubuntu #16

Closed samstagern closed 1 month ago

samstagern commented 2 months ago

.\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