Vista's New Image-Based Installation
Windows Vista Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Vista's New Image-Based InstallationExpand / Collapse
Author
Message
Posted 1/16/2008 10:15:27 PM


Administrator

Administrator

Group: Administrators
Last Login: 7/29/2009 1:08:19 PM
Posts: 2,112, Visits: 2,279
Vista’s installation process is dramatically different to any previous version of Windows: rather than being an 'installer', the install DVD is actually a preinstalled copy of Windows that simply gets decompressed onto your PC.

So how does it adjust to your hardware? How do you slipstream updates and drivers into it? Can you also 'preinstall' your favourite apps into your Vista DVD?

And most importantly, can you build a custom Vista install DVD that doesn't install all the 'free AOL trial' crap that typically comes bundled in with Windows?

We asked Microsoft Australia Technology Specialist for Windows Client, John Pritchard how it all works and got some surprising answers.

Dan Warne: Vista’s “image based install” basically means that what you get on your Vista DVD is a preinstalled image of Vista, is that right?

John Pritchard: Yes, what users’ DVDs will contain is the install Windows Imaging (.WIM) file, which is basically our operating system folders wrapped up into one image file.

The users will put their DVD in, boot off it and run the setup and it will look to them like they are doing an install, but what it is really doing is grabbing the install.wim and executing that as an upgrade or clean install depending on what the user wants.

Dan Warne: So it’s basically decompressing a preinstalled version of Vista onto the hard drive, and when you do an upgrade, it’s basically putting a clean install of Vista on there and migrating your XP settings into Vista, right?

John Pritchard: Yes, that’s right, it’s a compressed image. We will ship it with fast compression, and then users just need to have the space on the hard disk for that image to be offloaded and decompressed.

There’s also the advantage that it is file-based, not sector-based image, so you can install the image onto your hard drive without overwriting other data.

We also have advanced User State Migration with Vista. Users can take their settings from a previous version of Windows, migrate them off the PC and put them into an installable format for a new PC.

So, for example if they wanted to wipe their XP installation completely and start again with Vista, they could take their data off their XP installation with the User State Migration Toolkit and then restore it into Vista once they’ve completed their installation.

The User State Migration Toolkit can collect settings from Windows 2000 and XP SP.

Dan Warne: So is that something that ordinary consumers could use to migrate data from an old PC to a new Vista PC? Would it be easy enough for consumers to use?

John Pritchard: Yes, it would be easy enough for consumers to use, though in that market there’s also the Files and Settings Transfer Wizard.

James Bannan: I’ve used the XP Tool, the Transfer Wizard, a number of times for upgrading computers. The User State Migration Tool is more powerful but it is command-line based, so not as user friendly. You’d certainly find that power users would be drawn to it, definitely, especially as you can combine it with the WIM file image being a file based imaging format, meaning it’s not an overwrite of your whole hard drive (unless you wish it to be).

Dan Warne: So in terms of the way the WIM system works, would it be possible to use WIM to back up, say, a Dell laptop completely as an image, and then restore it onto a Lenovo laptop with different hardware, for example? Would Windows be able to adjust to that different hardware?

John Pritchard: Yes, and that’s one of the great benefits of it. The WIM format, being a file-based format, is separated from the hardware you’re running it on. So you could take an IBM, Dell, Toshiba, whatever you’ve got, build your image up in it, and the way the traditional imaging process works, you can sysprep the machine, drop it and then create the image.

That way you can restore the image on multiple platforms. The caveat is that I wouldn’t go from a 32-bit architecture to a 64-bit architecture, but staying inside 32-bit, you are no longer tied to the Hardware Abstraction Layer (HAL) any more, and that is a great feature that releases us from so many challenges we’ve had in the past with HALs and multiple images.

You can now build your golden machine just like before, capture the image and then that image can be deployed widely and as you need to.

Dan Warne: what about keeping an image up to date. Users have had to get quite expert in doing this with XP because of its very out-of-date driverbase. Is this made easier with WIM?

John Pritchard: yes, you can update WIM images very easily.

There are two basic steps: one, you can just load a folder anywhere in the image you like. If there’s something that requires a folder under the system32 directory that is completely unique to some particular hardware, you have the liberty to inject that folder into your WIM.

The other way is that you can use a DriverLoad utility, and that will actually place important things like disk drivers into their required location in the image, so when you are running a setup, it can look through its normal repository for drivers and bang, it’s there, because it has been injected.

