HOWTO: Install a WIM Image in VMWare Fusion

Mar 17 2009 Published by Dom under howto, macosx, work

My company builds their machines based on a USB rebuild solution, applying a Windows WIM image with Windows PE. I wanted to get this into a VMWare Fusion VM. After some googling, I managed to get it working, and here is how. My main resource was this invaluable page. I have put my steps here for clarity.

1. Follow the instructions here for creating a Windows PE boot disc. You will need a Windows system to create this with. Unfortunately the file resultant ISO file is 180MB, not really suitable to share here.
2. Get your WIM image on a USB drive.
3. Create you VM, selecting the appropriate OS, in my case, XP. Use the ISO image you created in step 1 as the install media.
4. Start up your VM and wait to be presented by a command prompt.
5. Type DISKPART to start the disk partition tool. Type the following commands

list disk
sel dis 0
clean
create part pri size=30000
(for 30GB, change as necessary)
ass letter=c
format fs=ntfs label=XP quick
act
exit

6. Next you need to insert the USB drive with your WIM image on. And we need to go back into DISKPART. You need to assign a letter to your partition on the drive. So do this

list disk
sel dis 1 (confirm disk number from list disk command)
list vol
sel vol 3 (in my case, my partition on the drive was 3)
ass letter=m
exit

7. Back at the command prompt, you can now begin applying the WIM to your VM. Type the following command, inserting your own wim file name where I put in filename.wim
imagex  /apply m:\filename.wim 1 c: /verify

The variables for this are of course your wim file name, the destination drive should usually be C:, and the “1″ is the index number on your wim. This is likely to be 1 but if you are unsure or have issues, refer to the Microsoft Support pages.

Then, give it about 10 minutes to apply your WIM and once done, type “exit” to reboot the system. You will probably need to shutdown the VM when it reboots, to allow you to remove the ISO image which will be attached to the VM as a physical disc. Once that is out, reboot and make sure you’re plugged into your company network if needed, and that the networking mode is Bridged. This will give your VM a physical IP address from the DHCP server, rather than using NAT routing to reuse the IP address of your Mac.

One response so far

VMWare Fusion

Dec 14 2007 Published by Dom under life, macosx

As I posted before, I took my A+ 220-601 exam recently and as part of the study, I got a few books that came with CD-ROM’s. They all contained test engine software which I was looking forward to using, but of course, cos of the narrow minded people, it was Windows only. Since I don’t have Leopard yet (Jan ’08 after payday and I get an external drive to backup so I can clean install) I was encouraged by a friend to get VMWare Fusion. So I took the plunge and forked out the £45-odd quid for the software.

I downloaded the dmg file and installed the software, and put in the serial number supplied via email. And there I was, ready to install Windows. I pulled out a disc I had nearby and got to work on the dreaded install. I’ve already done this a few times with Boot Camp beta, so was more than familiar with the many many many many updates needed when you install Windows, and because they don’t do bulk updates like Mac OS gets (only their infrequent Service Packs) It took about 4 reboots, to install around about 90 updates, hotfixes, bug fixes and new software, included the fantastic(!) IE7.

So I finally got that sorted, downloaded Firefox, TweakUI, Acrobat Reader, and got them installed. Finally I was ready to actually get studying, but before that, a good nights sleep.

Well it seemed to do the trick cos I passed the exam, and now I have XP working for the future. I’m going to keep the virtual image on my laptop cos it will no doubt come in handy next time I need to tech support for my parents.

The next step for me is to set up a Ubuntu install. Its all done (off the Live/Desktop CD) and now just updating that. To make it work smoother, I need to install VMWare Tools, to allow shared folders and other business. Luckily, this website provides a great step-by-step for this  as it seems a bit tricky.

So I’ll be a triple boot system soon, which is nice to have. And certainly one to impress the friends and family, and people at MMUG.

2 responses so far