Jump to content











Photo
- - - - -

System & Differencing VHDs synch and update strategy


  • Please log in to reply
22 replies to this topic

#1 sambul61

sambul61

    Gold Member

  • Advanced user
  • 1568 posts
  •  
    American Samoa

Posted 10 September 2011 - 07:12 PM

Suppose, one needs to work with several apps that conflict with each other if installed on a single Win 7 volume. One way is to setup a few Windows partitions, but it looks clattering. Another way to resolve the issue would be to prepare a VHD with clean Win 7 install on it, clone that VHD to several copies, correct their drive sigs to avoid collision, save all on the same drive. Than each VHD can be booted from and a different app installed on each. Now one can boot to any of VHDs and work & update the select app installed only on it without any conflicts with other apps.

The problem is how to sync Windows Updates and extra accessory soft that would inevitably need to be installed afterwards on each VHD or partition. Ideally, a different approach would be better suited, if all apps should be accessible from the same PC, and using VMs is not acceptable due to slow performance and lack of hardware support required by the apps. Namely, what if a Basic VHD or partition is prepared and than continues to be amended and updated with extra accessory soft and Win Updates. At the same time several Differencing (or Incremental) VHDs are prepared that all refer to the same Basic VHD, but different major apps are installed on each. Would this concept fly by allowing easy update of the Basic VHD, assuming the Diff VHDs are made persistent (don't disappear after dismount)?

Or, anyone is able to suggest another update strategy for all VHDs that would not require duplicate Win Update downloads and installs after booting to each VHD, while not affecting different major apps installed on each?

#2 sbaeder

sbaeder

    Gold Member

  • .script developer
  • 1338 posts
  • Location:usa - massachusettes
  •  
    United States

Posted 10 September 2011 - 09:31 PM

According to this post (http://blogs.msdn.co...-guideline.aspx) also mentioned in the other topic you posted on booting VHDs, there is also performance hit fror using a VHD of about 3%...this is about what you would expect from good virtualization. There is also some other pointers there to using differencing VHD's, but I think you are going to find that you can't have them difference to a single base.

I'm not sure if some of the newest virtualization deployment tactics would let you basically share a main disk, and apply differences on top of it - sort of like the layered file system approach in Linux.

So, in the tradition of Wonko, what is the real issue/problem you are looking to solve, not how are we trying to solve it (with VHD's)...For example, is this just to isolate two (or more) programs that don't play nicely together? Or is it something else.

For example, if they each were in their own MINI-VM, then unless there was a bug that affected the application, you wouldn't have to update/patch it's VM...Afterall, most MS patchs are core OS security or specific in nature, and not really "required" for normal daily use (if we weren't worried about Malware, worms, virus, etc.)...

Anyway, more background might help us all here

:cheers:
scott

#3 sambul61

sambul61

    Gold Member

  • Advanced user
  • 1568 posts
  •  
    American Samoa

Posted 10 September 2011 - 09:55 PM

Yes, of course, the apps are quite heavy, they don't leave and install alone well. Plus, while updated periodically, they may replace common files, used by another app. Besides, each app is surrounded by several other apps developed and working with it only. In addition each major app ideally requires specific optimized for it GPU driver version - its not uncommon in CAD & CAE world. Hence, they should be placed in opposite corners, boxing style. :chair: Running them in VMs won't work due to lack in VMs of actual hardware support like GPU advanced features. Besides, VMs are still a lot slower than VHDs, and require huge extra RAM, while VHDs don't. Running them network style is more suitable for a large enterprise with sound server and network architecture.

And again, I consider Win Update important enough feature to avoid simply dropping it entirely. So you say, one can't have several differencing disks to a common base? Its kind of strange, if you think about multiple possible purposes of an incremental volume. Will have to post it to MS guys. And may be to VMWare guys - they are used to similar questions anyway. Can you suggest a different solution?

#4 sbaeder

sbaeder

    Gold Member

  • .script developer
  • 1338 posts
  • Location:usa - massachusettes
  •  
    United States

Posted 10 September 2011 - 11:57 PM

Can you suggest a different solution?

Not off the top of my head, and having come from the world of CAD (EDA) for over 25 yeras, I totally understand the issue. Of course most of our stuff was Linix/Unix and only recently at the "lower" :) end did we get into Windows/PC based software. Maybe there is some way to leverage file de-duplication, but with windows, there is so much in the registry and the like that needs to be kept synchronized with the "core" that I'm not sure how easy it could be...

But an interesting issue, especially for larger enterprises that need to leverage multiple environments on a single piece of HW...

#5 sambul61

sambul61

    Gold Member

  • Advanced user
  • 1568 posts
  •  
    American Samoa

Posted 11 September 2011 - 12:06 AM

This issue is also important for smaller innovative companies who partner with several large enterprises, and need to exchange data with them preferably in their native app format without conversion. Apparently, the future is brighter than we think. This MS developer's blog article says:

" On volume V: we would like to create a read-only physically bootable Windows 7 parent virtual image, and one ore more differencing images based on that parent-image. The benefit of such scenario is obvious; we create the parent image including all commonly used stabilized components and using differencing images e.g. for beta products....The perfect scenario is rather to create a differencing vhd image and installing Beta bits on that differencing vhd. The parent vhd image is set to read-only and is not impacted by betas at all".

So it appears that at solution conceptualization stage it seems like some kind of approach worse to try experimenting with. :cheerleader:

#6 Natrix

Natrix
  • Members
  • 5 posts
  •  
    Canada

Posted 11 September 2011 - 12:25 AM

Xen Cloud Platform got VHD differencing in a Ext3 Storage, in XCP 1.0 diff is Cloning a VM.

Also VBoot, support very well differencing VHD comparatively to MS VHD diff who lack some feature and some/all windows distribution, no VHD boot for Home user :P

one time by mistake or tentation I have boot the main VHD of alot of Diff one. On MS VHD no chance to boot a diff VHD anymore BSOD.
but with VBoot they forgot the BSOD part. But I have not tested a lot of sector change of my main VHD for then test the snapshot.
But with MS VHD no chance and VBoot no problemo.
Look like the MS VHD driver is very fragile and storage consommer mostly when it come to SSD and snapshot.
BTW, vboot will release the v2 of the vhd boot driver in 5 days and now with a lot of feature... ram caching file caching ram boot etc..
with desktop that can now upgrade up to 48Gb ram when 8Gb release. I prefert buy memory then storage like SSD.
and I almost forgot the best VHD diff is who have a parent at storage on SSD and it seft diff on ... ("ram") or pernament HD. ( remember what kill SSD ? writes, thats why TRIM exist, hopefully, but dont have to if just use SSD for fast ramdom read, then RAID0 of cheap SSDs would be very good, (but raid0 blow alway TRIM fonction).
and for conclude... why only one snapshot? limitation on MS driver... they dont imagine that home user could use a fonction that can save them lot of time, money and fustration of waiting a recovery !"*($Y!*&$! . so MS let home user play in a virus environement that they create expecialy for them and for there Geek Formater appliance shop :P
but thats why Win8 comming... tssss Vboot work also on XP, no need to buy new OS for compagny.
a snapshot of a snapshot why not ? testing program install, etc.... then merge the snapshots in one after aproval.
but certain people alway prefert a recovery :D waiting is important is money after all !

and sambul I dont understand your way of "colitioning" VHD appliance but I think I know what you search for.
and again is exactly what VBoot v.2 will do ... in the "possible" of thing is a file ram caching way and you have the choise of "aproval" change on disk after close the file program that were caching. ( is not clear for me too, after all Vboot V.2 is release only in about 1 week for now)
So think of a VHD booting on Ram only and commit live change to its VHD main/snapshot kick start.
this message was suposed to be very short at the beginning hihi
is all I have to said apart that I'm sorry for my bad english!
p.s. I not trying to sell you a driver, but test it when v.2 is available, I have test since v.1 and now v.2 bugfix all the hardware incompatibility and improve performance more !
and if your linux booting is perfect for VBoot who start any boot sector in any VHD with Grub2 ease interface, no need chainload Bootmgr from any grub/syslinux/boot manager also VHD chainloading is not possible anyway

Edited by Natrix, 11 September 2011 - 12:39 AM.


#7 sambul61

sambul61

    Gold Member

  • Advanced user
  • 1568 posts
  •  
    American Samoa

Posted 11 September 2011 - 12:33 AM

Interesting update on Vboot 2.0. What its free trial period is going to be? There is a separate thread on this forum about Vboot. The Disk Signature collision avoidance concept was described here and is relevant to cloning a Base VHD from a local HD with Win 7 installed on it, and then using both on the same system.

Speaking of differencing VHDs, I found this article Implementing a Windows 7 SteadyState by utilizing differencing VHD files and the “Boot from VHD” feature that seems to almost exactly address similar concept or task. I think, I'm going to try this approach.

#8 sbaeder

sbaeder

    Gold Member

  • .script developer
  • 1338 posts
  • Location:usa - massachusettes
  •  
    United States

Posted 11 September 2011 - 12:46 AM

So it appears that at solution conceptualization stage it seems like some kind of approach worse to try experimenting with.

Well, yes and no. I'm not sure how the whole issue of updates and patches comes into play here. Since *IF* the differencing images have all sorts of additions to the registry, I'm not sure you could easily take the base image and update it without having to totally recreate the new "differencing" images... Yes, if the foundation is solid and doesn't change, then this could possibly be a way to leverage things - i.e. instead of two or more different "beta" products, you had two or more different client programs that needed to be isolated.

But depending on if there is any overlap at all or dependency...i.e. A and C are in the base, and tightly coupled together. B depends on A and is in Add-on #1 C is in add-on #2 and is different that the C in the Base. If you update the base, and A and C both change, then #2 is totally broken until you also update it. And it may now need to have it's OWN A and C...

Take that out to the thousands of files and registry entries and dependencies in Windows and typical applications, and you have a big mess...This was something I struggled with for MANY years as we tried to deliver working suites of tools to customers and also manage patches and bug fixes.

Here is a simple picture...
Attached File  New Bitmap Image.bmp   594.19KB   1044 downloads
If "product" A is the circle of 1,4,5,7 and B is the circle of 2,5,6,7 and C is the circle of 3,4,6,7 and for laughs, 6 and 7 are in the same "dll", then you can see that updates to the "base" could have an impact on the whole continuing to work correctly...So, the only answer is to update (or re-place the creation of the "differencing" disk.

Maybe there are enough parts of the base that could be shared in the initial creation of the environments that it is a "win" on diskspace...BUT, I don't see any way out of the individually applying the patches to each environment - and then, at some point in the future, recreate a new base and a new set of differencing disks.

BUT, as I siad, a worthy thought process and if there is a way to make it work - GREAT!

#9 Natrix

Natrix
  • Members
  • 5 posts
  •  
    Canada

Posted 11 September 2011 - 12:53 AM

The Disk Signature collision avoidance only give me boot the no-VHD windows instead the VHD I want to boot.
But I was almost certain that just changing the BCD boot manager option of the location of the OS (NO VHD HERE) the os file like C: for BOOT in EasyBCD solve my problems... here in a VBoot way!
but for MS VHD boot BCD option are taken before VHD boot, and VBoot VHD boot .. after the vhd boot then it start the BCD boot manager
And for the old myth of never copy win OS from a PC or HD to another PC or HD on same computer because of certain parameter like disk signature I others things that I have forgot ... is no longer true with new OS.. I dont know for XP but 7 I never had problem.
maybe you can elaborated for my poor comprehension of the scare of the "Disk Signature collision" ( dont forgot that I use VBoot )

VBoot 2.0 supose have a 14 day trial full feature. but only few will be necesary :P and not for PC crash but pay cash!




p.s omg lOL Implementing a Windows 7 SteadyState is so ridicule ! MS could have write special program for do what a WinPE could do... but WinPE could also take lot of time booting in. WinPE 3.0 take long... and steadystate is something I already write myseft before they came with the idea.. and I'm not programmer.
VBoot have these feature but with a blink of a eye at the Grub2 Boot Manager just press I for immuable press S for doing another snapshot even is already one press R for restoring to..
OMG SteadyState suck and is time consuming for testing environnement. boot winpe for doing one opération is completely ridiculus if you know VBoot and know that time is money.

Edited by Natrix, 11 September 2011 - 01:08 AM.


#10 sambul61

sambul61

    Gold Member

  • Advanced user
  • 1568 posts
  •  
    American Samoa

Posted 11 September 2011 - 01:04 AM

sbaeder

Yes, you have a huge point. I don't think, MS guys thought it through that far. They address so far "read only" concept of a base disk. Despite one approach may be that at the time base disk is updated, these changes propagate to all differencing disks if required. On the other hand, each differencing disk should be self-sufficient, i.e. probably having a copy of Base Disk Registry and critical system files, and all changes to them on that disk. Once Base Disk is updated, a new copy of its Registry can presumingly propagate to a differencing disk. How it will affect changes made on it by the earlier installed app - who knows... How updating later that app will affect local Registry copy match with Base Disk - its another question.

It appears, Base VHD can not be updated in principle in MS concept or even booted to after differencing VHDs are created. All Windows Updates are to be applied only to differencing disks. This in turn partially negates the whole purpose of this solution, unless differencing disks updates are done via a local server, and possibly by a method other than traditional patch install.

MSDN VHD FAQ: "You should not modify the parent of a differencing VHD. If the parent VHD is changed or replaced by a different VHD (even if it has the same file name), the block structure between the parent and differencing VHD will no longer match and the differencing VHD will be corrupted.

You must keep both files (the parent VHD and the differencing VHD) in the same directory on a local volume for native-boot scenarios. For native-boot VHDs, the parent VHD and the differencing disk cannot reside on different volumes, even if they reside on the same local disk. However, when you attach a differencing VHD that is not used for native boot (for example, if you plan to use it for image management), the parent VHD can be in different directories, and on a different volume or even on a remote share."

As to Windows Update, it does work on a single PC without adversely affecting earlier installed apps on that system volume. Probably, because Windows now keeps multiple copies of each system dll, if different dll versions were installed by the apps. Anyway, did you notice, many outside folks talk about differencing VHDs from practical application standpoint, but not Microsoft. This is a sure sign of under-developed area. I wonder, what Ulli has to say about it. Updating VMware and VM OS installs should also affect differencing VMDKs. :beer:

Natrix

14-day trial is too short for a boot app that requires a lot of new concepts thinking over from a novice or enterprise user - I say novice since experienced Grub4DOS users won't pay $80 for Vboot. As to collision avoidance, its not old staff. Just recently I was unable to boot Win7 after Restoring a Win7 Backup archive to another drive on the same PC with Acronis. I had to use Paragon Fix Boot Disk utility to fix Sig and Reg issues on the Restored volume. Also, besides booting from VHDs, they can be mounted on the same PC for data exchange. In that scenario collision avoidance is major issue as well, as after dismount they should remain bootable on the same PC, hence their Sigs should not change.. Of course, a known solution is Generalize (delete MountedDevices subkey) manually or with MS Sysprep before cloning, or for using the Clone on the same PC - just edit BCD Store of the cloned volume.

#11 Natrix

Natrix
  • Members
  • 5 posts
  •  
    Canada

Posted 11 September 2011 - 01:32 AM

plz stop using Win7 Backup and restoring is a damn shit if your hd change little you cannot restore.... what king of restore is that ? I think is more for my grand father use to dont think and wait. ( and if you do think like restore to another HD wait for ever. at the programed error)
Use GImagex instead of Acronis is more commont lol
Sorry but you completely lost me when you said : Just recently I was unable to boot Win7 after Restoring a Win7 Backup archive to another drive on the same PC with Acronis.
So you a combining two almost crasp software Acronis..... and Win 7 Backup damn plz try someting else anyting ...is more flexyble I'm not saying is VBoot I telling you stop using "fake use tool software"
Paragon Tool is better so. but plz Acronis and Win7 Backup... damn I dont understand what you do on reboot.pro forum..... freedom you mind of your problem of the past and go find your future tool.... maybe you could start another topic forum for...

Edited by Natrix, 11 September 2011 - 01:34 AM.


#12 sambul61

sambul61

    Gold Member

  • Advanced user
  • 1568 posts
  •  
    American Samoa

Posted 11 September 2011 - 04:20 AM

The backup was done with Acronis, which is one of most popular backup tools. Before judging it, show me what YOU accomplished in this world? Only 4 posts, and already asking others what they're doing on the forum? May be its time for you to take a deep breath while still in good spirit? :fool:

You should not interfere with off topic staff and aggravate others, it violates forum rules, you can be banned if continue. This forum is not Vboot advertising platform, and you can't hijack others' threads just because no-one reads here about Vboot, since Grub4DOS and Burg are free. What exactly are you doing here?

#13 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 11 September 2011 - 09:54 AM

I really don't get what the real fuss is actually about. :dubbio:
Windows 7 can be installed allright in a Logical Volume inside extended (just like *any* NT family OS).
I see no actual problem in having a disk with as many logical volumes in Extended partition as you wish. :dubbio:
And I see no actual difference (in the sense of particularly complex procedures in managing a number of .vhd images or managing a number of logical volumes).
To all effects having several Windows 7 installs on several .vhd files or having them on several logical volumes does not really make a practical difference.
The problem of keeping them all updated to the same SP release/update/hotfix etc. seems to me exactly the same.
Basically you have several different Windows 7 installs (on the same machine) and it is not unlike having several Windows 7 installs on a set of identical machines.
This is a typical enterprise setting, where instead all clients have usually the same software.

I presume that the easiest could be using what is normally used in such a scenario, like WSUS or a similar solution. (this will eliminate the duplicate downloads, but of course each logical volume or vhd will need to connect to the WSUS server and install the updates). :unsure:

:cheers:
Wonko

#14 sambul61

sambul61

    Gold Member

  • Advanced user
  • 1568 posts
  •  
    American Samoa

Posted 11 September 2011 - 11:47 AM

Wonko,

Thanks for the WSUS hint! When starting this thread, it was unclear for me, whether VHDs can better serve the task. Now I see, the VHD concept needs further work from MS, since it doesn't fully address inspirations of multiple user groups as some web buzz reflects. Basically, they primarily developed the incremental feature for testing own staff. Let's try to discuss these avenues with MS guys. At times they deny or seemingly ignore even directly addressed feedback, only to resolve the issue in the next release. At times however it crosses their bosses "vision", and the issue is never addressed even if delivered to the right people. Will see...

I'd love to exploit VHD approach a bit more, as all current trends in business environment are towards virtualization, and native VHD boot delivers ideal solution in terms of very low productivity hit and overhead. However, Win and generic programs update on a base VHD volume, and then changed disk structure syncing with child volumes need to be addressed to show definitive advantages of VHD approach compare to multiple Win installs in logical partitions in described scenario.

#15 sambul61

sambul61

    Gold Member

  • Advanced user
  • 1568 posts
  •  
    American Samoa

Posted 11 September 2011 - 03:15 PM

Wonko,

I forget to mention however, Base & Differencing VHD concept has significant advantages compare to Multiple Logical Partitions approach. Namely, one needs to install OS and most generic apps only once on a Base VHD. And only potentially conflicting with each other apps are installed on several Differencing VHDs linked to the same Base. As a result, you need only single License for each app, no licensing issues ever, and required HD space to store all VHDs is drastically reduced compare to holding several logical partitions with OS and all generic apps installed on each.

So, the concept of VHDs is greatly beneficial compare to physical drives in such scenario. Except, it presumes, all future OS and generic & special apps updates will be done on each Differencing VHD, while Base VHD will remain Read Only. In that sense it offers no advantages compare to logical partitions. However, I failed to see any serious drawbacks either, so overall VHD approach seems to make a lot more sense. :dubbio:

#16 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 11 September 2011 - 03:43 PM

Well, theory is a good thing, practice is usually better.

How big needs to be a volume containing the OS + a given set of apps? (but NOT any data)
Say 30 Gb.
You can fit 15 of such volumes in a common US$ 40 500 Gb disk or 30 on a US$ 60 1Tb one.
Let's wait when (mind you I sincerely hope it won't happen and that you have anyway a solid backup/imaging procedure) one of the base or diifferencing .vhd - for -any reason - becomes corrupt.
If you read this:
http://technet.micro.../dd440865(WS.10).aspx
that maybe will also help you understand the other issue you are having with .vhd booting and particularly this one:
particularly this part:
http://technet.micro.../dd440865(WS.10).aspx#fixed
then go back to here:
http://technet.micro.../dd440865(WS.10).aspx#five
and read the implications and caveats of using differencing .vhd's
And this:
http://technet.micro.../dd440865(WS.10).aspx#three
particularly the part:

Store all critical data outside the native-boot VHDs. When you store critical data outside the VHD that contains the Windows boot image, it is easier to recover the data if the VHD becomes unusable.

Use fixed VHDs for production environments. You can use all three VHD file types (fixed, dynamically expanding, and differencing) to native boot, but we recommend using fixed VHDs for production and using dynamically expanding or differencing VHDs for development and test environments.


Remember that this is written by the same guys who created:
  • native Windows 7 .vhd booting
  • dynamic .vhd's
  • differencing .vhd's

In theory they should know what they are talking about. :dubbio:
(they didn't create static .vhd, as they are simply a RAW image with a CONNECTIX footer)

You may understand how I would personally prefer volumes to .vhd's. (or use fixed .vhd's that are actually exactly like volumes/disks, and as such do not give any particular advantage in space occupied)

:cheers:
Wonko

#17 sambul61

sambul61

    Gold Member

  • Advanced user
  • 1568 posts
  •  
    American Samoa

Posted 11 September 2011 - 07:14 PM

Well, I just see a typical Safety First approach aimed at adding sufficient redundancy to a customer production system. Anyway, there is no practical need to store data on differencing VHDs that are expandable by default. But the Base disk would usually be fixed, as it can't be changed once at least one differencing disk is created from it. No need to store data on it either. On top, I don't think, MS paid much attention until recently to advantages of native Virtual Disk boot compare to a VM based disk boot. So yes, they admit, its not 100% error proof, a VHD can get corrupted, while data from it harder to recover. Meanwhile, folks like VMWare ripen clever benefits and built a huge company over the years from VM concept and virtual disks.

#18 Sha0

Sha0

    WinVBlock Dev

  • Developer
  • 1682 posts
  • Location:reboot.pro Forums
  • Interests:Booting
  •  
    Canada

Posted 12 September 2011 - 02:37 PM

...Basically, they primarily developed the incremental feature for testing own staff...

Wrong.

VHDs were simply the HDD image format for Virtual PC. That is like VMDKs are the [primary] HDD image format for VMware VMs. Microsoft acquired Virtual PC. It seems to me that discussion about what you want to do with VHD images should not be confused with what they were designed for.

I also think it's important to understand block versus filesystem! VHDs are for disks (the "block" level). Concerns about DLL and OS component versions, Registry dependencies, program versions, etc., will obviously arise, but what do they have to do with VHDs? Even without VHDs, Microsoft has the Enhanced Write Filter, which is also at the "block" level; same concerns. Linux' device-mapper can provide the same functions and the same concerns.

Microsoft has the File-Based Write Filter which is at the "filesystem" level. They also have a Registry Filter. See here.

If I wanted to use differencing VHDs for booting Windows, this is how I might do it:
  • Basic Windows installation VHD
  • All applications and customizations VHD, which would be a delta from #1
  • Model-specific VHD, which would be a delta from #2 with model-specific drivers, etc.
  • Client-specific VHD, which would be a delta from #3 with a particular Computer Name and Active Directory identity
  • Boot-specific VHD, which, if a "kiosk"-style environment was desired, would be discarded and rebuilt at each reboot, so viruses and user meddlings would not persist. It would be a fresh delta from #4
For the next "revision" of "the image," I'd derive from #2 (let's call it #2.5), then I'd derive new #3s. When the time would come for "re-imaging," I'd copy #2.5 and the new #3 to the computers, discard the old #3, #4, #5, then have an automated process build the new #4 (rename computer, join an AD Domain).

But those are for my needs, and obviously mightn't apply to your scenario(s).

#19 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 12 September 2011 - 04:01 PM

@sambul61
And BTW, the good VMware guys have managed over the years more image types than you may want to know about, a good list is here as you should already know:
http://reboot.pro/13624/page__st__3

Also creating "internal" incompatibilities within their own products (see the .pln vs. .vmdk here):
http://reboot.pro/7964/

And of course the ones with Redo-log or Snapshotting (corresponding to the "differencing" VHD's) suffer from the same kind of problems.

:cheers:
Wonko

#20 sambul61

sambul61

    Gold Member

  • Advanced user
  • 1568 posts
  •  
    American Samoa

Posted 12 September 2011 - 05:34 PM

Sha0

Its important to understand, what VHDs were designed for, and current targets (but not roadmaps) are presented in MS Devs blogs. In contrast with VM guys, MS delivered native boot VHDs that draw high interest from app usage standpoint due to low performance hit. BUT, MS guys didn't envision app usage as primary diff. VHD purpose, they claim its for testing rather then usage. Hence, no attention was paid to updating a Base VHD with Win Updates and adding new generic apps to it instead of changing Differencing ones, and propagating these changes in a non-destructive way to all Dif VHDs (syncing). That seems to be a weak spot so far.

I get your 1-5 structure idea, but which number is the Base here, when applied to a single PC? If only 1 is the Base, then all 1-5 must be present in the same folder on that PC - not sure how it will affect app performance? Any graphs, showing performance versus VHD chain length? I wonder, how internally this thing works - Registry on 5th would point to any of 1-5 depending on the request, and all 5 are mounted at the same time?

Wonko

Yes, I know VM approach to this goes long way back. What draws attention to this VHD solution from many end users and infrastructure guys is NATIVE BOOT - no performance hit plus direct hardware support. Of course, enterprise server based VM solutions are popular, but they seems to work slow enough for some heavy apps, its mostly for office type apps., unless costly infrastructure is in place. But at a workstation level, native boot diff. VHD solution seems to be attractive enough to create plenty of buzz on the web.

#21 sbaeder

sbaeder

    Gold Member

  • .script developer
  • 1338 posts
  • Location:usa - massachusettes
  •  
    United States

Posted 12 September 2011 - 06:25 PM

One other approach may be similar to what MS is doing with Office Starter...(combined with something like WSUS to keep the base OS updated)...it uses their "click to run" which is closely related to desktop virtualization, which means it has to handle things like registry etc.

http://support.microsoft.com/kb/982434

#22 sambul61

sambul61

    Gold Member

  • Advanced user
  • 1568 posts
  •  
    American Samoa

Posted 15 September 2011 - 01:22 PM

Some strange things happen with these Dif. VHDs. Once mounted after Win Server 2008R2 boot from a physical system partition, the VHDs can be dismounted by RMC on Disk Number in Windows Disk Manager. But only one Dif. VHD can be mounted and accessible until you manually change its default name (it inherits its Base VHD name) to its own name. Also, when a Dif VHD is booted to, it is mounted with Base VHD name instead of its own, hence requiring to rename the drive. Once renamed, the new name persists at each reboot. Once you booted to a Dif. VHD, you can mount another Dif. VHD linked to the same Base.

Some VHD planning notes...

Create Base VHD as Expandable for smaller initial size - it won't affect its performance, since once all generic apps are installed on it, you'll lock it. Before you start creating Dif. VHDs, don't forget to deselect "Content Indexing" in Disk Properties, Defrag the Base, and assign its Paging file to a physical HD for faster performance and smaller Base size, make the VHD "Read Only". OS booted from VHDs don't support Hybernation and Hybrid Sleep features for now, so you can delete Hybernation file in the Base VHD. Differencing VHDs by default seems to have no Paging file, meaning paging is done via the Base VHD's Paging file, if its redirected by you to a HD volume. If you later unlock and change the Base VHD or ever boot from it, all its Differencing VHDs become corrupted, and would require be recreated with all their apps reinstalled. Hence, store all data used by VHDs on a physical partition. Updates of Windows and installed Apps must be repeated for now on each Dif. VHD, since the Base VHD must remain locked for as long as any of Dif. VHD files exist, even if they're not mounted.

If you want fast app performance, make Base VHD really basic, no extra apps except AV, and add Hyper-V role, then create a Dif VHD and install just one app and specific drivers on it you want to work with. On Win Server 2008R2 such setup will be really fast. Assuming, you have enough RAM and some other Windows images with all generic apps installed, start Hyper-V hosted or another VM inside the Dif. VHD, and run your preferred OS image inside it. This way you get access to 2 worlds at once: a) fast direct hardware access for your main app working inside very light clean system, AND c) access to all generic office apps you usually work with via a Hyper-V VM on the same PC.

#23 JonnyHotkeys

JonnyHotkeys

    Newbie

  • Members
  • 10 posts
  •  
    United Kingdom

Posted 21 February 2014 - 06:16 PM

This seems like a real bummer, I've got a base vhd I'd love to optimise, and run different 'profile'virtual machines as difference(d) disks, ie

 

base (current)

win7 +drivers

updates...

 

(proposed) child 1: DAW

vsts and DAWs, midi drivers like rtp and coolsynth...

 

powerUser child 2

Office, photoshop, connectivity, media

 

testBed child 3

 

so, with each update, I have to install 3 times (or twice at least, or leave myself unupdated)

 

thats a shame






2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users