Raw partition vs btrfs for Windows 7 guest?

0

If my root filesystem is btrfs on an SSD, will my Windows 7 Virtual Machine guest run better if I install it to a raw partition than if I install it to a file on the btrfs partition?

Host OS: Ubuntu 11.10 (Oneiric) amd64 desktop

Graham

Posted 2011-11-04T07:00:13.027

Reputation: 101

Interesting question - if you install W7 on a physical hard disk, it may eat your bootloader. I know you're asking about speed, so you could use a tmpfs to get the full speed of RAM.

– new123456 – 2011-11-04T11:24:43.113

I would install Win7 to a raw partition using the VirtualBox "passthru" virtualisation which prevents the guest from seeing partitions other than the one configured in VirtualBox, so Win7 won't be able to eat the bootloader. – Graham – 2011-11-07T09:24:44.177

I see VirtualBox since 4.1 has an SSD option to present the virtualised disk to the guest as an SSD, so Win7 guest would at least know to use SSD optimisation. – Graham – 2011-11-07T09:40:59.880

Answers

0

I believe that it will be faster to run the VM from a raw partition after the SSD's blocks have all been written to, because TRIM commands from the guest OS will be passed through to the SSD, which would not be the case (AFAIK) if the VM were running from a file.

I've since written a blog post describing how to set up a Windows 7 guest running from a raw SSD partition under an Ubuntu 11.10 host.

Graham

Posted 2011-11-04T07:00:13.027

Reputation: 101