Hello, i have a vdi virtual hard disk with 120 Gb for my windows10 virtual system. Now as i use more than 100Gb i need to resize the disk to 180gb
So i did it with the virutal media:
But logically when i enter in my windows 10 guest system the size is still the same. I had to partitioning and resize the virtual disk.
so i boot gparted and i found this:
So what im missing or what can i do to resize my virtual hard drive
Any help would be apreciated...
pd: i follow this tutorial https://www.howtogeek.com/124622/how-to ... or-vmware/.. i should have the c:/ disk with allocated memory till the 180 gb ( new size)
Problem resizing vdi virtual hard drive
-
scottgus1
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, Linux
Re: Problem resizing vdi virtual hard drive
You were on the right track with Gparted: After increasing the VDI's final allowed size in Virtualbox, you then have to expand the partitions inside the disk's file system to make use of the new space.
I'm not certain why Gparted did not see the new space. However, the guest OS Windows 10 has its own partition manager, Disk Management. Bout the guest, then web-search how to use Disk Management to increase the main partition.
I'm not certain why Gparted did not see the new space. However, the guest OS Windows 10 has its own partition manager, Disk Management. Bout the guest, then web-search how to use Disk Management to increase the main partition.
-
fth0
- Volunteer
- Posts: 5690
- Joined: 14. Feb 2019, 03:06
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Linux, Windows 10, ...
- Location: Germany
Re: Problem resizing vdi virtual hard drive
GParted would show the new space, if everything were correct. I think the root cause of the problem is visible in the first screenshot of the initial post: It's probably a bad idea to resize only the base disk of a disk with snapshots ...scottgus1 wrote:I'm not certain why Gparted did not see the new space.
-
edufissure
- Posts: 82
- Joined: 8. Sep 2018, 19:27
Re: Problem resizing vdi virtual hard drive
What should i do ? I followed a tutorial....
By the way i think that vbox has to explain better snapshots..
So this is my virtualbox.... id like to delete the snapshots. But im afraid id turn back in time if i delete the last snapshot. Dont know if i delete one snapshot, the other that come from that one are deleted too ( as a tree, some kind of recursive). Id only maintein the last snapshot, or the actual system.
Perhaps id have to do it using terminal and not virtual media ( resize the hard disk)
Thanks in advance
By the way i think that vbox has to explain better snapshots..
So this is my virtualbox.... id like to delete the snapshots. But im afraid id turn back in time if i delete the last snapshot. Dont know if i delete one snapshot, the other that come from that one are deleted too ( as a tree, some kind of recursive). Id only maintein the last snapshot, or the actual system.
Perhaps id have to do it using terminal and not virtual media ( resize the hard disk)
Thanks in advance
-
fth0
- Volunteer
- Posts: 5690
- Joined: 14. Feb 2019, 03:06
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Linux, Windows 10, ...
- Location: Germany
Re: Problem resizing vdi virtual hard drive
The details are described in several chapters of the VirtualBox User Manual, especially in 5.5. Differencing Images. What do you think should be explained better?edufissure wrote:By the way i think that vbox has to explain better snapshots..
If you ask different people (VirtualBox forums, a tutorial) and there are different possibilities what to do, then you get different answers.edufissure wrote:I followed a tutorial....
First of all, make a backup of all files, if anything goes wrong. If I understand you correctly, and you only want the latest state, then proceed as follows. Delete the oldest snapshot from within the VirtualBox Manager. This will merge the contents of the two oldest VDI files together. Then repeat this step until there are no snapshots left. Afterwards, you'll have only one VDI file, and you can than enlarge it as discussed before.edufissure wrote:What should i do ?
-
edufissure
- Posts: 82
- Joined: 8. Sep 2018, 19:27
Re: Problem resizing vdi virtual hard drive
Well i think that is not clear than what do you have to delete, the middle imagees or the last one ?
So i have to do it from virtual media ?
You mean, First of all
https://imagebin.ca/v/5g4KbrDnHrmY
and then
https://imagebin.ca/v/5g4KK3qK3kTO
Or should i do something like :
or should begin by the first snapshot:
So using the Setup of the VM or the virtual media manager. And then begin from the last one or the first one....
Thanks in advance
pd: you were right i want to delete useless snapshots and leave only the last one.....
So i have to do it from virtual media ?
You mean, First of all
https://imagebin.ca/v/5g4KbrDnHrmY
and then
https://imagebin.ca/v/5g4KK3qK3kTO
Or should i do something like :
or should begin by the first snapshot:
So using the Setup of the VM or the virtual media manager. And then begin from the last one or the first one....
Thanks in advance
pd: you were right i want to delete useless snapshots and leave only the last one.....
-
fth0
- Volunteer
- Posts: 5690
- Joined: 14. Feb 2019, 03:06
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Linux, Windows 10, ...
- Location: Germany
Re: Problem resizing vdi virtual hard drive
Well, it doesn't really matter, you can delete all snapshots that you don't need any more, in any order. You have a base image and several differencing images, and the newest image is the only writable image. All other images are read-only, and each one of these is associated with a snapshot (including the base image). If you delete a snapshot, the corresponding image is merged with one of its neighbors, and if you delete all snapshots, in the end all images are merged together.edufissure wrote:Well i think that is not clear than what do you have to delete, the middle imagees or the last one ?
You should use the Snapshots view of the VM in the VirtualBox Manager. And I already suggested to start with the oldest snapshot (although it doesn't matter), because then it's more difficult to accidentally delete the current state.
-
edufissure
- Posts: 82
- Joined: 8. Sep 2018, 19:27
Re: Problem resizing vdi virtual hard drive
I solved the problem cloning the VM. So cloning gets vdi disk with no snapshots. Only one virtual disk.
Then used as said in tutorial Gparted ISO to resize the unused partition, and merge with my original partition. So i get 180gb virtual drive.
Then deleted the origin VM ( after testing that the cloned one worked as expected, with the new virtual disk size).
Thanks
Then used as said in tutorial Gparted ISO to resize the unused partition, and merge with my original partition. So i get 180gb virtual drive.
Then deleted the origin VM ( after testing that the cloned one worked as expected, with the new virtual disk size).
Thanks
-
scottgus1
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows, Linux
Re: Problem resizing vdi virtual hard drive
Great! Glad you kept up the hunt and found a solution.