Defragging the Guest (ssd related)

Discussions about using Windows guests in VirtualBox.
Post Reply
greyclear
Posts: 21
Joined: 7. Sep 2011, 02:27
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows

Defragging the Guest (ssd related)

Post by greyclear »

Since defragging an SSD is a different than a spinning disks I assume the framentation is no different however what about the guest itself? If the container is fragmented, yet I don't defrag my SSD drive I guess there would be no point in defragging the guest yes?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Defragging the Guest (ssd related)

Post by Perryg »

Same principle applies. Even though you are working with a file the drive is the same, unless you have your guest/s stored on a spin drive.
greyclear
Posts: 21
Joined: 7. Sep 2011, 02:27
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows

Re: Defragging the Guest (ssd related)

Post by greyclear »

Nope all stored on SSD, Virtual Box and the guests. Only data transfers I do from those to spinning disks is via mapped drive.
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: Defragging the Guest (ssd related)

Post by Sasquatch »

SSDs don't need defragmentation because access times are the same no matter how severe. Since you store the Guests on your SSD, make sure you set the SSD bit in the HDD settings of the VM, so they set themselves to work like that. If your Guest OS is W7, it will disable automatic defragmentation when idle.
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.
greyclear
Posts: 21
Joined: 7. Sep 2011, 02:27
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows

Re: Defragging the Guest (ssd related)

Post by greyclear »

The box is checked already. They are XP. My host is Windows 7 and I know they dont need defragging. You can google this information and read an entire day on it where its 80/20 most saying not to and some saying its ok in moderation. My only concern was the container, not where it resides however since it is on an SSD drive I guess there would be no point in it.

Thanks
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: Defragging the Guest (ssd related)

Post by Sasquatch »

Both are a concern. Since you want to avoid unnecessary reads and writes (especially writes), you don't want your VMs to try to defragment itself.
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.
greyclear
Posts: 21
Joined: 7. Sep 2011, 02:27
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows

Re: Defragging the Guest (ssd related)

Post by greyclear »

Aside from prefetching defragging is off on the guest and host. Indexing is off as well
Post Reply