Instructions for Generalizing VM for deployment
Do not install any software or modify the configuration of the VM during this stage unless instructed to.
Note: If you see a reference to "Right-clicking" and you don't have a right mouse button, use "Control-Click" or "two finger click" instead.
- Make a Copy of the VM while it is shut down. If you make any steps after this point, it provides you a place you can come back to try again or fix.
- Power On the VM
- Empty Recycle Bin
- Run any system or AV updates you wish (if you update anything, be sure to restart at this point before proceeding to the next step)
- In SysPrep Window (Launch sysprep.exe in C:\Windows\System32\sysprep if not running)
Note: If you are using an account other than the default Administrator account, you will need to do a few extra steps to clean up the account. This usually occurs when you are re-generalizing a machine with SysPrep. - re-enable the default Administrator account
- login to the Administrator account
- delete the extra user accounts
- delete the extra users profiles and folders C:\Users - you may need to Take Ownership to delete all the files and folders.
- launch SysPrep
- Check Generalize box
- Change Shutdown Option to Shutdown
- Confirm System Cleanup Action is Enter System Out-of-Box Experience (OOBE)
- Click OK
- After VM Shuts down, Edit the VM Options in VMware Fusion or Workstation removing any shared folders, but leaving it set to Always Enabled.
- Close the VM tab (to remove the lock).
- Cleanup the .vmwarevm folder
- Remove all .log files
- Remove any file not ending in .vmx or .vmdk
- Remove the caches folder
- Rename the .vmx file Windows 7 x32 - Student Sp2012.vmx (or wahtever is appropriate)
- Edit Windows 7 x32 - Admin SP2012.vmx with a text editor
- Swap "sharing" lines with the following to enable mirroring on Macs
hgfs.mapRootShare = "FALSE" sharedFolder.maxNum = "1" sharedFolder0.present = "FALSE"
They may not be contiguous
sharedFolder0.present = "TRUE" sharedFolder0.enabled = "TRUE" sharedFolder0.readAccess = "TRUE" sharedFolder0.writeAccess = "TRUE" sharedFolder0.hostPath = "~/Desktop" sharedFolder0.guestName = "My Desktop" sharedFolder0.expiration = "never" sharedFolder1.present = "TRUE" sharedFolder1.enabled = "TRUE" sharedFolder1.readAccess = "TRUE" sharedFolder1.writeAccess = "TRUE" sharedFolder1.hostPath = "~/Documents" sharedFolder1.guestName = "My Documents" sharedFolder1.expiration = "never" sharedFolder.maxNum = "2" hgfs.redirectShellFolder.maxNum = "4" sharedFolder0.shareTags = "auto,desktop" sharedFolder1.shareTags = "auto,documents" hgfs.redirectShellFolder0.name = "desktop" hgfs.redirectShellFolder0.enabled = "TRUE" hgfs.redirectShellFolder1.name = "documents" hgfs.redirectShellFolder1.enabled = "TRUE"
- Swap "sharing" lines with the following to enable mirroring on Macs
- Remove the following 4 lines or similar:
ethernet0.addressType = "generated" uuid.location = "56 4d f3 46 36 fa 21 e6-68 1c 1a af 3b ef 79 9e" uuid.bios = "56 4d f3 46 36 fa 21 e6-68 1c 1a af 3b ef 79 9e" ethernet0.generatedAddress = "00:0c:29:ef:79:9e"
- Save .vmx file.
- Copy vmx_enable_sharing.vbs script to the same folder as the vmx for Windows users to be able to enable mirroring (student only).
- Zip Up files using 7zip.