Thursday, September 25. 2008Improving VirtualBox performanceTrackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
Hi,
So, did you notice the performance gain after using SATA? and what is the difference?
Hi Alsan,
Indeed. Moving to SATA I saw CPU usage drop around 20-25%. Disk access also seemed a lot faster. Boot up time dropped by around 10 seconds as well.
Holy crap. My XP/32 guest now boots in literally a few seconds, awesome tip!
Hi,
I've followed your instructions, but after than my virtual debian can't boot. It hangs on booting kernel. With IDE it works fine. Any thoughts
Yes,
You need to ensure you have support in your kernel and your initrd image for the SATA controller. Without it, it will not know where to find the root partition to mount.
Hi, I'm confused as to how to do it under the 2 scenarios:
1. I already have Virtualbox AND a copy of Win7 installed on "stock, IDE" configuration and NOW wish to "activate" this SATA performance boost, 2. I do not have Virtualbox NOR Windows 7 installed, i.e. meaning I wish to activate this SATA support from a FRESH start. Qn1. The thing is, for scenario one, how do I VERIFY IF I need to do step 2 and 3 of your guide above? Qn2. for scenario two, well, anyway to enable this from the start for all my new VMs? I'm a virtualbox newbie here, hope you can clarify my queires above. Thanks!
Hi Aaron,
To answer your questions: A1: You will need to do step 2 and 3. Try the following URL to get the software: Intel Storage Matrix Manager A2: You can attempt to install it directly at install time. Notice I give reference to using the F6 option to install additional drivers. You may find Win7 already has support for SATA disks (WinXP certainly didn't).
Hi Matt, thanks for the speedy response. Even if Win7 has integrated SATA driver/interface support, if I were to start from scratch, how do I ENSURE the NEW "virtual hard disk" I create for it is "using" a SATA interface from the get-go instead of an IDE interface(which I believe Virtualbox will adopt by default, to play safe)?
Hi Aaron,
I understand you now. Basically you need to do the following: 1. Create you VirtualBox guest. 2. Once created. DO NOT START IT! 3. Hit Settings, and change to the HardDisk area. 4. Enable the SATA controller. 5. Change the IDE interface of your HDD to 'SATA 0'. 6. Once this is setup, you can now start. (Refer to the image located at http://matt.bottrell.com.au/uploads/VirtualBox-Disk-Settings.png). More info on VirtualBox Harddisks.
Awesome tip .. Thank : )
I did this for Windows 2k8 R2... Speed improvement is enourmous. One thing you should mention in the steps is the reason why a temp disk is necessary (step 5)... that is so that Windows can install the drivers and see the virtual disk once its configured to SATA port 0 otherwise it'll say cant find windows and load the repair... (whats what I went through) Cheers! very happy
"Download and install the Intel Matrix Storage Manager (used to see the SATA interface)."
Download link broken
Hi,
I am a big Virtualbox fan as I've been using it for over a year now and found this very interesting - BUT: My configuration: Host OS – Win2k3, SP2, fully patched, Dual XEON 2.66 GHz, 4GB RAM VirtualBox 3.0.10 r54097 Test guest OS – WinXP SP3, fully patched, running of an IDE disk image 1) Installing the Intel(R) Matrix Storage Manager ver 8.9.0.1023 as described in step 1,2 and 3 will fail if there is no SATA disk already attached to the Guest OS. You need to shut the guest down, attach the new raw disk as SATA, power up, install the driver - then shut guest down, change master (system disk image) from IDE to SATA and power up again. 2) Now everything looks good, my test XP guest machine is flying, Host CPU utilization is between 2-4 % when searching for any file named ‘a’ on guest (50 GB of data files) but be careful, do not try to “Find new hardware” on guest as it will crash into Blue Death!!! I'll be looking into this today afternoon, but it's down to the driver collision. I’ll try and install a clean XP directly on a SATA dist image and point to the SATA driver during installation on the floppy image, or Slip stream it with nLite. At this moment I do NOT recommend applying this on a “live” guest as it destabilizes it, but it’s OK if you first create a snapshot, play around with it and then discard it ? Will let you know.
Hi Eveyone,
to my previous post - I spent 5 hours now fiddling out how to "replace" (migrate from) the old IDE driver with the new SATA one for Win guests OS XP32 Pro, Win2k3 without crashing into "blue death" after hitting "refresh Hardware" and no luck http://pirate.planetarion.com/showthread.php?t=187776 It's a good guide for those who don't have any experience with HW/Win OS but they have a different problem -> they need to clone a physical disk from IDE to SATA (we VirtualBox fans can just switch over by a setting parrameter I've done more testing on the SATA disk IO access and is it just amazing!! I work as a VS2008 developer and have SQL Server on one of my guest Win2k3 systems, develop on an other Win2k3 guest system and test it all from a XP guest all via VirtualBox's local LAN. SQL responses with the new SATA driver over a 20 GB DB are just so much better to just leave it "as it is"!!! Only if it was stable Anyway this just too good to be get ignorered as most of us have been just comparing VM products and then once decide for a product, install a guest "defaultly" and get the work done. But there might be some of us like me who use their guest systems as a Production system and would be happy to improve disk IO. PS: Just in case anybody would be interested: I am working on an project to get VirtualBox Guest systems running as an Windows NT Service without the need having to login on to the host system and manually power up the quests as they are all Win NT profile bassed :-(( I have spent hours on the net but nothing out there waits to power down the guest safely before shutting down the host system - Win OS!! Will keep this link up-to-date as thank you VERY MUCH for the INFO avbove Cheers, Jan
Install worked well. Thanks to everybody's notes.
I'm using a Mac OS host, and windows is the guest. Just an observation (no metrics), XP guest booting doesn't seem to be too much zippier than prior to the update. There is a noticeable increase in speed loading apps, that's for sure. Mike
Hi Everyone,
OK, some time has passed by and I’m back with my feedback on VirtualBox, Win XP/2K3 and SATA driver installation/upgrade. To make it easy I will first tell you what worked out for me after hours and hours of testing and at the end list a short description of what I went through with no luck. HOST Configuration HW - Dual XEON 2.66 GHz, 4GB RAM OS - Windows 2k3 Standard Edition, SP2, fully patched VirtualBox - 3.1.0 r55467 GUEST Configuration HW - N/A (SATA controller enabled!!) OS - XP, SP3 - fully patched So here comes the trick Intel(R) 82801HEM/HBM SATA AHCI Controller Intel® Matrix Storage driver ver. 7.8.0.1012, Dated 9/29/2007 You can download the driver from Intel’s website but be sure you get the correct driver version as NOTHING after works!!! You can upgrade/convert your current bootable IDE VDI to SATA by adding a SATA VDI (or enable SATA controller) to the Guest OS, install the driver and then switch over from IDE to SATA Or Slipstream the driver (I used N-Lite) and install the OS directly on and SATA disk (do integrate SP2/SP3 to XP, I had some BSOD on the core installation) Or Create a Floppy disk image and copy the driver files to the root A: and during the installation press F6 for add additional SCSI/RAID Drivers. That’s it – nothing else worked for me. I’ve tried all combinations of VirtualBox vers and the Intel® Matrix Storage driver vers and nothing worked out to be stable enough. VirtualBox-3.0.8-53140 VirtualBox-3.0.10-54097 VirtualBox-3.0.12-54655 VirtualBox-3.1.0-55467 In combination with Intel® Matrix Storage driver 8.6 Intel® Matrix Storage driver 8.7 Intel® Matrix Storage driver 8.8 Intel® Matrix Storage driver 8.9 Everything resolved in a BSOD sooner or later. Hope this helped. Cheers, Jan
Great post - thanks for the info.
I did my setup a little differently though: - In the virtual XP I installed the Intel Matrix Storage driver - Right clicked My Computer and went Manage | Devices, then deleted the IDE ATA/ATAPI entries (avoids blue screen on boot with a direct IDE to SATA change in VirtualBox settings) - Turn off the virtual machine and switch the virtual drive over from IDE to SATA - Boot up the virtual machine, windows thrashes a bit and says it's found and config'd new hardware, plz reboot - On final reboot we're hot to trot Just thought you/your readers might want to know a way of switching IDE to SATA without creating a temporary HD, although it's not really much of a hassle to do so. Cheers!
An alternate solution is to shut down the virtual machine, add a SATA controller to the VirtualBox configuration for the VM and then boot Windows. Windows should pick up the new device and automatically install the SATA drivers. Then shutdown the VM , move the boot disk to the SATA interface and start the VM again.
Great post- got everything working. Unfortunately my system in SATA mode is 30% slower than in ID mode. Any ideas why that would be happening?
Never even thought that would help- trying now. I see the drive under the intel SATA controller so i figured why install guest editions. Let u know what I find.
Hi I have an AMD Athlom 64 Processor 3000+, do you know where I can download the SATA controller to install on my guest machine? I´m trying to improve my virtual machine on virtualbox.
Thanks!
Hi JP,
You can use the same software. Intel refers to the internal SATA disk controller in the virtual machine, not in relation to the CPU in your host. |
QuicksearchCalendar
My PhotosWhat I've been listening toWe Want More by The Living End on Tue 31 Aug 2010, 03:00:43 PM Headmaster Ritual by Radiohead on Tue 31 Aug 2010, 02:55:50 PM The Beauty Of Gray by Live on Tue 31 Aug 2010, 02:51:34 PM Don't Panic by Coldplay on Tue 31 Aug 2010, 02:49:18 PM Hold Tight London (feat Anna-Lynne Williams) by The Chemical Brothers on Tue 31 Aug 2010, 02:43:18 PM Cantaloupe Island by Kai Winding on Tue 31 Aug 2010, 02:37:33 PM Twosome (Marta et Katalin version) by Deep Forest on Tue 31 Aug 2010, 02:33:25 PM The Big Jump by The Chemical Brothers on Tue 31 Aug 2010, 02:28:41 PM Key to the Highway by Derek and the Dominos on Tue 31 Aug 2010, 02:22:14 PM Isolate by Moby on Tue 31 Aug 2010, 02:18:46 PM Fri 3 Sep 2010, 09:32:49 AM
Recently BookmarkedBlog StatsLast entry: 2010-07-25 10:10
278 entries written
493 comments have been made
Blog Tags accounting advertising alerting apps asterisk australia birthday building coding cricket email entertainment failure family firefox football friends gnome google government hardware health holiday house humour Internet ISP java life linksys Linux marriage microsoft mistake monitoring movies mozilla nagios networking news office openoffice open source opinion oss pets phone photo play politics power relax respect review security shopping sms snom snoring society software spam sport support sysadmin technology telephony tennis terrorism tv twitter ups virtualbox virtualization voip web weekend wildlife windows wine wireless workLicense |
|||||||||||||||||||||||||||||||||||||||||||||||||