James Bannan: Out of interest, this all does rely on the image having been sysprepped, is that right? Because even though it is a similar deal with XP, even if the drivers are there, it does still need to run through that setup process of assigning drivers to hardware. With WIM, I assume you couldn’t just do a clean build, capture, inject the drivers, and drop it back on? It would still need to run through the driver allocation?

John Pritchard: With the actual released build of Vista, a user can mount the install.wim file on the Vista install DVD, mount it and put the drivers in themselves through the command line utilities.

When they unmount it, they’d have to burn another DVD of course, but they could have put drivers in there with it mounted into the file system. The drivers are actually injected into the right locations in there.

That’s with an image that comes from Microsoft; if they want to build their own golden machine, they have to reboot it, boot into something like WinPE, and then use ImageX to capture the image, and once you’ve got that WIM image, you can inject drivers into it just like the Microsoft-supplied WIM.

Dan Warne: A lot of drivers nowadays come bundled up into EXE files that install everything into the right place for you. How would you inject those into a WIM image?

John Pritchard: You can actually do that with the unattend.xml file. You would put those EXE files on the disk and let the unattend process install them. If you look at the Windows System Image Manager, it has the capability to say, “look at these packages on a distribution share, and run these drivers as an application after you have built the system.”

James Bannan: at what point in the install do those apps run?

John Pritchard: They’re done in part seven, that’s after the system has been built, before logon. Now, with the EXE packaged drivers, you can install them onto your golden machine, then build an image based on that. That’s the other way of doing it, of course.

Dan Warne: I know that I have a cynical journalist’s mind, but isn’t that a bit of a risk for malware to be injected into Vista install DVDs, given that those apps are executed before logon?

John Pritchard: Yes, well I would certainly recommend when people are looking at any content they make sure they have the approved and hologrammed DVDs to make sure they’re dealing with the genuine product, to get away from not knowing where the source comes from. But if they have got control of the unattend and built it themselves then hopefully they know what they are putting on it.

James Bannan: plus I believe ImageX itself can do a verify on a WIM so I guess that is an advantage if you have got the original WIM, a corrupted WIM won’t match up to the original.

Dan Warne: I guess like any software that can be corrupted, people will just have to go back to the original hashes.

John Pritchard: I think it comes back to people having the original software first, and that is the level of assurance I would look for.

Dan Warne: I guess I was thinking more of a corporation that might have a WIM image sitting somewhere on a network share and a rogue employee might go in and add something to the image.

James Bannan: it’s probably a bit too much to rely on WIM to be able to protect itself from rogue IT administrators… you’re asking a lot.

Dan Warne: yeah, I guess if you have file access you can do pretty much whatever you like can’t you.

James Bannan: pretty much.

John Pritchard: Also with larger enterprises they’ll have something like SMS, and the users don’t see that. It’s deployed under SMS like an application… it’s managed centrally and that has very good process around that to protect corporate WIM images.

James Bannan: So could you inject the Office installation files into your WIM, and could you have different installs for different machines, based on different unattend.xml files for example?

John Pritchard: Certainly, and this is where you’re getting into leveraging not only the unattend file, but also the Windows System Image Manager. You can set up all your applications as packages, so you can have one unattend file that installs office, and another that doesn’t. An unattend file can do patches, drivers and applications, effectively simulating a GUI run-once.

James Bannan: I guess then, if your home user who is interested in this kind of thing but doesn’t have access to WDM or SMS, they’re just going to have to customise a number of unattends and specify the one they want when they do the build.

John Pritchard: Yes, and if you want to build your own DVD and put your unattend file into the root of the DVD, there’s only one option there. It’s called autounattend.xml - it has to be that name because it’s what the build process looks for. So if you wanted to have various unattended installations, you’d just have to manually switch those files yourself.

James Bannan: I guess though you could probably have an open-source PXE if you wanted to.

John Pritchard: That one I don’t know about.

Dan Warne: [sarcastic] open source is the enemy, James!

James Bannan: [laughs] yes but Microsoft is interested in how its software integrates with everything else, surely...

John Pritchard: It’s always good there to hear from what our customers are saying and what they need.

Dan Warne: What about the process of updating the Vista image with service packs and patches? The process for slipstreaming in XP is relatively straightforward once you know how but it isn’t exactly intuitive, or as easy as running Windows Update.

