How do you get a dynamically expanding VDI to expand?
-
RONSMEYER
- Posts: 28
- Joined: 3. Jul 2010, 04:21
- Primary OS: MS Windows 7
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Win7(32),OS/2 Warp 4, Ubuntu, KUbuntu, DOS
How do you get a dynamically expanding VDI to expand?
I am getting out of space messages in my Win 7 32-bit VM. Plus every time I start the VM I get a message about not enough space for the page file. Drive C: properties in the VM it shows 19.1 GB used, 746 MB available. In the host settings it shows Type (Format): Normal(VDI), Virtual Size: 97.66 GB, Actual Size: 17.26 GB Details: Dynamically allocated storage. There is 446 GB available on the host hard drive. Host is Win 7 64-bit. I thought these type of VDI files were supposed to automatically expand? Yet it seems stuck and will not grow. I don't know what I've done...or not done? How do you get a dynamically expanding VDI to expand?
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: How do you get a dynamically expanding VDI to expand?
When you create the guest you are asked how big you want it to be, which it can not grow past. Dynamic will start small and grow to the size you stipulated.
You can increase the Virtual Drive and it is explained in the users manual, as well as in the following link.
viewtopic.php?f=24&t=50661
Don't forget that you need to expand the primary partition to use the new space. Windows 7 can be extended by using the disk management feature of Windows 7.
You can increase the Virtual Drive and it is explained in the users manual, as well as in the following link.
viewtopic.php?f=24&t=50661
Don't forget that you need to expand the primary partition to use the new space. Windows 7 can be extended by using the disk management feature of Windows 7.
-
RONSMEYER
- Posts: 28
- Joined: 3. Jul 2010, 04:21
- Primary OS: MS Windows 7
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Win7(32),OS/2 Warp 4, Ubuntu, KUbuntu, DOS
Re: How do you get a dynamically expanding VDI to expand?
Expand the primary partition...that was it, thank you. That's not mentioned in the manual btw.
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: How do you get a dynamically expanding VDI to expand?
That's because it has nothing to do with VirtualBox. You need to look at this like real hardware. VirtualBox is providing the hard drive. What you do with it is up to you.That's not mentioned in the manual btw.
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: How do you get a dynamically expanding VDI to expand?
In fact it is mentioned.RONSMEYER wrote:Expand the primary partition...that was it, thank you. That's not mentioned in the manual btw.
VBox user manual section 8.23 wrote: The --resize x option (where x is the desired new total space in megabytes) allows
you to change the capacity of an existing image; this adjusts the logical size of a virtual
disk without affecting the physical size much. 3 This currently works only for VDI and
VHD formats, and only for the dynamically allocated variants, and can only be used to
expand (not shrink) the capacity. For example, if you originally created a 10G disk which
is now full, you can use the --resize 15360 command to change the capacity to 15G
(15,360MB) without having to create a new image and copy all data from within a virtual
machine. Note however that this only changes the drive capacity; you will typically next
need to use a partition management tool inside the guest to adjust the main partition to fill
the drive.