Skip to content

Instantly share code, notes, and snippets.

@rafaelbm
Forked from willianfalbo/README.md
Created April 18, 2024 13:22
Show Gist options
  • Save rafaelbm/1241b1d76762a372b13f8aba3f2c5baf to your computer and use it in GitHub Desktop.
Save rafaelbm/1241b1d76762a372b13f8aba3f2c5baf 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