John Pritchard: Well, in Vista, we can do that once the machine is built and on the network; you can use WSUS, or if they have an SMS environment you can patch the deployed machine in either of those two ways, so that doesn’t change.

But once you build an image, it poses a problem because it’s likely to be out of date as soon as you close it off. So, with that, you can take the image, and say, “OK, I’ll build a command line file that enables me to mount the image, apply the images to the OS while it is mounted, and then seal up and commit the changes to the image, and distribute the image.”

Dan Warne: So is there an automated way to grab all the patches off Windows Update and automatically apply them to an image? Or would you have to download each patch individually and manually apply them?

John Pritchard: You’ve got the image effectively mounted as a file system, so you’d apply the patches as command-line patches. You would have to get each patch and apply it. It’s like slipstreaming SP2 into an SP1 installation.

But if you have an image that’s, say 2.5GB, instead of patching it and having to push that entire image file out to different file shares, what you can do is instead of sending out the whole patched image again, you simply make your patch commands and then just send out the command line to mount the image and apply the patches locally and unmount the image. So at each point, they can run a series of batch files to update their image.

Dan Warne: So, in terms of customising the Vista install DVD to remove software components. Because inevitably in a large operating system there’s a lot of stuff in there that people don’t want or use, like in XP, the MSN Browser. Is there an interface for configuring WIM that is a bit more componentised, rather than just looking at the files on the disk? Can you actually select apps in Windows and just get them ripped out of the image?

John Pritchard: Yes, where I’d go to for that is if you take the Microsoft DVD that will be shipped out, we again go back to the unattend.xml and you can build an unattend.xml that says, “I want this, I want this, I want my partitions configured like this, do all that but also select that you want this game, but not solitaire, or whatever.”

You can then put that unattend.xml file on a USB key and if you plug that in when Vista is installing, it will base its install process on the unattend.xml instruction file. It means that you don’t have to build a custom DVD for a custom install. Consumers can take the System Image Manager, build up the unattend as they would like, put it on a USB key and use that to install from the Microsoft-standard image file.

Dan Warne: Cool, so that’s presumably a new feature in Vista? I knew you could script Windows installations previously, but you’ve never been able to run that script from a USB key, right?

John Pritchard: Yes, that’s right. This is where we’ve got the ability to look for the USB port. It’s like having a WINNT.SIF file being looked for in the root of a floppy drive. What I do for my customers is they have the bootable Vista build DVD and they put their unattend on a USB key, which saves them having to rebuild their DVDs all the time.

James Bannan: a lot of corporate customers more than likely have the facilities to be able to install off a network share, won’t they. It’s a fairly safe guess that most power users would have more than one computer at home. You’d have your file server, or something along those lines, so you wouldn’t have to go to the length of having a USB key, would you. You could just have the unattend.xml in the share root and launch the installation from there, is that right?

John Pritchard: Yes, you can do, if you boot up under something like WinPE, because you obviously have to be able to get to the share, get an IP address through DHCP, get DNS settings and so on.

So what you do is use WinPE as your boot environment, which is effectively an upgraded equivalent of your DOS boot floppy, but this one is a lot more powerful, connect to your network share, and then run your unattend file as part of your setup.

And lo and behold, if you did want to burn a DVD, you can put that unattend file as autounattend.xml in the root of the DVD, and it will pick that up. That’s another option of someone wants to build a bootable DVD. They can.

Dan Warne: So for people that aren’t familiar with WinPE, how do you get it?

John Pritchard: OK, WinPE will be available in version 2.0 in the Windows Automated Installation Kit, and it’s approximately 180MB, and it will be shipped as a boot.wim file, and that’s WinPE as well. I believe that it will ship as an open file structure. You’ll be able to get that with the shipment of Vista and you’ll be able to get WinPE to boot and install in these sorts of scenarios.

James Bannan: will that be available to everyone, or just corporate customers?

John Pritchard: From the release 2.0, it will be available in the Windows Automated Installation Kit.

Dan Warne: And will that Windows Automated Installation Kit be available free of charge to anyone who wants it?

John Pritchard: That one is at the moment something that’s still being determined. I would refer back to the business groups on how it will be released. We may not have the information until closer to launch time.

Dan Warne: So, what are the names of the tools involved in maintaining WIM images, and what do they do?

