vdi file size

Discussions about using Windows guests in VirtualBox.
Post Reply
qbektrix
Posts: 2
Joined: 12. Jul 2009, 08:32
Primary OS: MS Windows XP
VBox Version: OSE self-compiled
Guest OSses: WIN XP

vdi file size

Post by qbektrix »

I just installed WinXP using Virtual Box. My machine is running on Win XP also. The Vdi file size is 1.48GB .But when i checked the size from the Guest OS, file size was 0.98gb.

What is the reason from the extra 0.4 gb of file size. Is it normal?

I set the size as Dynamic, but the user is the Guest OS will see size as 10GB.
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Re: vdi file size

Post by baf »

Sorry but I don't understand what you mean. How did you check exactly?
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
qbektrix
Posts: 2
Joined: 12. Jul 2009, 08:32
Primary OS: MS Windows XP
VBox Version: OSE self-compiled
Guest OSses: WIN XP

Re: vdi file size

Post by qbektrix »

My Host is WinXP. The OS in virtualbox is Win XP (Guest OS), it only has 1 drive(C:).

The vdi file when i checked in my host pc, it was 1.49 gb.
When i accesed the guest os and checked the C:, it showed that it only used 0.98 gb.

Is there any way i can shrink the vdi file to 0.98 gb.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: vdi file size

Post by Sasquatch »

The VDI is made of 4 MB 'chunks', which causes this kind of overhead. Once the hard drive reaches it's full size, e.g. 20 GB, it won't be bigger than that. If you would fill it up until there is not a single byte left of free space, the VDI won't be much larger than what you defined for it.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply