Virtual disk file types, size on host, size in guest
Posted: 10. Jul 2013, 22:01
Hello,
I am new to VirtualBox. I have a working Virtual Machine but notice that the size of the actual virtual disk file on the Host is different (smaller by one third) than the size reported in the Guest O/S.
I would like to have the virtual disk file on the Host be as small as practicable and to better understand what the Guest O/S is reporting.
I would also like to understand which virtual disk file type would be best for my situation.
First some details:
Host: Windows 7 Pro 64-bit SP1
8GB Ram
VirtualBox: 4.2.16 r86992
Guest O/S: Windows 7 Pro 32-bit
I arrived at a working VM by creating a virtual disk in the VMDK format by recovering an Acronis Backup and Recover v11.5 backup file of my source, working, stand-alone Windows 7 32-bit system. It may be worth noting the source Windows system used a 150GB SATA SDD drive. I had to use the VMDK file type because Acronis did not have an option to recover to a VDI type of virtual disk file.
It was easy enough to create the VM I called "Win7-32bit" in VirtualBox. However, the VM would always crash with a BSOD "STOP: 0x0000007B ...".
It took a very long time to resolve this which, after spinning my wheels with various useless efforts, in the end was really quite simple thanks to a tip I found buried in this forum. I just had to move the virtual disk file from the SATA controller, where it went by default or my error, to the IDE controller. The result was a working VM, albeit I had to play with a few Domain issues, but otherwise the VM functions just as expected/hoped and just like the source system did, though a bit sluggish.
The VMDK file on the host started out at about 108GB but grew to about 110GB after I removed quite a number of programs. (I would have expected it to shrink, but perhaps that's another discussion.)
In the "Win7-32bit" Guest O/S the various disk utilities show the size as about 150GB, just as it was on the original source system.
I thought that it might be wise to convert the VMDK file to the native VirtualBox VDI file type thinking, mistakenly, that this might also shrink the file size on the Host. There was no significant difference. Nevertheless, I reconfigured the VM to use the VDI file rather than the original VMDK file.
Then, with Windows Disk Management, I tried to shrink the size of that but the only effect was to increase the size of the "Unallocated" partition on the drive (as seen from the Guest O/S) with no change size of virtual disk file on the Host. I tried the normally wonderful MiniTool Partition Wizard v8 but it could not complete the process.
It may be relevant here to note that the Win7-32bit Guest O/S shows the disk to have 3 partitions, one System Reserved, one for the System (Drive C:) and one unallocated. That's just like the source system. (As an aside, I have Parallels on a Mac, the virtual disk in the Windows 7 64bit Guest O/S shows one partition of 65GB and the virtual disk file, PVM file type, is 44GB. However, this virtual disk was built by installing the Guest O/S into Parallels rather than the method I describe above).
Now some questions:
Q1: Is it preferable to use the VDI virtual disk file type with VirtualBox versus the VDMK file type? (Unless there's a good reason to use the VMDK file type I'll elect to stay with VDI if only for the reason it is native to VirtualBox).
Q2: Is it "normal" to see the Guest O/S reporting the original physical drive size as was on the source system, and the reported size to be much larger than the actual virtual disk file size on the Host?
Once I finish removing programs from the Virtual Machine I'd like to shrink the size of the VDI file as much as can be acheived.
Q3: Is it possible to shrink the size of the VDI file on the Host?
Q4: Is it possible to to adjust the partitions as seen in the Guest O/S so that there is one partition using the full extent of the virtual disk?
Q5: Is it expected that the size of the VDI file on the Host will be significantly different (in this case smaller) that the size as seen by the Guest O/S.
Thanks in advance for tips, tricks and pointers.
I am new to VirtualBox. I have a working Virtual Machine but notice that the size of the actual virtual disk file on the Host is different (smaller by one third) than the size reported in the Guest O/S.
I would like to have the virtual disk file on the Host be as small as practicable and to better understand what the Guest O/S is reporting.
I would also like to understand which virtual disk file type would be best for my situation.
First some details:
Host: Windows 7 Pro 64-bit SP1
8GB Ram
VirtualBox: 4.2.16 r86992
Guest O/S: Windows 7 Pro 32-bit
I arrived at a working VM by creating a virtual disk in the VMDK format by recovering an Acronis Backup and Recover v11.5 backup file of my source, working, stand-alone Windows 7 32-bit system. It may be worth noting the source Windows system used a 150GB SATA SDD drive. I had to use the VMDK file type because Acronis did not have an option to recover to a VDI type of virtual disk file.
It was easy enough to create the VM I called "Win7-32bit" in VirtualBox. However, the VM would always crash with a BSOD "STOP: 0x0000007B ...".
It took a very long time to resolve this which, after spinning my wheels with various useless efforts, in the end was really quite simple thanks to a tip I found buried in this forum. I just had to move the virtual disk file from the SATA controller, where it went by default or my error, to the IDE controller. The result was a working VM, albeit I had to play with a few Domain issues, but otherwise the VM functions just as expected/hoped and just like the source system did, though a bit sluggish.
The VMDK file on the host started out at about 108GB but grew to about 110GB after I removed quite a number of programs. (I would have expected it to shrink, but perhaps that's another discussion.)
In the "Win7-32bit" Guest O/S the various disk utilities show the size as about 150GB, just as it was on the original source system.
I thought that it might be wise to convert the VMDK file to the native VirtualBox VDI file type thinking, mistakenly, that this might also shrink the file size on the Host. There was no significant difference. Nevertheless, I reconfigured the VM to use the VDI file rather than the original VMDK file.
Then, with Windows Disk Management, I tried to shrink the size of that but the only effect was to increase the size of the "Unallocated" partition on the drive (as seen from the Guest O/S) with no change size of virtual disk file on the Host. I tried the normally wonderful MiniTool Partition Wizard v8 but it could not complete the process.
It may be relevant here to note that the Win7-32bit Guest O/S shows the disk to have 3 partitions, one System Reserved, one for the System (Drive C:) and one unallocated. That's just like the source system. (As an aside, I have Parallels on a Mac, the virtual disk in the Windows 7 64bit Guest O/S shows one partition of 65GB and the virtual disk file, PVM file type, is 44GB. However, this virtual disk was built by installing the Guest O/S into Parallels rather than the method I describe above).
Now some questions:
Q1: Is it preferable to use the VDI virtual disk file type with VirtualBox versus the VDMK file type? (Unless there's a good reason to use the VMDK file type I'll elect to stay with VDI if only for the reason it is native to VirtualBox).
Q2: Is it "normal" to see the Guest O/S reporting the original physical drive size as was on the source system, and the reported size to be much larger than the actual virtual disk file size on the Host?
Once I finish removing programs from the Virtual Machine I'd like to shrink the size of the VDI file as much as can be acheived.
Q3: Is it possible to shrink the size of the VDI file on the Host?
Q4: Is it possible to to adjust the partitions as seen in the Guest O/S so that there is one partition using the full extent of the virtual disk?
Q5: Is it expected that the size of the VDI file on the Host will be significantly different (in this case smaller) that the size as seen by the Guest O/S.
Thanks in advance for tips, tricks and pointers.