John Pritchard: The core tool out of all of the WIM tools is the ImageX program. That program was called X Image but got a rename about two months ago. It’s the one that you use to capture the image, deploy the image, mount the image, and unmount the image. That is going to be the key tool. That’s included in the Windows Automated Installation Kit.

There’s also the DriverLoad command, that’s the one that does the injection of the drivers into the image.

And basically, then there’s just the good old Windows Explorer when you mount the file system, you just literally drag folders over and add them to the image. It’s a fantastic combination… we’ve come a long way with that.

In terms of the unattend.xml generation, I would thoroughly recommend the Windows System Image Manager which is our GUI based unattend generator. That’s also part of the Unattended Automation Kit.

Dan Warne: Cool, thanks very much for your time John, that has all been very interesting.

John Pritchard: No worries. I’m pretty enthusiastic about it. It’s going to be a fantastic enabler for deployments. The WIM format is compressible, allows side-by-side installs, you can mount it as a file system image and edit it with Explorer.

And finally, we’ve got Hardware Abstraction Layer (HAL) independence. What I’m finding is when we tell customers that they no longer have to build a separate image per HAL, that really switches the light on for them.

James Bannan: a quick extra question on that, with the HAL independence, that is major, but then why were you saying you wouldn’t recommend taking an image and trying to distribute across 32 bit and 64 bit platforms?

John Pritchard: Because we do require a 32-bit image and a separate 64-bit image.

James Bannan: Is that because it’s actually a different version of the OS per architecture?

John Pritchard: I believe so. That’s something I’d have to look into in greater depth. I do know it doesn’t work though. I have been working largely in the 32-bit space.

Dan Warne: Also, what do you mean by side-by-side installs?

John Pritchard: Oh, sorry, what I mean is install a system image alongside your existing data, because the WIM image is file-based, not sector-based. You don’t have to overwrite your whole hard-drive.

Dan Warne: Ah, ok. And also, you mentioned that WIM is compressible. You said the Vista default image is lightly compressed. Is there an extra compression mode that would allow you to really crunch a Vista WIM image down in size?

John Pritchard: Yes, there are two levels of compression-modes… LZX and XPress. The XPress mode still compresses pretty well but it’s faster. It’s like running WinZip with the minimum file size (LZX) or maximum speed (XPress).

http://apcmag.com

AMD64 X2 5200+ 2.60GHz | 3GB DDR 667 | RAID 0 SATA3.0 WD Caviars 320GB total | Foxconn MCP61VM2MA-RS2H Geforce 6100 nforce400 chipset | Vista Ultimate x86

Post #13356
Posted 1/17/2008 11:53:34 AM


Lead Forum Moderator

Lead Forum Moderator

Group: Vista Forum Moderator
Last Login: Yesterday @ 2:51:07 PM
Posts: 2,659, Visits: 2,798
Good read. I especially like the part where they claimed you could migrate a Dell-based imaged onto a Lenovo box and have it install without problems.

Could they have picked a more ridiculous example?

What makes that ridiculous? Two things.

First, both Dell and Lenovo are large-scale OEMs, meaning that they both use BIOS-based preactivation. Thus, while the "migration" might work, my guess is that since the activation check will then fail, it's likely that the machine will boot up in Reduced Functionality Mode -- giving you 72 hours to reactivate it or it shuts down.

Second, large-scale OEMs don't do this kind of migration, end-users do. So, a better example would have been to migrate from an "older" AMD 64 X2 machine to a "newer" Quad-core Intel machine. In that case, what they're claiming actually might work. If it did, all you'd have to do is call MS to get a new product key (to reactivate your copy of Vista) and you'd be off an running.


ASUS A832nSLI-Deluxe, AMD 64X2 4400 OC 2.4GHz, 2GB OCZ,
Running: Windows 7, Vista 32-bit, Ubuntu 9.04

Post #13383
Posted 2/24/2008 5:22:17 AM
 

Group: Forum Members
Last Login: 3/14/2008 9:22:35 AM
Posts: 1, Visits: 8
WAW8 (1/17/2008)
First, both Dell and Lenovo are large-scale OEMs, meaning that they both use BIOS-based preactivation.  Thus, while the "migration" might work, my guess is that since the activation check will then fail, it's likely that the machine will boot up in Reduced Functionality Mode -- giving you 72 hours to reactivate it or it shuts down.

