Skip to content

Instantly share code, notes, and snippets.

@willianfalbo
Last active April 18, 2024 13:22
Show Gist options
  • Save willianfalbo/2ee220fb6bd7c501f4aea683fead2573 to your computer and use it in GitHub Desktop.
Save willianfalbo/2ee220fb6bd7c501f4aea683fead2573 to your computer and use it in GitHub Desktop.
Expanding disk inside Hyper-V using Linux Virtual Machine (Ubuntu)

Expanding disk inside Hyper-V using Linux Virtual Machine (Ubuntu)

  1. Turn off your virtual machine

  2. Go to Settings > SCSI Controller > Hard Drive. In the Media section, edit the Virtual Hard Disk and expand to desired space

  3. Start the virtual machine and connect to it

  4. Install the GParted by running the command sudo apt install gparted

  5. Open the GParted GUI (or run the command sudo gparted to open it)

  6. Go through the resizing process on the application's GUI. You could follow this Tutorial on Youtube.

  7. Reboot the machine and done!

References:

https://www.itworld.com/article/2833066/how-to-extend-a-linux-virtual-machine-partition-in-hyper-v.html

https://askubuntu.com/a/1139284

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment