question

GuillermoPerez-9757 avatar image
0 Votes"
GuillermoPerez-9757 asked jiayaozhu-MSFT answered

Disk Space on VM v1

Eureka! - I created a virtual machine v1 for windows 7. The OS size with all programs I need is 30gb total, but when I come to check the disk file, the size is 49gb... my question is... if windows 7 OS is using a total of 30gb why do I have a 49gb file? I'm trying to backup and the extra 19gb make this a more difficult task... i tried to turn off the machine, edit the disk and "compact" but it's like doing nothing... is there a better way to optimize the disk file? do I need a third party tool?

thank you for your kind help.

PD. As my question is not understood, I will try to explain it in a different way. I successfully created a VM using Hyper-V, the version is 1 and it works fine. When I'm inside of the VM working (with windows 7 by the way), I check the size of my space usage (my programs, updates, drivers, etc and OS), the total is almost 30GB... when I come back to my server (out of my VM), I noticed the disk file is 49GB, I tried to compact without success, my question is... how do I reduce such difference? I do understand it should be a little bigger but 19GB is a lot of space... thank you for your help.

windows-server-hyper-v
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@GuillermoPerez-9757 , From your description, we find the issue is related to Hyper-V, I would remove the tag of "msc-virtual-machine-manager-Hyper-V", which represents deploy Hyper-V in SCVMM。 And add the tag "windows-server-hyper-v" for you to get the appropriate support. Thanks!

0 Votes 0 ·
jiayaozhu-MSFT avatar image
0 Votes"
jiayaozhu-MSFT answered GuillermoPerez-9757 commented

Hi,

Thanks for your posting!

Based on your descriptions, your issue is why there is a difference between “Size” and “Size on disk”? Here are some articles that you may find useful:

https://superuser.com/questions/66825/what-is-the-difference-between-size-and-size-on-disk

https://www.dell.com/support/kbdoc/en-sg/000137280/hard-drive-capacity-is-different-from-the-advertised-size

(Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.)

Thanks for your support!

BR,
Joan


If the Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

The answer you provided is NOT related to what I'm looking for... what has do a virtual machine with a computer BIOS? this is not a physical machine... I think there's a misunderstanding of my question... thank you anyway but is not related to what I'm trying to do or resolve.

0 Votes 0 ·
jiayaozhu-MSFT avatar image
0 Votes"
jiayaozhu-MSFT answered GuillermoPerez-9757 commented

Hi,

Thanks for your further explanation!

Based on your revised descriptions, we need to firstly get the accurate usage size in your VM, so I would like to know how did you get your data, from disk management? If you did not tried PowerShell command, please firstly run Get-WmiObject -Class Win32_logicaldisk to check the space usage in your VM. Then comparing this result with that you got before.

Secondly, if you do have huge discrepancies between what you observed in your VM and that you saw on your server, then I will first check which kind of disk you used, dynamic or static? There are many reasons why you cannot compact your disk. So you can first go to Event Viewer >> Windows logs >> Applications, to find and check any logs related to your failure to compact your VHD(x) file. This way can help you narrow down the causes to your issue.

Thanks for your support and understanding!

BR,
Joan


If the Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

96791-screenshot1.png96746-screenshot2.png



Hi, thank you for your answer. I did attach 2 screenshots, I did not understand the first one (the powershell one) and the other one says its a dynamic disk using IDE... on the other hand, tried to search for an error on the event viewer but nothing comes up... and did grow from 48gb to 49gb when compacting... :-(

thank you for any help you can provide on this situation...

0 Votes 0 ·
screenshot1.png (69.7 KiB)
screenshot2.png (41.9 KiB)
jiayaozhu-MSFT avatar image
0 Votes"
jiayaozhu-MSFT answered

Hi,

Thanks for your reply!

The PowerShell outcomes is in bytes, if you turns them to GB, you will get:

FreeSpace: 104989687808 bytes = 104.989688 GB (almost 105 GB)

DiskSize: 136258252800 bytes = 136.258253 GB

So, you can easily count out that the used space is approximately 30 GB which is exactly how much that you have used. So now you can just relax, everything is just fine.

Thanks for your patience for waiting and for your support for our service! Have a nice day! : )

Best regards
Joan


If the Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.