Windows 10 thinks the VDI is SSD when it's not

Discussions about using Windows guests in VirtualBox.

Windows 10 thinks the VDI is SSD when it's not

Postby filthyPierre » 20. Jun 2016, 07:31

Hi there,

Trying to compact a VM's VDI after update to Windows 10, have deleted Windows.old and all the update files, but for some reason Windows thinks it's installed on SSD (it's not) and won't run optimisation (Optimise Drives tool reports media type as solid state drive, optimise button is greyed out).

Background: I had a Windows 7 Pro VM, base install, nothing extra added. Updated to Windows 10, which went without incident. During the install, it saves the old Windows files in C:\Windows.old, which was about 11 GB. So the dynamic VDI has grown to about 23 GB. I want to shrink it down so I can use it as a barebones template for other VMs I will create. I used the disk cleanup tool to get rid of as much stuff as possible. First thing to do (so I'm told) is to defrag/optimise the guest's disk so that the "vboxmanage modifyhd --compact" will work.

Under Settings -> Storage the "Solid-state Drive" is unchecked. The physical disk where the VDI resides is a conventional disk drive, not SSD. However, my OS/boot disk *is* an SSD, so I wondering if VirtualBox is seeing this and reporting same to the guest.

VirtualBox version is latest, 5.0.22. Windows 10 version is 1511, build 10586.420.

Any help much appreciated. And apologies if this has been answered before, I could not find anything specifically for my issue.

Cheers,

Pete
filthyPierre
 
Posts: 2
Joined: 20. Jun 2016, 07:07

Re: Windows 10 thinks the VDI is SSD when it's not

Postby mpack » 20. Jun 2016, 10:02

The guest OS will think you have an SSD if the "Solid-state Drive" checkbox is enabled in the Storage settings for that drive (*).

Naturally, being a VM, it is irrelevant what kind of technology your host's physical drive uses. The guest OS thinks what you tell it to think.

(*) Note for other readers: of course the guest OS must be "SSD aware" too. Windows 10 is. XP for example isn't.
mpack
Site Moderator
 
Posts: 28164
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Windows 10 thinks the VDI is SSD when it's not

Postby filthyPierre » 21. Jun 2016, 02:12

Thanks for your reply, but as I mentioned in the original post, "Solid-state drive" is UNchecked. As in, not checked. That's why I'm wondering why Windows 10 thinks it's on an SSD when I have not checked that box.

Any ideas?

Cheers,

Pete
filthyPierre
 
Posts: 2
Joined: 20. Jun 2016, 07:07

Re: Windows 10 thinks the VDI is SSD when it's not

Postby mpack » 21. Jun 2016, 10:06

At at guess, I'd say that the checkbox was originally ticked, and that fact has been recorded, if nothing else then by the fact that data structures were created to track trimmable ares of the disk. If what you say is correct then we can be pretty sure that the cause is not anything VirtualBox is currently doing, nor is it anything on your host.

Still, I admit that this raises more interesting questions than I first thought. I assume the supposed underlying data structure must be informed by the specific hardware, including information on flash sector size or at least trim block size. I assume that e.g. VirtualBox informs it that its trim block size is 1MB. If this speculation is correct you could have problems migrating Windows images between different SSDs, and different problems going between hd and SSD. I may have to investigate these issues for my CloneVDI project.
mpack
Site Moderator
 
Posts: 28164
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Windows 10 thinks the VDI is SSD when it's not

Postby jeroenvlek » 27. Jul 2016, 13:17

Host: Arch Linux
Guest: Windows 10
Virtualbox: 5.1.0_OSE r108711

I have the same issue. The checkbox was unchecked. Then I checked it, saved, unchecked again, saved, and restarted. Still only appears as an SSD. I also don't recall ever installing it as an SSD, but let's say I did and forgot about it: How can I convert the .vdi to appearing as a conventional hard disk? (The underlying disk is an SSD).
jeroenvlek
 
Posts: 1
Joined: 27. Jul 2016, 13:10

Re: Windows 10 thinks the VDI is SSD when it's not

Postby mpack » 27. Jul 2016, 13:31

That isn't a VirtualBox question. If you told the guest OS that it's an SSD, and now you want the guest OS to forget what you told it - and your problem is that Windows is ignoring (virtual) hardware changes, then that is a question you'll have to ask on a Windows support site. There's probably some DiskPart command to do it.

I do wonder why you care? What's the downside of letting the guest OS trim the VDI, i.e. by leaving the VBox checkbox ticked?
mpack
Site Moderator
 
Posts: 28164
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP


Return to Windows Guests

Who is online

Users browsing this forum: No registered users and 15 guests