Performance VHD Windows 7 native vs hosted

Carl in 't Veld
  • Performance VHD Windows 7 native vs hosted Carl in 't Veld

    I have tried two ways of working with my 30-40 GB dynamically expanding VHD which contains a Windows 2012 Server install:

    1. VHD mounted as boot volume
    2. Windows 7 as host os with VirtualBox as virtualization layer

    It appears that the second way performs much slower in terms of virtual harddisk activity! Is there a way to optimize this while keeping Windows 7 as the host os?

    My machine properties:

    • i7 2,4 Ghz CPU
    • 32 GB internal memory
    • 7200 rpm 500 GB hard drive

    Virtual machine properties:

    • 4 CPUs
    • 16 GB internal memory
  • I would convert to a fixed disk if you hope to have a decent experience. This allocates all the space at once and doesn't 'dynamically expand' at the most inconvenient times (Murphy's law). I used to use those and wondered while imaging them why it would take forever, it's still slightly slow w/ fixed disks but much faster. That's likely a huge bottleneck for you.

    1. Along with Microsofts recommendation you can try a fixed VHD

      The I/O performance is highest for fixed VHDs because the file is not dynamically expanded.

    2. Have in mind that your first solution using a VHD mounted as boot volume has only a 1-2% decrease in performance

      Microsoft originally set the target of maximum 10% performance loss when Windows 7 is installed inside a VHD compared to a bare metal installation. They have done good work on this part because tests show that this loss is about 1 or 2 %. There is always some noise inside those tests so you can say that it nearly approaches a bare metal installation. My own experiences during the last weeks are the same; you almost never feel you are working inside a VHD.

  • When you boot into Windows 7 and run a VM with a VHD on the same drive, both OS's are competing for disk activity on the same physical disk.

    The best solution is to add another physical HDD, solely for the use of the VM. This way the two OS's arent competing for the same disk's resources. Sencond best, would be to add a new hard disk, and create a VHD on the new physical disk. Alternatively, you could partition the first hard drive and create a second volume for the VM, but the performance increase would be minimal at best, as they are still on the same physical disk.

    Also, dynamic hard drives are never recommended, unless you are very short on space. If you are bumping up the disk size constantly, the performance will be severely degraded. If space is not an issue, always use a fixed disk size.

Tags
Related questions and answers
  • I have a Dell Inspiron 15 laptop with the following configuration: Model: i5-3575 3.7 GiB of RAM Intel Core i5 4200 CPU @1.60 GHz X4 Intel Haswell Mobile Graphics 350 GB hard drive Ubuntu 13.10 64-bit I have a virtual machine running Windows 7 Ultimate 32-bit (with the latest updates). My problem is that the webcam is not working in the virtual machine. How can I get it to work? It's working fine on the host OS.

  • the current version of IE from your machine. Create multiple virtual hard disks (VHD). Configure Sandboxie to store its sandbox files on a specific drive letter like N: for example. Mount one of your VHDs to N:. Run the IE 7 install file in the sandbox which should actually install IE 7 in the sandbox itself, leaving your OS unchanged. Dismount the IE 7 VHD and mount what will be your IE 8 VHD to N... of that, I'd like to know if my idea here would actually work. FYI - I know that I could embark upon a quest to actually try this on my machine, but, even I did so and it initially appears to work

  • ). It's so slow that there's even a delay when typing. The issue is not restricted to one VM: I have multiple Windows 7 VMs showing the same problem. Any hints would be greatly appreciated in locating.... Disable the shared folder feature — I normally share a few folders between the host and guest OS for easy file exchange. While I didn't expect these changes to make any difference (esp. lowering..., Apple SSD VM running Windows 7, 8 cores, 4GB RAM, SATA disk (not preallocated) VM network: bridged Changes (optimisations) performed so far Windows (Guest): Disabled all non-essential Windows

  • heap Could not create the Java virtual machine. HS: Host: Windows 2008 Server 64 bit (16GB RAM) VS: ORACLE VIRTUAL BOX Virtual Machine: Fedora 16 32bit (3GB RAM) I have tried several solutions...: Java -1.6.0 Maven 2.2.1 PostgreSql Jboss application server Option mvn -e clean install is successfully deployed. But after when I try with mvn -e clean install -Pgwt-admin,gwt-user I have... with same settings with htop memory statistics tool when deploy is in progress memory taken by jboss process is max to 25% of whole memory (3GB).Virtual memory is 50%. What can be done to avoid

  • . When I create a virtual machine with VirtualBox, the default network configuration do the following: Webserver running on host can be accessed by guest and vice versa. Both host and guest OS can be accessed via the Internet. When I create a virtual machine with Hyper-V and assign External network, the following happens: The host looses its Internet connectivity Guest gets connected to the Internet. Webserver running on host is not accessible on guest. When I assign to the Internal network and in physical Ethernet connection property I share Internet connection with vEthernet Hyper

  • . Here is how I currently do things: I am running a virtual machine through Virtual PC. Before and after I do something major, e.g. install new software, I make a backup of the .vhd. This way I can easily do backups and revert back to the previous state if necessary. I would like to utilize the boot to .vhd functionality in Windows 7 to avoid the overhead of running a virtual machine. Is this possible using Windows 7 boot to .vhd or some other method perhaps?

  • it's not JBOD, but data is pretty spread out and not redundant. As this is my primary PC and I don't want to give up the entire OS to storage, my plan is to use OpenFiler in a VM to create a virtual SAN. I will also use Windows Software RAID to mirror the OS. Partitions will be created as follows: D0 P1: 100Mb: System-Reserved Boot D0 P2: 50Gb: Virtual Machine VMDKs for OS D0 P3: 350Gb: Data... installer (RAID-1) HOST 50Gb the Windows 7 partition (RAID-1) GUESTS 50Gb Virtual machine Guest VMDK's (RAID-1) VG1 900Gb Volume group consisting of a RAID-5 and two RAID-1 VG2 300Gb

  • Restore XP mode TheCoach

    to get my "xp mode" back to a certain point? I'm assuming that I need all files in the user\me\appdata\local\microsoft\windows virtual PC\virtual machines\*.* The .vhd file in c:\program files\windows xp mode Is this correct? Any other files? Do I just need to exit out of xp mode completely, restore these files, and then start up xp mode again? Please note: I do realize that I may be back to where I get the "could not enable integration features error", but I've since learned that I may be able to fix this another way. Host OS is Windows 7 Professional 64bit

  • I have two partition on my HDD: C and D. On D: I have a vhd image (with windows 7 ultimate) that I use to boot from. When I'm running the OS from VHD I can still access my physical parititons. Is it possible to dismount them, in order to see just the virtual disks in the VHD OS? I tried with the physical C and it says that I cannot dismount a boot paritition and I think D cannot be dismounted because the VHD is on it.

Data information