And how is that any different than migrating XP between these machines?  And what does activation have to do with migrating, anyway?  The purpose of migrating an install to a different machine has nothing to do with preserving activation.

In the worst case scenario, where activation could not be addressed using several available options, tacking on 10 ~ 15 minutes for each machine post-migration to address activation is infinitely preferrable to tacking on 4 ~ 5 hours for each machine to manually do the migration.

Inability to preserve activation is not a barrier to migration - ever.

Second, large-scale OEMs don't do this kind of migration, end-users do.

This was the context in which the Dell and Lenovo scenario was being discussed.  That part of the discussion developed directly from the following line of questioning...

"Dan Warne: So is that something that ordinary consumers could use to migrate data from an old PC to a new Vista PC?  Would it be easy enough for consumers to use?"

In fact, the principle focus of the entire interview is how end-users and power-users can benefit from this technology, not large-scale OEMs or corporate IT departments.  And large OEMs do this kind of migration all the time on the computers used throughout their own organization.  IBM, HP, Sony, and Dell have huge IT organizations serving thousands of users.  This kind of migration is vastly more critical for medium to large organizations than end-users.

At least 70% of end-users buy a new computer, manually copy their stuff over to the new one, manually setup all their preferences, install applications, import user data, so on and so forth.  Its not a big deal for an end-user to spend four or five hours doing this once every three to five years.  Its a disasterous problem for an IT department to spend four or five hours doing this for EACH of the 200...500...1000 computers in the organization.

For end-users, the consequences of failed migration is "Oh well, guess I'll have to spend part of my Saturday doing all this manually.  I'm glad I won't have to do this for another three, four, five years."

For the IT world, the consequences of failed migration is that the generous bonus your client or employer put on the table as an incentive for completing the project on schedule and on-budget just became enough to treat your wife to a Quarter Pounder (without cheese).  Or worse, "You're fired."

The notion that this kind of migration is only of real interest or value to end-users demonstrates a shocking level of ignorance for someone in your position.

In that case, what they're claiming actually might work.  If it did, all you'd have to do is call MS to get a new product key (to reactivate your copy of Vista) and you'd be off an running.

Why would having to reactivate Vista amount to a 'ridiculous' monkey wrench thrown into a would-be successful migration between Dell and Lenovo machines, but having to reactivate Vista amounts to an insignificant 'speed bump' for an otherwise successful migration between AMD and Intel machines?  There's no difference - at all.

Were you just having a bad day where you skimmed over the article and posted the first thing that came to mind without reviewing or thinking about it?  I can accept that, everyone has those kinds of days, even me (rarely).  But if this was not one of those moments...HOLY SH-T!

Post #14984
Posted 2/24/2008 11:02:13 AM


Lead Forum Moderator

Lead Forum Moderator

Group: Vista Forum Moderator
Last Login: Yesterday @ 2:51:07 PM
Posts: 2,659, Visits: 2,798
I'm not going to respond to your tirade in kind and keep what is obviously a flame war going.

You, and anyone else for that matter, have the right to disagree with any position I take regarding anything. I'm certainly not always right, and looking at something from someone else's perspective often opens my eyes to a diffent point of view.

But you completely misunderstood the basis of my criticism of the article. I know something about how large-scale OEM machines are licensed, which you clearly don't, and they can NOT be reactivated through a simple call to India. So, to me, it's important to alert OUR community here (which is mostly end-users, not corporations, and not IT professionals) that this kind of migration will leave them with a nonworking box -- one that can NOT be reactivated through a phone call.

When they try that, their machine doesn't work, and they panic -- they don't ping you; they ping us. All I'm trying to do is give them a "heads-up" so they don't try this and wipe out a perfectly good machine in the process.

But then, you crossed the line from disagreement into slander: calling me ignorant, and ending the article with HOLY SH-T! is crossing the line. That's defaming me as a person -- and that's SH-T that I don't have to put up with!!

If you come back with more of the same, I'll have you banned.


ASUS A832nSLI-Deluxe, AMD 64X2 4400 OC 2.4GHz, 2GB OCZ,
Running: Windows 7, Vista 32-bit, Ubuntu 9.04

Post #14988
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Jason, blackhat, kingofnexus, Camride, MafiaLord91, WAW8, Walker, MrMagic, PC509, AmericanNightmare

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 9:56am

Powered By InstantForum.NET v4.1.4 © 2009
Execution: 0.156. 8 queries. Compression Enabled.