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.
I did not read all the comments, but if no one has mentioned it yet, using sata disks on Windows XP VMs causes crashes. I had to move back to IDE. I've also used SCSI in some instances (when I needed more than 4 drives in a VM).
I don't think Windows XP has native support for SATA disks right? That could be 1 of the reason for the crashes.
I to followed these instructions both in xp, vista, and win7. I am not seeing the 'huge' speed improvements everyone else is seeing. I am seeing slightly better cpu usage. However disk throughput is about 10-30% slower. Has anyone else done any testing using disk IO tests?
Hi, (sorry for my little english!
I tried to switch from IDE to SATA the Master (virtual) disk on a Windows SRV2003 guest. Everiting goes ok (I used the drivers Intel(R) 82801HEM/HBM SATA AHCI Controller Intel® Matrix Storage driver ver. 10.8 dated oct-2011): I mean no blue screen or any other Windows error. BUT: I made many different tests (i.e with CrystalDiskMark3_0_1, Everest home) and I found out that SATA is MUCH slower than IDE !!! :-??? I can't explain why?... Someone has some ideas? Thank you!!
Does someone know what is better in terms of speed, etc... about CD/DVD Virtual Drive?
I mean: -Is better to put the Virtual CD/DVD onto VirtualIDE? or -Is better to put the Virtual CD/DVD onto VirtualSATA? Hosts: Windows and Linux Guests: Windows and Linux I had tried to boot a LiveDVD of Linux using VirtualSATA controller and it boots ok, also if using VirtualIDE. But i can not see much difference on Boot time since most things at boot time are not related to CD/DVD read speed. I was wondering if someone has done any benchmark about that! I hope VirtualSATA ill be faster, but not sure... ah! also Host CPU usage is important to me!!! One rapid test i had done... dd if=/dev/sr0 of=/dev/null and after a while i press Ctrl+C to stop it and got this: -Host CPU: 44% (VirtualBOX), 54% (Total) -Read Speed: 13MB/s (373MB read on 28.6367 seconds) If i do the same test but using VirtualIDE i get this: -Host CPU: 53% (VirtualBOX), 63% (Total) -Read Speed: 9.9MB/s (278MB read on 28.0895 seconds) So can i asume it is better to use VirtualSATA when it works? Maybe some OS can not boot form a VirtualSATA CD/DVD!!! Another weird thing is (at least it happen to me): -Ubuntu LiveCD 12.04 i386 does not boot on VirtualBOX 4.1.16 r78094... when booting LiveCD it brings message (black screen with with text): This kernel requieres the following features not present on the CPU: pae Unable to boot - please use a kernel appropiate for your CPU. Any solution to that? I test to boot both using VirtualIDE CD and VirtualSATA CD, same mesasage when booting! The Ubuntu version is this one (the last one called "Ubuntu Desktop 12.04 LTS"), the ISO file is: ubuntu-12.04-desktop-i386.iso 701 MB (735,358,976 bytes) Thanks. |
QuicksearchCalendar
My PhotosWhat I've been listening toUndecided by Silverchair on Tue 6 Mar 2012, 11:10:37 AM Young Man, Old Man by The Dissociatives on Tue 6 Mar 2012, 11:06:33 AM black fingernails red wine by Eskimo Joe on Tue 6 Mar 2012, 11:02:27 AM Chasing Cars by Snow Patrol on Tue 6 Mar 2012, 10:57:59 AM Sour Sour Times by Portishead on Tue 6 Mar 2012, 10:54:04 AM She Wants To Move (Album Version) by N*E*R*D on Tue 6 Mar 2012, 10:50:31 AM Last Chance by Jet on Tue 6 Mar 2012, 10:48:39 AM Sick and Tired by Anastacia on Tue 6 Mar 2012, 10:45:07 AM Somethings Gotta Give by The John Butler Trio on Tue 6 Mar 2012, 10:42:02 AM Slip Into Something More Comfortable (Instrumental Version) by Kinobe on Tue 6 Mar 2012, 10:37:20 AM Sat 18 May 2013, 08:19:26 PM
Recently BookmarkedBlog StatsLast entry: 2011-01-10 18:19
279 entries written
521 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 |
|||||||||||||||||||||||||||||||||||||||||||||||||