read

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  
  1. 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
  1. 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.

Blog Logo

Dom Barnes


Published

Dom Barnes

Hi I'm @domster. I write about technology mostly.

Back to Overview