VirtualBox, W7 and SSD...

Page 1 of 2 12 LastLast

  1. Posts : 69
    Win 7
       #1

    VirtualBox, W7 and SSD...


    On my W7x64pro host system I've managed to install Virtualbox and create a VM with W7x86pro guest. All seems to work fine, integration and all.

    However, my host boots from an SSD, and would like to have the guest also to boot (or maybe "reside" is a better word) on the SSD for fast initialization. At the same time I do not want the guest to write extensively to the SSD, but to have the user files on a HD. This is the way I have my host set up; the SSD only holds applications and all (most) user files that get written often are on another drive (I have two 500GB HDs and one 120 GB SSD).

    Does anyone have any hints on how to set this up for the guest?

    PS VirtualBox runs rings around MS Virtual PC, by the way. On my system (AMD Phenom II x6), VPC is useless by comparison...
      My Computer


  2. Posts : 12,177
    Windows 7 Ult x64 - SP1/ Windows 8 Pro x64
       #2

    Depending a little on what SSD you have, the amount of writes rumors on the web are greatly exaggerated.
    For example the manufacturers rated total writes for a Intel X25-m are 182TB, average usage is 1 TB per year, even at 2TB per year it is good for 91 years.
    The manufacturers rated total writes are around 25% of what some SSDs are getting in independent testing.

    I've just started using VB and will look around for the answer to your question.
    Just wanted to alleviate some of the myths about SSD writing.

    Putting some of the guest files on the HDD won't affect the guest OS speed.

    I put VB on my SSD and the entire OS file on my HDD, just testing different scenarios, and the guest OS opens pretty fast and everything else is very responsive, using 2GB RAM for the guest.
      My Computer


  3. TCG
    Posts : 190
    .
       #3

    You could always just install your core programs and such in the VM which resides on the SSD(which will also save precious space on that drive), and then map a network drive from your guest to your host machine to store data on.
      My Computer


  4. Posts : 69
    Win 7
    Thread Starter
       #4

    Thanks for the responses.

    As for SSD write limits, I don't worry.

    But I successfully moved the VM to the SSD, and yes it improves boot speed significantly. Also, apps load quicker, that's for sure.

    Here's what I did to move the VM. Rather simple really.

    1. I copied the *.vdi to a dir on the SSD
    2. I edited Users\<me>\VirtualBox VMs\<VM name>\<VM name>.vbox and changed the path of the VM to point to the new location
    3. Started VB, and added to the VM a new virtual HD on my physical HD
    4. Moved my user files, from within the guest, to the new virtual HD

    Note that many web sites claim that you should edit .VirtualBox\VirtualBox.xml in point 2, but with VB 4.0.10 on W7x64, this is not true. You edit as described in point 2 above.

    Make sure you edit a copy so you can safely restore everything to the original until you know that everything works.

    Now, in the guest just as in the host, I only have programs on the SSD and all user writable data on physical HDs, just to alleviate write wear on the SSD (which is an Intel 320 series 120 GB, btw).
      My Computer


  5. Posts : 12,177
    Windows 7 Ult x64 - SP1/ Windows 8 Pro x64
       #5

    Congrats on the editing, looks good.

    Here is a link to an ongoing SSD endurance test, one of them is a Intel 320 40GB.
    SSD Write Endurance 25nm Vs 34nm

      My Computer


  6. Posts : 5,941
    Linux CENTOS 7 / various Windows OS'es and servers
       #6

    Hi there
    For your SSD try this too :

    You could set your VM so that writes aren't actually done to the disk until you close your session - I'm not sure about VBOX but there must be something in the configuration parameters of the vm about "Persistence".

    Ensure that say the Virtual Machine's Paging file is on a real HDD as well -- in normal running with a sensible amount of RAM allocated to a VM you won't get much paging activity anyway.


    I'm running amongst others a W2K3 server 3072MB VM and it's only using 1100MB on its paging file when running a SAP test development trial system which is a quite intensive application -- otherwise it's paging file drops to 64 MB and is barely used.

    Anybody who knows anything about SAP here will appreciate it's not a trivial application !!.

    Pic enclosed.

    This way you should get the best performance out of your VM and only commit the write to disk at the end of the vm session. Note that some temporary storage will be done on the HOST but that shouldn't be a problem as the host will schedule the I/O properly if it's not too busy.

    As for separating OS and data on a VM -- no prob you can just set up two (or more) virtual disks just like as on a host machine. Set them up as Virtual SCSI devices for better performance.

    Cheers
    jimbo
    Attached Thumbnails Attached Thumbnails VirtualBox, W7 and SSD...-sap.png  
      My Computer


  7. Posts : 69
    Win 7
    Thread Starter
       #7

    Dave76 said:
    Congrats on the editing, looks good.

    Here is a link to an ongoing SSD endurance test, one of them is a Intel 320 40GB.
    SSD Write Endurance 25nm Vs 34nm

    Holy cow! :)
    They're reporting things like "66.2 GB per day for 5 years".
    OK, I'll stop worrying about write wear on my Intel 320...
    Thanks
    // MVHMF
      My Computer


  8. Posts : 12,177
    Windows 7 Ult x64 - SP1/ Windows 8 Pro x64
       #8

    You're welcome, it's a real eye opener.

    So many sites talk about controlling as many writes as possible. A few sites have started to say it's not important, this proves it.
      My Computer


  9. whs
    Posts : 26,210
    Vista, Windows7, Mint Mate, Zorin, Windows 8
       #9

    OppfinnarJocke said:
    Dave76 said:
    Congrats on the editing, looks good.

    Here is a link to an ongoing SSD endurance test, one of them is a Intel 320 40GB.
    SSD Write Endurance 25nm Vs 34nm
    Holy cow! :)
    They're reporting things like "66.2 GB per day for 5 years".
    OK, I'll stop worrying about write wear on my Intel 320...
    Thanks
    // MVHMF
    As an owner of an Intel 320, this may be interesting for you: Intel Confirms Bug in 320 Series SSD
      My Computer


  10. Posts : 69
    Win 7
    Thread Starter
       #10

    whs said:
    As an owner of an Intel 320, this may be interesting for you: Intel Confirms Bug in 320 Series SSD
    Ooops... Thanks for the tip.

    I have all my data on HDs, and only W7 and apps (plus VMs etc) on the SSD. But it would still be annoying to one day turn on the computer only to find it reports a missing boot partition and only an 8MB system disk

    So I just took system image of the SSD and put it on one of the HDs...
      My Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 00:50.
Find Us