Skip to content

Latest commit

 

History

History
60 lines (30 loc) · 1.92 KB

README.md

File metadata and controls

60 lines (30 loc) · 1.92 KB

If you use quick create and select one of MS's templates, e.g. Ubuntu 22.04 LTS, the resulting VM generally doesn't have enough space.

If you know this at create time here are steps you can use to increase the space to something useful.

  1. Select quick create and in the quick create select the template you want. ( e.g. Ubuntu 22.04 LTS ) etc

    create1

  2. After creation do not connect. Click edit settings

    create2

  3. Select the hard drive, note the virtual disk location, and then edit the hard drive

    edit1

  4. In the edit wizard, select Expand and click next

    edit2

  5. In the expand panel set the size to what you need and click finish

    edit3

  6. Click OK to dismiss the editor window

  7. Close the 'Create Virtual Machine' success window without connecting

  8. In Hyper-V Manager edit a linux vm other than the one you just created. ( create a second one if you don't have one ). Add the disk from above as SECOND disk

    edit4

  9. Boot up this 2nd VM and install gparted if it isn't already install

  10. Run gparted as root. You should be presented with something like the screenshot below. Select Fix

gparted1

  1. You should then be in the partition editor. Select your disk from the drop down in the upper right hand corner. ( /dev/sdb in this case )

gparted2

  1. Select the partition 1st partition ( /dev/sdb1 in this case ). Click the resize tool

gparted-resize

  1. Use the size slider to maximize the partition ( /dev/sdb1 in this case )

gparted3

  1. Click the apply button to apply the change

gparted-apply

  1. Shutdown the 2nd VM

  2. Edit the 2nd VM, remove the disk you added previously

  3. Boot up your new VM